A matrix that sends the whole plane onto a line has determinant zero. A target on that line is reached by infinitely many inputs, a target off the line by none, and the determinant, which is computed from the matrix alone, cannot tell the two targets apart. When the determinant is not zero, every target has exactly one input, and Cramer’s rule writes each coordinate of that input as a ratio of two determinants. This lesson proves the determinant test for invertibility, sorts the right-hand sides of a singular system into reachable and unreachable ones, derives Cramer’s rule and compares it with elimination. A tuple such as stands for a column vector.
Key terms
Determinant test for invertibility
Definition A real matrix is invertible if and only if . In that case
If is invertible, then , and the product rule gives , so neither factor is . If is not invertible, its columns are linearly dependent, and a matrix with dependent columns has determinant . So a nonzero determinant forces to be invertible. Elimination tells the same story. Reducing with row swaps and replacements to an echelon form , which is upper triangular, gives , which is nonzero exactly when every column has a pivot. For an matrix the following statements are therefore equivalent.
- The determinant is not zero.
- The matrix is invertible.
- The matrix has pivots, so .
- The null space is .
- The columns of form a basis of .
- The system has exactly one solution for every in .
Only square matrices have determinants, so a rectangular matrix or an augmented matrix is studied with rank instead.
In plain words A nonzero determinant means the map keeps full dimension, so it can be undone. A zero determinant means some direction is flattened, and nothing can bring it back.
Example The matrices
have and . So is invertible and , found without computing . The matrix is singular, and indeed its columns satisfy .
The test separates zero from nonzero, and the size of a nonzero determinant does not measure how close a matrix is to singular. The matrix has determinant , yet solving with it only multiplies by . The matrix has determinant , yet it stretches one axis times as much as the other. How sensitive a solution is to small changes in the data is the subject of conditioning.
Singular square system
Definition A square system , with of size , is singular when is singular, that is, when . Such a system never has exactly one solution. Either it has no solution, or it has a solution , and then its solution set is
which is infinite, because contains a nonzero vector and all of its multiples .
In plain words A zero determinant rules out a unique answer, but it does not say whether there is any answer. That depends on the right-hand side.
Example Let
For the equations are and , and the second is twice the first. Taking gives , so the solutions are
Here is one particular solution, and spans , since . For instance, gives the solution .
Reachable and unreachable right-hand sides
Definition A right-hand side is reachable for a matrix if for some , that is, if lies in the image . Otherwise it is unreachable, and the system has no solution. For an matrix with , every in is reachable. When , the image is a subspace of dimension , so some right-hand sides are reachable and others are not. The number depends on alone, so it cannot decide which. Row reduction of the augmented matrix does decide, since the system is inconsistent exactly when an echelon form has a row with .
In plain words A singular map covers only a line, a plane or another proper subspace of its output space. Targets on that subspace are reachable, each by infinitely many inputs. Targets off it are not reachable at all.
Example For above, is the line spanned by , made of the vectors whose second coordinate is twice the first. So is reachable and is not. Row reduction shows the same thing. For it gives
and for it gives
The last row of the second reduction says , so that system has no solution. Both systems have the same coefficient matrix and the same determinant .
Cramer’s rule
Definition Let be a real matrix with , let be in , and for each let be the matrix obtained from by replacing column with , keeping every other column in place. Then the unique solution of is given by
To see why, write the columns of as , so that . By linearity in column , the number is the sum over of times the determinant of with column replaced by . For that matrix has two equal columns, so its determinant is . For it is itself. Hence , and dividing by gives the formula.
In plain words To find one unknown, put the right-hand side into that unknown’s column and divide the new determinant by the old one. The rule needs . When the division is undefined, and an expression such as does not pick out a solution.
Example The system , has
Replacing each column in turn by gives
Substituting back, and .
Cramer’s rule versus elimination
Definition For an system with , Cramer’s rule and elimination give the same unique solution, but for larger at very different cost. Cramer’s rule needs the determinants . Computed by elimination, each of them costs about as much as solving the whole system once by elimination, so the rule does roughly times the work. Computed by full cofactor expansion, each is a sum of products. Elimination also handles , where it decides consistency and describes every solution. A factorization , or when rows must be swapped, is computed once and then solves each new right-hand side with two triangular solves. Cramer’s rule suits small systems, especially when only one unknown is needed or the entries are symbolic, and it shows how each coordinate of the solution depends on .
In plain words Cramer’s rule is an exact formula that explains where the solution comes from. Elimination and factorizations are how solutions are computed for anything beyond a few unknowns, and elimination keeps working when the matrix is singular.
Example The system , above takes one elimination step. The replacement leaves , so , and back-substitution gives , so . For the singular system , the two numerators would be
so Cramer’s formula would read and say nothing, while elimination produced the whole line of solutions. For a system, a full cofactor expansion of each of the determinants has terms.
Check yourself
- For which numbers is the following matrix invertible?
Show the answer
Expanding along the first column, whose middle entry is ,
So is invertible exactly when . For the third column is the sum of the first two, .
- Use Cramer’s rule to find only in the system with
Show the answer
Expanding along the first row,
Replacing column with gives
So . The full solution is , and it checks in all three equations, since , and .
- Let be the matrix with every entry equal to , and let . A student finds and , and concludes from that has infinitely many solutions. Is that right?
Show the answer
No. Each still contains two equal columns of ones, so its determinant is for every and carries no information about . The first two equations read and , which contradict each other. The replacement on produces the row , so is unreachable and the system has no solution. Cramer’s rule applies only when .