- Home
- >
- Gauss jordan elimination – Explanation & Examples
JUMP TO TOPIC [show]
Gauss Jordan Elimination – Explanation & Examples
The Gauss-Jordan Elimination method is an algorithm to solve a linear system of equations. We can also use it to find the inverse of an invertible matrix. Let’s see the definition first:
The Gauss Jordan Elimination, or Gaussian Elimination, is an algorithm to solve a system of linear equations by representing it as an augmented matrix, reducing it using row operations, and expressing the system in reduced row-echelon form to find the values of the variables.
In this lesson, we will see the details of Gaussian Elimination and how to solve a system of linear equations using the Gauss-Jordan Elimination method. Examples and practice questions will follow.
What is Gaussian Elimination?
Gaussian Elimination is a structured method of solving a system of linear equations. Thus, it is an algorithm and can easily be programmed to solve a system of linear equations. The main goal of Gauss-Jordan Elimination is:
- to represent a system of linear equations in an augmented matrix form
- then performing the
row operations on it until the reduced row echelon form (RREF) is achieved - Lastly, we can easily recognize the solutions from the RREF
Let’s see what an augmented matrix form is, the
Augmented Matrix
A system of linear equations is shown below:
We will write the augmented matrix of this system by using the coefficients of the equations and writing it in the style shown below:
An example using
Representing this system as an augmented matrix:
Row Operations on a Matrix
There are
- Interchange
rows - Multiply a row by a non-zero (
) scalar - Add or subtract the scalar multiple of one row to another row.
Reduced Row-Echelon Form
The Gauss Jordan Elimination’s main purpose is to use the
- Rows with zero entries (all elements of that row are
s) are at the matrix’s bottom. - The leading entry (the first non-zero entry in a row) of each non-zero row is to the right of the row’s leading entry directly above it.
- The leading entry in any non-zero row is
. - All entries in the column containing the leading entry (
) are zeroes.
How to do Gauss Jordan Elimination
There aren’t any definite steps to the Gauss Jordan Elimination Method, but the algorithm below outlines the steps we perform to arrive at the augmented matrix’s reduced row echelon form.
- Swap rows so that all rows with zero entries are on the bottom of the matrix.
- Swap rows so that the row with the largest left-most digit is on the top of the matrix.
- Multiply the top row by a scalar that converts the top row’s leading entry into
(If the leading entry of the top row is , then multiply it by to get ). - Add or subtract multiples of the top row to the other rows so that the entry’s in the column of the top row’s leading entry are all zeroes.
- Perform Steps
for the next leftmost non-zero entry until all the leading entries of each row are . - Swap the rows so that the leading entry of each nonzero row is to the right of the leading entry of the row directly above it
At first glance, it’s not that easy to memorize/remember the steps. It’s a matter of solving several problems until you get the hang of the process. There is also the factor of intuition that plays a B-I-G role in performing the Gauss Jordan Elimination.
Let’s take a few examples to elucidate the process of solving a system of linear equations via the Gauss Jordan Elimination Method.
Example 1
Solve the system shown below using the Gauss Jordan Elimination method:
Solution
The first step is to write the augmented matrix of the system. We show this below:
Now, our task is to reduce the matrix into the reduced row echelon form (RREF) by performing the
The augmented matrix that we have is:
Step 1:
We can multiply the first row by
Step 2:
We can now multiply the first row by
We have a
Step 3:
To make the second entry of the second row
Step 4:
We are almost there!
The second entry of the first row should be
This is the reduced row echelon form. From the augmented matrix, we can write two equations (solutions):
Thus, the solution of the system of equations is
Example 2
Solve the system shown below using the Gauss Jordan Elimination method:
Solution
Let’s write the augmented matrix of the system of equations:
Now, we do the elementary row operations on this matrix until we arrive in the reduced row echelon form.
Step 1:
We multiply the first row by
Step 2:
We multiply the second row by
Step 3:
Lastly, we multiply the second row by
This is the reduced row echelon form. From the augmented matrix, we can write two equations (solutions):
Thus, the solution of the system of equations is
Practice Questions
Solve the system shown below using the Gauss Jordan Elimination method:
Solve the system shown below using the Gauss Jordan Elimination method:
Answers
We start off by writing the augmented matrix of the system of equations:
Now, we do the elementary row operations to arrive at our solution.
First,
We inverse the signs of second row and exchange the rows. So, we have:
Second,
We subtract twice of first row from second row:
Third,
We inverse the second row to get:
Lastly,
We subtract the second row from the first row and get:From this augmented matrix, we can write two equations (solutions):
Thus, the solution of the system of equations is
and .- The augmented matrix of the system is:
Let’s get this matrix to reduced row echelon form and find the solution of the system.
First,
Negate the first row then subtract it from the second row to get:
Second,
Divide the second row by to get:
Then,
Multiply the second row by and subtract it from the first row to finally get the solution:
This is the reduced row echelon form (RREF). From this augmented matrix, we can write two equations (solutions):Thus, the solution of the system of equations is
and .