The Rank Theorem

We poke at whether RREF is unique, then laser in on invertible matrices to show their RREF has to be the identity — and that's the Rank Theorem taking shape!

Equation from the original notes

The RREF $A'$ we got by multiplying a bunch of EROMs together —

Equation from the original notes

we got as far as the fact that the row spaces of these two,

$V_A$ and $V_{A'}$, are the same. This is a crucial fact we’ll lean on later. Tuck it away.

OK so before we move on, there’s one more thing we should poke at.

Does an RREF always exist????

I mean — yeah, no question. We can always crank one out, no conditions attached.

But wait — couldn’t there be more than one way to make an RREF, besides the route we took??

And every time we did it, would the RREFs that pop out be the e~x~a~c~t~l~y same?

In other words: is the RREF unique, or not?

We don’t know yet.

And here’s another thing we don’t know:

We confirmed that the Row space doesn’t change when you convert to RREF, but we have no idea yet whether the Column space changes or not.

We’ll figure it all out step by step, but not right now —

right now we’re going to laser in on something called an invertible matrix $A$.

We’ll come back to those open questions later!!!!! Promise!!


First up: when the $n \times n$ matrix $A$ is invertible, if we tear $A$ apart into its ‘columns’…

the column vectors that come out,

Equation from the original notes

,

Equation from the original notes

, . . . ,

Equation from the original notes

are linearly independent. Because $A$ is invertible.

Also, if $A$ is invertible, its transpose A transpose is also invertible.

Which means the column vectors of A transpose are also linearly independent (because, again, invertible).

And saying the columns of A transpose are linearly independent is the same as saying the rows of $A$ are linearly independent. (Transpose = swap rows and columns, right?)

In other words —

the dimension of the column space of A transpose being $n$ means the dimension of the row space of $A$ is $n$!!!!!!!

OK so now: when we have an $n \times n$ invertible matrix $A$, and we call the RREF we get by row operations $A'$ — would there be an all-zero row in $A'$?!?!?!?!?!

Nope. We just said invertible, so we can’t have a zero vector hanging around with all entries 0. If there were a zero row, you’d be trying to span an $n$-dimensional space with only $n-1$ row vectors — impossible!!!

And where do the leading 1s of $A'$ have to live?!?!?!

The first leading 1 has to sit at a sub 11.

If it didn’t, that would mean a zero row gets stuck somewhere below, so a leading 1 has to be there. Following that logic all the way down, the RREF of this $A$ has no choice but to be the identity matrix.

If we look at this from the “multiplying EROMs” point of view,

Equation from the original notes

Let me throw in a concrete example.

Equation from the original notes

I’ll find the inverse of this $A$.

Equation from the original notes

Writing it out like that, I’ll find it by chaining EROMs on both the left and the right side.

(You can also just think of it as continuously writing out the transformation rules — same thing.)

Calculation correction. In the first elimination, row 2’s third entry should be $1-4\cdot2=-7$, not $-5$. The resulting arithmetic slips mean the final right-hand matrix in the picture is not $A^{-1}$. For the displayed $A$, the correct inverse is $\frac13\begin{pmatrix}0&1&-1\\3&1&-7\\-3&-2&11\end{pmatrix}$; direct multiplication gives $AA^{-1}=I$. The row-operation method itself is valid.

Equation from the original notes

Because $A$ is invertible, taking it to RREF lands us on $I$ (the identity), and what’s sitting on the right side is $R$ — and the identity of $R$ is, precisely, $A^{-1}$.

Want to double-check on something we already know cold?!?!

Equation from the original notes

Same principle, here we go!!!

This illustrated route assumes $a\ne0$ as well as $ad-bc\ne0$. If $a=0$ but the determinant is nonzero, swap the two rows before starting. Also, when the picture first makes the second pivot 1, the upper row’s right-hand pair should still be $(1,0)$; its first entry is incorrectly written $1/(ad-bc)$. The final inverse formula below is valid for every nonsingular $2\times2$ matrix.

Equation from the original notes

Equation from the original notes

If $ad - bc = 0$, that means it doesn’t exist, right?!?!?!?

Which gives us the result that there’s no inverse!!!

That’s why for the $2 \times 2$ case we call $ad - bc$ the determinant, right?!?!?!?

This is, you know, the stuff everybody learned ages ago.

There’ll be more on this later, so don’t be too let down. The real focus right now is somewhere else~~~


Now let’s look at the solution of $AX = B$ when $A$ is invertible.

For the non-homogeneous equation $AX = B$, the main concern was: does a solution even exist???? — that’s it.

For the homogeneous equation $AX = 0$, the main concern was: does a non-trivial solution exist??!?!! — that was it.

But now, with the extra assumption that $A$ is invertible, for the non-homogeneous $AX = B$ —

$X = A^{-1}B$, so a solution unconditionally exists.

And for the homogeneous $AX = 0$,

$X = A^{-1} \cdot 0$ becomes

$X = 0$,

so a non-trivial solution does not exist.

Earlier we said the solution set for the non-homogeneous equation is

Equation from the original notes

the particular solution $X^{(0)}$ definitely exists, $\ker A$ has nothing in it but $0$, so

Equation from the original notes

there’s only one solution!!!!

So: in $AX = B$, when $A$ is invertible — one solution!

Equation from the original notes

In $AX = 0$, when $A$ is invertible — one solution!

Equation from the original notes


Alright, NOW let’s get into the real main event — the Rank Theorem.

Before we dive in: the Row space doesn’t change when $A$ goes to its RREF $A'$. We don’t yet know whether the RREF is unique. We don’t yet know whether the Column space is invariant either!!!!

We don’t even know whether the dimension of the Column space is invariant. Don’t know it yet!

Please keep all of that in mind!!!

OK, let’s actually go go go go Rank Theorem!!

What if, in the $X$ slot of $AX$, we plugged in

(unit vectors)

Equation from the original notes

something like these?!?!?!

Probably the column vectors are gonna pop out, right.

The unit vectors we just multiplied —

Equation from the original notes

we’ll write them like this:

Equation from the original notes

Then this will probably click too.

What I just said above is exactly what the picture above shows, the whole thing —

The reason I said it was: whatever $X$ is,

Equation from the original notes

it can be written as a linear combination of these.

Equation from the original notes

And the reason I said that in turn —

was to give you a feel for the idea that the image of the linear map that $A$ represents is exactly the space spanned by the columns of $A$.

In other words —

Equation from the original notes


OK so now that we know Row space and Column space, let’s see what Rank is and what the Rank Theorem says.

First — what is Rank?

These Row spaces and Column spaces have a dimension, right????? That dimension is what we call Rank.

dim of Row space = Row Rank.

dim of Column space = Column Rank. So they say.

1. If $A$ is an $n \times n$ invertible matrix —

since it’s invertible, the columns are linearly independent among themselves, and so are the rows, right???

So the dimension of the span is $n$ for both.

Therefore Row Rank = Column Rank.

2. When some matrix $A'$ is in RREF —

The dimension of the Row space of $A'$ is the number of non-zero rows.

But also — look at the leading 1s.

Everything above and below that 1 is 0!!!! Because it’s RREF.

Which means the row that has the leading 1 can’t be built out of the other rows!!

So Row Rank = number of rows with a ’leading 1’!!!

By the same logic for Column Rank, the minimum Column Rank is the number of columns that are tied to a leading 1.

But could there be more?!?!?!!!!!

Look at the row attached to a leading 1: nothing before the 1, and after it there may or may not be numbers…

Ahhh!!!!! If we just take the columns tied to the leading 1s, we can build the others as a linear combination!!!

(I’m a little uneasy doing this in words alone with no diagram — are y’all reading my mind…? T_T I’m nervous.)

So we can write it like this:

Row Rank = Column Rank = number of leading 1s.

3. If it’s a general rectangular matrix —

first off, we can always pin it to RREF, no conditions.

Once we do, Row Rank and Column Rank are equal by case ② above.

But — as we said — we don’t know whether the Column Rank changes or not when we go to RREF.

We do know Row Rank doesn’t change, right???? Call Row Rank = $r$.

Equation from the original notes

The Column Rank of $A' = r$ means dim of $\text{Im}\,A' = r$.

(Following along?? If you’ve been with me from the start you probably are, but…? I dunno if I should just mumble through this and keep going…? T_T)

Hold on—this is where my original explanation mixed up rank and nullity. Let’s untangle them before carrying on!

Write $A'=RA$, where $R$ is the invertible product of row-operation matrices. Left multiplication takes every column of $A$ through the same invertible map. It preserves linear dependence and independence among the columns, so the column rank stays the same. The column space itself can change: $\operatorname{Im}A'=R(\operatorname{Im}A)$.

We already know that row rank is preserved, and that an RREF has row rank = column rank = pivot count $r$. Therefore, for the original matrix too,

$$ \text{Row Rank}(A)=\text{Column Rank}(A)=r. $$

That’s the rank equality we wanted!!!!! Now keep the related rank–nullity theorem separate. Use the usual convention: an $m\times n$ matrix has $m$ rows and $n$ columns, so $A:\mathbb R^n\to\mathbb R^m$. There are $r$ pivot variables and $n-r$ free variables. Each free variable supplies one independent direction in the kernel, so

$$ \dim\ker A=n-r,\qquad \dim\operatorname{Im}A+\dim\ker A=n. $$

The number of leading 1s is the rank, not the nullity! My old “Column Rank = $n$ − Row Rank” conclusion was wrong.

A tiny check: $A=\begin{pmatrix}1&2&0\\0&0&1\end{pmatrix}$ has two pivots. Both ranks are 2, while the kernel is spanned by $(-2,1,0)^T$, so its dimension is 1. Two plus one equals the three columns. Now the pieces fit. See also MIT’s rank–nullity notes, §21.4 .


Alright then — finally — let’s check on the uniqueness of the RREF.

Equation from the original notes

Equation from the original notes

Didn’t we say that taking $A$ to its RREF $A'$ is the same as multiplying some invertible matrix on the left side?

And waaay back in the ‘change of basis’ part,

we said that multiplying some invertible matrix on the right of a matrix can be read as changing the basis of $V$,

and multiplying an invertible matrix on the left of a matrix can be read as changing the basis of $W$.

We absolutely, definitely concluded it like that at the very end of #8 and wrapped up that post.

Multiplying some invertible matrix on the right of a matrix = changing the basis of $V$.

Multiplying an invertible matrix on the left of a matrix = changing the basis of $W$.

OK so —

to sum it up:

Going to RREF = multiplying invertible matrix EROMs on the left of $A$ = changing the basis of $W$ (the target space).

Meaning — we find an appropriate basis of $W$, and the linear map expressed under that basis is precisely what $A'$ was.

But that change-of-basis observation alone does not prove uniqueness: there are many possible target-space bases.

Here’s the missing point. A column is a pivot column exactly when adding it increases the rank of the columns seen so far. Row operations preserve those ranks, so the pivot positions are fixed. Every nonpivot column has a unique linear combination of the pivot columns; row operations preserve those coefficients too. In RREF, the pivot columns have their prescribed leading-1 positions, so those coefficients fix every remaining entry. The zero rows go at the bottom. That’s why every valid row-reduction route gives the same RREF. Now that ties it up!

Heads-up. The original basis-change drawings are preserved above. Use the corrected distinction in the text: row rank = column rank, while rank + nullity = number of columns. The earlier invertible case correctly has one particular solution and a zero-dimensional kernel.

Questions or corrections?

Did a step lose you, or does a number look off? Email me or use the contact page. Include the note title and the step or figure you mean.

Feedback goes to me privately by email; it is not posted as a public comment.