4.5.12 · D2Linear Algebra (Full)

Visual walkthrough — Rank of a matrix — definition, row rank = column rank theorem

2,367 words11 min readBack to topic

Step 0 — The words we will use (built before we use them)

Before any symbol appears in a formula, let us anchor it to a picture.

  • A vector is just an arrow from the origin, or equally a list of numbers like . The numbers tell you how far to walk along each axis.
  • A linear combination of some vectors means: scale each one by a number, then add them up. Picture stretching several arrows and laying them tip-to-tail.
  • The span of a set of vectors is every point you can reach by linear combinations of them. One nonzero arrow spans a line; two arrows pointing different ways span a plane.
  • Vectors are independent if none of them is reachable from the others — each adds a genuinely new direction. If one arrow lies inside the span of the rest, they are dependent.
  • A basis of a space is a smallest set of independent arrows whose span is the whole space. The number of arrows in a basis is the dimension.

These live in different worlds ( vs ), possibly of different sizes. Our goal: show these two dimensions are the same integer. That is genuinely surprising, which is why it deserves a picture-proof.

Figure — Rank of a matrix — definition, row rank = column rank theorem

More on these spaces: Row Space and Column Space. On independence and bases: Linear Independence and Basis.


Step 1 — Look at a concrete matrix and count both ways by hand

WHAT. Before any theorem, let us physically count independent rows and independent columns for one small matrix, so the claim isn't abstract.

WHY. A believed example is worth ten proofs of faith. We want to witness the equality once, then explain it.

PICTURE. In the figure below, the three columns are drawn as arrows. Columns and point in genuinely different directions; column column (it lies on top of column 1's line, just longer). So only 2 independent column-directions.

  • — call this , the first direction.
  • — no new direction (dependent).
  • — call this , points off the line.

Column rank . We will confirm row rank in Step 2.

Figure — Rank of a matrix — definition, row rank = column rank theorem

Step 2 — Elimination reveals the count without guessing

WHAT. Reduce using row operations — replacing a row by (itself minus a multiple of another row) — until each nonzero row starts further right than the one above (echelon form). Then count the nonzero rows.

Term by term in the arrows:

  • means new row 2 old row 2 row 1. The is chosen exactly to zero out the leading under the leading .
  • zeros the under the same leading .
  • removes the duplicate so a hidden dependence becomes an honest zero row.

The underlined entries are the pivots — the first nonzero entry of each surviving row.

WHY row operations are legal here. Each new row is a linear combination of old rows, and old rows are recoverable from new ones. So the span of the rows never changes — the row space, and therefore its dimension (row rank), is untouched. (Full story: Gaussian Elimination & Echelon Form.)

PICTURE. The figure shows the row space as a shaded plane. Every operation slides a row within that plane; the plane itself does not tilt. When the third row collapses to , we learn the plane was only 2-dimensional all along: row rank . It matches the column count from Step 1 — but why it must match is Steps 3–7.

Figure — Rank of a matrix — definition, row rank = column rank theorem
Recall Check your grip

Why is counting nonzero rows in the original matrix wrong? ::: They can be nonzero yet dependent (like and ); only echelon form exposes true independence. What quantity did the row operations preserve? ::: The row space, hence the row rank.


Step 3 — Give the column rank a name and grab a column basis

WHAT. From now on, general matrix. Let

Here is just "how many independent column-directions exist". Pick actual columns that are independent and span all the others — call them . This is a basis of the column space.

WHY. A basis is the minimal instruction set: the parent note's LEGO idea. Every column of can be built from these arrows and nothing fewer.

PICTURE. The column space is drawn as an -dimensional flat (for , a plane inside ). The basis arrows are highlighted; every other column is a dot lying inside that flat, reachable as a mix of the highlighted arrows.

Figure — Rank of a matrix — definition, row rank = column rank theorem

Stack these basis columns side by side into one skinny matrix:

  • Each has entries (it lives in ) → rows.
  • There are of them → columns. That is why is .

Step 4 — Every column of is times a short recipe

WHAT. Because span the column space, column of (call it ) is some combination of them:

Reading each symbol:

  • — the -th column of the original matrix (an arrow in ).
  • — the amount of basis arrow needed to build . A single number.
  • The whole right side — "mix the ingredients in these proportions". This is exactly matrix multiplication read as combining columns.

WHY. We are turning " lives in the span" (a picture) into "" (an equation), so algebra can carry it forward.

PICTURE. For one chosen column, the figure shows the target arrow reconstructed tip-to-tail from scaled copies of and . The little numbers label the scaling.

Figure — Rank of a matrix — definition, row rank = column rank theorem

Collect the recipe of every column into one matrix , whose -th column is :

  • has rows (one per basis ingredient) and columns (one recipe per original column) → .
  • The shared inner dimension is the column rank. Hold that thought — it is the whole trick.

Step 5 — The same factorization secretly controls the rows

WHAT. Multiplication can be read by rows instead of by columns. Row of equals row of multiplied into :

Symbol by symbol:

  • — a short list of just numbers.
  • Multiplying it by mixes the rows of using those numbers as weights.
  • So the result — row of — is a linear combination of the rows of .

WHY this finishes the hard direction. Every row of is built from the same rows of . So all the rows of live inside the span of only vectors. A span of vectors has dimension at most :

PICTURE. Left panel: the columns of pour out of the columns of . Right panel: the rows of pour out of the rows of . Same tiny bottleneck feeds both worlds — that shared waist is the reason the two ranks are chained together.

Figure — Rank of a matrix — definition, row rank = column rank theorem

Step 6 — Flip the matrix to get the other inequality

WHAT. We proved row rank column rank for every matrix. Now apply that same result to the transpose (rows become columns, columns become rows).

Translate each side back:

  • Rows of are the columns of .
  • Columns of are the rows of .

Substituting:

WHY. Step 5 gave "" one way; transposing gives "" the other way. Two opposite inequalities can only both hold if the two numbers are equal.

PICTURE. The figure shows and as mirror images across the diagonal, with the two inequality arrows meeting in the middle to pin the ranks together.

Figure — Rank of a matrix — definition, row rank = column rank theorem

Step 7 — Degenerate and edge cases (the reader must never be surprised)

WHAT. Check every corner where the argument might wobble.

Case (the zero matrix). No independent columns. Then the column space is just the single point , dimension . Row space is also . Both ranks ; the factorization degenerates but the equality holds. ✔

Case full row rank (). All rows independent; is and invertible, has rows. Column rank also . Consistent with the bound below.

Case full column rank (). All columns independent; nothing collapses. Here .

Case square and (full rank square). Then the map loses no directions — it is invertible.

The universal bound. In all cases,

Why? The columns are arrows living in : you cannot have more independent arrows than you have arrows (), nor more than the dimension of the room they sit in (). So the rank is squeezed under .

PICTURE. A number line from to with a slider marking where a matrix's rank can sit, and the three named landmarks (zero matrix, full column rank, full row rank) pinned on it.

Figure — Rank of a matrix — definition, row rank = column rank theorem

The one-picture summary

Everything above compresses to a single diagram: the matrix squeezed through a waist of width . Columns flow out the left face of the waist; rows flow out the right face; the waist width is the rank, shared by both.

Figure — Rank of a matrix — definition, row rank = column rank theorem
Recall Feynman retelling of the whole walkthrough

Picture a matrix as a doorway. On one side you count how many truly different columns squeeze through — call that number . Now the trick: you can rebuild the entire matrix as " core columns, then a recipe sheet telling how to mix them" — that's . But look at that recipe sheet from the side: it also has exactly rows, and every actual row of the matrix is just a blend of those recipe-rows. So the rows can't need more than independent directions either. Rows columns. Then flip the matrix on its diagonal and run the identical argument to get columns rows. The only way both "less-than-or-equal" statements can be true at once is if the two counts are the same number — the rank. Rows and columns shook hands at the waist of width , and that handshake is the theorem.


Connections

Concept Map

read by rows

transpose argument

Matrix A m x n

Column rank r

Column basis matrix C

Factorization A = C R

Rows of A mix r rows of R

row rank less-equal r

column rank less-equal row rank

row rank = column rank

rank between 0 and min m n