Finding the inverse of AB: a step‑by‑step guide for students and professionals
When you encounter a problem that asks you to find the inverse of AB, you are dealing with the product of two matrices, A and B. On the flip side, understanding how to compute the inverse of a product such as AB is not only a common exam topic but also a practical skill used in engineering, computer graphics, economics, and many other fields. In linear algebra, the inverse of a matrix is a matrix that, when multiplied by the original, yields the identity matrix. This article walks you through the theory, the algorithm, and real‑world examples so you can confidently tackle any “find the inverse of AB” question.
We're talking about where a lot of people lose the thread.
Why the inverse of AB matters
The inverse of a matrix is crucial because it allows you to solve systems of linear equations, perform coordinate transformations, and analyze the stability of dynamic systems. When you have a product AB, the inverse is not simply the product of the individual inverses in the same order; instead, the order reverses. This reversal is a direct consequence of the non‑commutative nature of matrix multiplication.
- Solve matrix equations of the form ABX = C.
- Compute change‑of‑basis matrices in vector spaces.
- Derive formulas in physics and engineering where composite transformations are involved.
Core concepts you need to know
1. Invertible (non‑singular) matrices
A square matrix M is invertible if there exists a matrix M⁻¹ such that MM⁻¹ = M⁻¹M = I, where I is the identity matrix. A matrix is invertible exactly when its determinant is non‑zero.
2. The property of inverses for products
If A and B are both invertible, the inverse of their product follows a simple rule:
[ (AB)^{-1} = B^{-1}A^{-1} ]
Notice the reversed order. This property holds because:
[ (AB)(B^{-1}A^{-1}) = A(BB^{-1})A^{-1} = AI A^{-1} = AA^{-1} = I ]
and similarly on the left side Practical, not theoretical..
3. Computing a single matrix inverse
You can find the inverse of a matrix using one of three common methods:
- Adjugate/Determinant method: (M^{-1} = \frac{1}{\det(M)} \operatorname{adj}(M))
- Gaussian elimination (row‑reduction) to transform ([M | I]) into ([I | M^{-1}])
- Software tools (for large matrices) – though this article focuses on manual techniques.
Step‑by‑step method to find the inverse of AB
Step 1: Verify that A and B are invertible
Calculate (\det(A)) and (\det(B)). If either determinant equals zero, the matrices are singular and AB does not have an inverse Nothing fancy..
Step 2: Compute the individual inverses
Use your preferred method (adjugate, row‑reduction, or cofactor expansion) to obtain A⁻¹ and B⁻¹.
Step 3: Reverse the order and multiply
Form the product B⁻¹A⁻¹. This product is the inverse of AB.
Step 4: Double‑check (optional but recommended)
Multiply AB by B⁻¹A⁻¹ (both ways) to confirm you obtain the identity matrix.
Example: 2×2 matrices
Let
[ A = \begin{pmatrix} 2 & 1 \ 3 & 4 \end{pmatrix}, \qquad B = \begin{pmatrix} 1 & 0 \ -1 & 2 \end{pmatrix} ]
Step 1 – Determinants
[ \det(A) = (2)(4) - (1)(3) = 8 - 3 = 5 \neq 0 ] [ \det(B) = (1)(2) - (0)(-1) = 2 \neq 0 ]
Both are invertible.
Step 2 – Individual inverses
For a 2×2 matrix (\begin{pmatrix} a & b \ c & d \end{pmatrix}),
[ M^{-1} = \frac{1}{\det(M)} \begin{pmatrix} d & -b \ -c & a \end{pmatrix} ]
Thus,
[ A^{-1} = \frac{1}{5} \begin{pmatrix} 4 & -1 \ -3 & 2 \end{pmatrix} = \begin{pmatrix} \frac{4}{5} & -\frac{1}{5} \ -\frac{3}{5} & \frac{2}{5} \end{pmatrix} ]
[ B^{-1} = \frac{1}{2} \begin{pmatrix} 2 & 0 \ 1 & 1 \end{pmatrix} = \begin{pmatrix} 1 & 0 \ \frac{1}{2} & \frac{1}{2} \end{pmatrix} ]
Step 3 – Form (AB)⁻¹ = B⁻¹A⁻¹
[ B^{-1}A^{-1} = \begin{pmatrix} 1 & 0 \ \frac{1}{2} & \frac{1}{2} \end{pmatrix} \begin{pmatrix} \frac{4}{5} & -\frac{1}{5} \ -\frac{3}{5} & \frac{2}{5} \end{pmatrix}
\begin{pmatrix} 1\cdot\frac{4}{5}+0\cdot(-\frac{3}{5}) & 1\cdot(-\frac{1}{5})+0\cdot\frac{2}{5}\[4pt] \frac{1}{2}\cdot\frac{4}{5}+\frac{1}{2}\cdot(-\frac{3}{5}) & \frac{1}{2}\cdot(-\frac{1}{5})+\frac{1}{2}\cdot\frac{2}{5} \end{pmatrix}
\begin{pmatrix} \frac{4}{5} & -\frac{1}{5}\[4pt] \frac{4}{10}-\frac{3}{10} & -\frac{1}{10}+\frac{2}{10} \end{pmatrix}
\begin{pmatrix} \frac{4}{5} & -\frac{1}{5}\[4pt] \frac{1}{10} & \frac{1}{10} \end{pmatrix} ]
Step 4 – Verification
Compute AB:
[ AB = \begin{pmatrix} 2 & 1 \ 3 & 4 \end{pmatrix} \begin{pmatrix} 1 & 0 \ -1 & 2 \end{pmatrix}
\begin{pmatrix} 2\cdot1+1\cdot(-1) & 2\cdot0+
Step 3 – Complete the verification
First compute the product (AB) explicitly:
[ AB= \begin{pmatrix} 2 & 1\[2pt] 3 & 4 \end{pmatrix} \begin{pmatrix} 1 & 0\[2pt] -1 & 2 \end{pmatrix}
\begin{pmatrix} 2\cdot1+1\cdot(-1) & 2\cdot0+1\cdot2\[4pt] 3\cdot1+4\cdot(-1) & 3\cdot0+4\cdot2 \end{pmatrix}
\begin{pmatrix} 1 & 2\[4pt] -1 & 8 \end{pmatrix}. ]
Now multiply this result by the candidate inverse ((AB)^{-1}=B^{-1}A^{-1}) obtained earlier:
[ AB,(B^{-1}A^{-1})= \begin{pmatrix} 1 & 2\[2pt] -1 & 8 \end{pmatrix} \begin{pmatrix} \frac45 & -\frac15\[4pt] \frac1{10} & \frac1{10} \end{pmatrix}
\begin{pmatrix} 1\cdot\frac45+2\cdot\frac1{10} & 1!On the flip side, \left(\frac1{10}\right)\[6pt] (-1)! In real terms, \left(-\frac15\right)+2! \left(\frac45\right)+8!