Answers · The mathematics underneath
What does it mean when a matrix doesn't have full rank?
In shortA matrix lacks full rank when it cannot reach as many independent directions as its shape allows, so it loses information and cannot be reversed.
A matrix lacks full rank when its rank is below the largest value its shape allows: for an matrix. For a square matrix that means : some non-zero input is sent to zero, so two different inputs produce the same output and the map has no inverse.
What the rank counts
Rank is the number of independent directions among the columns, which is the same as the number of independent directions in the reachable set. The columns are the destinations the matrix can mix, so every output is a mixture of them. If the columns repeat a direction, the reachable set is smaller than the output space. The inputs sent to zero are the destroyed directions. They form a flat set through the origin, and their number satisfies , where is the number of columns. Knowing any two of , and gives the third. Full rank means for a square matrix; not full rank means .
Take . Its columns are and , so there is only one independent column direction: . The input gives , so . And , the number of columns. Any output is , so the reachable set is the line through , not the whole plane.
Non-zero rows are not the count
It is tempting to count non-zero rows and call that the rank. This matrix has two non-zero rows, yet its rank is . The rows are and , which are also multiples of one another, so they do not add a second independent direction. Counting non-zero rows can overstate rank because a row can be non-zero and still be a combination of the others. Rank is a dimension, not a tally of entries that happen to be non-zero. The determinant makes the same point: , so the two columns do not span the plane.
The loss shows up as duplicate outputs. The two inputs and differ by , the vector sent to zero, and they land on the same output . From alone there is no way to tell which input was used. That is why a square system with a non-full-rank matrix either has no solution or infinitely many: the target may lie outside the reachable line, or it may lie on it with a whole line of inputs behind it. If the target is outside the line, no input can hit it; if it is on the line, every solution differs by a destroyed vector. It cannot have exactly one solution.
Nearly full rank
With exact arithmetic, a matrix is either full rank or not. With measured data the distinction can collapse. Two columns may be nearly multiples without being exact multiples, so the exact rank is and the destroyed set is only the origin, yet one direction is stretched by a tiny factor. If the stretch is , running the map backwards along that direction multiplies noise by . The matrix passes the exact test and fails the useful one. The same matrix can look perfectly invertible in exact arithmetic and still produce answers that swing wildly when a measurement changes in the sixth decimal place. The honest question is how many directions survive by a margin worth trusting, which needs a number attached to each direction, not just a count.
For an matrix the bookkeeping still uses , the number of columns. Full rank means ; if the matrix is wide, full rank still leaves destroyed directions, because there are more inputs than outputs. Not full rank is stronger: , so the loss is larger than the shape alone forces. In that case the columns fail to span as many directions as the shape allows, and the missing directions are exactly the ones the matrix cannot reach.
Worth keeping
- Rank is the number of independent directions in the reachable set, not the number of non-zero rows.
- For a square n by n matrix, rank plus the number of destroyed directions equals n.
- A matrix can be exactly full rank and still be numerically useless if one direction is stretched by a tiny factor.
Where this goes next
This question is one step of Matrices as Maps, a course that works through its subject from the beginning. The page that teaches this part of it is What a Map Throws Away, and it reads the whole way through whether or not you have an account.
What an account changes is the practice: problems standing under every idea, marked with a reason rather than a tick, in a copy of the course that is yours.
Read that pageThe whole courseOther questions people ask about this
- Why do eigenvectors stay in the same direction after a transformation?An eigenvector is defined as a vector that a matrix sends to a scaled copy of itself, so staying on its line is the condition that selects it, not a property of ordinary vectors.
- What's the difference between singular values and eigenvalues?Singular values measure stretching along perpendicular directions and exist for every matrix; eigenvalues measure directions a square matrix leaves on their own line.
- Why doesn't matrix multiplication work like regular multiplication where order doesn't matter?Matrix multiplication means doing one transformation and then another, and reversing that order usually lands a vector somewhere else.
- Why do the columns of a matrix tell you where the basis vectors go?A matrix lists where each coordinate axis lands, one destination per column, because feeding in a single axis picks out exactly that column.
- What is the difference between variance and standard deviation?They measure the same spread: variance is the average squared distance from the mean, standard deviation is its square root, so you report the standard deviation and calculate with the variance.
- How do you make a vague claim precise enough to tell whether it's true?Fix what is being talked about, what is asserted, which cases are covered and the cut-off, then name an observation that would prove it false.