Euler Hall — free maths guides

Test whether two matrices are inverses by multiplying to I

A plain-language explanation of checking two matrices are inverses. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

The definition, in one line

BB is the inverse ofAA when both

AB=IandBA=I.AB=I\quad\text{and}\quad BA=I.

Nothing about entries, symmetry or signs appears. The test is multiplication, and the target is the identity. If you can multiply, you can decide.

Two facts follow, and both matter:

- The inverse, when it exists, is unique — there is only one matrix that works. - "Inverse" is not a way of rearranging entries.ATA^{T},−A-A, and1/A1/A entrywise are usually none of them the inverse.

Why one side is enough on a square matrix

The definition asks for both sides, and the reason is that a map has to be undoable in both directions. For a square matrix, one side suffices — and the argument is worth knowing because it is the same argument that proves uniqueness.

SupposeAB=IAB=I withAA andBB bothn×nn\times n. Thendet⁡Adet⁡B=det⁡I=1\det A\det B=\det I=1, sodet⁡A≠0\det A\ne0 andAA has an inverseA−1A^{-1}. MultiplyAB=IAB=I on the left by it:

A−1AB=A−1I⟹B=A−1.A^{-1}AB=A^{-1}I\quad\Longrightarrow\quad B=A^{-1}.

SoBB isA−1A^{-1}, and thereforeBA=IBA=I automatically. One product, plus the fact that square matrices with nonzero determinant are invertible.

Where that fails. For a2×32\times3 matrixAA and a3×23\times2 matrixBB,AB=I2AB=I_2 is possible whileBA≠I3BA\ne I_3 — they are identities of different sizes, so "both sides" cannot even be the same equation. Rectangular matrices can have a one-sided inverse, and that is a genuinely weaker object.

A worked example in the exam's shape

IsB=[2111]B=\begin{bmatrix}2&1\\1&1\end{bmatrix} the inverse ofA=[1−1−12]A=\begin{bmatrix}1&-1\\-1&2\end{bmatrix}?

Both products areII, so yes. Written out, the four entries of the first product are1⋅2+(−1)⋅1=11\cdot2+(-1)\cdot1=1,1⋅1+(−1)⋅1=01\cdot1+(-1)\cdot1=0,(−1)⋅2+2⋅1=0(-1)\cdot2+2\cdot1=0, and(−1)⋅1+2⋅1=1(-1)\cdot1+2\cdot1=1.

Note thatBB is not a rearrangement ofAA's entries in any obvious way, and it does not need to be. The inverse is whatever multiplication sends toII.

By the end you can
  • Multiply both ways and compare with I
  • State that one side suffices for a square matrix
  • Distinguish a one-sided inverse from an inverse
Check yourself
  1. 1. Is[0110]\begin{bmatrix}0&1\\1&0\end{bmatrix} its own inverse? Multiply to decide.
  2. 2. Explain whyAB=I2AB=I_2 does not makeBB the inverse of a2×32\times3 matrixAA.
  3. 3. Why does one product suffice for a square matrix, in one sentence?
Answers

1. Yes.AA=[0⋅0+1⋅10⋅1+1⋅01⋅0+0⋅11⋅1+0⋅0]=IAA=\begin{bmatrix}0\cdot0+1\cdot1&0\cdot1+1\cdot0\\1\cdot0+0\cdot1&1\cdot1+0\cdot0\end{bmatrix}=I. 2.BABA would be3×33\times3; it cannot equalI3I_3 becauseAA has a dependent row and maps some nonzero vector to zero. A right inverse is not an inverse. 3. BecauseAB=IAB=I forcesdet⁡A≠0\det A\ne0, soA−1A^{-1} exists, and multiplying on the left by it givesB=A−1B=A^{-1} — henceBA=IBA=I too.

Work out where to start — free, no accountAnswer six real questions — free, no account