# I don't understand the rank of a matrix!

Hello everyone, can someone explain to me what the rank of a matrix is?
I have the following:
2 3 -2
2 6 0
-4 0 0
Rank = 3;

0 2 0 0
0 0 0 -4
0 0 0 0
9 0 0 0
rank = 3;

1 2
6 -3
Rank = 2;

I don't get it! any help would be great!

Hey,

The rank of a matrix is the number of linearly independent rows in the matrix.

You can find the rank by performing Gaussian elimination. The rank will then be the number of non-zero rows in the resulting matrix.

To compute the rank of a matrix, do the following.

1) Let $$A$$ be a $$m\times n$$ matrix.
2) Perform gaussian-elimination on $$A$$
3) Count the number of non zero columns. This number is the rank of the matrix.

1) $$A = \left[ \begin{array}{ccc}2 & 3 & -2 \\2 & 6 & 0 \\-4 & 0 & 0 \\\end{array}\right]$$

2) Perform the gaussian-elimination on $$A$$
$$A' = \left[ \begin{array}{ccc}1 & 0 & 0 \\0 & 1 & 0 \\0 & 0 & 1 \\\end{array}\right]$$

3) Now we count the number of non-zero columns:
$$A' = \left[ \begin{array}{ccc}(1) & 0 & 0 \\0 & (1) & 0 \\0 & 0 & (1) \\\end{array}\right]$$

Rank = 3

----
Now, what does the rank mean? Well the rank of a matrix lets you know the number of columns that cannot be written as a linear combination of each other.

If you consider $$A'$$ to be a matrix of vectors, we would have the following column vectors.

$$\vec{V_1} = (1,0,0)$$
$$\vec{V_2} = (0,1,0)$$
$$\vec{V_3} = (0,0,1)$$

These vectors are ALL linearly independent of each other. Which means that the column vectors in $$A$$ are all linearly independent of each other.

Just don't forget that the rank only tells you the number of independent columns. If you are trying to find the spanning set, you must go back to the ORIGINAL matrix.

Awesome! thanks alot guys! good explanation!!