Here a null-space vector means a column satisfying . The inverse/pivot proof below establishes its needed facts directly from the earlier elimination and matrix-product rules; it does not assume RREF uniqueness or abstract dimension theory. The complete null-space structure in §2.4 follows this section.
Reading route. The main argument connects one-sided inverses, pivots and unique solutions, then computes inverses and applies the product rules. Use the complete finite real matrix-product laws from 2.1. The foundations at the end prove the three elementary-matrix cases, both inverse products, reversal of a finite chain and elimination without using determinants or rank. The final route to 3.5 supplies finite basis existence for subsequent rank theory; that dimension result is not needed to compute an inverse.
A square matrix can send different inputs to the same output, or leave some outputs unreachable. An inverse must undo its action completely: every output must come from exactly one input. This requirement connects reversibility to the solution sets of . Entries are real unless another field is specified.
Before you start
Use matrix multiplication in its given order and recall that each elementary row operation is reversible. A system has a unique solution exactly when it is consistent and every variable column is a pivot column after reduction. Invertibility will guarantee this for every right-hand side of the appropriate dimension.
Left and right inverses
Definition 2.3.1
(Left inverse and right inverse)
Let be a matrix.
- A matrix is a left inverse of if .
- A matrix is a right inverse of if .
For rectangular matrices, a left inverse or a right inverse can exist alone. If both exist, however, they must coincide. The square case will give the stronger conclusion that either one-sided inverse already guarantees the other.
Definition 2.3.2
(Invertible matrix)
Let be a square matrix. We say that is invertible if there exists a matrix such that
The matrix is called the inverse of , and we write .
Theorem 2.3.3
(The inverse is unique)
Let be and let be . If is a left inverse of and is a right inverse, then . In particular, an invertible square matrix has exactly one inverse.
Proof
(Why the inverse is unique)
The assumptions are and . Associativity gives
No factors were interchanged. For an invertible square matrix, any two inverses satisfy these hypotheses, so they coincide.
What invertibility means
The equations defining an inverse restore every input vector. Diagonal matrices make that action especially transparent.
Worked example 2.3.4
(A diagonal matrix is easy to invert)
Let
Then
This works because each diagonal entry is replaced by its reciprocal, and the off-diagonal zeros stay zero. Multiplying by gives .
Equivalent formulations
Theorem 2.3.5
(Equivalent ways to recognize invertibility)
Let be a real matrix. The following conditions are equivalent:
- is invertible.
- is row-equivalent to .
- is a product of elementary row-operation matrices of order .
- has a left inverse.
- has a right inverse.
- is nonsingular: has only the zero solution.
- For every , the system is consistent.
- For every , the system has exactly one solution.
Equivalently, the columns of are linearly independent, or they span . When these conditions hold, the unique solution is .
Proof
(Where the square hypothesis enters the equivalence proof)
A left inverse forces the homogeneous solution to be zero: if , then . Conversely, suppose the homogeneous system has only the zero solution. In any RREF of , a free variable would produce a nonzero homogeneous solution. Thus every column has a pivot. Because is square, there are also exactly pivot rows, and the RREF is .
If a row-operation product satisfies , the reverse chain shows that is invertible and . Hence is invertible and is itself a product of elementary matrices. Conversely, any such product is invertible, and an inverse is in particular a left inverse. This connects conditions 1–4 and 6 without assuming uniqueness of RREF.
Now suppose . Then is a left inverse of the square matrix . The already proved left-inverse criterion makes invertible, and is invertible. This proves the right-inverse criterion without silently reversing a product.
If every is consistent, choose solutions of , where is column of . Their matrix satisfies , so the right-inverse criterion applies. Finally, when is invertible, proves existence, and any solution satisfies , proving uniqueness. Uniqueness for every right-hand side implies consistency for every right-hand side.
The column statements are translations: independence means that has only the zero coefficient vector, and spanning means that every has a representation . Thus no additional assumption about the columns is being introduced.
Row reduction and the inverse
Each elementary row-operation matrix is invertible; its inverse encodes the reverse operation, as proved in Reversing elementary row operations. If the chronological operations have matrices , their combined left multiplier is .
Apply every operation across the entire augmented matrix. Then
If the left block becomes , then . Since is invertible, and the right block is . If reduction leaves a missing pivot in the left block, the square matrix fails the equivalent conditions above. The method tests invertibility as well as computing an inverse; a complicated right block cannot compensate for a missing left pivot.
How to use the invertibility dictionary
Choose the criterion matching the given evidence: pivots, a one-sided identity, a nonzero null-space vector, or information about all right-hand sides.
Worked example 2.3.6
(A nonzero null-space vector proves non-invertibility)
Suppose is a square matrix and
Then cannot be invertible. Indeed, if existed, multiplying on the left by would give
The left side is , while the right side is . This would force , contradicting the given vector. Therefore the existence of one nonzero solution of already proves that is singular.
Worked example 2.3.7
(Use an inverse to solve a system)
Suppose
If , then multiply both sides by :
The inverse is not just a symbol for undoing ; it is an explicit formula for the unique solution.
Row-equivalence through invertible matrices
Theorem 2.3.8
(Row-equivalence is left multiplication by an invertible matrix)
Suppose and are matrices with rows. Then the following are equivalent:
- and are row-equivalent.
- There exists an invertible matrix such that
Moreover, once , we also have
A row-operation chain supplies such a product . Conversely, the dictionary expresses any invertible as a product of elementary matrices, so is obtained from by those row operations. Multiplying by recovers .
Worked example 2.3.9
(Reading a row-equivalence as one matrix equality)
Let
The matrix is the row-operation matrix for the move
So
If we call this new matrix , then . That single equation records the entire row operation. Since is invertible, and are row-equivalent.
Theorem 2.3.10
(Row operations preserve linear relations among corresponding columns)
Let and be row-equivalent matrices, and write their columns as
If
then
In particular, linear dependence and linear independence among corresponding columns are preserved by row-equivalence.
Multiplying by carries each relation forward; multiplying by recovers it. Thus the same coefficient relations hold in both directions, which also proves preservation of dependence and independence. The columns themselves generally change. The full RREF uniqueness argument and its role in rank are developed in 2.5 RREF uniqueness and well-defined rank.
Products and inverse order
Theorem 2.3.11
(A square product is invertible exactly when its factors are)
Let be real matrices. Then is invertible if and only if both and are invertible. In that case,
Proof
(Construct the inverse before using its name)
First assume the factors are invertible and set . Check both sides using associativity:
Only now may we conclude that . The reversed order places the inverse pairs next to each other; no commutativity is used.
For the converse, assume is invertible and write . We cannot yet use or . Instead,
Thus has a right inverse and has a left inverse. Both factors are square of the same order, so the previously proved one-sided criteria make them invertible. This use of the dictionary is essential to the converse.
Counterexample mode
The square hypothesis cannot be dropped
For rectangular factors the converse fails. With and , the product is invertible, yet neither factor is square, so neither is invertible. The proof breaks exactly where one-sided inverses are promoted to two-sided ones.
By induction, a finite product of square matrices of the same order is invertible exactly when every factor is invertible, and
Why the transpose also matters
Theorem 2.3.12
(Transpose, scalar multiples, and powers)
If is invertible, then and . For a nonzero real scalar , .
Every integer power is invertible, with . Here , and for a positive integer , .
The transpose formula follows by transposing both inverse identities, which reverses their factor order. The scalar formula follows by cancelling and in both products. Positive powers follow from the product theorem; negative powers apply it to , and the zero power is the identity. For a positive integer , invertibility of also implies invertibility of . That converse is false for , since even for singular square .
Products that equal the identity
Theorem 2.3.13
(A one-sided identity is enough in the square case)
Let and be square matrices of the same size. If
then both and are invertible, and
Worked example 2.3.14
(Cyclic identities from )
Suppose are matrices and
Group the product as
By the one-sided identity theorem, and are inverses of each other. Therefore
Now start from the identity just proved, not from an arbitrary reordering. Regroup as . The square one-sided identity theorem applied to these two factors gives
Only after that step may we regroup as . Applying the same theorem once more gives
Each new equality is obtained by moving a whole invertible factor past its inverse, using a previously established identity. No pair of the individual factors has been assumed to commute.
So , , and are forced to equal . Arbitrary reorderings such as or are not forced by ; matrix multiplication still does not commute.
Compute an inverse by row reduction
Worked example 2.3.15
(Find an inverse by row reduction)
Let
Start from :
Eliminate the entry below the first pivot:
Now scale the second row and clear the entry above the second pivot:
So
A family of inverse matrices
Worked example 2.3.16
(A parameterized inverse from row reduction)
For a real number , let
Begin with . Apply and to both halves. The result is
The four pivots in the left block are already . Clear the remaining entries in this order:
After the first operation, the right half of row 3 is . Rows 2 and 4 on the right are and ; the three operations on row 1 therefore give . Every step adds a multiple of another row, so no division by a parameter expression occurs. Each operation is reversible for every real , and the final augmented matrix is
Since the left block is for every real , the matrix is invertible for every real , and
Notice what this conclusion does and does not say. The parameter remains in the inverse; it is not a value to be solved for. The row reduction has shown that no value of creates a missing pivot in the left block.
Common mistake
(Do not treat every parameter as a restriction)
Sometimes a parameter appears because the answer is a family of inverses, not because the matrix fails for special values. The restriction comes from a missing pivot or an illegal division by zero, not from the mere presence of a symbol.
Reading supplied row-reduction tables
Worked example 2.3.17
(An inverse pair and a transposed system)
Suppose a reduction table shows that is row-equivalent to , where
Then the row-reduction result itself already says
The corresponding coefficient matrix is
Direct multiplication gives , which verifies this inverse pair. Now let
To solve , do not row-reduce again from the beginning. Since is invertible, is also invertible and
Therefore
The computation is short because the reduction table has already done the hard work.
Worked example 2.3.18
(Four inverse computations read by pivot columns)
For each matrix below, the method is the same: row-reduce , look only at the pivot pattern of the left block first, and read the inverse from the right block only if the left block becomes .
Case (a). For
one echelon stage has left block
There is no pivot in the fourth column. Hence is not invertible.
Case (b). Take from the preceding inverse-pair example. Its reduction reaches , so all four columns have pivots and . The same matrix used there to solve the transposed system provides an invertible case here.
Case (c). For
one echelon stage has left block
Again a pivot column is missing, so is not invertible.
Case (d). For
the reduction reaches , with
The identity left block certifies invertibility in cases (b) and (d). The missing pivots in cases (a) and (c) rule it out, regardless of the entries in the right block.
Worked example 2.3.19
(A final identity block controls the whole chain)
Suppose a row-operation chain carries through an intermediate matrix and finally to . After the last few operations, the final augmented matrix is
The left block is , so and
It follows immediately that is invertible and
The same chain can also be read as one left multiplication. Let be the product of all row-operation matrices in the chain. Since and , we have . Therefore, if the same row operations carry to , then
Multiplying by on the left gives
so
The same row-operation chain acts on every matrix by the same left multiplier . This is why the numerical reduction also determines the equation for .
Prove or disprove invertibility without determinants
Worked example 2.3.20
(A vector identity that proves invertibility)
Suppose is a matrix and
for every vector . Move the terms involving to the left:
Since , this says
Two matrices that agree on every vector are the same matrix, so
Thus is a left inverse of . Because is square, a one-sided identity is enough: is invertible, and its inverse is .
Worked example 2.3.21
(A contradiction proof for non-invertibility)
Suppose and are distinct matrices, and
We prove that is not invertible. Let
First compare and :
while
Using the assumptions and , we obtain
If were invertible, multiplying by on the left would give , contradicting the assumption that and are distinct. Therefore is not invertible.
Common mistakes
Common mistake
(Do not confuse one-sided inverses in the rectangular case)
For a non-square matrix, a left inverse need not come with a right inverse, and a right inverse need not come with a left inverse. If both exist, they coincide. For a square matrix, the equivalence theorem proves that either one-sided inverse guarantees a unique two-sided inverse.
Common mistake
(Do not guess invertibility from appearance)
A matrix can look simple and still fail to be invertible. The correct test is to row-reduce it, or to use one of the equivalent conditions above.
Common mistake
(Do not permute factors without justification)
From , it is legitimate to derive certain cyclic identities such as by using inverse theory. It is not legitimate to rearrange the factors as if commute.
Quick checks
Quick check
(If is invertible, what is ?)
Use the defining property of an inverse.
Solution · Answer
It is .
Quick check
(If is invertible, can the homogeneous system have a nonzero solution?)
Use the unique-solution statement.
Solution · Answer
No. Since has the unique solution , the homogeneous case has only the trivial solution .
Quick check
(If is invertible, is invertible?)
Use the transpose rule above.
Solution · Answer
Yes. is invertible, and .
Quick check
(If with invertible and the columns of satisfy , what relation must hold among the columns of ?)
Keep the same coefficients and use .
Solution · Answer
The corresponding columns of satisfy
Row-equivalence changes the columns themselves, but not the coefficient pattern in a linear relation.
Quick check
(Suppose are square matrices and . Which cyclic identity is forced: or ?)
Group the original product as .
Solution · Answer
is forced. Since , the square one-sided identity theorem implies that is the inverse of , so . The equality would reverse the order of the factors and is not forced in general.
Quick check
(In the parameterized inverse above, what is the entry of when ?)
Substitute into the first row, fourth column.
Solution · Answer
The entry is , so when it equals .
Quick check
(If for every vector , which matrix acts as the inverse of ?)
Move all terms to one side and look for a factorization involving .
Solution · Answer
The inverse is . Indeed, the vector identity gives ; for square matrices, this one-sided identity is enough to conclude that is invertible.
Quick check
(If row operations transform into , what is ?)
Read the right block only after confirming the left block is the identity.
Solution · Answer
. The same row operations that turn into turn into the inverse of .
Quick check
(Row operations take to , where is square. Explain why follows as well as .)
Distinguish what the row-operation product gives directly from what the square one-sided inverse theorem adds.
Solution · Answer
If is the product of the elementary matrices, the two blocks give and . Hence and directly. Because and are square of the same order, a left inverse is also a right inverse. Thus and . The square hypothesis is essential to this last implication.
Exercise
Quick check
(Suppose is invertible and . Prove that .)
Use the fact that the inverse of is unique.
Solution · Guided solution
Since is invertible, it has an inverse . Multiply the equation on the left by :
By associativity,
Because , this becomes
So any right inverse of an invertible square matrix must be the inverse itself.
Quick check
(Suppose for square matrices and . Prove that and commute.)
First use the square one-sided identity theorem, then expand .
Solution · Guided solution
Since , the square one-sided identity theorem gives
Now compute the commutator:
Regroup the two parts:
and
Therefore
So , which means and commute.
Related notes
This page depends especially on 1.4 Gaussian elimination and RREF, 2.1 Matrix multiplication, identity matrices, and linear systems, and 2.2 Transpose, symmetric, and skew-symmetric matrices.
The connection between a zero null space and uniqueness is developed in 2.4 Homogeneous systems and null space.
Foundations for matrix products and elimination
This section collects the foundations on which the invertibility results above rest. The matrix product laws come first, because associativity is what allows a sequence of row operations to be written as one product of elementary matrices; the construction of elementary matrices and the facts about elimination follow.
Proof of the finite real matrix product laws
For compatible finite real matrices, 2.1 proves associativity, both distributive laws, scalar compatibility and matrix-vector linearity directly from finite row-by-column sums. Associativity is what lets the chain below be written as and lets adjacent inverse pairs be cancelled; no factors are commuted. Linearity justifies subtracting two equations with the same right-hand side. Keep the stated matching sizes throughout. These laws are already proved before this unit, so their full proof is not repeated here.
Build the elementary matrix from the identity
Suppose an elementary row operation is meant to act on matrices with rows. Start with the identity matrix , apply the same elementary row operation to , and call the result . All scalars are taken from the underlying field of the matrices; in particular, every nonzero scaling factor has a reciprocal in that field.
Definition 2.3.22
(Elementary row-operation matrix)
The elementary row-operation matrix associated with an elementary row operation on -row matrices is the matrix obtained by applying to .
This matrix is also called an elementary matrix. The longer name keeps its connection with the specified row operation visible.
Equivalently,
The reason this definition is useful is the following theorem.
Theorem 2.3.23
(Elementary row operations are left multiplication)
Let be any matrix with rows. If is one elementary row operation and denotes the result of applying it to , then
So applying that elementary row operation to is the same as multiplying on the left by the elementary row-operation matrix obtained from the same operation on .
The multiplication must be on the left. Row operations change rows by mixing rows. Left multiplication forms new rows of as linear combinations of old rows of . Right multiplication would instead mix columns.
The dimensions make the same point. If is , then is , so is defined and remains . There is no assumption that is square. By contrast, a column-operation matrix acting on these same columns would have size and multiply on the right.
Why left multiplication performs the operation
Proof
(Verify the three elementary cases row by row)
Write the rows of an arbitrary matrix as , and let denote row of . The basic identity
says that a row of a left multiplier selects the corresponding row of . Now check the three elementary operations.
-
For , the matrix has row equal to , row equal to , and every other row equal to . Thus the rows of are the rows of with precisely rows and exchanged.
-
For , where , row of is and all other rows are unchanged. Hence row of the product is
while row remains for .
-
For , where , row of is and every other row is unchanged. Therefore the new row is
exactly as prescribed.
These cases exhaust the elementary row operations, so they prove for every compatible . The proof does not claim that an arbitrary manipulation of rows has such an elementary matrix; must be one of the three operations just checked.
Acting on an augmented matrix
Suppose is represented by the augmented matrix . An elementary row operation must act on the full augmented matrix, not separately on whichever entries happen to be convenient. The multiplication identity is
Thus the coefficients and the right-hand side undergo the same combination of rows. A vector satisfies if and only if it satisfies : the forward implication follows by multiplying the equation by , and the reverse implication follows by applying the reverse elementary operation. This is the precise reason the solution set is preserved.
Changing only while leaving fixed, or changing only , generally produces a different system. The augmentation bar is therefore a visual separator, not a boundary at which a row operation may stop.
A sequence of elementary row operations becomes one matrix product
The real payoff is not just representing one elementary row operation. A whole sequence of elementary row operations becomes one product of elementary row-operation matrices.
Theorem 2.3.24
(A sequence of elementary row operations as a product)
Suppose
Then
Here every is an elementary row operation on matrices with the same number of rows. The product represents the whole sequence, although the product itself need not be a single elementary row-operation matrix.
The order in this formula is important. The first row operation appears closest to , because it is applied first:
Reverse row operations and inverses
Every elementary row operation has a reverse operation:
- the reverse of is ;
- the reverse of , with , is ;
- the reverse of a row swap is the same row swap.
This gives a precise matrix statement.
Theorem 2.3.25
(Elementary row-operation matrices are invertible)
Every elementary row-operation matrix is invertible. Its inverse is the elementary row-operation matrix corresponding to the reverse elementary row operation.
Proof
(Why the reverse matrix is a two-sided inverse)
Let represent an elementary row operation , and let represent the reverse elementary operation. For every matrix with rows, applying and then reversing it restores . By the left-multiplication theorem,
This statement holds for every such ; in particular, put to obtain . Reversing first and then applying similarly gives . Hence
Concretely, a swap is its own inverse, scaling by is undone by scaling by , and adding times row to row is undone by adding times row to row .
For example, if
performs , then
performs .
This is the algebraic reason elementary row operations are reversible, and it explains why row reduction is so closely connected to invertible matrices.
Proof
(Undo the last operation first)
Let encode a chronological chain on matrices with rows, so its combined multiplier is . Each inverse represents the reverse of the corresponding elementary operation. To recover the input, the first move must undo , because that was the last change made to the rows. The remaining reverse moves undo in that order. Consequently the reverse multiplier is
There are two orders to distinguish: the time order of the reverse operations starts with , while the written product places that first action nearest the matrix being restored. For three steps, associativity gives
The other product cancels adjacent inverse pairs starting with and also equals . The same successive cancellation works for any finite chain. No factors have been commuted, and the argument does not require the matrix being transformed to be square.
Finite elimination terminates and preserves the solution set
Let , , with positive finite integers . The permitted row operations are an exchange of two distinct rows, multiplication of a row by a nonzero scalar, and addition of a scalar multiple of one row to a different row. Their inverses are respectively the same exchange, multiplication by the reciprocal, and subtraction of that multiple. Applying an operation to the entire augmented array therefore preserves exactly the solutions of : the new equations are consequences of the old, and its inverse gives the reverse implication. Each operation is also multiplication on the left by the result of applying it to the identity matrix, an invertible elementary matrix.
Scan the coefficient columns from left to right, maintaining the next unused row. If the current column has a nonzero entry in an unused row, exchange that row into the next position, divide by its nonzero pivot, and subtract multiples of it from every other row to clear that column. Advance the unused-row index. If every unused entry in the column is zero, skip the column. Previously chosen pivot columns remain unit columns: the current unused rows have zeros in them, so the new pivot row and every subsequent subtraction preserve those zeros and earlier pivots. There are only column scans and at most pivots, each with finitely many row operations. Thus the algorithm terminates. At its end, the nonzero coefficient rows have increasing pivot columns and zeros below and above each pivot; any remaining coefficient row is zero. This proves the reduced echelon form used below, without assuming it will eventually appear.
Classification and the homogeneous freedom
Write for the number of pivots in the coefficient part. A zero coefficient row with a nonzero transformed right side is the impossible equation , so the system has no solution. Otherwise assign arbitrary real values to all nonpivot variables. In each pivot row, its pivot variable equals the transformed right side minus the displayed linear combination of these free variables; no other pivot variable occurs. These formulas both construct a solution and recover every solution. If the solution is unique. If , changing a free variable changes the vector, giving infinitely many solutions.
For the free variables can all be zero, giving the zero solution. If , set one free variable to one and the others to zero, and use the pivot formulas. This constructs a nonzero homogeneous solution. If , the formulas force every homogeneous variable to zero. For a consistent system, fixing one solution , subtraction proves that every solution has the form with , and substitution proves the converse.
For square , if every column has a pivot, the coefficient form is . The product of the finitely many elementary matrices satisfies . Since is invertible, and therefore also : is a two-sided inverse. If a pivot is missing, the nonzero homogeneous solution constructed above rules out any inverse. This also justifies applying the same row operations to to obtain in the invertible case.
Finite basis existence and extension, without a counting assumption
The complete finite basis existence and exchange proof in 3.5 starts with a finite spanning list in a real vector space. It proves the bound on independent lists by replacement, then constructs a subspace basis and extends a prescribed independent list by bounded selection; the zero space has the empty basis. These facts support the later rank and dimension theory. They are not premises of the inverse/pivot equivalence proved here: that argument uses the explicit elementary inverses, finite elimination and nonzero free-coordinate solution already given above. Thus the prerequisite directions do not run in a circle.
Further study
The two demonstrations below run the tests of this page on concrete matrices. The first row-reduces the block matrix : watch whether a pivot appears in every column of the left block, and check the resulting inverse on both sides, as in the section on computing an inverse by row reduction. The second reduces an augmented matrix with a coefficient part. A pivot appears in every coefficient column, which is the situation in which is invertible and has exactly one solution.
Follow one inverse-by-row-reduction example
Apply each row operation to the whole augmented matrix . When the left block becomes I, read from the right block.
[A | I]
| 1 | 2 | 1 | 1 | 0 | 0 |
| 0 | 1 | 1 | 0 | 1 | 0 |
| 2 | 3 | 4 | 0 | 0 | 1 |
1pivot used by this operation0changed in this stepleft of the bar: A; right: the same operations applied to I
Start with A = [[1,2,1],[0,1,1],[2,3,4]] and augment it by I. Apply every row operation to all six entries of the row; the right block records the same operations applied to I.
- Pivot in focus
- Row 1, column 1: 1
- Changed in this step
- None (starting matrix)
Left block not yet in row echelon form
Row 3 of the left block still has 2 in column 1, which is not to the right of the pivot in row 2. Whether A is invertible is not decided yet.
NoticeA row operation acts on the whole row of [A | I], right block included; otherwise the right block no longer records what was done to I.
Trace one full row-reduction path
Each step applies one group of elementary row operations. Watch the entries above and below each pivot become 0.
Choose the first pivot in column 1.
| 1 | 2 | 2 | 4 |
| 1 | 3 | 3 | 5 |
| 2 | 6 | 5 | 6 |
1pivot in focus0changed in this stepright of the bar: constants
Start with the augmented matrix. The first pivot should help us clear the entries underneath it.
- Pivot
- Row 1, column 1: 1
- Changed in this step
- None (starting matrix)
Not yet in row echelon form
Row 2 still has 1 in column 1, which is not to the right of the pivot in row 1.
NoticeColumn 1 already has a convenient pivot 1 in the first row, so we do not need a row swap.