# Matrix Rank

The rank of a matrix is the number of linearly independent rows or columns. Using this definition, the rank can be calculated using the Gaussian elimination method.

It can also be said that the rank is: the order of the largest nonzero square submatrix. Using this definition, the rank can be calculated using determinants.

### Calculating the Rank of a Matrix for Determimants

**1. **A line can eliminated a if:

All the coefficients are zeros.

There are two equal lines.

A line is proportional to another.

A line is a linear combination of others.

The third column can be deleted because it is a linear combination of the first two: **c _{3 } = c_{1} + c_{2} **

2. Check to see if the rank is 1, for it must be satisfied that the element of the matrix is not zero and therefore its determinant is not zero.

**|2|=2≠0**

3. The matrix will have a rank of 2 if there is a square submatrix of order 2 and its determinant is not zero.

4. The matrix will have a rank of 3 if there is a square submatrix of order 3 and its determinant is not zero.

As all the determinants of the submatrices are zero, it does not have a rank of 3, therefore r(B) = 2.

If the matrix had a rank of 3 and there was a submatrix of order 4, whose determinant was not zero, it would have had a rank of 4. In the same way as shown above, check to see if there is a range greater than 4.

#### Examples

1. Calculate the rank of the matrix:

|2|=2 ≠0

r(A) = 2

2.Calculate the rank of the matrix:

r(B) = 4

3. Calculate the rank of the matrix:

Remove the third column as it is zero, the fourth because it is proportional to the first and the fifth because it is the linear combination of the first and second: c_{5} = −2 · c_{1} + c_{2}

r(C) = 2