MatrixStep

Guides7 min

Elementary Matrices and Row Operations: Why Elimination Finds the Inverse

A row operation can also be written as "multiply the matrix on the left". The matrix you multiply by is an elementary matrix. This idea is essential for understanding why elimination gives you inverses and determinants.

What is an elementary matrix?

An elementary matrix is what you get by applying a single row operation to the identity matrix I. Since there are three kinds of row operation, there are three kinds of elementary matrix.

The key fact is one line. Applying a row operation to a matrix A gives the same result as multiplying A on the left by the elementary matrix E built from that row operation: the result is EA.

Example matrix

A =1234567810

1. Swapping two rows

Multiply by E₁, the identity with rows 1 and 2 swapped.

E₁ =010100001×1234567810=4561237810

Rows 1 and 2 of A have been swapped. Multiplying by the same matrix again restores the original, so E₁² = I.

2. Multiplying a row by a constant

E₂ is the identity with row 3 multiplied by 2.

E₂ =100010002×1234567810=123456141620

Only row 3 of A has been doubled. To undo this, use the elementary matrix that multiplies row 3 by 1/2.

3. Adding a multiple of one row to another

R₃ ← R₃ − 7R₁ corresponds to E₃, the identity with −7 placed in row 3, column 1.

E₃ =100010−701×1234567810=1234560−6−11

The first entry of row 3 is now 0. This is exactly the step in elimination that clears the entries below a pivot.

Inverses of elementary matrices

Every elementary matrix is invertible, and its inverse is also an elementary matrix: the one for the row operation that undoes the original.

E₃⁻¹ =100010701(R₃ ← R₃ + 7R₁)
100010−701×100010701=100010001

Determinants of elementary matrices

This matches exactly how row operations change the determinant, as seen in properties of the determinant, because det(EA) = det(E)·det(A).

Why elimination gives the inverse

Let E₁, E₂, …, Eₖ be the elementary matrices for the row operations that turn A into the identity, in order. Then Eₖ…E₂E₁A = I, so Eₖ…E₂E₁ is precisely A⁻¹. Applying the same row operations to [A | I] accumulates this product on the I side, which is where A⁻¹ appears. Turning the equation around, A is a product of inverses of elementary matrices. This is the theory behind Gauss-Jordan elimination.

Common mistakes

FAQ

How do column operations work?

Multiplying A on the right by the same elementary matrix performs the corresponding column operation. For example, AE₁ swaps columns 1 and 2 of A.

Can every invertible matrix be written as a product of elementary matrices?

Yes. An invertible matrix reduces to the identity by elimination, so it can be written as a product of elementary matrices.

Are elementary matrices a tool for actual computation?

Mostly they are used in proofs and theory. For real calculations it is easier to perform the row operations directly.

Related guides