Invertible Matrix

Basis
Last updated: Tags: Linear Algebra

The linear map TAT_A encoded by a matrix AA transforms every vector xx into AxAx. Can you always get back? An invertible matrix is exactly one where the answer is yes — the transformation can be perfectly undone.

Definition

Let AA be an n×nn \times n square matrix over a field FF. AA is invertible (also called non-singular) if there exists an n×nn \times n matrix BB such that

AB=InandBA=In,(1)AB = I_n \qquad \text{and} \qquad BA = I_n, \tag{1}

where InI_n is the n×nn \times n identity matrix. The matrix BB is called the inverse of AA and is written A1A^{-1}.

A matrix that is not invertible is called singular.

Only square matrices can be invertible: a non-square m×nm \times n matrix with mnm \ne n represents a map between spaces of different dimensions and cannot have a two-sided inverse of the same type.

The inverse is unique

Suppose both BB and CC satisfy (1). Then:

B=BIn=B(AC)=(BA)C=InC=C.B = B I_n = B(AC) = (BA)C = I_n C = C.

So B=CB = C — every invertible matrix has exactly one inverse. The notation A1A^{-1} is unambiguous.

Invertibility and linear maps

From Linear Map & Matrix Multiplication, you know that an n×nn \times n matrix AA represents a linear map TA:FnFnT_A: F^n \to F^n. The conditions AB=BA=InAB = BA = I_n say that TBT_B is both a left and right inverse of TAT_A as a function. Therefore:

AA is invertible if and only if TA:FnFnT_A: F^n \to F^n is a bijection.

When TAT_A is bijective, its inverse function TA1T_A^{-1} is also linear, and its matrix is A1A^{-1}.

Characterizing invertibility via Gauss-Jordan

From Gauss-Jordan Elimination, you know that row-reducing a matrix either produces nn pivot columns (one per column) or leaves at least one free column. For a square n×nn \times n matrix, these two outcomes are mutually exclusive and exhaustive — there is no middle ground. This gives a complete characterization:

The following statements are all equivalent for an n×nn \times n matrix AA over FF:

  1. AA is invertible.
  2. The RREF of AA is InI_n.
  3. AA has nn pivot columns.
  4. The only solution to Ax=0Ax = \mathbf{0} is x=0x = \mathbf{0}.
  5. For every bFnb \in F^n, the system Ax=bAx = b has exactly one solution.
  6. The columns of AA are linearly independent.

Singular example. For B=(1224)B = \begin{pmatrix} 1 & 2 \\ 2 & 4 \end{pmatrix}: applying R2R22R1R_2 \leftarrow R_2 - 2R_1 gives (1200)\begin{pmatrix} 1 & 2 \\ 0 & 0 \end{pmatrix}. The second column has no pivot, so BB is singular. The map TBT_B collapses the entire plane onto a line — you cannot get back.

Computing the inverse via Gauss-Jordan elimination

If AA is invertible, you can compute A1A^{-1} by augmenting AA with the identity matrix and row-reducing the entire block:

[AIn]RREF[InA1].(2)[A \mid I_n] \xrightarrow{\text{RREF}} [I_n \mid A^{-1}]. \tag{2}

Why this works. Every elementary row operation is left-multiplication by an invertible elementary matrix. If the sequence of operations that reduces AA to InI_n corresponds to left-multiplication by EE, then EA=InEA = I_n, so E=A1E = A^{-1}. Applying those same operations to InI_n gives EIn=E=A1E I_n = E = A^{-1}.

If the row reduction reaches a zero row on the left side, AA is singular and has no inverse.

Example. Compute A1A^{-1} for A=(1234)A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}:

(12103401)R2R23R1(12100231)\left(\begin{array}{cc|cc} 1 & 2 & 1 & 0 \\ 3 & 4 & 0 & 1 \end{array}\right) \xrightarrow{R_2 \leftarrow R_2 - 3R_1} \left(\begin{array}{cc|cc} 1 & 2 & 1 & 0 \\ 0 & -2 & -3 & 1 \end{array}\right) R212R2(1210013212)R1R12R2(1021013212)\xrightarrow{R_2 \leftarrow -\frac{1}{2}R_2} \left(\begin{array}{cc|cc} 1 & 2 & 1 & 0 \\ 0 & 1 & \tfrac{3}{2} & -\tfrac{1}{2} \end{array}\right) \xrightarrow{R_1 \leftarrow R_1 - 2R_2} \left(\begin{array}{cc|cc} 1 & 0 & -2 & 1 \\ 0 & 1 & \tfrac{3}{2} & -\tfrac{1}{2} \end{array}\right)

So A1=(213212)A^{-1} = \begin{pmatrix} -2 & 1 \\ \tfrac{3}{2} & -\tfrac{1}{2} \end{pmatrix}. Verify: AA1=(1234)(213212)=(1001)AA^{-1} = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}\begin{pmatrix} -2 & 1 \\ \tfrac{3}{2} & -\tfrac{1}{2} \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}.

The 2×2 shortcut

For A=(abcd)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix} over R\mathbb{R}, the formula simplifies to:

A1=1adbc(dbca),(3)A^{-1} = \frac{1}{ad - bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}, \tag{3}

provided adbc0ad - bc \ne 0. The quantity adbcad - bc is the determinant det(A)\det(A); it is nonzero exactly when AA is invertible. For 3×33 \times 3 and larger matrices, Gauss-Jordan is the systematic approach (see Determinant for the general story).

Properties of the inverse

The following identities all follow directly from the definition AA1=A1A=InAA^{-1} = A^{-1}A = I_n:

IdentityExplanation
(A1)1=A(A^{-1})^{-1} = AAA inverts A1A^{-1}
(AB)1=B1A1(AB)^{-1} = B^{-1}A^{-1}Undoing composition reverses order
(AT)1=(A1)T(A^T)^{-1} = (A^{-1})^TTranspose and inverse commute
(cA)1=c1A1(cA)^{-1} = c^{-1}A^{-1} for c0c \ne 0Scaling inverts by the reciprocal

The product rule (AB)1=B1A1(AB)^{-1} = B^{-1}A^{-1} mirrors everyday reversibility: if you put on socks then shoes, undoing requires removing shoes first, then socks.

Summary

  • An n×nn \times n matrix AA is invertible if there exists BB with AB=BA=InAB = BA = I_n; this BB is unique and written A1A^{-1}.
  • Invertibility is equivalent to: the RREF of AA is InI_n; AA has nn pivot columns; Ax=0Ax = \mathbf{0} has only the trivial solution; Ax=bAx = b has a unique solution for every bb.
  • Compute A1A^{-1} using Gauss-Jordan: row-reduce [AIn][A \mid I_n] to [InA1][I_n \mid A^{-1}].
  • Key identities: (A1)1=A(A^{-1})^{-1} = A, (AB)1=B1A1(AB)^{-1} = B^{-1}A^{-1}, (AT)1=(A1)T(A^T)^{-1} = (A^{-1})^T.
  • For 2×22 \times 2 matrices: A1=1det(A)(dbca)A^{-1} = \frac{1}{\det(A)}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix} when det(A)=adbc0\det(A) = ad - bc \ne 0.