Skip to content

Mathematics · Ch 1 — Applications of Matrices and Determinants

Gauss-Jordan Method

1.3.4

Gauss-Jordan Method

Definition 1.7 (elementary matrix). An elementary matrix is a matrix obtained from the identity matrix InI_n by applying exactly one elementary row operation.

Key fact. Applying a row operation to a matrix AA has exactly the same effect as pre-multiplying AA by the corresponding elementary matrix. For instance, applying R2→R2+λR3R_2\to R_2+\lambda R_3 to a 3×33\times3 matrix AA gives the same result as computing (10001λ001)A\begin{pmatrix}1&0&0\\0&1&\lambda\\0&0&1\end{pmatrix}A. Similarly, Ri↔RjR_i\leftrightarrow R_j corresponds to swapping rows i,ji,j of InI_n, and Ri→λRiR_i\to\lambda R_i corresponds to scaling row ii of InI_n by λ\lambda.

Theorem 1.13. Every non-singular matrix can be transformed to the identity matrix by a sequence of elementary row operations.

Chaining kk such row operations that reduce a non-singular AA to InI_n therefore means Ek⋯E2E1A=InE_k\cdots E_2E_1A=I_n for the matching elementary matrices E1,…,EkE_1,\ldots,E_k, so

A−1=Ek⋯E2E1.A^{-1}=E_k\cdots E_2E_1.

The Gauss-Jordan algorithm.

Step 1. Augment AA with the identity matrix on the right: form [A ∣ In][A\,|\,I_n].

Step 2. Find elementary row operations E1,…,EkE_1,\ldots,E_k that reduce AA (the left block) all the way to InI_n. Applying the same sequence to the whole augmented matrix carries the right block from InI_n to Ek⋯E1In=A−1E_k\cdots E_1I_n=A^{-1}:

[A ∣ In] → row ops  [In ∣ A−1].[A\,|\,I_n]\ \xrightarrow{\ \text{row ops}\ }\ [I_n\,|\,A^{-1}]. …