LA 1 LinearSystems
LA 1 LinearSystems
ax + by = c
ax + by + cz = d
a1 x1 + a2 x2 + . . . + an xn = b
a1 x1 + a2 x2 + . . . + an xn = 0
Examples of linear equations
x + 2y = 5 not homogeneous
x + 2y − 5 = 0 not homogeneous
x + 2y = 0 homogeneous
Example:
7x + 3y = 10
x −y =0
2x − 2y =0
Solution of a linear system
x 1 = s1 x2 = s2 ... xn = sn
4
! Maybe not all variables appear in the equations.
For example
x =5
could have as solution 5, if there is only the unknown x.
But if we have unknowns x, y the above equation stands for
x + 0y = 5
Example:
y = −x − 1
z = −x + 2
The solutions are (x, y , z) = (t, −t − 1, −t + 2) with t ∈ R.
We can assign an arbitrary value to the parameter t. We have
parametric equations (called the general solution of the system)
x =t
y = −t − 1
z = −t + 2
is
a11 a12 . . . a1n b1
a21 a22 . . . a2n b2
..
.
am1 am2 . . . amn bm
Notice: the row number is mentioned before the column number.
Augmented matrix
is
1 1 2 9
2 0 −3 1
3 6 −5 0
Solving a linear system/Elementary row operations
0x + 0y + 0z = 1
x − 5y + z = 4
x = 5y − z + 4
The solutions are
The leading variables are x and z. The free variables are y and w .
(
x = −4w + 2
z = −w + 3
We continue the iteration until all entries above all leading ones
are zero.
Example: Gauss-Jordan elimination
x +y =1 x = −s + 1, y = s (s ∈ R)
y +x =1 y = −t + 1, x = t (t ∈ R)
Consistent linear systems
Homogeneous linear systems
a11 x1 + a12 x2 + . . . + a1n xn = 0
a21 x1 + a22 x2 + . . . + a2n xn = 0
..
.
am1 x1 + am2 x2 + . . . + amn xn = 0
(x1 , x2 , . . . , xn ) = (0, 0, . . . , 0)
Example:
x + 2y = 10
(10, 0) + (−2t, t) = (−2t + 10, t)
(4, 3) + (−2s, s) = (4 − 2s, 3 + s)
Consistent linear systems: number of free variables
For any consistent linear system: the number of parameters in
the solution set is the number of free variables.
(No free variables means that there is exactly one solution.
Free variables means that there are infinitely many solutions.)
Since the number of leading variables does not exceed the number
of equations we get in particular: if there are more unknowns than
equations, there must be free variables.
Additional notions
Terminology: Pivot positions and Pivot columns