Solving Linear Systems
Solving Linear Systems
Elif Tan
Ankara University
Then the linear system (1) can be written in matrix form as:
Ax = b
Elif Tan (Ankara University) Lecture 3 2 / 20
Matrix representation of a linear system
The matrix A is called coe¢ cient matrix of the linear system (1).
The matrix [A : b ] which is obtained by adjoining column b to A is
called augmented matrix of the linear system (1).
Example
Consider the linear system
x1 + 2x2 + 3x3 = 5
2x1 + x2 3x3 = 1
x1 x2 + x3 = 3.
De…nition
An m n matrix A is said to be in reduced row echelon form if it
satis…es the followig rules:
1 All zero rows, if there are any, lie at the bottom of the matrix.
2 The …rst nonzero entry from the left of a non zero row is 1. (This
entry is called a leading one of its row)
3 For each nonzero row, the leading one lies to the right and below of
any leading ones in preceding row.
4 If a column contains a leading one, then all other entries in that
column are zero.
If a matrix satis…es the conditions (1) , (2) and (3) we say that it is in row
echelon form.
De…nition
An elemantary row operations on a matrix A are
1 Interchange the i-th and j-th rows (ri $ rj )
2 Multiply a row by a non zero constant (kri ! ri )
3 Add a multiple of i-th row to the another j-th row (kri + rj ! rj )
Homework: Find the reduced row echelon form of the following matrices.
2 3
0 2 3 4 1
6 0 0 2 3 4 7
1) 6
4 2
7
2 5 2 4 5
2 0 6 9 7
2 3
1 2 5
2) 4 2 1 6 5
1 1 3
2 3
1 2 3
3) 4 0 1 2 5
2 9 4
Example
Solve the linear system
x1 + 2x2 + 3x3 = 5
2x1 + x2 3x3 = 1
x1 x2 + x3 = 3.
x1 + 2x2 + 3x3 = 5
x2 + 3x3 = 3
x3 = 1.
Then by using back substitution, the unique solution of the linear system
is x1 = 2, x2 = 0, x3 = 1.
Example
Solve the linear system
Since the last equation 0x1 + 0x2 + 0x3 + 0x4 = 1 can never be satis…ed,
the linear system has no solution.(It is inconsistent).
Elif Tan (Ankara University) Lecture 3 13 / 20
Solving Linear Systems
Example
Solve the linear system
x1 + 2x3 + 3x4 + x5 = 5
x2 x3 + 3x4 + 2x5 = 1
x3 + 3x4 + 2x5 = 2
2x4 + 6x5 = 2.
x1 + 2x3 + 3x4 + x5 = 5
x2 x3 + 3x4 + 2x5 = 1
x3 + 3x4 + 2x5 = 2
x4 + 3x5 = 1.
Then the linear system has in…nitely many solutions depend on the real
parameter r :
x1 = 4 6r
x2 = 4 14r
x3 = 1 + 7r
x4 = 1 3r
x5 = r , r 2 R.