You've already discussed the definition of the matrix rank, row and column ranks, full rank, and rank-deficient matrices. You've also learned the connection between rank and the number of solutions to a linear equation system. But you still don't know how to find the rank of a matrix. So, let's study methods for finding the rank of a matrix now!
Row-echelon form
To find the rank of a matrix, you need to determine the number of linearly independent rows it contains. You can reduce the matrix to echelon form through elementary transformations. After the reduction, you need to count the number of non-zero rows.
Let's examine the process by using a small example:
First, subtract the third row multiplied by two from the second row: Now, add the first row multiplied by three to the second row. After this operation, the second row consists of zeros, so there are only two non-zero rows left:
After that, swap the second and the third row to obtain a row echelon form:
The first and second rows are linearly independent since you can't express them via each other. There is no need to continue with the reduction because you now know that the rank of the matrix is equal to . The same thing happens if you calculate the column rank of this matrix. If you don't believe it, do it yourself!
And now, you're ready to understand why the row and column ranks are equal. When you were reducing the matrix to echelon form by applying the elementary transformations to its rows, you didn't change the row and column ranks of the original matrix . This statement is often proven in linear algebra, but it's far too complex for now, and we won't discuss this proof. The same happens if you apply the elementary operations to the columns of the matrix.
If you've obtained a reduced row echelon form of a matrix, you can also apply elementary column operations to it, and you'll finally get an identity matrix. It's a square matrix in which all the main diagonal elements are equal to one, and all other elements are equal to zero. So, since these operations don't change the row and the column ranks of the original matrix , these ranks are equal to the rank of and to each other because you've obtained a square matrix.
The basics of bounding minors method
You can also find the rank of a matrix with the bounding minors method. You do this by using another definition of the rank that we haven't discussed yet. The rank of the matrix is equal to the order of the largest minor, which is not equal to . Using this method results in the same value for the rank as looking for the number of linearly independent rows (or columns). You have already studied minors — as a reminder, to find a minor of a matrix you should remove a row and a column from this matrix and calculate a determinant of this new matrix with fewer rows and columns.
And what are bounding minors? Suppose that you have a matrix and its size is . As in the picture below, you can represent this matrix as a table. Imagine that you've found a blue minor and its size is . If you increase its size to by adding a row and a column of elements from the original matrix colored in pink, you'll get a new minor of order. This minor bounds the minor .
The core of the bounding minors method is to find minors starting from minors of the lowest order and moving to minors of higher orders. If a minor of the order is not , and all minors of the order bounding it are equal to , then the rank of the matrix is .
So, let's summarize this method as an algorithm:
- Find a non-zero element of a matrix. If all elements are zeros, the rank of the matrix is equal to and you can stop. Otherwise, you have to continue with the minors of the order.
- Calculate binding minors of the order for this element. If all of them are equal to , the rank of the matrix is equal to and you can stop. Otherwise, you have to continue with the minors of the order.
- Calculate bounding minors of the order for a non-zero minor of the order. If all of them are equal to , the rank of the matrix is equal to and you can stop. Otherwise, you have to continue with the minors of the order.
- Continue calculating the bounding minor of the higher orders until you find minors, which are all equal to . If all the biggest possible minors are not equal to , you have a full rank matrix.
Example of bounding minors method
Looking at an example should make this method clearer. Suppose that you have a matrix
First, look at the minor of the first order . It can be any non-zero element of this matrix. Let's choose element for simplicity:
This element isn't equal to zero, so the rank of this matrix is at least . So, continue with the minors of the second order. Here, you can add not only elements of the second row and column of the matrix , but also elements from its third and fourth columns and from the third row. Since you don't know which minors are equal to and which are not, let's start with the second row and the second column:
You'll get a . Should you stop now and decide that the rank of the matrix is equal to ? No, you can't since you haven't checked whether all minors of the second order are equal to . So, let's check another minor: You'll get a . As this bounding minor is not equal to , you know that the rank of the matrix is at least .
Next, check minors that bound this new minor. There are only two of them.
- You can obtain the first one if you add elements of the second column and the third row of the matrix to the minor :
-
You can obtain the second one if you add elements of the fourth column and the third row of the matrix to the minor :
As you can see, both these minors are equal to . So, as all bounding minors are equal to , we can conclude that the rank of the matrix is .
So, now you know two different methods for finding the rank of a matrix. How to choose which one to apply? In general, if a matrix is not that big, it'll be faster and more efficient to reduce it to echelon form and calculate the amount of non-zero rows. If a matrix is big, it'll be faster and more convenient to calculate its rank using the bounding minors method. There may be small and large matrices for which everything will be opposite. You'll learn to choose the most efficient way while solving problems.
Conclusion
Let's sum up all the most important things you've learned today:
- You can find the rank of a matrix by reducing it to echelon form via elementary transformations to calculate the amount of linearly independent rows of the matrix.
-
There's another definition for the rank of a matrix as the order of the largest minor, which is not equal to .
-
According to this new definition, you can find the rank of a matrix using the bounding minors method.