![]() |
VOOZH | about |
Row Echelon Form (REF) of a matrix simplifies solving systems of linear equations, understanding linear transformations, and working with matrix equations.
A matrix is in Row Echelon form if it has the following properties:
Below is an example of row-echelon form:
A matrix is in Reduced Row Echelon Form (RREF) if:
Example of reduced row echelon form:
Gaussian Elimination is a way of converting a matrix into the reduced row echelon form. It can also be used as a way of finding a solution to a solution to the system of linear equations. The idea behind this is that we perform some mathematical operations on the row and continue until only one variable is left.
Below are some operations which we can perform:
Consider the following linear equation:
Now, we need to convert this into the row-echelon form. To convert this into row-echelon form, we need to perform Gaussian Elimination.
First we need to subtract 2*r1 from the r2 and 4*r1 from the r3 to get the 0 in the first place of r2 andr3.
Next we will interchange the rows r2 and r3 and after that subtract 5*r2 from r3 to get the second 0 in the third row.
Now we can find the value z from r3, i.e 10 z =0 ⇾ z=0. With the help of the value of z =0 we can put it to r2, y = 2. Similarly we can put the value of y and z in r1 and we get a value of x=3
The rank of the matrix is the number of non-zero rows in the row echelon form. To find the rank we need to perform the following steps:
Let's take an example matrix:
Now we reduce the above matrix to row-echelon form
Here only two row contains non-zero elements. Hence the rank of the matrix is 2.
To convert a matrix into reduced row-echelon form, we used the Sympy package in python first we need to install it.
To install it we use pip command:
! pip install sympyOutput:
(Matrix([
[1, 0, 0],
[0, 0, 1],
[0, 0, 0]]), (0, 2))
Rank of matrix : 2