Lecture 1
Lecture 1
1
Ex 2 (Parametric representation of a solution set) a system of m linear equations in n variables:
x1 + 2 x2 = 4 a11 x1 + a12 x2 + a13 x3 + ! + a1n xn = b1
a21 x1 + a22 x2 + a23 x3 + ! + a 2 n xn = b2
a solution: (2, 1), i.e. x1 = 2, x2 = 1
a31 x1 + a32 x2 + a33 x3 + ! + a3n xn = b3
If you solve for x1 in terms of x2, you obtain "
x1 = 4 − 2x2 , am1 x1 + am 2 x2 + am3 x3 + ! + amn xn = bm
2
Ex 5: (Using back substitution to solve a system in row echelon form) Ex 6: (Using back substitution to solve a system in row echelon form)
x − 2 y + 3z = 9 (1)
x − 2y = 5 (1) y + 3z = 5 (2)
y = −2 (2) z = 2 (3)
Sol: By substituting y = −2 into (1), you obtain Sol: Substitute z = 2 into (2)
y + 3(2) = 5
x − 2( −2) = 5
y = −1
x = 1
and substitute y = −1 and z = 2 into (1)
The system has exactly one solution: x = 1, y = −2
x − 2( −1) + 3(2) = 9
x = 1
The system has exactly one solution:
x = 1, y = −1, z = 2
3
Ex 8: Solve a system of linear equations (inconsistent system)
(4) + (5) → (5)
x − 2 y + 3z = 9 x1 − 3x2 + x3 = 1 (1)
y + 3z = 5 2 x1 − x2 − 2 x3 = 2 (2)
2z = 4 (6) x1 + 2 x2 − 3x3 = − 1 (3)
(6) × → (6)
1
2 Sol: (1) × ( −2) + (2) → (2)
x − 2 y + 3z = 9 (1) × ( −1) + (3) → (3)
y + 3z = 5
x1 − 3x2 + x3 = 1
z = 2
5 x 2 − 4 x3 = 0 ( 4)
So the solution is x = 1, y = −1, z = 2 (only one solution) 5 x 2 − 4 x3 = − 2 (5)
4
1.2 Gaussian Elimination and Gauss-Jordan Elimination
x1 − 3x3 = −1 mxn matrix:
x2 − x3 = 0 ⎡ a11 a12 a13 ! a1n ⎤
⎢ a21 a22 a23 ! a2 n ⎥
⇒ x2 = x3 , x1 = −1 + 3x3 ⎢ a31 a32 a33 ! a3n ⎥ m rows
⎢ " ⎥
let x3 = t ⎢ ⎥
⎣am1 am 2 am 3 ! amn ⎦
then x1 = 3t − 1, n columns
Notes:
x2 = t , t∈R
n
5
Augmented matrix: Elementary row operation:
6
Associated Elementary
Row Operation
Row-echelon form: (1, 2, 3)
Linear System Augemented Matrix
n Reduced row-echelon form: (1, 2, 3, 4)
x − 2 y + 3z = 9 ⎡ 1 − 2 3 9⎤ r23(1) : (1) R2 + R3 → R3
⎢0 (1) All row consisting entirely of zeros occur at the bottom
y + 3z = 5 1 3 5⎥
⎢ ⎥
2z = 4 ⎢⎣0 0 2 4⎥⎦ of the matrix.
(2) For each row that does not consist entirely of zeros,
x − 2 y + 3z = 9 ⎡ 1 − 2 3 9⎤ 1
1
⎢0
( ) the first nonzero entry is 1 (called a leading 1).
1 3 5⎥ r : ( ) R3 → R3
2
y + 3z = 5 ⎢ ⎥
3
2
(3) For two successive (nonzero) rows, the leading 1 in the higher
z = 2 ⎣⎢0 0 1 2⎥⎦
row is farther to the left than the leading 1 in the lower row.
x = 1 (4) Every column that has a leading 1 has zeros in every position
y = −1
above and below its leading 1.
z = 2
7
leading 1
Ex: (Procedure of Gaussian elimination and Gauss-Jordan elimination) ⎡1 4 − 3 2 14⎤ 1 4 −3 2
r23( −5) ⎡⎢
( − 12 ) 6 6 14⎤
Produce leading 1 r2 ⎢0 0 1 0 − 4 − 6⎥ 0 0 1 0 − 4 − 6⎥
⎡0 0 − 2 0 8 12 ⎤ ⎡2 8 − 6 4 12 28⎤ ⎢ ⎥ ⎢ ⎥
⎢2 8 − 6 4 12 28⎥
r12 ⎢0 0 − 2 0 ⎣⎢0 0 5 0 − 17 − 24⎦⎥ ⎣⎢0 0 0 0 3 6⎦⎥
⎢ ⎥ ⎢ 8 12 ⎥⎥ Submatrix
Zeros elements below leading 1
⎢⎣2 4 − 5 6 − 5 4⎥⎦ ⎢⎣2 4 − 5 6 − 5 4⎥⎦ Produce leading 1
Zeros elsewhere
The first nonzero column
1
r3
(
3
)
⎡1 4 − 3 2 6 14⎤ r31( −6 ) ⎡1 4 − 3 2 0 2⎤
⎢0 0 ⎢0 0 1 0 − 4 − 6⎥
leading 1 Produce leading 1 1 0 − 4 − 6⎥ ⎢ ⎥
⎢ ⎥
(1)
r1 2 ⎡1 4 − 3 2 6 14⎤ r13( −2 ) ⎡1 4 − 3 2 6 14⎤ ⎢⎣0 0 0 0 1 2⎥⎦
⎢0 0 − 2 0 ⎣⎢0 0 0 0 1 2⎦⎥
⎢0 0 − 2 0 8 12⎥ 8 12⎥ leading 1
⎢ ⎥ ⎢ ⎥ (row - echelon form) (row - echelon form)
⎣⎢2 4 − 5 6 − 5 4⎦⎥ ⎣⎢ 0 0 5 0 − 17 − 24⎦⎥
Zeros elements below leading 1 The first nonzero Submatrix
column
r32( 4 ) ⎡⎢ 1 4 − 3 2 0 2⎤⎥ r21( 3) ⎡ 1 4 0 2 0 8⎤
0 0 1 0 0 2 ⎢0 0 1 0 0 2 ⎥
⎢ ⎥ ⎢ ⎥
⎢⎣0 0 0 0 1 2⎥⎦
⎣⎢0 0 0 0 1 2⎦⎥
(row - echelon form) (reduced row - echelon form)
Ex 7: Solve a system by Gauss-Jordan elimination method Ex 8 Solve a system by Gauss-Jordan elimination method
(only one solution) (infinitely many solutions)
x − 2 y + 3z = 9 2 x1 + 4 x1 − 2 x3 = 0
− x + 3y = −4 3x1 + 5 x2 = 1
2 x − 5 y + 5z = 17
Sol: Sol: augmented matrix
( 12 ) ( −3) ( −1) ( −2 )
augmented matrix ⎡2 4 − 2 0⎤ r1 , r12 , r2 , r21 ⎡ 1 0 5 2⎤ (reduced row -
⎡ 1 − 2 3 9⎤ r12(1) , r13( −2 ) ⎡ 1 − 2 3 9⎤ r23(1) ⎡ 1 − 2 3 9⎤
⎢0
⎢⎣ 3 5 0 1⎥⎦ ⎢⎣0 1 − 3 − 1⎥⎦ echelon form)
⎢ − 1 3 0 − 4⎥ ⎢0 1 3 5⎥⎥ ⎢ 1 3 5⎥⎥
⎢
⎣⎢ 2 − 5 5 17⎦⎥ ⎢⎣0 − 1 − 1 − 1⎥⎦ ⎢⎣0 0 2 4⎥⎦ the corresponding system of equations is
1
x1 + 5 x3 = 2
( )
r 2 ( 2) ( −3) ( −9 )
⎡ 1 − 2 3 9⎤ r21 , r32 , r31 ⎡ 1 0 0 1⎤ x = 1 x2 − 3 x3 = − 1
3
⎢0 1 3 5⎥ ⎢0 1 0 − 1⎥ y = −1 leading variable:x1 , x2
⎢⎣0 0 1 2⎥⎦ ⎢⎣0 0 1 2⎥⎦ z = 2
(row - echelon form) (reduced row - echelon form) free variable: x3
8
x1 = 2 − 5 x3 Homogeneous systems of linear equations:
x 2 = − 1 + 3 x3 A system of linear equations is said to be homogeneous
Let x3 = t if all the constant terms are zero.
x1 = 2 − 5t , a11 x1 + a12 x2 + a13 x3 + ! + a1n xn = 0
x2 = −1 + 3t , t∈R a21 x1 + a22 x2 + a23 x3 + ! + a2 n xn = 0
x3 = t , a31 x1 + a32 x2 + a33 x3 + ! + a3n xn = 0
"
So this system has infinitely many solutions. am1 x1 + am 2 x2 + am 3 x3 + ! + amn xn = 0