Module-2
Module-2
Learning Objectives:
At the end of this unit, you are expected to:
✓ Write an augmented matrix from a system of linear
equations, or translate a matrix into a system of linear
equations.
✓ Solve a system of linear equations using Gauss-Jordan
Elimination Method.
✓ Solve a homogeneous system of linear equations.
✓ Explain the inverse of a matrix.
1|Module 2
2.1 Systems of Linear Equations
We have learned from Module 1 that Systems of Linear Equations (Linear Systems, for short)
are either:
1. independent/consistent (unique solution);
2. inconsistent (no solution); or
3. dependent (many solutions).
Also, in Algebra, we can either solve Linear Systems using the following methods:
1. elimination
2. substitution
3. a combination of elimination and substitution methods
In this module, we will be able to solve linear systems using a new method named the
Gauss-Jordan Elimination Method. But before we do this, let us first learn how to transform the
linear system in matrix form.
Observe that the 3x3 matrix A consists of the numerical coefficients of the linear system
above. The entries in the first row of A coincide with the numerical coefficients (in red fonts
below) of the first linear equation. (Of course, variables with no numerical coefficients indicate a
numerical coefficient value equal to 1.)
1 2 3 𝑥 + 2𝑦 + 3𝑧 = 6
𝑨 = [2 −3 2 ] 2𝑥 − 3𝑦 + 2𝑧 = 14
3 1 −1 3𝑥 + 𝑦 − 𝑧 = −2
2|Module 2
The second row of A consist of the numerical coefficients (in blue fonts) of the second
linear equation and the entries in third row of A are the numerical coefficients of the third linear
equation (in green fonts). Matrix A is called the COEFFICIENT MATRIX. Do you know why?
Indeed! It is called the coefficient matrix since this matrix consists of the numerical coefficients
of the given linear system.
𝑥 𝑥 + 2𝑦 + 3𝑧 = 6
𝒙 = [𝑦 ] 2𝑥 − 3𝑦 + 2𝑧 = 14
𝑧 3𝑥 + 𝑦 − 𝑧 = −2
Yes, x is formed from the variables (or the literal coefficients) used in the given system.
These are the unknowns, right? The first variable (𝑥) is written on the first row, second variable
(𝑦) on the second row of the vector x and the third variable (𝑧) on the third row of x.
Finally, the entries in vector b are the values on the right-hand side of each of the three
equations:
6 𝑥 + 2𝑦 + 3𝑧 = 6
𝒃 = [ 14 ] 2𝑥 − 3𝑦 + 2𝑧 = 14
−2 3𝑥 + 𝑦 − 𝑧 = −2
Unlike matrix A, vectors x and b have no names. But definitely, we know where they came
from right?
To summarize, the system of linear equations can be written in three matrices (two of which
are actually vectors), Ax = b. Observe that the left–hand side of the equation, Ax, involves matrix
multiplication. If we perform this, we will have
1 2 3 𝑥 𝑥 + 2𝑦 + 3𝑧
𝑨𝒙 = [2 −3 2 ] [𝑦] = [2𝑥 − 3𝑦 + 2𝑧]
3 1 −1 𝑧 3𝑥 + 𝑦 − 𝑧
What do you observe from the product Ax? Correct, it is actually the expressions on the
left–hand side of the system of linear equations!
3|Module 2
1 2 3 𝑥 𝑥 + 2𝑦 + 3𝑧 𝑥 + 2𝑦 + 3𝑧 = 6
𝑨𝒙 = [2 −3 2 ] [𝑦] = [2𝑥 − 3𝑦 + 2𝑧] 2𝑥 − 3𝑦 + 2𝑧 = 14
3 1 −1 𝑧 3𝑥 + 𝑦 − 𝑧 3𝑥 + 𝑦 − 𝑧 = −2
1 2 3 𝑥 6 𝑥 + 2𝑦 + 3𝑧 = 6
𝑨𝒙 = 𝒃 ∶ [2 −3 2 ] [𝑦] = [ 14 ] 2𝑥 − 3𝑦 + 2𝑧 = 14
3 1 −1 𝑧 −2 3𝑥 + 𝑦 − 𝑧 = −2
We were now able to transform system of linear equations to matrix form and vice versa.
Let us now formally define a system of linear equations in its general form.
A system of linear equations (or simply linear system) is a set of equations with m
equations and n unknowns, is of the form
𝑎11 𝑥1 + 𝑎12 𝑥2 + 𝑎13 𝑥3 + ⋯ + 𝑎1𝑛 𝑥𝑛 = 𝑏1
𝑎21 𝑥1 + 𝑎22 𝑥2 + 𝑎23 𝑥3 + ⋯ + 𝑎2𝑛 𝑥𝑛 = 𝑏2
{
⋮
𝑎𝑚1 𝑥1 + 𝑎𝑚2 𝑥2 + 𝑎𝑚3 𝑥3 + ⋯ + 𝑎𝑚𝑛 𝑥𝑛 = 𝑏𝑛
The unknowns are denoted by the variables 𝑥𝑗 , 1 ≤ 𝑗 ≤ 𝑛, the numerical coefficients by
𝑎𝑖𝑗 , 1 ≤ 𝑖 ≤ 𝑚, 1 ≤ 𝑗 ≤ 𝑛 and the constant terms by 𝑏𝑗 , 1 ≤ 𝑗 ≤ 𝑛. In matrix form, the system
of equations above can be written as:
𝑎11 𝑎12 𝑎13 … 𝑎1𝑛 𝑥1 𝑏1
𝑎21 𝑎22 𝑎23 … 𝑎2𝑛 𝑥2 𝑏2
𝑎31 𝑎32 𝑎33 … 𝑎3𝑛 𝑥3 = 𝑏3
⋮ ⋮ ⋮ … ⋮ ⋮ ⋮
𝑎
[ 𝑚1 𝑎𝑚2 𝑎𝑚3 … 𝑎𝑚𝑛 ] [𝑥𝑛 ] [𝑏𝑛 ]
A simplified way of writing above is like this: Ax = b.
𝑥 − 2𝑦 + 3𝑧 = 9 1 −2 3 𝑥 9
{ −𝑥 + 3𝑦 = −4 𝐴𝑛𝑠𝑤𝑒𝑟: 𝑨 = [−1 3 0] 𝒙 = [𝑦] 𝒃 = [−4]
2𝑥 − 5𝑦 + 5𝑧 = 17 2 −5 5 𝑧 17
4|Module 2
What about transforming this matrix to a linear system?
0 1 −1 𝑥1 0 𝑥 2 − 𝑥3 = 0
[ 1 0 −3] [𝑥2 ] = [−1] Answer: { 𝑥1 − 3𝑥3 = −1
−1 3 0 𝑥3 1 −𝑥1 + 3𝑥2 = 1
Did you know that aside from the matrix representation Ax = b, we can rewrite our linear
system using only one matrix instead of three? This is done by adjoining matrices A and b together
forming what we call the AUGMENTED MATRIX, [𝑨 ⋮ 𝒃]. How does this matrix look like?
1 2 3 6
𝑨 = [2 −3 2 ] 𝒃 = [ 14 ]
3 1 −1 −2
1 2 3 ⋮ 6
The augmented matrix is: [𝑨 ⋮ 𝒃] = [2 −3 2 ⋮ 14 ].
3 1 −1 ⋮ −2
What did we just do? Yes, matrix A is augmented with matrix b. (Just like when ladies
wanted their breasts to be enhanced, they have to undergo breast augmentation!)
But what happens to the vector x? If you will recall, we have said that the vector x is
comprised of the variables. Since these are just variables, then we can have many other
representations of vector x, right? We can use the variables 𝒙𝟏 , 𝒙𝟐 , and 𝒙𝟑 instead of the
𝑥1 𝑥
𝑥
variables x, y and z, making vector 𝒙 = [ 2 ] instead of 𝒙 = [𝑦]. Therefore, it does not matter
𝑥3 𝑧
what vector x holds for as long as we have A and b.
𝑥 + 2𝑦 + 3𝑧 = 6 1 2 3 ⋮ 6
{ 2𝑥 − 3𝑦 + 2𝑧 = 14 [𝑨 ⋮ 𝒃] = [2 −3 2 ⋮ 14 ]
3𝑥 + 𝑦 − 𝑧 = −2 3 1 −1 ⋮ −2
Therefore, aside from Ax = b, we can also represent our linear systems by the augmented
matrix [𝑨 ⋮ 𝒃].
5|Module 2
𝑥 + 2𝑦 + 3𝑧 = 6 1 2 3 𝑥 6 1 2 3 ⋮ 6
{ 2𝑥 − 3𝑦 + 2𝑧 = 14 𝑨𝒙 = 𝒃 ∶ [2 −3 2 ] [𝑦] = [ 14 ] ; [𝑨 ⋮ 𝒃] = [2 −3 2 ⋮ 14 ]
3𝑥 + 𝑦 − 𝑧 = −2 3 1 −1 𝑧 −2 3 1 −1 ⋮ −2
𝑥 − 2𝑦 + 3𝑧 = 9 1 −2 3 ⋮ 9
{ −𝑥 + 3𝑦 = −4 𝐴𝑛𝑠𝑤𝑒𝑟: [𝑨 ⋮ 𝒃] = [−1 3 0 ⋮ −4]
2𝑥 − 5𝑦 + 5𝑧 = 17 2 −5 5 ⋮ 17
That was easy, isn’t it? Let us now use these ideas along with the previous lessons on
elementary row operations and matrices in row reduced echelon form to solve system of linear
equations using the Gauss – Jordan Reduction Method.
Let us try to solve the given system of linear equations from the previous example by
transforming the augmented matrix in reduced row echelon form.
𝑥 + 2𝑦 + 3𝑧 = 6
Example 1: { 2𝑥 − 3𝑦 + 2𝑧 = 14
3𝑥 + 𝑦 − 𝑧 = −2
1 2 3 ⋮ 6
Using the augmented matrix, [𝑨 ⋮ 𝒃] = [ 2 −3 2 ⋮ 14 ], we consider the entry in the
3 1 −1 ⋮ −2
first row, first column as the pivot. Since it is the leading one (in red font), let us make the entries
below it to be equal to zero by performing the third elementary row operation on the second and
third rows:
1 2 3 ⋮ 6 𝒑𝒊𝒗𝒐𝒕: 1 1 2 3 ⋮ 6
[𝑨 ⋮ 𝒃] = [2 −3 2 ⋮ 14 ] −𝟐𝑹𝟏 + 𝑹𝟐 ≈ [ 0 −7 −4 ⋮ 2 ]
3 1 −1 ⋮ −2 −𝟑 𝑹𝟏 + 𝑹𝟑 0 −5 −10 ⋮ −20
Solution:
6|Module 2
Now that the first column is in place, we consider the entry on the second row, second
column (−7) to be the pivot. We make it the leading one by performing the second elementary
row operation on the second row: (− 𝟏⁄𝟕)𝑹𝟐.
1 2 3 ⋮ 6 1 2 3 ⋮ 6
[ 0 −7 −4 ⋮ 2 ] (− 𝟏⁄𝟕)𝑹𝟐 ≈ [0 1 4⁄7 ⋮ − 2⁄7]
0 −5 −10 ⋮ −20 0 −5 −10 ⋮ −20
Solution:
0 −7 −4 2
1 1 ⋮ 1
∗ − ⁄7 − ⁄7 − 1⁄7 ⋮ − ⁄7
0 1 4⁄ ⋮ − 2⁄
7 7
We now have a leading one on the second column (in red font). Let us make the other
entries on the second column equal to zero. What elementary row operations will be used? We
perform the third elementary row operation on the first and third rows to make the entries on the
pivotal column equal to zero.
1 0 13⁄ 46⁄
1 2 3 ⋮ 6 −𝟐𝑹𝟐 + 𝑹𝟏 7 ⋮ 7
[0 1 4 2
⁄7 ⋮ − ⁄7] 𝒑𝒊𝒗𝒐𝒕: 1 ≈ 0 1 4 2
⁄7 ⋮ − ⁄7
0 −5 −10 ⋮ −20 𝟓𝑹𝟐 + 𝑹𝟑 50 ⋮ −150
[0 0 − ⁄7 ⁄7]
Solution:
The next pivot is − 50⁄7 . What shall we do with it? Yes, let us make it the leading one
and then make the entries above it all equal to zero.
7|Module 2
We use the second elementary row operation to make the pivot as the leading one.
1 0 13⁄ 46⁄
7 ⋮ 7 1 0 13⁄7 ⋮ 46⁄7
0 1 4⁄ 2
7 ⋮ − ⁄7 ≈ [0 1 4⁄7 ⋮ − 2⁄7]
⋮ (− 𝟕⁄𝟓𝟎)𝑹𝟑 ⋮
[0 0 − 50⁄7 −150⁄7] 0 0 1 3
Solution:
[0 0 − 50⁄7 ⋮ − 150⁄7]
∗ [− 7⁄50 − 7⁄50 − 7⁄50 ⋮ − 7⁄50 ]
[0 0 1 ⋮ 3]
We now have a leading one on the third column (in red font). Let us make the other entries
above it equal to zero. We perform the third elementary row operation on the first and second
rows to make the entries on the pivotal column equal to zero.
Solution:
1 0 0 ⋮ 1
The matrix [0 1 0 ⋮ −2] is now in its reduced row echelon form. If we transform this
0 0 1 ⋮ 3
matrix in a system of linear equations with variables x, y and z, we have:
𝑥 + 0𝑦 + 0𝑧 = 1 𝑥=1
{ + 𝑦 + 0𝑧 = −2
0𝑥 or simply {𝑦 = −2
0𝑥 + 0𝑦 + 𝑧 = 3 𝑧= 3
8|Module 2
which gives us the values of our variables, the solution to the system of linear equations. Let us
try to check if this is really a solution to the linear system by substituting the values in the three
equations.
𝑥 + 2𝑦 + 3𝑧 = 6 𝑥=1
{ 2𝑥 − 3𝑦 + 2𝑧 = 14 with {𝑦 = −2
3𝑥 + 𝑦 − 𝑧 = −2 𝑧= 3
x y z
satisfying all the equations simultaneously. Hence, (1, −2, 3) is a solution to the given system of
linear equations. It is a unique solution making the linear system consistent. Isn’t it amazing?
What did we just do? We were able to solve the given linear system by reducing the
augmented matrix in reduced row echelon form. This process is called the Gauss – Jordan
Reduction Method. Let us summarize the procedure:
You can review the example before proceeding to our next example. On the next page, let
us look at another linear system and try to solve using the Gauss – Jordan Reduction Method.
9|Module 2
𝑥 − 2𝑦 + 3𝑧 = 9
Example 2: { −𝑥 + 3𝑦 = −4
2𝑥 − 5𝑦 + 5𝑧 = 17
1. Let us form the augmented matrix [𝑨 ⋮ 𝒃]. How is the augmented matrix formed? Yes, it
is formed by augmenting the vector b with the coefficient matrix A. Hence,
1 −2 3 ⋮ 9
[𝑨 ⋮ 𝒃] = [−1 3 0 ⋮ −4]
2 −5 5 ⋮ 17
𝟏 −2 3 ⋮ 9 𝒑𝒊𝒗𝒐𝒕: 𝟏 𝟏 −2 3 ⋮ 9
[𝑨 ⋮ 𝒃] = [−1 3 0 ⋮ −4] 𝑹𝟏 + 𝑹𝟐 ≈ [0 1 3 ⋮ 5]
2 −5 5 ⋮ 17 (−𝟐)𝑹𝟏 + 𝑹𝟑 0 −1 −1 ⋮ −1
Solution:
𝑹𝟏 : [1 −2 3 ⋮ 9 ]
+𝑹𝟐 : + [−1 3 0 ⋮ −4]
[0 1 3 ⋮ 5]
Fortunately, for the second column, we have a pivot that is also a leading one.
1 −2 3 ⋮ 9 (𝟐)𝑹𝟐 + 𝑹𝟏 1 0 9 ⋮ 19
[0 𝟏 3 ⋮ 5 ] 𝒑𝒊𝒗𝒐𝒕: 𝟏 ≈ [0 1 3 ⋮ 5]
0 −1 −1 ⋮ −1 𝑹𝟐 + 𝑹𝟑 0 0 2 ⋮ 4
10 | M o d u l e 2
Next, observe that we can perform first elementary row operation on the pivot of the third
column to make it a leading one. What must be multiplied to the third row?
1 0 9 ⋮ 19 1 0 9 ⋮ 19
[0 1 3 ⋮ 5] ≈ [0 1 3 ⋮ 5]
0 0 2 ⋮ 4 0 0 1 ⋮ 2
Solution:
0 0 2 ⋮ 4
∗ ___ ___ ___ ⋮ ___
0 0 1 ⋮ 2
Finally, we make the other entries on the third column above the leading one equal to zero.
How?
1 0 9 ⋮ 19 (___)𝑹𝟑 + 𝑹𝟏 1 0 0 ⋮ 1
[0 1 3 ⋮ 5 ] (___)𝑹𝟑 + 𝑹𝟐 ≈ [0 1 0 ⋮ −1]
0 0 1 ⋮ 2 𝒑𝒊𝒗𝒐𝒕: 𝟏 0 0 1 ⋮ 2
Solution:
(___)𝑹𝟑 : (___)[0 0 1 ⋮ 2 ] → [___ ___ ___ ⋮ ___ ]
+𝑹𝟏 : + [1 0 9 ⋮ 19] → + [1 0 9 ⋮ 19 ]
[1 0 0 ⋮ 1]
3. We now have a matrix in reduced row echelon form. The given system has a unique
solution. Why? It is therefore consistent.
1 0 0 ⋮ 1 𝑥 + 0𝑦 + 0𝑧 = 1 𝑥=1
[0 1 0 ⋮ −1] 0𝑥 + 𝑦 + 0𝑧 = −1 𝑦 = −1
0 0 1 ⋮ 2 0𝑥 + 0𝑦 + 𝑧 = 2 𝑧= 2
𝑥 − 2𝑦 + 3𝑧 = 9 1 − 2(−1) + 3(2) = 1 + 2 + 6 =9
{ −𝑥 + 3𝑦 = −4 −(1) + 3(−1) + 0(2) = −1 + (−3) + 0 = −4
2𝑥 − 5𝑦 + 5𝑧 = 17 2(1) − 5(−1) + 5(2) = 2 + 5 + 10 = 17
It can be seen that (1,– 1, 2) is the only solution to the given linear system.
11 | M o d u l e 2
Before we proceed to the next topic, let us have last two examples for the Gauss–Jordan
Elimination Method. This time, the solution is not detailed.
𝑥 2 − 𝑥3 = 0
Example 3: { 𝑥1 − 3𝑥3 = −1
−𝑥1 + 3𝑥2 = 1
0 1 −1 ⋮ 0
1. We form the augmented matrix [𝑨 ⋮ 𝒃] = [ 1 0 −3 ⋮ −1]
−1 3 0 ⋮ 1
2. We perform a series of elementary row operations on [𝑨 ⋮ 𝒃] until it is in its reduced row
echelon form [𝑪 ⋮ 𝒅] .
0 1 −1 ⋮ 0 1 0 −3 ⋮ −1 1 0 −3 ⋮ −1
[ 1 0 −3 ⋮ −1] 𝑹𝟏 ↔ 𝑹𝟐 ≈ [ 0 1 −1 ⋮ 0 ] ≈ [0 1 −1 ⋮ 0 ]
−1 3 0 ⋮ 1 −1 3 0 ⋮ 1 𝑹𝟏 + 𝑹𝟑 0 3 −3 ⋮ 0
1 0 −3 ⋮ −1 1 0 −3 ⋮ −1
[0 1 −1 ⋮ 0 ] ≈ [0 1 −1 ⋮ 0 ]
0 3 −2 ⋮ 0 (−𝟑)𝑹𝟐 + 𝑹𝟑 0 0 0 ⋮ 0
3. We now have a matrix in reduced row echelon form. But observe that there is a row
consisting entirely of zeros. What does this mean? If we transform the augmented into a
linear system, we will be able to come up with two equations in three unknowns:
The values of the two variables 𝑥1 and 𝑥2 are dependent on the value of the variable z.
Hence, we have a dependent solution. This means that there are many solutions to the given linear
system. Why is this again? Suppose 𝑥3 = 0. Then 𝑥1 = 3𝑥3 − 1 = 3(0) − 1 = −1. Also, 𝑥2 =
𝑥3 = 0. Then, (−1, 0, 0) is a solution to the system.
12 | M o d u l e 2
3𝒂 − 2𝒃 + 4𝒄 = 1
Example 4: { 𝒂 + 𝒃 − 2𝒄 = 3
2𝒂 − 3𝒃 + 6𝒄 = 8
3 −2 4 ⋮ 1
1. We form the augmented matrix [𝑨 ⋮ 𝒃] = [1 1 −2 ⋮ 3]
2 −3 6 ⋮ 8
2. We perform a series of elementary row operations on [𝑨 ⋮ 𝒃] until it is in its reduced row
echelon form [𝑪 ⋮ 𝒅] .
3 −2 4 ⋮ 1 1 1 −2 ⋮ 3 1 1 −2 ⋮ 3
[1 1 −2 ⋮ 3] 𝑹𝟏 ↔ 𝑹𝟐 ≈ [3 −2 4 ⋮ 1] (−𝟑)𝑹 𝟏 + 𝑹 𝟐 ≈ [0 −5 10 ⋮ −8]
2 −3 6 ⋮ 8 2 −3 6 ⋮ 8 (−𝟐)𝑹𝟏 + 𝑹𝟑 0 −5 10 ⋮ 2
We have not transformed the given matrix in its reduced row echelon form yet. But look
at the second and third rows. What do you observe? If we are going to transform the second and
−5𝒃 + 10𝒄 = −8
third rows into linear equations, we will be having: {
−5𝒃 + 10𝒄 = 2
What is wrong with these two equations? Yes, if we are going to find values for the
variables b and c, and substitute it to these equations simultaneously, then we might only satisfy
only one of these two equations. Let us try to continue with the elementary row operations and
see what happens.
7
1 1 −2 ⋮ 3 1 1 −2 ⋮ 3 (−𝟏)𝑹𝟐 + 𝑹𝟏 1 0 0 ⋮ ⁄5
[0 −5 10 ⋮ −8] (− 𝟏⁄𝟓)𝑹𝟐 ≈ [0 1 −2 ⋮ 8⁄5] ≈ [0 1 −2 ⋮ 8⁄ ]
0 −5 10 ⋮ 2 0 −5 10 ⋮ 2 (𝟓)𝑹𝟐 + 𝑹𝟑 𝟎 𝟎 𝟎 ⋮ 5
𝟏𝟎
3. We now have a matrix in reduced row echelon form. Look at the entries in the last row of
the reduced matrix [𝑪 ⋮ 𝒅]. Transforming this to an equation, this would look like: 0𝒂 +
0𝒃 + 0𝒄 = 10 or simply, 0 = 10. But 0 10. This is inconsistent, right? Hence, this
system of linear equations has no solution.
We have seen examples of the three types of the system of linear equations. The Gauss –
Jordan Elimination Method still applies to any linear system with m equations in n unknowns. It
also applies to whatever type a linear system may be. A consistent system has an augmented
matrix that is row equivalent to an identity matrix (on the coefficient matrix side of the augmented
matrix). A system of linear equations usually has a dependent solution if the augmented matrix is
13 | M o d u l e 2
row equivalent to a matrix whose entries on the last row/s is/are all equal to zero. On the other
hand, if there is a row with entries that is all zero in the coefficient matrix A part but not on the
vector b part, then we have an inconsistent solution.
The following theorem and corollary may be of help when solving systems of linear
equations:
Corollary: If A and C are row equivalent mxn matrices, then the linear system Ax = 0 and Cx = 0
have exactly the same solutions.
Look at the linear systems Ax = 0 and Cx = 0. These types of linear systems are called
14 | M o d u l e 2
𝑥 − 2𝑦 + 3𝑧 = 0
Example 1: Solve the homogeneous system: { −𝑥 + 3𝑦 =0
2𝑥 − 5𝑦 + 5𝑧 = 0
1 −2 3 ⋮ 0
1. We form the augmented matrix [𝑨 ⋮ 𝟎] = [−1 3 0 ⋮ 0]
2 −5 5 ⋮ 0
2. We perform a series of elementary row operations on [𝑨 ⋮ 𝒃] until it is in its reduced row
echelon form [𝑪 ⋮ 𝟎] .
𝟏 −2 3 ⋮ 0 𝒑𝒊𝒗𝒐𝒕: 𝟏 𝟏 −2 3 ⋮ 0
[𝑨 ⋮ 𝒃] = [−1 3 0 ⋮ 0] 𝑹𝟏 + 𝑹𝟐 ≈ [0 1 3 ⋮ 0]
2 −5 5 ⋮ 0 (−𝟐)𝑹𝟏 + 𝑹𝟑 0 −1 −1 ⋮ 0
Solution:
𝑹𝟏 : [1 −2 3 ⋮ 0]
+𝑹𝟐 : + [−1 3 0 ⋮ 0]
[ 0 1 3 ⋮ 0]
Fortunately, for the second column, we have a pivot that is also a leading one.
1 −2 3 ⋮ 0 (𝟐)𝑹𝟐 + 𝑹𝟏 1 0 9 ⋮ 0
[0 𝟏 3 ⋮ 0] 𝒑𝒊𝒗𝒐𝒕: 𝟏 ≈ [0 1 3 ⋮ 0]
0 −1 −1 ⋮ 0 𝑹𝟐 + 𝑹𝟑 0 0 2 ⋮ 0
(𝟐)𝑹𝟐 : (𝟐)[0 1 3 ⋮ 0] → [0 2 6 ⋮ 0]
+𝑹𝟏 : + [0 −2 3 ⋮ 0] → + [0 −2 3 ⋮ 0 ]
[1 0 9 ⋮ 0]
𝑹𝟐 : [0 1 3 ⋮ 0]
+𝑹𝟑 : + [0 −1 −1 ⋮ 0]
[ 0 0 2 ⋮ 0]
15 | M o d u l e 2
Next, observe that we can perform first elementary row operation on the pivot of the third
column to make it a leading one.
1 0 9 ⋮ 0 1 0 9 ⋮ 0
[0 1 3 ⋮ 0] ≈ [0 1 3 ⋮ 0]
0 0 2 ⋮ 0 (𝟏⁄𝟐)𝑹𝟑 0 0 1 ⋮ 0
Solution:
0 0 2 ⋮ 0
𝟏
∗ ⁄𝟐 𝟏⁄ 𝟏⁄ 𝟏⁄𝟐
𝟐 𝟐 ⋮
0 0 1 ⋮ 0
Finally, we make the other entries on the third column above the leading one equal to zero.
How?
1 0 9 ⋮ 0 (−𝟗)𝑹𝟑 + 𝑹𝟏 1 0 0 ⋮ 0
[0 1 3 ⋮ 0] (−𝟑)𝑹𝟑 + 𝑹𝟐 ≈ [0 1 0 ⋮ 0]
0 0 1 ⋮ 0 𝒑𝒊𝒗𝒐𝒕: 𝟏 0 0 1 ⋮ 0
Solution:
(−𝟗)𝑹𝟑 : (−𝟗) [0 0 1 ⋮ 0] → [0 0 −9 ⋮ 0 ]
+𝑹𝟏 : + [1 0 9 ⋮ 0] → + [1 0 9 ⋮ 0]
[1 0 0 ⋮ 0 ]
(−𝟑)𝑹𝟑 : (−𝟑) [0 0 1 ⋮ 0] → [𝟎 𝟎 −𝟑 ⋮ 𝟎]
+𝑹𝟐 : + [0 1 3 ⋮ 0] → + [0 1 3 ⋮ 0]
[0 1 0 ⋮ 0]
3. We now have a matrix in reduced row echelon form. The given system has a unique
solution. Why? It is therefore consistent.
1 0 0 ⋮ 0 𝑥 + 0𝑦 + 0𝑧 = 0 𝑥=0
[0 1 0 ⋮ 0] 0𝑥 + 𝑦 + 0𝑧 = 0 𝑦 =0
0 0 1 ⋮ 0 0𝑥 + 0𝑦 + 𝑧 = 0 𝑧= 0
𝑥 − 2𝑦 + 3𝑧 = 0 0 − 2(0) + 3(0) = 0 + 0 + 0 =0
{ −𝑥 + 3𝑦 =0 −(0) + 3(0) + 0(0) = 0 + 0 + 0 = 0
2𝑥 − 5𝑦 + 5𝑧 = 0 2(0) − 5(0) + 5(0) = 0 + 0+ = 0
16 | M o d u l e 2
It can be seen that the trivial solution, (0, 0, 0) is the only solution to the given linear
system.
𝑝+ 𝑞+𝑟+𝑠 =0
Example 2: Solve the homogeneous system: {𝑝 +𝑠 =0
𝑝 + 2𝑞 + 𝑟 = 0
1 1 1 1 ⋮ 0
3. We form the augmented matrix [𝑨 ⋮ 𝟎] = [1 0 0 1 ⋮ 0]
1 2 1 0 ⋮ 0
4. We perform a series of elementary row operations on [𝑨 ⋮ 𝒃] until it is in its reduced row
echelon form [𝑪 ⋮ 𝟎] .
1 1 1 1 ⋮ 0 1 1 1 1 ⋮ 0
[𝑨 ⋮ 𝟎] = [1 0 0 1 ⋮ 0] (−𝟏)𝑹𝟏 + 𝑹𝟐 ≈ [0 −1 −1 0 ⋮ 0]
1 2 1 0 ⋮ 0 (−𝟏)𝑹𝟏 + 𝑹𝟑 0 1 0 −1 ⋮ 0
1 1 1 1 ⋮ 0 1 1 1 1 ⋮ 0 (−𝟏)𝑹𝟐 + 𝑹𝟏
[0 −1 −1 0 ⋮ 0 ] 𝑹 𝟐 ↔ 𝑹 𝟑 ≈ [0 1 0 −1 ⋮ 0]
0 1 0 −1 ⋮ 0 0 −1 −1 0 ⋮ 0 𝑹𝟐 + 𝑹𝟑
1 0 1 2 ⋮ 0 1 0 1 2 ⋮ 0 (−𝟏)𝑹𝟑 + 𝑹𝟏
≈ [0 1 0 −1 ⋮ 0] ≈ [0 1 0 −1 ⋮ 0]
0 0 −1 −1 ⋮ 0 (−𝟏)𝑹𝟑 0 0 1 1 ⋮ 0
1 0 0 1 ⋮ 0
≈ [0 1 0 −1 ⋮ 0]
0 0 1 1 ⋮ 0
5. We now have a matrix in reduced row echelon form. Rewriting the augmented matrix in
a system of linear equations, we will be having dependent variables on a particular
1 0 0 1 ⋮ 0 𝑝 + 0𝑞 + 0𝑟 + 𝑠 = 0 𝑝 +𝑠 =0
variable:[0 1 0 −1 ⋮ 0] { 0𝑝 + 𝑞 + 0𝑟 − 𝑠 = 0 {𝑞 −𝑠 =0
0 0 1 1 ⋮ 0 0𝑝 + 0𝑞 + 𝑟 + 𝑠 = 0 𝑟 +𝑠 = 0
17 | M o d u l e 2
𝑝 +𝑠 =0 𝑝 +1=0 𝑝 = −1
If s = 1, then {𝑞 −𝑠 =0 𝑞−1=0 𝑞= 1
𝑟 +𝑠 = 0 𝑟+1=0 𝑟 = −1
Hence, a solution to the given system is (– 1, 1, –1, 1), which is different from the trivial
solution, (0, 0, 0, 0).
So when does a homogeneous system have a nontrivial solution? The following theorem
will tell us so:
References:
Bernard Kolman/David R. Hill. Introductory Linear Algebra with Applications .7th edition. New Jersey:
Prentice-Hall,Inc.,2002.
Larson, Ron. Linear Algebra. Singapore: Cengage Learning Asia Pte Ltd.,2011.
18 | M o d u l e 2
2.2 The Inverse of a Matrix
This section deals with an algebraic property which is similar to the multiplicative inverse,
or the reciprocal, of a real number. Here, we will find the inverse of a particular matrix. For
inverses, we will only be dealing square matrices.
From the definition above, matrix inversion is the process of finding the matrix B that
satisfies the prior equation for a given invertible matrix A.
NOTE: Not all square matrices have inverses. A square matrix which has an inverse is
called invertible or nonsingular or nondegenerate, and a square matrix without an inverse is
called noninvertible or singular or degenerate.
1 3 −2 3⁄2
Example 1: For matrix 𝑨 = [ ], its inverse is 𝑩 = [ ] since
2 4 1 − 1⁄2
3⁄ 3 1
1 3 −2 2 ] = [1(−2) + 3(1) 1( ⁄2) + 3(− ⁄2)] = [−2 + 3 3⁄ + (− 3⁄ )
2 2 ] = [1 0
𝑨𝑩 = [ ][ ] = 𝑰𝒏
2 4 1 − 1⁄2 2(−2) + 4(1) 2(3⁄2) + 4(− 1⁄2) −4 + 4 3−2 0 1
Also,
−2 3⁄ (−2)1 + (3⁄2)(2) (−2)(3) + (3⁄2)(4)
2 ] [1 3 −2 + 3 −6 + (6) 1 0
𝑩𝑨 = [ ] =[ ]= [ ]= [ ] = 𝑰𝒏
1 − 1⁄2 2 4 (1)1 + (− 1⁄2)(2) (1)(3) + (− 1⁄2)(4) 1−1 3−2 0 1
19 | M o d u l e 2
Observe too that, BA = AB = In. What does this mean? Yes, this means that A = B–1.
4 3
Example 2. For the same matrix A as in example 1, and the matrix 𝑪 = [ ]. Then,
3 2
From the definition, we can find the inverse of C by looking for a 2x2 matrix, say D, such that:
CD = DC = I2.
𝑎 𝑏 4 3 𝑎 𝑏
If we represent D by 𝑫 = [ ], then CD = [ ][ ]. We want this product to be
𝑐 𝑑 3 2 𝑐 𝑑
equal to the product DC and the 2x2 identity matrix so that D will be the inverse of C. That is,
4 3 𝑎 𝑏 𝑎 𝑏 4 3 1 0
[ ][ ]= [ ][ ]=[ ]
3 2 𝑐 𝑑 𝑐 𝑑 3 2 0 1
Let us first solve for the values of a, b, c, d by using matrix multiplication CD and force
the product to be equal to the identity matrix.
4 3 𝑎 𝑏 1 0
[ ][ ]= [ ]
3 2 𝑐 𝑑 0 1
4𝑎 + 3𝑐 = 1
{ + 3𝑑 = 0
4𝑏
3𝑎 + 2𝑐 = 0
3𝑏 + 2𝑑 = 1
4 3 ⋮ 1 0
Then from Module 2.1, we can rewrite this as an augmented matrix: [ ]
3 2 ⋮ 0 1
and use the Gauss – Jordan Elimination method to solve for a, b, c, d.
3⁄ 1⁄ 0
1 ⋮ 3⁄ ⋮ 1⁄ 0 (− 3⁄4)𝑅2 + 𝑅1 1 0 ⋮ −2 3
[ 4 4 ] ≈ [1 4 4 ] ≈ [ ]
0 − 1⁄4 ⋮ − 3⁄4 1 (−4)𝑅2 0 1 ⋮ 3 −4 0 1 ⋮ 3 −4
20 | M o d u l e 2
Then, we can rewrite the augmented matrix in reduced row echelon form as a system of linear
equations:
𝑎 + 0𝑐 = – 2 𝑎= – 2
−2 3
{ 𝑏 + 0𝑑 = 3 or simply {𝑏 = 3 with matrix D = [ ].
0𝑎 + 𝑐 = 3 𝑐 = 3 3 −4
0𝑏 + 𝑑 = – 4 𝑑 =– 4
We have just found an inverse for the matrix C using the Gauss – Jordan Reduction
Method! Let us try another matrix.
3 −2 4
Example 3. Find A–1 if it exists where 𝑨 = [1 1 −2].
2 −3 6
𝑎 𝑏 𝑐 3 −2 4 𝑎 𝑏 𝑐 1 0 0
If we let 𝑨 −𝟏
= [ 𝑑 𝑒 𝑓], then AA–1=[1 1 −2] [𝑑 𝑒 𝑓] = [0 1 0] or
𝑔 ℎ 𝑖 2 −3 6 𝑔 ℎ 𝑖 0 0 1
3 −2 4 ⋮ 1 0 0
[1 1 −2 ⋮ 0 1 0]
2 −3 6 ⋮ 0 0 1
Let us use the Gauss – Jordan Reduction Method to identify A–1.
3 −2 4 ⋮ 1 0 0 1 1 −2 ⋮ 0 1 0
[1 1 −2 ⋮ 0 1 0] 𝑅1 ↔ 𝑅2 ≈ [3 −2 4 ⋮ 1 0 0] (−3)𝑅1 + 𝑅2
2 −3 6 ⋮ 0 0 1 2 −3 6 ⋮ 0 0 1 (−2)𝑅1 + 𝑅3
1 1 −2 ⋮ 0 1 0 1 1 −2 ⋮ 0 1 0 (−1)𝑅2 + 𝑅1
[0 −5 10 ⋮ 1 −3 0] (− 1⁄5)𝑅2 1 3
≈ [0 1 −2 ⋮ − ⁄5 ⁄5 0]
0 −5 10 ⋮ 0 −2 1 0 −5 10 ⋮ 0 −2 1 (5)𝑅2 + 𝑅3
21 | M o d u l e 2
1⁄ 2⁄ 0
1 0 0 ⋮ 5 5
[0 1 −2 ⋮ − ⁄5 ⁄5 0] But observe that the left – hand side of the augmented matrix is
1 3
0 0 0 ⋮
−1 1 1
not row equivalent to the identity matrix I3. This will create linear equations that are inconsistent,
right. Hence, we cannot find values for the inverse of the given matrix A.
The practical procedure for computing the inverse of matrix A is summarized as follows:
The examples given above provide illustrations of some properties of the inverse of a given matrix.
These properties will be further discussed in detail through the following theorems:
22 | M o d u l e 2
= (BA)C by Associative Property for Multiplication
But this is a contradiction since we have said earlier that B and C are distinct. Therefore,
if the inverse exists, then it must be unique.
Since A and B are nonsingular, then A–1 and B–1 exist and
Let us multiply:
23 | M o d u l e 2
(AB) (B–1A–1) = A(BB–1) A–1 by Associative property for multiplication.
Since A is nonsingular, then A–1 exists and AA–1 = A–1A = In (by definition of nonsingular
matrix).
24 | M o d u l e 2
Let us observe the linear system Ax = b where A is an n x n matrix. Suppose too that A is
nonsingular. Then A–1 exists and
4 3
Example 1: Let us consider the matrix 𝑪 = [ ] in example 2 above and use it as the coefficient
3 2
4𝑎 + 3𝑏 = 1
matrix of the linear system: { . Aside from the Gauss – Jordan
3𝑎 + 2𝑏 = −1
Reduction Method, let us use the inverse of C to solve for the values of a and b.
Solution:
−2 3
It has been shown in example 2 above that 𝑪−𝟏 = [ ].
3 −4
𝑎 −2 3 1
Then, x = (C–1)b or [ ] = [ ][ ]
𝑏 3 −4 −1
Using matrix multiplication, we have
Solution: Let us first find the inverse of the coefficient matrix of the given homogeneous system.
1 −2 3 ⋮ 1 0 0 1 −2 3 ⋮ 1 0 0
[−1 3 0 ⋮ 0 1 0] 𝑅1 + 𝑅2 ≈ [0 1 3 ⋮ 1 1 0]
2 −5 5 ⋮ 0 0 1 (−2)𝑅1 + 𝑅3 0 −1 −1 ⋮ −2 0 1
25 | M o d u l e 2
1 −2 3 ⋮ 1 0 0 (2)𝑅2 + 𝑅1 1 0 9 ⋮ 3 2 0
[0 1 3 ⋮ 1 1 0] ≈ [0 1 3 ⋮ 1 1 0]
0 −1 −1 ⋮ −2 0 1 𝑅2 + 𝑅3 0 0 2 ⋮ −1 1 1 (1⁄2)𝑅3
15⁄ 5 − 9⁄2
1 0 9 ⋮ 3 2 0 (−9)𝑅3 + 𝑅1 1 0 0 ⋮ 2 − ⁄2
[0 1 3 ⋮ 1 1 0 ] (−3)𝑅3 + 𝑅2 ≈ 0 ⋮ 5⁄ 1 − 3⁄2
1 1⁄ 1⁄
0 1 2 − ⁄2
0 0 1 ⋮ − ⁄2 0 0 1 ⋮
2 2 [ − 1⁄2 1⁄2 1⁄
2 ]
Therefore,
Summarized below are the results on homogeneous systems and nonsingular matrices:
1. A is nonsingular.
2. Ax = 0 has only the trivial solution.
3. A is row equivalent to In.
4. The linear system Ax = b has a unique solution for every n x 1 matrix b.
References:
Bernard Kolman/David R. Hill. Introductory Linear Algebra with Applications .7th edition.
New Jersey: Prentice-Hall,Inc.,2002.
26 | M o d u l e 2
Larson, Ron. Linear Algebra. Singapore: Cengage Learning Asia Pte Ltd.,2011.
• https://www.youtube.com/watch?v=kWorj5BBy9k&list=PLybg94GvOJ9En46TNCXL2n6Si
qRc_iMB8&index=9&t=0s
27 | M o d u l e 2