Professional Documents
Culture Documents
Engineering Mathematics
Dr Trevor Langlands
Week 5 Lecture 3
Module 2 – Matrices
ENM1600 1
Introduction
Study Book §2.5.1 pp. 60–66
James §5.5.2, 5.6, pp. 356–385 (4th )
James §5.5.2, 5.6, pp. 357–387 (5th )
This Lecture
• Gaussian Elimination
• Back-substitution
• Rank
ENM1600 2
Gaussian Elimination (continued)
Study Book §2.5.1, pp. 60–63
James §5.5.2,5.6, pp. 356–385 (4th ), pp. 357–387 (5th )
We can solve linear systems in matrix form.
ENM1600 3
Example of Gaussian Elimination with
Back-Substitution
Solve the system
x2 + x3 − 2 x 4 = −3
x1 + 2 x2 − x 3 =2
2 x 1 + 4 x2 + x3 − 3 x 4 = −2
x1 − 4 x2 − 7 x3 − x 4 = −19
The augmented matrix for this system is
0 1 1 −2 −3
1
2 −1 0 2
2 4 1 −3 −2
1 −4 −7 −1 −19
ENM1600 4
Example (cont)
The first two rows are interchanged.
1 2 −1 0 2
0
1 1 −2 −3
2 4 1 −3 −2
1 −4 −7 −1 −19
Adding −2 times the first row to the third row produces a new
third row.
1 2 −1 0 2
0
1 1 −2 −3
0 0 3 −3 −6
1 −4 −7 −1 −19
ENM1600 5
Example (cont)
Adding −1 times the first row to the fourth row produces a
new fourth row.
1 2 −1 0 2
0
1 1 −2 −3
0 0 3 −3 −6
0 −6 −6 −1 −21
ENM1600 6
Example (cont)
Multiplying the third row by 1/3 produces a new third row.
1 2 −1 0 2
0
1 1 −2 −3
0 0 1 −1 −2
0 0 0 −13 −39
ENM1600 7
Row-Echelon form
The matrix is now in row-echelon form, and the corresponding
system of linear equations is
1 2 −1 0 2
0 1 1 −2 −3
0 0 1 −1 −2
0 0 0 1 3
ENM1600 8
Back-Substitution
Using Back-Substitution
x1 + 2 x2 − x3 =2
x2 + x3 − 2 x4 = −3
x3 − x4 = −2
x4 = 3
ENM1600 9
Rank
Study Book §2.6, pp. 63 –66
James §5.6, pp. 377–385 (4th ), pp. 378–387 (5th )
ENM1600 10
Echelon Form
A matrix in echelon form has the following properties:
2. For each row that does not consist entirely of zeros, the
first non-zero entry is 1 (called a leading 1).
ENM1600 11
Solutions of the linear system Ax = b
where A is singular
1. if A and A b have different ranks then the equations are
inconsistent and no solution exists.
2. if A and A b have the same rank, then infinitely many
solutions exist and the general solution contains
n − rank A
free parameters.
ENM1600 12
Example revisited
Find the rank of A and A b where
0 1 1 −2 −3 1 2 −1 0 2
1
2 −1 0 2
0
1 1 −2 −3
2 4 1 −3 −2 0 0 1 −1 −2
1 −4 −7 −1 −19 0 0 0 1 3
After row operations
ENM1600 13
Under- and Overspecified sets of equations
x 1 1 6
1 1 1 y = 6 1 2 x = 14
1 2 3 14 y
z 1 4 36
ENM1600 14
Example
1 1 1 x 3
Find the solution of 1 2 3 y = 6 .
3 2 1 z 6
ENM1600 15
Example (cont)
ENM1600 16
Summary
Study Book §2.5.1 pp. 60–66
James §5.5.2, 5.6, pp. 356–385 (4th )
James §5.5.2, 5.6, pp. 357–387 (5th )
This Lecture
• Gaussian Elimination
• Back-substitution
• Rank
ENM1600 17
Homework
ENM1600 18