Euler Hall — free maths guides

Solve Ax = b by multiplying by A inverse

Multiply both sides on the left and compute the solution as A inverse b. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

The route, and when it is closed

IfAA is invertible then

Ax=b⟹x=A−1bA\mathbf{x}=\mathbf{b}\quad\Longrightarrow\quad\mathbf{x}=A^{-1}\mathbf{b}

and thatx\mathbf{x} is the only solution. Multiply on the left, becauseAA stands on the left ofx\mathbf{x}.

Two conditions before you start:

  • - the matrix must be square, orA−1A^{-1} is not defined;
  • -det⁡A≠0\det A\ne0, or there is no inverse and this route cannot be used at all.

When the determinant is zero the system may still have solutions — none, or infinitely many — but they have to be found by reducing[A ∣ b][A\,|\,\mathbf{b}], not by an inverse.

Why the inverse route gives the only solution

MultiplyAx=bA\mathbf{x}=\mathbf{b} on the left byA−1A^{-1}:

Two properties are used, one per step:A−1A=IA^{-1}A=I collapses the left side, andIx=xI\mathbf{x}=\mathbf{x} finishes it.

Uniqueness is free. Ifx\mathbf{x} andy\mathbf{y} both solved the system, thenA(x−y)=b−b=0A(\mathbf{x}-\mathbf{y})=\mathbf{b}-\mathbf{b}=\mathbf{0}, and multiplying byA−1A^{-1} givesx−y=0\mathbf{x}-\mathbf{y}=\mathbf{0}. So there is exactly one solution — which is why "solve" and "find the solution" mean the same thing here.

And why the route can close. Ifdet⁡A=0\det A=0 thenAx=0A\mathbf{x}=\mathbf{0} has a nonzero solutionx0\mathbf{x}_0, so any solution can be shifted by it and stay a solution. There is no unique answer for an inverse to produce.

A worked example in the exam's shape

Solve[3152]x=[712]\begin{bmatrix}3&1\\5&2\end{bmatrix}\mathbf{x}=\begin{bmatrix}7\\12\end{bmatrix} usingA−1A^{-1}.

det⁡A=3⋅2−1⋅5=1\det A=3\cdot2-1\cdot5=1, so by the 2 by 2 formulaA−1=[2−1−53]A^{-1}=\begin{bmatrix}2&-1\\-5&3\end{bmatrix}. Then

Check:A(2,1)=(6+1, 10+2)=(7,12)A(2,1)=(6+1,\ 10+2)=(7,12) ✓. The check is not optional — it is one multiplication and it catches every sign error in the inverse.

By the end you can
  • Multiply both sides on the left and compute the solution as A inverse b
  • Check the solution by substituting it back
Check yourself

1. Solve[1102]x=[34]\begin{bmatrix}1&1\\0&2\end{bmatrix}\mathbf{x}=\begin{bmatrix}3\\4\end{bmatrix} with the inverse, and check it. 2. Why can you not useA−1A^{-1} whendet⁡A=0\det A=0? 3. IfAA is invertible andAx=bA\mathbf{x}=\mathbf{b}, why is there only one solution?

Answers

1.det⁡=2\det=2,A−1=[1−12012]\def\arraystretch{1.6}A^{-1}=\begin{bmatrix}1&-\frac12\\0&\frac12\end{bmatrix}, sox=(3−2, 2)=(1,2)\mathbf{x}=(3-2,\ 2)=(1,2). Check:(1+2, 4)=(3,4)(1+2,\ 4)=(3,4) ✓. 2. Because no inverse exists: a zero determinant means dependent columns, so the matrix has a nontrivial nullspace and cannot be undone. 3. Two solutions would differ by a vector in the nullspace, and an invertible matrix has only the zero vector there.

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