1.2 Gaussian Elimination
1.2 Gaussian Elimination
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Dr K
Department of Mathematics and Applied Mathemathematics
University of Johannesburg
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
1 Echelon forms
2 Gaussian Elimination
3 Gauss-Jordan Elimination
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Goals
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
1 0 11 35
2 2
0 1 − 7 − 17
2 2
0 0 1 3
Example
1 2 1 0 1 3 −2 0 1 −2
0 1 −1 4 0 0 1 0 0 1
0 0 1 −1 0 0 0 0 0 0
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
1 0 11 35
2 2
0 1 − 7 − 17
2 2
0 0 1 3
Example
1 2 1 0 1 3 −2 0 1 −2
0 1 −1 4 0 0 1 0 0 1
0 0 1 −1 0 0 0 0 0 0
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
1 0 11 35
2 2
0 1 − 7 − 17
2 2
0 0 1 3
Example
1 2 1 0 1 3 −2 0 1 −2
0 1 −1 4 0 0 1 0 0 1
0 0 1 −1 0 0 0 0 0 0
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
1 0 11 35
2 2
0 1 − 7 − 17
2 2
0 0 1 3
Example
1 2 1 0 1 3 −2 0 1 −2
0 1 −1 4 0 0 1 0 0 1
0 0 1 −1 0 0 0 0 0 0
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Unique Solution
Example
Suppose that the augmented matrix for a linear system in the
unknowns x1 , x2 , x3 , and x4 has been reduced by elementary
row operations to 1 0 0 0 3
0 1 0 0 −1
0 0 1 0 0
0 0 0 1 5
This matrix is in reduced row echelon form and corresponds to
the equations
x1 = 3
x2 = −1
x3 = 0
x4 = 5
Thus, the system has a unique solution, namely, x1 = 3,
x2 = −1, x3 = 0, x4 = 5.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Solution:
The equation that corresponds to the last row of the augmented
matrix is 0x + 0y + 0z = 1.
Since this equation is not satisfied by any values of x, y , and z,
the system is inconsistent.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Solution:
The equation that corresponds to the last row of the augmented
matrix is 0x + 0y + 0z = 1.
Since this equation is not satisfied by any values of x, y , and z,
the system is inconsistent.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
Suppose that the augmented matrix for a linear system in the
unknowns x, y , and z has been reduced by elementary row
operations to the given reduced row echelon form.
1 0 3 −1
0 1 −4 2
0 0 0 0
Solution:
The equation that corresponds to the last row of the augmented
matrix is 0x + 0y + 0z = 0.
This equation can be omitted since it imposes no restrictions on
x, y , and z.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
Suppose that the augmented matrix for a linear system in the
unknowns x, y , and z has been reduced by elementary row
operations to the given reduced row echelon form.
1 0 3 −1
0 1 −4 2
0 0 0 0
Solution:
The equation that corresponds to the last row of the augmented
matrix is 0x + 0y + 0z = 0.
This equation can be omitted since it imposes no restrictions on
x, y , and z.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
Suppose that the augmented matrix for a linear system in the
unknowns x, y , and z has been reduced by elementary row
operations to the given reduced row echelon form.
1 0 3 −1
0 1 −4 2
0 0 0 0
Solution:
The equation that corresponds to the last row of the augmented
matrix is 0x + 0y + 0z = 0.
This equation can be omitted since it imposes no restrictions on
x, y , and z.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
x = −1, y = 2, z=0
x = −4, y = 6, z=1
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
x = −1, y = 2, z=0
x = −4, y = 6, z=1
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
Suppose that the augmented matrix for a linear system in the
unknowns x, y , and z has been reduced by elementary row
operations to the given reduced row echelon form.
1 −5 1 4
0 0 0 0
0 0 0 0
Solution:
As explained in previous example, we can omit the equations
corresponding to the zero rows, in which case the linear system
associated with the augmented matrix consists of the single
equation
x − 5y + z = 4 . . . (1)
from which we see that the solution set is a plane in
three-dimensional space.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
Suppose that the augmented matrix for a linear system in the
unknowns x, y , and z has been reduced by elementary row
operations to the given reduced row echelon form.
1 −5 1 4
0 0 0 0
0 0 0 0
Solution:
As explained in previous example, we can omit the equations
corresponding to the zero rows, in which case the linear system
associated with the augmented matrix consists of the single
equation
x − 5y + z = 4 . . . (1)
from which we see that the solution set is a plane in
three-dimensional space.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Although (1) is a valid form of the solution set, there are many
applications in which it is preferable to express the solution set
in parametric form. We can convert (1) to parametric form by
solving for the leading variable x in terms of the free variables y
and z to obtain
x = 4 + 5y − z
From this equation we see that the free variables can be
assigned arbitrary values, say y = s and z = t, which then
determine the value of x. Thus, the solution set can be
expressed parametrically as
x = 4 + 5s − t, y = s, z=t
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Although (1) is a valid form of the solution set, there are many
applications in which it is preferable to express the solution set
in parametric form. We can convert (1) to parametric form by
solving for the leading variable x in terms of the free variables y
and z to obtain
x = 4 + 5y − z
From this equation we see that the free variables can be
assigned arbitrary values, say y = s and z = t, which then
determine the value of x. Thus, the solution set can be
expressed parametrically as
x = 4 + 5s − t, y = s, z=t
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Gaussian Elimination
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
x −y +z =0
3x + y + 2z = 2
−2x + y − z = 1
1 −1 1 0 1 −1 1 0
R2 −3R1
3 1 2 2 −→ 0 4 −1 2
−2 1 −1 1 −2 1 −1 1
1 −1 1 0 1 −1 1 0
R3 +2R1 R2 ↔R3
−→ 0 4 −1 2 −→ 0 −1 1 1
0 −1 1 1 0 4 −1 2
1 −1 1 0 1
−R2 ; 3 R3
1 −1 1 0
R3 +4R2
−→ 0 −1 1 1 −→ 0 1 −1 −1
0 0 3 6 0 0 1 2
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
x −y +z =0
3x + y + 2z = 2
−2x + y − z = 1
1 −1 1 0 1 −1 1 0
R2 −3R1
3 1 2 2 −→ 0 4 −1 2
−2 1 −1 1 −2 1 −1 1
1 −1 1 0 1 −1 1 0
R3 +2R1 R2 ↔R3
−→ 0 4 −1 2 −→ 0 −1 1 1
0 −1 1 1 0 4 −1 2
1 −1 1 0 1
−R2 ; 3 R3
1 −1 1 0
R3 +4R2
−→ 0 −1 1 1 −→ 0 1 −1 −1
0 0 3 6 0 0 1 2
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
x −y +z =0
3x + y + 2z = 2
−2x + y − z = 1
1 −1 1 0 1 −1 1 0
R2 −3R1
3 1 2 2 −→ 0 4 −1 2
−2 1 −1 1 −2 1 −1 1
1 −1 1 0 1 −1 1 0
R3 +2R1 R2 ↔R3
−→ 0 4 −1 2 −→ 0 −1 1 1
0 −1 1 1 0 4 −1 2
1 −1 1 0 1
−R2 ; 3 R3
1 −1 1 0
R3 +4R2
−→ 0 −1 1 1 −→ 0 1 −1 −1
0 0 3 6 0 0 1 2
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
x −y +z =0
3x + y + 2z = 2
−2x + y − z = 1
1 −1 1 0 1 −1 1 0
R2 −3R1
3 1 2 2 −→ 0 4 −1 2
−2 1 −1 1 −2 1 −1 1
1 −1 1 0 1 −1 1 0
R3 +2R1 R2 ↔R3
−→ 0 4 −1 2 −→ 0 −1 1 1
0 −1 1 1 0 4 −1 2
1 −1 1 0 1
−R2 ; 3 R3
1 −1 1 0
R3 +4R2
−→ 0 −1 1 1 −→ 0 1 −1 −1
0 0 3 6 0 0 1 2
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
x −y +z =0
3x + y + 2z = 2
−2x + y − z = 1
1 −1 1 0 1 −1 1 0
R2 −3R1
3 1 2 2 −→ 0 4 −1 2
−2 1 −1 1 −2 1 −1 1
1 −1 1 0 1 −1 1 0
R3 +2R1 R2 ↔R3
−→ 0 4 −1 2 −→ 0 −1 1 1
0 −1 1 1 0 4 −1 2
1 −1 1 0 1
−R2 ; 3 R3
1 −1 1 0
R3 +4R2
−→ 0 −1 1 1 −→ 0 1 −1 −1
0 0 3 6 0 0 1 2
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
x −y +z =0
3x + y + 2z = 2
−2x + y − z = 1
1 −1 1 0 1 −1 1 0
R2 −3R1
3 1 2 2 −→ 0 4 −1 2
−2 1 −1 1 −2 1 −1 1
1 −1 1 0 1 −1 1 0
R3 +2R1 R2 ↔R3
−→ 0 4 −1 2 −→ 0 −1 1 1
0 −1 1 1 0 4 −1 2
1 −1 1 0 1
−R2 ; 3 R3
1 −1 1 0
R3 +4R2
−→ 0 −1 1 1 −→ 0 1 −1 −1
0 0 3 6 0 0 1 2
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example continued
1 −1 1 0 x − y + z = 0
0 1 −1 −1 =⇒ y − z = −1
0 0 1 2 z = 2
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
x + 2y − z = 5
−x − y + z = −2
2x + y − 2z = 1
1 2 −1 5 1 2 −1 5
R2 +R1
−1 −1 1 −2 −→ 0 1 0 3
2 1 −2 1 2 1 −2 1
1 2 −1 5 1 2 −1 5
R3 −2R1 R3 +3R2
−→ 0 1 0 3 −→ 0 1 0 3
0 −3 0 −9 0 0 0 0
x + 2y − z = 5
y = 3
Hence, from back substitution:
z = t, y = 3, x = −2y + z + 5 = t − 1.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
x + 2y − z = 5
−x − y + z = −2
2x + y − 2z = 1
1 2 −1 5 1 2 −1 5
R2 +R1
−1 −1 1 −2 −→ 0 1 0 3
2 1 −2 1 2 1 −2 1
1 2 −1 5 1 2 −1 5
R3 −2R1 R3 +3R2
−→ 0 1 0 3 −→ 0 1 0 3
0 −3 0 −9 0 0 0 0
x + 2y − z = 5
y = 3
Hence, from back substitution:
z = t, y = 3, x = −2y + z + 5 = t − 1.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
x + 2y − z = 5
−x − y + z = −2
2x + y − 2z = 1
1 2 −1 5 1 2 −1 5
R2 +R1
−1 −1 1 −2 −→ 0 1 0 3
2 1 −2 1 2 1 −2 1
1 2 −1 5 1 2 −1 5
R3 −2R1 R3 +3R2
−→ 0 1 0 3 −→ 0 1 0 3
0 −3 0 −9 0 0 0 0
x + 2y − z = 5
y = 3
Hence, from back substitution:
z = t, y = 3, x = −2y + z + 5 = t − 1.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
x + 2y − z = 5
−x − y + z = −2
2x + y − 2z = 1
1 2 −1 5 1 2 −1 5
R2 +R1
−1 −1 1 −2 −→ 0 1 0 3
2 1 −2 1 2 1 −2 1
1 2 −1 5 1 2 −1 5
R3 −2R1 R3 +3R2
−→ 0 1 0 3 −→ 0 1 0 3
0 −3 0 −9 0 0 0 0
x + 2y − z = 5
y = 3
Hence, from back substitution:
z = t, y = 3, x = −2y + z + 5 = t − 1.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
x + 2y − z = 5
−x − y + z = −2
2x + y − 2z = 1
1 2 −1 5 1 2 −1 5
R2 +R1
−1 −1 1 −2 −→ 0 1 0 3
2 1 −2 1 2 1 −2 1
1 2 −1 5 1 2 −1 5
R3 −2R1 R3 +3R2
−→ 0 1 0 3 −→ 0 1 0 3
0 −3 0 −9 0 0 0 0
x + 2y − z = 5
y = 3
Hence, from back substitution:
z = t, y = 3, x = −2y + z + 5 = t − 1.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
x + 2y − z = 5
−x − y + z = −2
2x + y − 2z = 1
1 2 −1 5 1 2 −1 5
R2 +R1
−1 −1 1 −2 −→ 0 1 0 3
2 1 −2 1 2 1 −2 1
1 2 −1 5 1 2 −1 5
R3 −2R1 R3 +3R2
−→ 0 1 0 3 −→ 0 1 0 3
0 −3 0 −9 0 0 0 0
x + 2y − z = 5
y = 3
Hence, from back substitution:
z = t, y = 3, x = −2y + z + 5 = t − 1.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
2y − z = −4
2x − y + 2z = 7
−x + 3y + z = −2
0 2 −1 −4 −1 3 1 −2
R1 ↔R3
2 −1 2 7 −→ 2 −1 2 7
−1 3 1 −2 0 2 −1 −4
−1 3 1 −2 R3 − 52 R2
−1 3 1 −2
R2 +2R1
−→ 0 5 4 3 −→ 0 5 4 3
0 2 −1 −4 0 0 − 5 − 26
13
5
−R1 ; 51 R2 ;− 13
5
R3
1 −3 −1 2
4 3
−→ 0 1
5 5
0 0 1 2
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
2y − z = −4
2x − y + 2z = 7
−x + 3y + z = −2
0 2 −1 −4 −1 3 1 −2
R1 ↔R3
2 −1 2 7 −→ 2 −1 2 7
−1 3 1 −2 0 2 −1 −4
−1 3 1 −2 R3 − 52 R2
−1 3 1 −2
R2 +2R1
−→ 0 5 4 3 −→ 0 5 4 3
0 2 −1 −4 0 0 − 5 − 26
13
5
−R1 ; 51 R2 ;− 13
5
R3
1 −3 −1 2
4 3
−→ 0 1
5 5
0 0 1 2
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
2y − z = −4
2x − y + 2z = 7
−x + 3y + z = −2
0 2 −1 −4 −1 3 1 −2
R1 ↔R3
2 −1 2 7 −→ 2 −1 2 7
−1 3 1 −2 0 2 −1 −4
−1 3 1 −2 R3 − 25 R2
−1 3 1 −2
R2 +2R1
−→ 0 5 4 3 −→ 0 5 4 3
0 2 −1 −4 0 0 − 5 − 26
13
5
−R1 ; 51 R2 ;− 13
5
R3
1 −3 −1 2
4 3
−→ 0 1
5 5
0 0 1 2
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
2y − z = −4
2x − y + 2z = 7
−x + 3y + z = −2
0 2 −1 −4 −1 3 1 −2
R1 ↔R3
2 −1 2 7 −→ 2 −1 2 7
−1 3 1 −2 0 2 −1 −4
−1 3 1 −2 R3 − 25 R2
−1 3 1 −2
R2 +2R1
−→ 0 5 4 3 −→ 0 5 4 3
0 2 −1 −4 0 0 − 5 − 26
13
5
−R1 ; 51 R2 ;− 13
5
R3
1 −3 −1 2
4 3
−→ 0 1
5 5
0 0 1 2
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
2y − z = −4
2x − y + 2z = 7
−x + 3y + z = −2
0 2 −1 −4 −1 3 1 −2
R1 ↔R3
2 −1 2 7 −→ 2 −1 2 7
−1 3 1 −2 0 2 −1 −4
−1 3 1 −2 R3 − 25 R2
−1 3 1 −2
R2 +2R1
−→ 0 5 4 3 −→ 0 5 4 3
0 2 −1 −4 0 0 − 5 − 26
13
5
−R1 ; 51 R2 ;− 13
5
R3
1 −3 −1 2
4 3
−→ 0 1
5 5
0 0 1 2
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example continued
1 −3 −1 2 x − 3y − z = 2
4 3 4
0 1
5 5
=⇒ y + 5z = 35
0 0 1 2 z = 2
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example continued
1 −3 −1 2 x − 3y − z = 2
4 3 4
0 1
5 5
=⇒ y + 5z = 35
0 0 1 2 z = 2
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Gauss-Jordan Elimination
The process:
1 Write down the augmented matrix of the system of linear
equations.
2 Perform Gaussian elimination to reduce the augmented
matrix to row echelon form.
3 Locate the right-most leading one - reduce the entries
above it to zeros by adding a multiple of this row to the
ones above it.
4 Continue this process with each leading one, moving from
the bottom of the matrix to the top.
5 Solve the resulting system easily by inspection.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Row reduction
Tips when doing row reduction
1 If there are rows consisting of zeros only: swap rows to
place them at the bottom of the matrix
2 Locate the leftmost column that is not all zeros.
3 Swap rows if necessary so that the top of this column is
non-zero. This is the first leading entry (a 1 as a leading
entry is usually most useful)
4 Use the leading entry to create zeros below it (by adding
multiples of this row to those underneath it)
5 Cover up the row containing the leading entry, and repeat
the procedure.
6 Divide each row by an appropriate constant so that leading
1s remain.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
Solve the system by Gauss-Jordan elimination:
x −y +z =0
3x + y + 2z = 2
−2x + y − z = 1
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
Solve the system by Gauss-Jordan elimination:
x −y +z =0
3x + y + 2z = 2
−2x + y − z = 1
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
Solve the system by Gauss-Jordan elimination:
x −y +z =0
3x + y + 2z = 2
−2x + y − z = 1
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example continued
1 −1 0 −2 1 0 0 −1
R1 −R3 R1 +R2
−→ 0 1 0 1 −→ 0 1 0 1
0 0 1 2 0 0 1 2
Hence x = −1, y = 1, z = 2.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
Solve the system by Gauss-Jordan elimination:
x + 2y − z = 5
−x − y + z = −2
2x + y − 2z = 1
1 2 −1 5 R1 −2R2 1 0 −1 −1
? ?
−→ 0 1 0 3 −→ 0 1 0 3
0 −3 0 −9 0 0 0 0
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
Solve the system by Gauss-Jordan elimination:
x + 2y − z = 5
−x − y + z = −2
2x + y − 2z = 1
1 2 −1 5 R1 −2R2 1 0 −1 −1
? ?
−→ 0 1 0 3 −→ 0 1 0 3
0 −3 0 −9 0 0 0 0
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
Solve the system by Gauss-Jordan elimination:
x + 2y − z = 5
−x − y + z = −2
2x + y − 2z = 1
1 2 −1 5 R1 −2R2 1 0 −1 −1
? ?
−→ 0 1 0 3 −→ 0 1 0 3
0 −3 0 −9 0 0 0 0
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
Solve the system by Gauss-Jordan elimination:
x + 2y − z = 5
−x − y + z = −2
2x + y − 2z = 1
1 2 −1 5 R1 −2R2 1 0 −1 −1
? ?
−→ 0 1 0 3 −→ 0 1 0 3
0 −3 0 −9 0 0 0 0
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example continued
1 0 −1 −1
0 1 0 x − z = −1
3 =⇒
y = 3
0 0 0 0
Hence, z = t, y = 3, x = z − 1 = t − 1.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
Solve the corresponding linear system in the variables x, y , z with the
following augmented forms; find the reduced row echelon forms.
1 0 0 −1
(a) 0 1 0 4 (a) (x, y , z) = (−1, 4, 2)
0 0 1 2
1 2 1 6
(b) 0 1 −1 1 (b) (x, y , z) = (1, 2, 1)
0 0 1 1
1 1 1 0
(c) 0 1 −1 2 (c) (x, y , z) = (−2, 2, 0) + t(−2, 1, 1)
0 0 0 0
1 3 2 0
(d) 0 1 1 4 (d) No solutions
0 0 0 1
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Observe:
A homogeneous system of linear equations always has the
trivial solution.
Example
x + 2y − z = 0
−x − y + z = 0
1 2 −1 0 R2 +R1 1 2 −1 0
−→
−1 −1 1 0 0 1 0 0
x + 2y − z = 0
y = 0
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
Example
Solve the following linear system.
x1 − x2 + 2x3 − x4 = 0
−x1 − x2 − x3 + 2x4 = 0
−x1 − 3x2 + 3x4 = 0
(x1 , x2 , x3 , x4 ) = s − 32 , 12 , 1, 0 + t 3 1
, , 0, 1
2 2
Note that:
A homogeneous linear system remains homogeneous when
performing elementary row operations.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Example
Determine which of the following homogeneous systems have
nontrivial solutions, by inspection:
1
2 Nontrivial solutions.
3x1 − 2x2 = 0
6x1 − 4x2 = 0
Nontrivial solutions.
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Remarks:
1 The reduced row echelon form of a matrix is unique.
2 The row echelon form of a matrix is not unique.
3 In row echelon form:
1 there are always the same number of zero rows
2 the leading 1’s occur in the same positions (pivot position,
or pivot column).
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Extra Exercises
Example
(a) If A is a 4 × 6 matrix, what is the maximum possible number of leading
1’s in its reduced row echelon form?
(b) If B is a 4 × 7 matrix whose last column has all zeros, what is the
maximum possible number of parameters in the general solution of the
linear system with augmented matrix B?
(c) If C is a 6 × 3 matrix, what is the minimum possible number of rows of
zeros in any row echelon form of C?
(d) Find values of a, b and c such that the graph of the polynomial
p(x) = ax 2 + bx + c passes through the points (1, 2), (−1, 6) and (2, 3).
(e) The following is not an elementary row operation:
2R3 − 4R1
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Can you?
Dr K Gaussian Elimination
Echelon forms
Gaussian Elimination
Gauss-Jordan Elimination
Homogeneous Linear Systems
Dr K Gaussian Elimination