# LibreOffice Math: Linear Equation Examples

This article provides linear equation examples for LibreOffice Math. You can write every code here in Math's input textbox and it shows the beautiful equation directly. And you can also write every code in LibreOffice Writer document. Finally, you can download the sample documents (.odt & .odf) below containing all equations. This article is intended for teachers so they can use LibreOffice for all mathematic documents in schools.

Subscribe to UbuntuBuzz Telegram Channel https://telegram.me/ubuntubuzz to get article updates directly.

## How It Looks

If you wonder how the code looks in both LibreOffice Math and Writer, here is the picture. Left is Math and right is Writer.

Picture:

Code:

ax = b.

## Example 2

Picture:

Code:

x = b over a, while a <> 0.

Picture:

Code:

y = mx + b,

Picture:

Code:

Ax + By = C,

Picture:

Code:

ax+ by + c = 0,

## Example 6

Picture:

Code:

y - y_1 = { {y_2 - y_1} over {x_2 - x1} (x-x_1)}

## Example 7

Picture:

Code:

( x_2 - X_1 )( y-y_1 ) = ( y_2 - y_1 )( x-x_1 ).

## Example 8

Picture:

Code:

x( y_2 - y_1 ) - y( x_2 - x_1 ) = x_1 y_2 - x_2 y_1

## Example 9

Picture:

Code:

a_1 x_1 + a_2 x_2 + ... + a_n x_n = b,

## Example 10

Picture:

Code:

{{a( x+2 )} over {5}} = 7 + { {5x} over 13 }