MTH301_Chapter_2___2_1__2_2_
MTH301_Chapter_2___2_1__2_2_
Z. ABBAS
LAU
3 Gauss-Jordan Reduction
Example:
In the matrix
1 0
2 0
0 2
the leading entries of 1st row, 2nd row and 3rd row are respectively:
1, 2 and 2.
Definition
a matrix A = (ai,j ) is said to be in row echelon form if A=0 or A ̸= 0 and
• All zero rows are placed at the bottom of A.
• Each leading entry of a row is to the right of the leading entry of the
preceding row.
• Each leading entry is one.
Definition
The Elementary Row Operation that we can apply on a matrix are:
1 Type I: interchange two rows: Rt ↔ Rs .
2 Type II: multiply a row with a nonzero constant αRt → Rt .
3 Type III: add a multiple of a row to another row Rt + αRs → Rt .
Theorem
Every (m × n) matrix is row-equivalent to a matrix in row echelon
form.
Remarks:
Row echelon forms are not unique.
By analogy we can define column elementary operations and column
echelon forms; indeed a matrix is said to be in column e.f iff its
transpose is in r.e.f.
In the next slide we show that following few steps you’ll obtain a r.e.f of
any matrix A, an example is also given in the next slides with the same
steps followed. As mentioned in the remark, we might use different order
and different operations as you will see in other examples.
1
Ref:pg90, Elementary Linear algebra with applications- Bernard Kolman, David Hill
Z. ABBAS (LAU) Solving linear Systems January 30, 2024 11 / 41
2
2
Ref: pg90, Elementary Linear algebra with applications- Bernard Kolman, David Hill
Z. ABBAS (LAU) Solving linear Systems January 30, 2024 12 / 41
3
3
Ref: pg91, Elementary Linear algebra with applications- Bernard Kolman, David Hill
Z. ABBAS (LAU) Solving linear Systems January 30, 2024 13 / 41
4
4
Ref: pg91, Elementary Linear algebra with applications- Bernard Kolman, David Hill
Z. ABBAS (LAU) Solving linear Systems January 30, 2024 14 / 41
5
5
Ref: pg92, Elementary Linear algebra with applications- Bernard Kolman, David Hill
Z. ABBAS (LAU) Solving linear Systems January 30, 2024 15 / 41
Rank of a matrix
Definition
Rank The rank of a matrix is the number of non zero rows in a row
echelon form of this matrix.
Example
Find the rank of the following Matrix
1 −2 3 9
A = −1 3 0 −4
2 −5 5 17
1 −2 3 9
A1 = 0 1 3 5 R3 − 2R1 −→ R3 =⇒
2 −5 5 17
1 −2 3 9 1 −2 3 9
A1 = 0 1 3 5 R3 − 2R1 −→ R3 =⇒ A2 = 0 1 3 5
2 −5 5 17 0 −1 −1 −1
1 −2 3 9
A3 = 0 1 3 5
0 0 2 4
1 −2 3 9 1 −2 3 9
1
A3 = 0 1 3 5 R2 −→ R2 =⇒ A4 = 0 1 3 5
2
0 0 2 4 0 0 1 2
The rank of the matrix is 3. Remark that in example 5 of the book the ran
was 3 as well.
Remarks:Rank(A)=Rank(AT )≤ min{m, n}.
3 Gauss-Jordan Reduction
Solution:
..
1. 1 1
A= ..
1 −1 . 3
..
−1 2 . −2
Solution:
..
1. 1 1
A= ..
R2 − R1 −→ R2
1 −1 . 3
..
−1 2 . −2
Solution:
..
1. 1 1
1 1 1
..
1 −1 . 3 R2 − R1 −→ R2 =⇒ 0 −2 2
A=
. −1 2 −2
−1 2 .. −2
1 1 1
0 −2 2 R3 + R1 −→ R3
−1 2 −2
Solution:
..
1. 1 1
1 1 1
..
1 −1 . 3 R2 − R1 −→ R2 =⇒ 0 −2 2
A=
. −1 2 −2
−1 2 .. −2
1 1 1 1 1 1
0 −2 2 R3 + R1 −→ R3 =⇒ 0 −2 2
−1 2 −2 0 3 −1
1 1 1
0 1 −1
0 3 −1
1 1 1
0 1 −1 R3 − 3R2 −→ R3
0 3 −1
1 1 1 1 1 1
0 1 −1 R3 − 3R2 −→ R3 =⇒ 0 1 −1
0 3 −1 0 0 2
1 1 1 1 1 1
0 1 −1 R3 − 3R2 −→ R3 =⇒ 0 1 −1
0 3 −1 0 0 2
1 1 1
0 1 −1
0 0 2
1 1 1 1 1 1
0 1 −1 R3 − 3R2 −→ R3 =⇒ 0 1 −1
0 3 −1 0 0 2
1 1 1
0 1 −1 R3 × 1 −→ R3 =⇒
2
0 0 2
1 1 1 1 1 1
0 1 −1 R3 − 3R2 −→ R3 =⇒ 0 1 −1
0 3 −1 0 0 2
1 1 1 1 1 1
0 1 −1 R3 × 1 −→ R3 =⇒ 0 1 −1
2
0 0 2 0 0 1
2 −1 3 5
1 2 1 1
0 1 15 0
3 =⇒
0 0 1 2
0 0 0 0
1 2 1 1 x1 +2x2 +x3 = 1,
1 15 + 51 x3
0 0
x2 = 0,
3 =⇒
0 0 1 2
x3 = 23 ,
0 0 0 0 0 = 0.
1 2 1 1 x1 +2x2 +x3 = 1,
1 15 + 51 x3
0 0
x2 = 0,
3 =⇒
0 0 1 2
x3 = 23 ,
0 0 0 0 0 = 0.
3 1 2 3
3 1 2 3
3 Gauss-Jordan Reduction
Remark:
It is not possible for an under-determined system to have a unique
solution.
1 2 1 1 x +2x2 +x3 = 1,
=⇒ 1
0 0 0 1 0 = 1. X alertFalse Statement
1 2 1 1 x +2x2 +x3 = 1,
=⇒ 1
0 0 0 1 0 = 1. X alertFalse Statement
Solution:
Solution:
1 1 1 1 1 2
1 1 1 2 2 3
1 1 1 2 3 2
Solution:
1 1 1 1 1 2
1 1 1 2 2 3REF
1 1 1 2 3 2
Solution:
1 1 1 1 1 2 1 1 1 1 1 2
1 1 1 2 2 3REF =⇒ 0 0 0 1 1 1
1 1 1 2 3 2 0 0 0 0 1 −1
Solution:
1 1 1 1 1 2 1 1 1 1 1 2
1 1 1 2 2 3REF =⇒ 0 0 0 1 1 1
1 1 1 2 3 2 0 0 0 0 1 −1
1 1 1 1 1 2
0 0 0 1 1 1
0 0 0 0 1 −1
Solution:
1 1 1 1 1 2 1 1 1 1 1 2
1 1 1 2 2 3REF =⇒ 0 0 0 1 1 1
1 1 1 2 3 2 0 0 0 0 1 −1
1 1 1 1 1 2
0 0 0 1 1 1 =⇒
0 0 0 0 1 −1
Solution:
1 1 1 1 1 2 1 1 1 1 1 2
1 1 1 2 2 3REF =⇒ 0 0 0 1 1 1
1 1 1 2 3 2 0 0 0 0 1 −1
1 1 1 1 1 2 x1 +x2 +x3 +x4 +x5 = 2,
0 0 0 1 1 1 =⇒ x4 +x5 = 1,
0 0 0 0 1 −1 x5 = −1.
1 −2 3 9 1 −2 3 9
REF
A = −1 3 0 −4 −−−−−−−−−→ A4 = 0 1 3 5
2 −5 5 17 0 0 1 2
1 −2 3 9 1 −2 3 9
REF
A = −1 3 0 −4 −−−−−−−−−→ A4 = 0 1 3 5
2 −5 5 17 0 0 1 2
So the following systems have the same solution0:
x1 −2x2 +3x3 = 9, x1 −2x2 +3x3 = 9,
(S1 ) −x1 +3x2 = −4, (S4 ) x2 +3x3 5,
2x1 −5x2 +5x3 = 17. x3 = 2.
Definition
A system AX=b is said to be homogeneous if b=0.
Example
1 0 0 3
a) A = 0 1 0 2
0 0 1 1
Example
1 0 0 3
a) A = 0 1 0 2 is in RREF.
0 0 1 1
Example
1 0 0 3
a) A = 0 1 0 2 is in RREF.
0 0 1 1
1 3 1 3
b) B = 0 1 0 2
0 0 1 1
Example
1 0 0 3
a) A = 0 1 0 2 is in RREF.
0 0 1 1
1 3 1 3
b) B = 0 1 0 2 is not in RREF ,
0 0 1 1
Example
1 0 0 3
a) A = 0 1 0 2 is in RREF.
0 0 1 1
1 3 1 3
b) B = 0 1 0 2 is not in RREF , but it is in REF.
0 0 1 1
Strategy
To solve a system of Linear equation using Gauss-Jordan Reduction -
GJR , we apply the following steps:
a) Apply Gaussian Elimination method without back substitution.
b) Apply the Elementary Row Operation in order to eliminate the
nonzero entries above the leading ones of each row in the r.e.f.
Solution:
Solution:
−1 1 −1 3 0
3 1 −1 −1 0
2 −1 −2 −1 0
Solution:
−1 1 −1 3 0
R + 3R1 −→ R2
3 1 −1 −1 0 2
R + 2R1 −→ R3
2 −1 −2 −1 0 3
Solution:
−1 1 −1 3 0
R + 3R1 −→ R2
3 1 −1 −1 0 2 =⇒
R3 + 2R1 −→ R3
2 −1 −2 −1 0
Solution:
−1 1 −1 3 0 −1 1 −1 3 0
R + 3R1 −→ R2
3 1 −1 −1 0 2 =⇒ 0 4 −4 8 0
R3 + 2R1 −→ R3
2 −1 −2 −1 0 0 1 −4 5 0
Solution:
−1 1 −1 3 0 −1 1 −1 3 0
R + 3R1 −→ R2
3 1 −1 −1 0 2 =⇒ 0 4 −4 8 0
R3 + 2R1 −→ R3
2 −1 −2 −1 0 0 1 −4 5 0
−1 1 −1 3 0
1
0 4 −4 8 0 R2 × −→R4
4
0 1 −4 5 0
Solution:
−1 1 −1 3 0 −1 1 −1 3 0
R + 3R1 −→ R2
3 1 −1 −1 0 2 =⇒ 0 4 −4 8 0
R + 2R1 −→ R3
2 −1 −2 −1 0 3 0 1 −4 5 0
−1 1 −1 3 0 −1 1 −1 3 0
1
0 4 −4 8 0 R2 × −→R4 =⇒ 0 1
−1 2 0
4
0 1 −4 5 0 0 1 −4 5 0
1 0 0 −1 0
0 1 0 1 0
0 0 1 −1 0
1 0 0 −1 0
0 1 0 1 0 =⇒
0 0 1 −1 0
1 0 0 −1 0 x1 −x4 = 0,
0 1 0 1 0 =⇒ x2 +x4 = 0,
0 0 1 −1 0 x3 −x4 = 0.
1 0 0 −1 0 x1 −x4 = 0,
0 1 0 1 0 =⇒ x2 +x4 = 0,
0 0 1 −1 0 x3 −x4 = 0.
1 0 0 −1 0 x1 −x4 = 0,
0 1 0 1 0 =⇒ x2 +x4 = 0,
0 0 1 −1 0 x3 −x4 = 0.