Professional Documents
Culture Documents
2solve Complete
2solve Complete
Definition
An m × n matrix is said to be in reduced row echelon form if
1. All zero rows, if there are any, appear at the bottom of the matrix.
2. The first nonzero entry from the left of a nonzero row is a 1. This entry
is called the leading one of its row.
3. For each nonzero row, the leading one appears to the right and below
any leading ones in preceding rows.
4. If a column contains a leading one, the all other entries in that column
are zero.
Remark: An m × n matrix satisfying properties 1, 2 and 3 is said to be in
row echelon form. A similar definition can be formulated in the obvious
manner for reduced column echelon form and column echelon form.
Example
Determine whether the following matrices are in reduced row echelon form.
1 0 0 0 −2 4
1 0 0 0 0 1 0 0
0 1 0 0 4 8
A= , B= 0 0 0 1
7 −2 ,
0 0 1 0 0 0 0 0 0 0
0 0 0 1
0 0 0 0 0 0
and
1 2 0 0 1
C = 0 0 1 2 3 .
0 0 0 0 0
Solution
These matrices are all in reduced row echelon form.
Sem 2 2018/2019 (UNIMAS) Chap 2 4 / 44
Echelon Form of a Matrix Solving Linear Systems Finding Inverse of a Matrix
Example
Determine whether the following matrices are in reduced row echelon form.
1 2 0 4 1 0 3 4
D= 0 0 0 0 , E = 0 2 −2 5 ,
0 0 1 −3 0 0 1 2
1 0 3 4 1 2 3 4
0 1 −2 5 , G = 0 1 −2 5 .
F = 0 1 2 2 0 0 1 2
0 0 0 0 0 0 0 0
Example
Determine whether the following matrices are in row echelon form.
1 5 0 2 −2 4
0 1 0 3 1 0 0 0
4 8 0
1 0 0
H = 0 0 0 1 7 −2 , I = 0
,
0 0 0 0 0 1 0
0 0
0 0 0 1
0 0 0 0 0 0
0 0 1 3 5 7 9
0 0 0 0
1 −2 3
J = 0 0 0 0 0 1 2 .
0 0 0 0 0 0 1
0 0 0 0 0 0 0
Solution:
All these matrices are in row echelon form.
Sem 2 2018/2019 (UNIMAS) Chap 2 7 / 44
Echelon Form of a Matrix Solving Linear Systems Finding Inverse of a Matrix
Definition
An elementary row (column) operation on a matrix A is any one of the
following operations:
Type I: Interchange any two rows (columns)
Type II: Multiply a row (column) by a nonzero number.
Type III: Add a multiple of one row (column) to another.
Notation
Interchange rows (columns) i and j.
Ri ↔ Rj (Ci ↔ Cj )
kRi → Ri (kCi → Ci )
kRi + Rj → Rj (kCi + Cj → Cj )
Example
0 0 1 2 3 3 6 −9
R1 ↔R3
2 3 0 −2 − −−−→ 2 3 0 −2 ,
3 3 6 −9 0 0 1 2
0 0 1 2 1
R3 →R3
0 0 1 2
2 3 0 −2 −3−− −−→ 2 3 0 −2 ,
3 3 6 −9 1 1 2 −3
0 0 1 2 0 0 1 2
−2R +R3 →R3
2 3 0 −2 −−−−2−−− −−→ 2 3 0 −2 .
3 3 6 −9 −1 −3 6 −5
Definition
An m × n matrix B is said to be row (column) equivalent to an m × n
matrix A if B can be produced by applying a finite sequence of elementary
row (column) operations to A.
Example
1 2 4 3 1 2 4 3
2R2 +R3 →R3 R1 ↔R3
2 1 3 2 −
−−−−−−− → 2 1 3 2 −− −−→
1 −2 2 3 5 0 8 7
| {z } | {z }
A B
5 0 8 7 5 0 8 7
2R3 →R3
2 1 3 2 −−−−−→ 2
1 3 2
1 2 4 3 2 4 8 6
| {z } | {z }
C D
Theorem
Every nonzero m × n matrix A = [aij ] is row (column) equivalent to a
matrix in row (column) echelon matrix.
Example
Let
0 0 3 −4 1
0 0 2 3 4
A=
2 2 −5 2 4
2 0 −6 9 7
Example
Reduce the following matrix into row echelon form.
0 2 3 −4 1
0 0 2 3 4
A=
2 2 −5 2 4
2 0 −6 9 7
The matrix
− 52
1 1 1 2
3 1
0
1 2 −2 2
0 3
0 1 2 2
0 0 0 0 0
is in row echelon form and is row equivalent to A.
Sem 2 2018/2019 (UNIMAS) Chap 2 17 / 44
Echelon Form of a Matrix Solving Linear Systems Finding Inverse of a Matrix
Example
Reduce the following matrix into row echelon form.
1 1 −1 −3 −1
2
3 −5 −4 1
A= 1
0 2 −4 −3
−1 −3 7 2 −2
1 2 −4 0 3
Theorem
Every nonzero m × n matrix A = [aij ] is row (column) equivalent to a
unique matrix in reduced row (column) echelon matrix.
Example
Find a matrix in reduced row echelon form that is row equivalent to the
matrix A.
0 2 3 −4 1
0 0 2 3 4
A= 2 2 −5
2 4
2 0 −6 9 7
1 1 − 25
1 2
3
0 1
2 −2 12
0 0 3
1 2 2
0 0 0 0 0
19
1 0 0 9 2
−R2 +R1 →R1 0 1 0 − 17
4 − 25
−−−−−−−−→ 0 3
0 1 2 2
0 0 0 0 0
Solution:
From previous example, we have reduced A into
1 1 −1 −3 −1
0
1 −3 2 3
0 0 0 1 1
0 0 0 0 0
0 0 0 0 0
Thus, we have
1 1−1 −3 −1 1 1 −1 0 2
0
1−3 2 3 3R3 +R1 →R1
0 1 −3 0 1
0 0 0 1 1 −−−−−−−−−→
0 0 0 1 1
0 −2R3 +R2 →R2
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
1 0 2 0 1
0 1 −3 0 1
−R2 +R1 →R1
−−−−−−−−→ 0 0 0 1 1
0 0 0 0 0
0 0 0 0 0
x + 2y + 3z = 9
2x − y + z = 8 .
3x − z = 3
Transforming the matrix to row echelon form, we obtain (left for students
to verify)
1 2 3 9
[C |d] = 0 1 1 2 .
0 0 1 3
z = 3,
y = 2 − z = 2 − 3 = −1,
x = 9 − 2y − 3z = 9 + 2 − 9 = 2.
then we have
x1 = 2 + 4r , x2 = −1 − 3r , x3 = 3 − r , x4 = r .
then the linear system has no solution since the last equation is
Example
Using Gaussian elimination, solve the following linear system
x + 2y + 3z = 6
2x − 3y + 2z = 14 .
3x + y − z = −2
Solution
The augmented matrix is
1 2 3 6
[A|b] = 2 −3 2 14 .
3 1 −1 −2
z = 3, y = 4 − 6 = −2, x = 6 + 4 − 9 = 1.
Example
Using Gaussian eliminitaion, solve the following linear system
x1 − x2 + x3 = 0
−x1 + x2 − x3 = 0
.
10x2 + 25x3 = 90
20x1 + 10x2 = 80
Solution
The augmented matrix is
1 −1 1 0
−1 1 −1 0
[A|b] =
0
.
10 25 90
20 10 0 80
x3 = 2
8 2
x2 = +2 =4
3 3
x1 = 4 − 2 = 2
Example
Using Gauss-Jordan method, solve the following linear system
x + 2y + 3z = 6
2x − 3y + 2z = 14 .
3x + y − z = −2
Solution
We continue from previous example:
1 2 3 6 1 2 0 −3
−2R +R2 →R2 −2R +R1 →R1
0 1 2 4 −−−−3−−− −−→ 0 1 0 −2 −−−−2−−− −−→
−3R3 +R1 →R1
0 0 1 3 0 0 1 3
1 0 0 1
0 1 0 −2
0 0 1 3
x3 = 3,
x2 = −2,
x1 = 1,
Homogeneous Systems
A homogeneous system is in the form of Ax = 0.
Example
Use Gauss-Jordan method to solve the following linear system
x + y + z + w = 0
x + w = 0 .
x + 2y + z = 0
Solution
The augmented matrix is
1 1 1 1 0 1 1 1 1 0
−R1 +R2 →R2
[A|b] = 1 0 0
1 0 −−−−−−−−→ 0
−1 −1 0 0
−R1 +R3 →R3
1 2 1 0 0 0 1 0 −1 0
Homogeneous Systems
1 0 1 1 1 1 1 1 1 0
−R →R2 −R +R3 →R3
−−−2−−→ 0 0 −−−2−−−
1 1 0 −−→ 0 1 1 0 0
0 0 1 0 −1 0 0 −1 −1 0
1 1 1 1 0 1 1 0 0 0
−R →R3 −R +R2 →R2
−−−3−−→ 0 1 1 0 0 −−−3−−− −−→ 0 1 0 −1 0
−R3 +R1 →R1
0 0 1 1 0 0 0 1 1 0
1 0 0 1 0
−R +R1 →R1
−−−2−−− −−→ 0 1 0 −1 0
0 0 1 1 0
So the solution is
x = −r , y = r,
z = −r , w = r , any real number.
Homogeneous Systems
Example
Use Gaussian Elimination to solve the following linear system
2x + 3y + −z = 0
x − y − 2z = 0 .
3x + y + 3z = 0
Solution
The augmented matrix is
2 3 −1 0 1 −1 −2 0
R1 ↔R2
[A|b] = 1 −1 −2
0 −−−−→ 2
3 −1 0
3 1 3 0 3 1 3 0
Homogeneous Systems
Solution
1
1 −1 −2 0
1 −1 −2 0 R2 →R2
3
0 −5−−−−→ 0
−3R +R3 →R3
−−−−1−−− −−→ 0 5 3 1 0
−2R1 +R2 →R2
0 4 9 0 5
0 4 9 0
1 −1 −2 0 5
1 −1 −2 0
3 R3 →R3
3
−4R +R3 →R3 0
−−−−2−−− −−→ 1 0 33
−−−−−−→ 0 1 0
5 5
33
0 0 0 0 0 1 0
5
Hence, the solutions are:
z = 0
3
y+ z = 0, ∴ y = 0
5
x − y − 2z = 0, ∴ x = 0
Sem 2 2018/2019 (UNIMAS) Chap 2 40 / 44
Echelon Form of a Matrix Solving Linear Systems Finding Inverse of a Matrix
Example
Find A−1 if
1 2 −3
A= 1 −2 1 .
5 −2 −3
Example
Find A−1 if
1 1 1
A= 0 2 3 .
5 5 1
Solution
1 1 1 1 0 0
−5R +R3 →R3
[A|In ] = 0 2 3 0 1 0 −−−−1−−− −−→
5 5 1 0 0 1
1 1 1 1 0 0 1
R →R2
2 2
0 2 3 0 1 0 −− −−−−→
− 14 R3 →R3
0 0 −4 −5 0 1
1 1 1 1 0 0 − 32 R3 +R1 →R1
3 1
0 1 2 0 2 0 −−− −−−−−−→
5 −R3 +R1 →R1
0 0 1 4 0 − 14
1 1 0 − 41 0 1
4
−R2 +R1 →R1
0 1 0 − 15 1 3
−−−−−−−−→
8 2 8
5
0 0 1 4 0 − 14
13
1 0 0 8 − 21 − 18
0 1 0 − 15 1 3
8 2 8
5
0 0 1 4 0 − 14
Therefore
13
8 − 12 − 81
A−1 = − 15 1 3
8 2 8
5
4 0 − 14
Sem 2 2018/2019 (UNIMAS) Chap 2 44 / 44