Linear Equation

What is a linear equation?

A linear equation in the set of variables 𝒳, where without loss of generality 𝒳= { x1, x2, ,xn } is an expression

a1 x1 +a2 x2 + +an xn =b

The value bi is the constant of the linear equation and belongs to the field 𝕂 that contains the constants.

The linear equation

a1 x1 +a2 x2 + +an xn =b

will sometimes be described using the summation symbol as

i=1 n ai xi =b

For a set of variable 𝒳= { x1, x2, x3, x4 } we have

linear equations non-linear equations x1 +4x2 -8x3 -7x4 =-8 x1 +4x2 -7x3 =3 4x1 -8x3 -7x4 =5 x1 x2 +8x3 -7x4 =8

Homogeneous Linear Equation

The following is an important class of equations

A linear equation

a1 x1 +a2 x2 + +an xn =b

is called homogeneous if b=0.

non-homogeneous homogeneous x1 +4x2 -8x3 -7x4 =-8 x1 +4x2 -8x3 -7x4 =0 4x1 -8x3 -7x4 =5 4x1 -8x3 -7x4 =0

Solution set of a linear equation

An n-tuple ( s1, s2, ,sn )𝕂n is a solution (order is important) to the linear equation

a1 x1 +a2 x2 + +an xn =b

if and only if

a1 s1 +a2 s2 + +an sn =b

Observe that the second equation is concerned with numbers only; there are no variables.

( 1 ,0 ,-3 ) is solutions to 4x1 +2x2 +x3 =1 , but ( 3 ,1 ,0 ) is not a solution.

( 1 ,0 ,-3 ) is solutions to 4x1 +2x2 +x3 =1 , but is not solution to 4x1 +2x2 +x3 +0x4 =1

The tuples ( -2 ,5 ,0 ) and ( 0 ,4 ,-1 ) are solution to x1 +x2 +x3 =3 , the tuple ( 1 ,5 ,0 ) is not a solution. The set of all solutions is x1 = s1 , x2 = s2 and x3 = 3 - s1 - s2 where s1 , s2 𝕂 that is

𝒮= { ( s1 ,s2 , 3-s1- s2 ) | s1 , s2 𝕂 }

Note that 𝒮 𝕂3

The solution set of 0x1 + 2x2 +x3 =-3 is

𝒮= { ( s1 , -3-s3 2 , s3 ) | s1 , s3 𝕂 }

The solution can also be described as

𝒮= { ( t1 , t2 , -3-2t2 ) | t1 , t2 𝕂 }

Typically in case there is a non-zero coefficient the solution set is described using the smallest index i for which ai is non-zero. For the above example it means the solution set is described with the former rather than the latter description.

The solution set of 0x1 + 0x2 =0 is

𝒮= { ( s1 , s2 ) | s1 , s2 𝕂 } = 𝕂2

The solution set of 0x1 + 0x2 + 0x3 + 0x4 =4 is empty, meaning it has no solution or is inconsistent.

𝒮= 𝕂4

The solution set of 2x1 =6 contains a single element (singleton):

𝒮= {3} 𝕂1

Consider the linear equation

a1 x1 +a2 x2 + +an xn =b

If at least one ai is non zero

𝒮= { ( s1, ,si-1 , b- ( a1 s1 + + ai-1 si-1 + ai+1 si+1 ++ an sn ) ai ,si+1 ,, sn ) | isi 𝕂 }

All ai's are zero

  1. if b=0 then 𝒮=𝕂n
  2. if b0 then 𝒮=n
Proof:

Suppose one coefficient is non zero. Without loss of generality ai0.

We will show that every solution satisfies the constraints in the description of the set 𝒮 and every such tuple is a solution. Let (s1 sn ) be a solution to the linear equation, by definition

a1 s1 +a2 s2 + +ai-1 si-1 +ai si +ai+1 si+1 + +an sn =b

rearranging

si = b- ( a1 s1 + + ai-1 si-1 + ai+1 si+1 ++ an sn ) ai

Thus (s1 sn ) satisfies the constraint described in the set 𝒮.

Take a tuple

( s1, ,si-1 , b- ( a1 s1 + + ai-1 si-1 + ai+1 si+1 ++ an sn ) ai ,si+1 ,, sn )

and consider

a1 s1 + a2 s2 ++ ai-1 si-1 +ai b- ( a1 s1 + + ai-1 si-1 + ai+1 si+1 ++ an sn ) ai +ai+1 si+1 ++ an sn =a1 s1 ++ ai-1 si-1 + b- ( a1 s1 + + ai-1 si-1 + ai+1 si+1 ++ an sn ) +ai+1 si+1 ++ an sn =b

Thus every such tuple is a solution to the given linear equation concluding this part of the argument.

Suppose now all coefficients are zero that is for all i we have ai=0. Take any tuple (s1 sn ) . We have

a1 s1 + a2 s2 ++ an sn = 0 s1 + 0 s2 ++ 0 sn =0

Thus if b=0 n-tuple is a solution. If b0 the equation has no solution, concluding the argument.