Every invertible square matrix is a product of elementary matrices. Gaussian elimination reduces to the identity matrix by elementary row operations, giving . Reverse their order and invert them to write . Each inverse is again elementary. Conversely every elementary matrix is invertible, so every such product is invertible. The identity may be represented by the empty product.
Gaussian elimination Created 2026-09-24 Updated 2026-10-25
Gaussian elimination applies elementary row operations to reduce a linear system to triangular form. Dense elimination uses arithmetic operations.
Gaussian elimination solves a linear system by removing one unknown from later equations at each step. Write the coefficients and right-hand side together as an augmented matrix . Apply the same elementary row operations to both parts until the coefficients form a row echelon form; for a square invertible matrix, this gives an upper triangular matrix system. Then back substitution recovers the unknowns from the last equation upward. The useful simplification is that each successive equation involves fewer unknowns, while the set of solutions stays the same.
Why do elementary row operations preserve solutions? Interchanging equations changes only their order. Multiplying an equation by a nonzero scalar can be undone by division. Replacing equation by itself plus times equation , with , can be undone by adding times the unchanged equation . Equivalently, an elementary matrix is an invertible matrix, so if and only if . Applying an operation to without also applying it to loses this equivalence.
At step , choose a nonzero pivot element after any row interchange. For every , form the elimination multiplier and perform the elementary row operation . Its coefficient in column becomes in exact arithmetic. Later operations combine rows that already have zeros in earlier columns, so those zeros survive. If an active column has no nonzero candidate, general row echelon form reduction skips it; a square invertible matrix always has a candidate at each step with suitable row interchanges. Partial pivoting also considers roundoff error when selecting the candidate.[ref]
For a dense matrix with one right-hand side, the classical algorithm uses arithmetic operations over the real numbers, counting each addition, subtraction, multiplication and division as one. At step , the coefficient update has entries, each costing one multiplication and one subtraction; the elimination multipliers, right-hand-side updates and back substitution contribute lower-order terms. Searching for partial pivoting adds comparisons, and storing the dense coefficients uses space. These assumptions exclude the different storage and work patterns of sparse Gaussian elimination; the exact loop counts appear in LU factorization and solve costs. Here denotes Big O notation.
Recording the same steps as an LU decomposition makes Reusing LU factors for multiple right-hand sides possible. This is useful whenever the coefficients stay fixed while the forcing vector changes: the expensive elimination is done once. The choice of pivot element matters even when the linear system is well conditioned, as Tiny-pivot roundoff in Gaussian elimination demonstrates.
K1 of a ring 2026-10-13
Stable invertible matrices, with stabilization , form the stable general linear group. Its elementary subgroup is its commutator subgroup, and the displayed quotient is its abelianization. Elementary matrices lift along any surjective ring map, even when arbitrary invertible matrices do not lift. Over a field, determinant identifies with its multiplicative unit group.
Use finitely generated right projective modules throughout. The group K0 of a ring is the Grothendieck group of their direct-sum monoid, with . The group K1 of a ring is , equivalently the abelianization of the stable general linear group. Stabilization is ; is generated by elementary transvections. The stable elementary subgroup is the commutator subgroup: elementary transvections are commutators using a third index, and stable block interchange and elementary row identities make the quotient abelian.
Write for the lower-right ring, printed as in the source. A Milnor square has unital commuting maps, is a pullback
and has at least one of surjective. Interchange the two sides if necessary so that is surjective.
We first establish the patching fact used in the proof. For projective and an isomorphism , set
For free modules denote the result by . The block matrix identity
expresses as elementary matrices. Their entries lift through , and their elementary lifts remain invertible. A change of basis on the first side then trivializes this gluing. Thus , proving that is finitely generated projective. Notice that we lifted elementary matrices, not arbitrary invertible matrices.
For general , choose and . The reductions of and are isomorphic: insert the common reduced and reorder the two complements. Patch them by such an isomorphism. The sum with now patches two free modules of equal size, so is projective by the free case, making each summand projective. The same free change of basis followed by these direct-summand projections shows that extension to recovers . Conversely, write an -projective as the image of an idempotent over a finite free module. Since matrices over the pullback are compatible pairs of matrices, applying the compatible idempotents to the free pullback reconstructs this projective from its two reductions. Compatible module isomorphisms patch as well. This proves Milnor patching of projective modules in the form needed below.
The diagonal maps in the sequence are extension of scalars; the two maps to are differences . Define the connecting map by
It is unchanged by stabilization or elementary multiplication: an elementary factor lifts through and changes a free basis in the gluing. The identity and the preceding elementary factorization show after matching sizes. Thus is an additive homomorphism on .
Exactness at . If the two reduced classes agree, choose stabilized representatives of the same size. Their reductions differ by an elementary matrix over . Lift to an elementary matrix over and adjust without changing its class. Its reduction now equals that of . The compatible pair and its compatible inverse give an invertible matrix over , so the original pair of classes is in the diagonal image. The reverse containment follows from commutativity of the square.
Exactness at . A gluing obtained from a change of basis over either upper ring patches a free module, so the difference-map image is killed by . Conversely, means that becomes free after adding a common projective summand. Add a complement of that summand to obtain an actual isomorphism . Its two local bases express . Therefore , which lies in the image of the difference map. This uses stable equality of projective classes, not cancellation of arbitrary projectives.
Exactness at . Connecting classes reduce to zero on both sides. Conversely, write a class in the kernel as by adding a complement to its negative projective term. Its reductions have the same classes as . Equality in becomes an isomorphism after a finite common free summand, by taking a complement to the auxiliary projective. Use one sufficiently large free summand on both sides. The stabilized is then locally free with gluing , so the original class is .
Exactness at . Write a kernel pair as , using complements and padding to make the free sizes equal. Their reduced positive classes agree. Adding a common finite free summand makes those reductions isomorphic. Patch the resulting projectives, and subtract the matching free -module. Its restrictions are the desired pair. The reverse containment is immediate because both reductions to agree.
These arguments prove the Mayer-Vietoris sequence in algebraic K-theory
No zero is inserted at either end; this fragment does not assert injectivity at the first term or surjectivity at the last.
For the group ring of the cyclic group, take the cyclotomic Milnor square
The maps send the cyclic generator to and to ; the lower map sets , and the right map reduces modulo . Since , . To verify the pullback, represent an element by a polynomial of degree at most . If both evaluations vanish, it is a constant multiple of the minimal polynomial of an algebraic element , and evaluation at one forces that constant to be zero. Conversely, represent by of degree below . For a compatible integer , is divisible by ; replacing by yields the pair . The right map is surjective, so this is a Milnor square.
The hinted cyclotomic units are . If with , the geometric sum is their inverse, because . Their residues are , covering every unit of the common field. Gaussian elimination identifies with by determinant. Thus is surjective, and the connecting map vanishes.
The remaining exact sequence injects into , with image . Here , and reduction of a projective over the integral domain has dimension its rank: localize at , where the projective is free, and compare its residue-field dimension with its fraction-field dimension. Projection onto the second factor is therefore a bijection on this kernel. Hence extension along the cyclotomic evaluation gives
The essential step is reduction of cyclotomic units at the ramified prime; surjectivity of a ring map alone would not imply surjectivity on .
Put and . These elementary matrices belong to the special linear group. Let have determinant one. If , elementary row elimination gives
The remaining diagonal matrix is also a product of the given generators. Indeed, for , direct multiplication gives
Hence . If , its determinant forces , and has upper-left entry . The established case applies to it, and is again generated. No division by two was used, so the proof works over every field. The upper and lower elementary unipotent matrices generate .
The row rank of is the dimension of the span of its rows in ; its column rank is the dimension of the span of its columns in . Elementary row operations replace rows by invertible linear combinations, so preserve their span. They also preserve every column relation: if and only if for an invertible elementary matrix . Reduce to row echelon form , with nonzero rows. These rows are independent because their leading entries occur in distinct, successively later columns. The pivot columns are independent by their triangular pivot submatrix, while every column lies in the -dimensional coordinate space supported on the nonzero rows. Thus both ranks of , and hence both ranks of , equal . Row rank equals column rank.
Elementary column operations replace columns by invertible linear combinations and preserve their span. Equivalently, right multiplication by an invertible elementary matrix preserves row relations, since if and only if . Therefore either elementary row operations or elementary column operations preserve the matrix rank, and any finite sequence gives .
For the block matrices, put . The explicit invertible multiplications
follow by first subtracting times the lower block row from the upper one and then subtracting the first block column times from the second. Changing the sign of the upper block row gives . These operations preserve matrix rank, proving that the two specified block matrices have equal rank. Their off-diagonal form gives , since the two image components occupy independent coordinate blocks.
Choose independent columns of and independent columns of . Select the corresponding columns from the first block column of and from the second. In a linear relation among these selected columns, the upper coordinate block forces every coefficient of the first selection to vanish; the lower block then forces every coefficient of the second to vanish. Consequently . Combining this with the equality of block ranks proves the Frobenius rank inequality:
An elementary row operation is one of three operations: interchange two rows, multiply one row by a nonzero scalar, or add a scalar multiple of one row to a different row. Each operation is reversed by another operation of the same kind.
Performing such an operation on an matrix is equivalent to left multiplication by the elementary matrix obtained by applying that operation to the identity matrix. Each elementary matrix is invertible, with inverse corresponding to the reverse operation. Thus a sequence of operations gives
For square matrices, if were invertible, then would have inverse . Hence if is singular, must be singular as well. In fact the two are invertible together, because gives the converse.
An elementary row operation is one of three reversible changes: interchange two rows; multiply one row by a nonzero scalar; or add a scalar multiple of one row to a different row. Their inverses are, respectively, the same interchange, multiplication by the reciprocal, and addition of the negative scalar multiple.
Applied to an augmented matrix, these changes interchange linear equations, rescale an equation by a nonzero factor, or add a multiple of one equation to another. Every old solution satisfies the new equations. Applying the inverse elementary row operation gives the converse, so the solution set is unchanged at every step. Equivalently, all the operations together give
where is an invertible matrix, a product of elementary matrices.
For an matrix, the corresponding elementary matrices are , because the operation is implemented by left matrix multiplication. Apply the desired elementary row operation to the identity matrix . Writing for the matrix unit with its only nonzero entry, , in position gives:
Indeed, these matrix products interchange rows , scale row , and add times row to row , respectively. The displayed inverses undo precisely those operations. Algebraically, when , so ; the other two inverse identities follow immediately from their row actions. Thus every elementary matrix is an invertible matrix.
An elementary matrix acts on rows by multiplication on the left. Apply the desired elementary row operation to the identity matrix to construct it. In the order requested, the three elementary matrices and their inverse matrices are
The inverse operations halve row 1, add twice row 1 to row 3, and interchange rows 2 and 3 again, respectively.
Use and , followed by . These elementary row operations give
The elimination multipliers are , , . Record them in the unit lower triangular matrix :
To see the elementary matrix relation directly, let , and , where has a single 1 in position . Then , and reversing and inverting these operations gives . Direct matrix multiplication also verifies the stated LU decomposition.
Let be standard coordinate columns. The required elementary matrix is
It is the identity matrix with the extra entry in position . Left matrix multiplication implements the row operation: all other rows are unchanged. Since , is a lower triangular matrix with every diagonal entry one. Part (a) therefore gives and
Hence adding a multiple of one row to another leaves the determinant unchanged, even if is singular.
An elementary matrix acts on rows by left multiplication. In the stated order, the three matrices are
The first scales row 3, the second adds times row 2 to row 4, and the third swaps rows 1 and 4. Right multiplication would instead perform column operations.
First add row 1 to rows 2 and 3. This is the product of two elementary matrices, written compactly as
Swap rows 2 and 4 with , then subtract half of the new row 2 from row 3 with :
This gives the upper triangular matrix
Because , rearranging yields the convention , where
The conjugation by moves the earlier elimination multipliers to the appropriate rows. Ignoring this permutation when forming would give an incorrect PLU factorization. Here the same permutation is its own inverse, so also holds.
The required elementary matrix is
Left multiplication exchanges the two rows. Applying the same exchange twice restores every row, so .
Each elementary matrix is obtained by applying one invertible elementary row operation to the identity matrix. Its inverse is the elementary matrix for the reverse operation. A product of elementary matrices is therefore invertible and has full rank .
Conversely, if , Gaussian elimination has a pivot in every column and reduces to the identity. Writing the successive row operations as left multiplication gives . Hence , a product of elementary matrices. This proves both directions of the elementary-matrix factorization theorem.
Left multiplication by an elementary matrix adds a multiple of row one to its designated target row. The first-column entries below the pivot are , so , , . The corresponding row operations are , , and . Since none changes row one, their sequential application gives the required three eliminated first-column entries and the displayed remaining entries.
Row rank Created 2026-10-14 Updated 2026-10-18
The row rank of a matrix is the dimension of the vector space spanned by its rows. Elementary row operations preserve this row space; multiplication on the right by an invertible matrix preserves all linear relations among the rows.
To see why row rank equals column rank, write a reduced row echelon form as , where is a product of elementary matrices and is an invertible matrix. Reversibility of the row operations gives equal row spaces for and . Also if and only if , so the columns have exactly the same linear relations. If has nonzero rows, its pivot columns are the first standard basis vectors of and span its column space. Its nonzero rows are linearly independent, since their matrix entries in the pivot positions form an identity matrix. Both dimensions therefore equal , and both counts transfer back to .
Work over the rational numbers, allowing unknowns in the real numbers when interpreting the geometry. Consider four equations in three unknowns:
The third row of is the sum of its first two rows, and the fourth is their difference, second minus first. The same relations must hold on the right: consistency requires and . The latter condition already holds. Gaussian elimination makes this compatibility test explicit while exposing the remaining freedom.
Apply the elementary row operations in this order, using each row's current value:
then and . The resulting augmented matrix is in row echelon form for every :
When , the third row has its pivot element in the augmented column. It says , so the linear system has no solution. When , that entire row vanishes and only two pivot elements remain. More equations than unknowns therefore do not force a unique solution: some equations may repeat information.
The final operation reduces the coefficient block to
The product of all six elementary matrices is
Direct matrix multiplication verifies both displayed transformations. Its determinant is one, so this transformation is reversible. In particular, the third row of extracts the discrepancy between the third equation and the sum of the first two.
Figure 1.
Row echelon form exposes compatibility; a right-hand-side pivot element distinguishes inconsistency from a free variable in a linear system
. Details.
For , is the reduced row echelon form of the full augmented matrix. For , only its coefficient block is reduced: scale the third row by and clear the entries above its augmented pivot element. The full reduced row echelon form is then
The last column is part of the matrix when testing the echelon conditions. Calling fully reduced before clearing that column would miss this distinction.