Pm11–Pm14 - Inverse matrices

Pm11–Pm14 - Inverse matrices

An inverse matrix reverses a transformation and recovers its original input. Pm11 explains what that means, Pm12 develops inverses of orders 22 and 33, and Pm13 uses them to find pre-images and solve matrix equations. Pm14 explains why undoing a product reverses the order of its factors.

What an inverse matrix undoes

A transformation sends a point PP to Q=(5,3)Q=(5,3) using M=(2111)\mathbf{M}=\begin{pmatrix}2&1\\1&1\end{pmatrix}. Can you recover PP directly, without solving a fresh pair of equations for every image point?

Multiplication gives M(21)=(53)\mathbf{M}\begin{pmatrix}2\\1\end{pmatrix}=\begin{pmatrix}5\\3\end{pmatrix}. The reverse journey must turn (53)\begin{pmatrix}5\\3\end{pmatrix} back into (21)\begin{pmatrix}2\\1\end{pmatrix}. We want one matrix that makes that return journey work for every point, not just this one.

You already know

The identity matrix I\mathbf{I} leaves every vector unchanged. Matrix multiplication is associative, but its factors cannot usually be reordered. A square matrix has an inverse exactly when its determinant is non-zero.

For this example, R=(1−1−12)\mathbf{R}=\begin{pmatrix}1&-1\\-1&2\end{pmatrix} works:

RM=(1001)=Iforward then reverseMR=(1001)=Ireverse then forward\begin{aligned} \mathbf{R}\mathbf{M}&=\begin{pmatrix}1&0\\0&1\end{pmatrix}=\mathbf{I} && \text{forward then reverse} \\ \mathbf{M}\mathbf{R}&=\begin{pmatrix}1&0\\0&1\end{pmatrix}=\mathbf{I} && \text{reverse then forward} \end{aligned}

Because the result is the identity, the return journey works for every input vector.

[DIAGRAM: asset_name: Recovering a pre-image; asset_slug: inverse_preimage; caption: The inverse sends the image point Q back to its unique pre-image P; description: Equal-scale Cartesian axes show P at (2,1) in blue and Q at (5,3) in clay. A curved arrow from P to Q is labelled forward transformation M and a separate curved arrow from Q to P is labelled inverse transformation M inverse. In the accompanying text M has rows (2,1) and (1,1). The arrows represent the mappings, not paths travelled by the point.]
The inverse sends the image point Q back to its unique pre-image P

Here is the definition for a square matrix of any order. The identity must have that same order.

Inverse matrix and pre-image

The inverse of a square matrix M\mathbf{M}, written M−1\mathbf{M}^{-1}, satisfies M−1M=MM−1=I\mathbf{M}^{-1}\mathbf{M}=\mathbf{M}\mathbf{M}^{-1}=\mathbf{I}. It represents the transformation that undoes M\mathbf{M}. A pre-image of a point is an original point that maps to it. For a non-singular linear transformation, every image point has exactly one pre-image.

A singular transformation has merged some distinct points. An inverse could not know which original point to recover, so no inverse matrix exists. The non-singular condition is essential, not a calculator inconvenience.

Key idea

An inverse reverses the whole mapping. It is not obtained by taking reciprocals of individual matrix entries.

There is an appealing boundary case: a reflection is its own inverse. For F=(0110)\mathbf{F}=\begin{pmatrix}0&1\\1&0\end{pmatrix}, which reflects in y=xy=x, F2=I\mathbf{F}^2=\mathbf{I}, so F−1=F\mathbf{F}^{-1}=\mathbf{F} even though F≠I\mathbf{F}\ne\mathbf{I}. Undoing a reflection means performing it again.

Inverting a matrix of order 2

For a non-singular matrix of order 22, four rearranged entries and one scalar factor produce the inverse.

The rearrangement is not arbitrary. Multiplying by it gives

(abcd)(d−b−ca)=(ad−bc00ad−bc)=(ad−bc)I\begin{pmatrix}a&b\\c&d\end{pmatrix} \begin{pmatrix}d&-b\\-c&a\end{pmatrix} =\begin{pmatrix}ad-bc&0\\0&ad-bc\end{pmatrix} =(ad-bc)\mathbf{I}

The off-diagonal terms cancel. Dividing by ad−bcad-bc then leaves I\mathbf{I}, provided that determinant is not zero.

Inverse of a matrix of order 2

If A=(abcd)\mathbf{A}=\begin{pmatrix}a&b\\c&d\end{pmatrix} and ad−bc≠0ad-bc\ne0, then

A−1=1ad−bc(d−b−ca)\mathbf{A}^{-1}=\frac{1}{ad-bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}

Swap the main-diagonal entries, change the signs of the other two entries, then divide the entire matrix by the determinant.

Not in the formula booklet: learn it.

Once the inverse is known, the pre-image calculation is another matrix multiplication: if q=Ap\mathbf{q}=\mathbf{A}\mathbf{p}, then p=A−1q\mathbf{p}=\mathbf{A}^{-1}\mathbf{q}. The inverse acts on the image vector from the left.

Worked example 1: an inverse with integer entries

Question. Find the inverse of A=(3121)\mathbf{A}=\begin{pmatrix}3&1\\2&1\end{pmatrix}. Hence find the pre-image of Q=(1,2)Q=(1,2).

Plan. Calculate the determinant, build the inverse and apply it to the image vector.

det⁡A=3(1)−1(2)=1check non-singularityA−1=11(1−1−23)swap and change signsp=(1−1−23)(12)undo the transformation=(−14)rows by columns\begin{aligned} \det\mathbf{A}&=3(1)-1(2)=1 && \text{check non-singularity} \\ \mathbf{A}^{-1}&=\frac11\begin{pmatrix}1&-1\\-2&3\end{pmatrix} && \text{swap and change signs} \\ \mathbf{p}&=\begin{pmatrix}1&-1\\-2&3\end{pmatrix}\begin{pmatrix}1\\2\end{pmatrix} && \text{undo the transformation} \\ &=\begin{pmatrix}-1\\4\end{pmatrix} && \text{rows by columns} \end{aligned}

Why this step? The given point is an image, so multiply by the inverse, not by the original matrix.

Answer. A−1=(1−1−23)\mathbf{A}^{-1}=\begin{pmatrix}1&-1\\-2&3\end{pmatrix}, and the pre-image is (−1,4)(-1,4).

Check. A(−14)=(−3+4−2+4)=(12)\mathbf{A}\begin{pmatrix}-1\\4\end{pmatrix}=\begin{pmatrix}-3+4\\-2+4\end{pmatrix}=\begin{pmatrix}1\\2\end{pmatrix}, the required image.

Worked example 2 changes only the bottom-right entry from 11 to 22. The determinant is no longer 11, so the scalar factor must be retained.

Worked example 2: retaining the determinant factor

Question. Find the inverse of B=(3122)\mathbf{B}=\begin{pmatrix}3&1\\2&2\end{pmatrix}. Hence find the pre-image of Q=(1,2)Q=(1,2).

Plan. Recalculate the determinant, divide every rearranged entry by it and apply the inverse.

det⁡B=3(2)−1(2)=4new determinantB−1=14(2−1−23)inverse formulap=14(2−1−23)(12)apply the inverse=14(04)=(01)divide both entries\begin{aligned} \det\mathbf{B}&=3(2)-1(2)=4 && \text{new determinant} \\ \mathbf{B}^{-1}&=\frac14\begin{pmatrix}2&-1\\-2&3\end{pmatrix} && \text{inverse formula} \\ \mathbf{p}&=\frac14\begin{pmatrix}2&-1\\-2&3\end{pmatrix}\begin{pmatrix}1\\2\end{pmatrix} && \text{apply the inverse} \\ &=\frac14\begin{pmatrix}0\\4\end{pmatrix}=\begin{pmatrix}0\\1\end{pmatrix} && \text{divide both entries} \end{aligned}

Why this step? The determinant factor multiplies the entire matrix, including every entry of the final vector.

Answer. B−1=14(2−1−23)\mathbf{B}^{-1}=\frac14\begin{pmatrix}2&-1\\-2&3\end{pmatrix}, and the pre-image is (0,1)(0,1).

Check. B(01)=(12)\mathbf{B}\begin{pmatrix}0\\1\end{pmatrix}=\begin{pmatrix}1\\2\end{pmatrix}. Also B(2−1−23)=4I\mathbf{B}\begin{pmatrix}2&-1\\-2&3\end{pmatrix}=4\mathbf{I}, so division by 44 is needed.

The inverse formula has three operations; missing any one of them usually gives a plausible-looking wrong answer.

Watch out

Wrong: (3122)−1=(2−1−23)\begin{pmatrix}3&1\\2&2\end{pmatrix}^{-1}=\begin{pmatrix}2&-1\\-2&3\end{pmatrix}. Right: include the factor 14\frac14. Without it, the product is 4I4\mathbf{I}, not I\mathbf{I}.

The next check changes the top-left entry. Use the same image point but recalculate the determinant and inverse.

Inverses of order 3 and reciprocal determinants

A calculator can invert a numerical matrix of order 33; you still need to identify the correct operation, record the result clearly and check that it reverses the original matrix.

Enter the matrix with its stated row order and all negative signs. Check that its determinant is non-zero, then use the matrix inverse function. If the output is decimal but exact fractions are available, convert the entries before further work. An “inverse” obtained by raising individual entries to −1-1 is not a matrix inverse.

The determinant provides a compact check on an inverse. Since AA−1=I\mathbf{A}\mathbf{A}^{-1}=\mathbf{I}, the determinant product rule gives (det⁡A)(det⁡A−1)=1(\det\mathbf{A})(\det\mathbf{A}^{-1})=1.

Determinant of an inverse

For a non-singular square matrix A\mathbf{A} of any order,

det⁡(A−1)=1det⁡A\det(\mathbf{A}^{-1})=\frac{1}{\det\mathbf{A}}

The determinant of the inverse is the reciprocal of the determinant, not its negative. In the plane, a transformation and its inverse have reciprocal area scale factors.

Not in the formula booklet: learn it.

This is a necessary check, not a complete one: many matrices have the same determinant. Multiplying to obtain I\mathbf{I} checks the entries themselves.

Worked example 3: a calculator inverse of order 3

Question. Find the inverse of

A=(110011101)\mathbf{A}=\begin{pmatrix}1&1&0\\0&1&1\\1&0&1\end{pmatrix}

and state det⁡(A−1)\det(\mathbf{A}^{-1}). Hence find the pre-image of (3,4,5)(3,4,5).

Plan. Evaluate the determinant and inverse, then multiply the image vector by that inverse.

det⁡A=2calculator determinantA−1=12(1−1111−1−111)calculator inversedet⁡(A−1)=12reciprocal determinantp=12(3−4+53+4−5−3+4+5)=(213)apply the inverse\begin{aligned} \det\mathbf{A}&=2 && \text{calculator determinant} \\ \mathbf{A}^{-1}&=\frac12\begin{pmatrix}1&-1&1\\1&1&-1\\-1&1&1\end{pmatrix} && \text{calculator inverse} \\ \det(\mathbf{A}^{-1})&=\frac12 && \text{reciprocal determinant} \\ \mathbf{p}&=\frac12\begin{pmatrix}3-4+5\\3+4-5\\-3+4+5\end{pmatrix} =\begin{pmatrix}2\\1\\3\end{pmatrix} && \text{apply the inverse} \end{aligned}

Why this step? A three-dimensional image is still a column vector, and the inverse still acts from the left.

Answer. The inverse is the matrix displayed above, its determinant is 12\frac12, and the pre-image is (2,1,3)(2,1,3).

Check. A(213)=(2+11+32+3)=(345)\mathbf{A}\begin{pmatrix}2\\1\\3\end{pmatrix}=\begin{pmatrix}2+1\\1+3\\2+3\end{pmatrix}=\begin{pmatrix}3\\4\\5\end{pmatrix}.

Worked example 4 changes only the bottom-left entry from 11 to 22. Both the inverse and the original point change, even though the image vector stays fixed.

Worked example 4: a changed entry in order 3

Question. Find the inverse of

B=(110011201)\mathbf{B}=\begin{pmatrix}1&1&0\\0&1&1\\2&0&1\end{pmatrix}

and state det⁡(B−1)\det(\mathbf{B}^{-1}). Hence find the pre-image of (3,4,5)(3,4,5).

Plan. Re-enter the changed matrix and apply the resulting inverse to the same image vector.

det⁡B=3calculator determinantB−1=13(1−1121−1−221)calculator inversedet⁡(B−1)=13reciprocal determinantp=13(3−4+56+4−5−6+8+5)=(435373)rows by columns\begin{aligned} \det\mathbf{B}&=3 && \text{calculator determinant} \\ \mathbf{B}^{-1}&=\frac13\begin{pmatrix}1&-1&1\\2&1&-1\\-2&2&1\end{pmatrix} && \text{calculator inverse} \\ \det(\mathbf{B}^{-1})&=\frac13 && \text{reciprocal determinant} \\ \mathbf{p}&=\frac13\begin{pmatrix}3-4+5\\6+4-5\\-6+8+5\end{pmatrix} =\begin{pmatrix}\frac43\\\frac53\\\frac73\end{pmatrix} && \text{rows by columns} \end{aligned}

Why this step? Keeping fractions exact makes the final forward check decisive rather than approximate.

Answer. The inverse is the matrix displayed above, its determinant is 13\frac13, and the pre-image is (43,53,73)\left(\frac43,\frac53,\frac73\right).

Check. The forward coordinates are 43+53=3\frac43+\frac53=3, 53+73=4\frac53+\frac73=4 and 2(43)+73=52\left(\frac43\right)+\frac73=5, as required.

When the command allows calculator evaluation, there is no need to conceal its use behind invented hand working. If the question requests detailed reasoning or algebraic entries, however, you must show the required mathematical method.

Exam tip

Label every matrix: A\mathbf{A}, A−1\mathbf{A}^{-1} and a product are different objects. Write the matrix being inverted and the resulting inverse; unexplained lists of calculator entries do not communicate the method.

Change the bottom-left entry once more, and check the inverse against the identity.

Watch out

Wrong: det⁡(B−1)=−3\det(\mathbf{B}^{-1})=-3 because det⁡B=3\det\mathbf{B}=3. Inversion takes a reciprocal, not a negative. The correct determinant is 1/31/3, so det⁡Bdet⁡(B−1)=1\det\mathbf{B}\det(\mathbf{B}^{-1})=1.

Check both the matrix product and the reciprocal determinant below.

Solving matrix equations on the correct side

To remove a matrix factor, multiply by its inverse on the side where the two factors can meet.

For a number, the distinction between left and right multiplication disappears. For matrices it controls the answer. Starting with AX=B\mathbf{A}\mathbf{X}=\mathbf{B}, multiplication on the left gives A−1(AX)=A−1B\mathbf{A}^{-1}(\mathbf{A}\mathbf{X})=\mathbf{A}^{-1}\mathbf{B}, so associativity produces IX\mathbf{I}\mathbf{X}. Multiplying on the right would leave AXA−1\mathbf{A}\mathbf{X}\mathbf{A}^{-1}, with X\mathbf{X} in the way of cancellation.

Solving with an inverse

If A\mathbf{A} is non-singular and the products have compatible dimensions,

AX=B  ⟹  X=A−1BXA=B  ⟹  X=BA−1\begin{aligned} \mathbf{A}\mathbf{X}=\mathbf{B}&\implies\mathbf{X}=\mathbf{A}^{-1}\mathbf{B} \\ \mathbf{X}\mathbf{A}=\mathbf{B}&\implies\mathbf{X}=\mathbf{B}\mathbf{A}^{-1} \end{aligned}

For a transformation Ap=q\mathbf{A}\mathbf{p}=\mathbf{q}, this gives the pre-image formula p=A−1q\mathbf{p}=\mathbf{A}^{-1}\mathbf{q}.

Not in the formula booklet: learn it.

The inverse has to sit next to the matrix it undoes. Write that multiplication before calculating entries; it makes the order unambiguous.

Worked example 5: the known factor is on the left

Question. Solve AX=B\mathbf{A}\mathbf{X}=\mathbf{B}, where

A=(2111),B=(5130)\mathbf{A}=\begin{pmatrix}2&1\\1&1\end{pmatrix},\qquad \mathbf{B}=\begin{pmatrix}5&1\\3&0\end{pmatrix}

Plan. Multiply on the left by A−1\mathbf{A}^{-1}, then evaluate the ordered product.

A−1=(1−1−12)det⁡A=1X=A−1Bcancel on the left=(1−1−12)(5130)=(5−31−0−5+6−1+0)rows by columns=(211−1)\begin{aligned} \mathbf{A}^{-1}&=\begin{pmatrix}1&-1\\-1&2\end{pmatrix} && \det\mathbf{A}=1 \\ \mathbf{X}&=\mathbf{A}^{-1}\mathbf{B} && \text{cancel on the left} \\ &=\begin{pmatrix}1&-1\\-1&2\end{pmatrix}\begin{pmatrix}5&1\\3&0\end{pmatrix} \\ &=\begin{pmatrix}5-3&1-0\\-5+6&-1+0\end{pmatrix} && \text{rows by columns} \\ &=\begin{pmatrix}2&1\\1&-1\end{pmatrix} \end{aligned}

Why this step? Left multiplication places A−1\mathbf{A}^{-1} directly beside A\mathbf{A}; nothing has been commuted.

Answer. X=(211−1)\mathbf{X}=\begin{pmatrix}2&1\\1&-1\end{pmatrix}.

Check. AX=(5130)=B\mathbf{A}\mathbf{X}=\begin{pmatrix}5&1\\3&0\end{pmatrix}=\mathbf{B}. Each column of X\mathbf{X} is also the pre-image of the corresponding column of B\mathbf{B}.

Worked example 6 changes only the side on which the known factor appears. The matrices A\mathbf{A} and B\mathbf{B} stay exactly the same, but the solution changes.

Worked example 6: the known factor is on the right

Question. Solve YA=B\mathbf{Y}\mathbf{A}=\mathbf{B}, using the same matrices A\mathbf{A} and B\mathbf{B}.

Plan. Multiply on the right by A−1\mathbf{A}^{-1}, keeping the remaining factors in their original order.

YAA−1=BA−1multiply on the rightY=(5130)(1−1−12)AA−1=I=(5−1−5+23−0−3+0)rows by columns=(4−33−3)\begin{aligned} \mathbf{Y}\mathbf{A}\mathbf{A}^{-1}&=\mathbf{B}\mathbf{A}^{-1} && \text{multiply on the right} \\ \mathbf{Y}&=\begin{pmatrix}5&1\\3&0\end{pmatrix}\begin{pmatrix}1&-1\\-1&2\end{pmatrix} && \mathbf{A}\mathbf{A}^{-1}=\mathbf{I} \\ &=\begin{pmatrix}5-1&-5+2\\3-0&-3+0\end{pmatrix} && \text{rows by columns} \\ &=\begin{pmatrix}4&-3\\3&-3\end{pmatrix} \end{aligned}

Why this step? Moving A−1\mathbf{A}^{-1} to the left of B\mathbf{B} would solve a different equation.

Answer. Y=(4−33−3)\mathbf{Y}=\begin{pmatrix}4&-3\\3&-3\end{pmatrix}.

Check. YA=(8−34−36−33−3)=(5130)\mathbf{Y}\mathbf{A}=\begin{pmatrix}8-3&4-3\\6-3&3-3\end{pmatrix}=\begin{pmatrix}5&1\\3&0\end{pmatrix}.

The first column of Worked example 5 answers the opening question: M−1(53)=(21)\mathbf{M}^{-1}\begin{pmatrix}5\\3\end{pmatrix}=\begin{pmatrix}2\\1\end{pmatrix}, so P=(2,1)P=(2,1). The same inverse recovers every other original point as well.

Watch out

Wrong: “Divide both sides by A\mathbf{A}.” Matrix division has no single meaning. Right: write exactly which side is multiplied by A−1\mathbf{A}^{-1}, and keep that order through the calculation.

For the next equation, the unknown is again on the left. Use right multiplication, as in Worked example 6.

Undoing a product in reverse order

To undo two successive transformations, undo the last one first.

For column vectors, AB\mathbf{A}\mathbf{B} applies B\mathbf{B} first, then A\mathbf{A}. The inverse journey applies A−1\mathbf{A}^{-1} first, then B−1\mathbf{B}^{-1}, so its matrix is B−1A−1\mathbf{B}^{-1}\mathbf{A}^{-1}. This reversal is forced by the order in which the transformations act.

Inverse of a product

For non-singular square matrices A\mathbf{A} and B\mathbf{B} of the same order,

(AB)−1=B−1A−1(\mathbf{A}\mathbf{B})^{-1}=\mathbf{B}^{-1}\mathbf{A}^{-1}

Indeed,

(AB)(B−1A−1)=A(BB−1)A−1=AIA−1=I(\mathbf{A}\mathbf{B})(\mathbf{B}^{-1}\mathbf{A}^{-1}) =\mathbf{A}(\mathbf{B}\mathbf{B}^{-1})\mathbf{A}^{-1} =\mathbf{A}\mathbf{I}\mathbf{A}^{-1}=\mathbf{I}

The product in the other order is also I\mathbf{I}.

Not in the formula booklet: learn it.

A verification needs two genuinely calculated expressions: find (AB)−1(\mathbf{A}\mathbf{B})^{-1}, calculate B−1A−1\mathbf{B}^{-1}\mathbf{A}^{-1} separately, then show they agree. Merely quoting the rule does not verify it for the given matrices.

Worked example 7: verifying the reversed order

Question. Verify the inverse product rule for

A=(1201),B=(0−110)\mathbf{A}=\begin{pmatrix}1&2\\0&1\end{pmatrix},\qquad \mathbf{B}=\begin{pmatrix}0&-1\\1&0\end{pmatrix}

Plan. Calculate the inverse of the product and the reversed product of the inverses independently.

AB=(2−110)multiply in the stated order(AB)−1=(01−12)det⁡(AB)=1A−1=(1−201),B−1=(01−10)invert each factorB−1A−1=(01−10)(1−201)=(01−12)same matrix as above\begin{aligned} \mathbf{A}\mathbf{B}&=\begin{pmatrix}2&-1\\1&0\end{pmatrix} && \text{multiply in the stated order} \\ (\mathbf{A}\mathbf{B})^{-1}&=\begin{pmatrix}0&1\\-1&2\end{pmatrix} && \det(\mathbf{A}\mathbf{B})=1 \\ \mathbf{A}^{-1}&=\begin{pmatrix}1&-2\\0&1\end{pmatrix},\quad \mathbf{B}^{-1}=\begin{pmatrix}0&1\\-1&0\end{pmatrix} && \text{invert each factor} \\ \mathbf{B}^{-1}\mathbf{A}^{-1}&=\begin{pmatrix}0&1\\-1&0\end{pmatrix}\begin{pmatrix}1&-2\\0&1\end{pmatrix} \\ &=\begin{pmatrix}0&1\\-1&2\end{pmatrix} && \text{same matrix as above} \end{aligned}

Why this step? The separate calculations establish the equality for these matrices rather than using the equality to assume the answer.

Answer. Both expressions equal (01−12)\begin{pmatrix}0&1\\-1&2\end{pmatrix}, so the rule is verified.

Check. Keeping the original factor order gives A−1B−1=(21−10)\mathbf{A}^{-1}\mathbf{B}^{-1}=\begin{pmatrix}2&1\\-1&0\end{pmatrix}, which is different.

Worked example 8 changes only the top-left entry of A\mathbf{A} from 11 to a non-zero parameter aa. Keep its reciprocal exact throughout.

Worked example 8: verifying the rule with a parameter

Question. Verify the inverse product rule for C=(a201)\mathbf{C}=\begin{pmatrix}a&2\\0&1\end{pmatrix} and B=(0−110)\mathbf{B}=\begin{pmatrix}0&-1\\1&0\end{pmatrix}, where a≠0a\ne0.

Plan. Calculate the two sides separately, retaining the factor 1a\frac1a.

CB=(2−a10)multiply(CB)−1=1a(0a−12)det⁡(CB)=aC−1=1a(1−20a)invert the changed factorB−1C−1=1a(01−10)(1−20a)=1a(0a−12)multiply the inverses\begin{aligned} \mathbf{C}\mathbf{B}&=\begin{pmatrix}2&-a\\1&0\end{pmatrix} && \text{multiply} \\ (\mathbf{C}\mathbf{B})^{-1}&=\frac1a\begin{pmatrix}0&a\\-1&2\end{pmatrix} && \det(\mathbf{C}\mathbf{B})=a \\ \mathbf{C}^{-1}&=\frac1a\begin{pmatrix}1&-2\\0&a\end{pmatrix} && \text{invert the changed factor} \\ \mathbf{B}^{-1}\mathbf{C}^{-1}&=\frac1a\begin{pmatrix}0&1\\-1&0\end{pmatrix}\begin{pmatrix}1&-2\\0&a\end{pmatrix} \\ &=\frac1a\begin{pmatrix}0&a\\-1&2\end{pmatrix} && \text{multiply the inverses} \end{aligned}

Why this step? The condition a≠0a\ne0 is needed for every division by aa; at a=0a=0, neither C\mathbf{C} nor its product has an inverse.

Answer. (CB)−1=B−1C−1(\mathbf{C}\mathbf{B})^{-1}=\mathbf{B}^{-1}\mathbf{C}^{-1}, with both sides equal to 1a(0a−12)\frac1a\begin{pmatrix}0&a\\-1&2\end{pmatrix}.

Check. Multiplying (2−a10)1a(0a−12)\begin{pmatrix}2&-a\\1&0\end{pmatrix}\frac1a\begin{pmatrix}0&a\\-1&2\end{pmatrix} gives I\mathbf{I}. Taking a=1a=1 also recovers Worked example 7.

Brackets are part of the mathematics: (AB)−1(\mathbf{A}\mathbf{B})^{-1} inverts the whole product, whereas AB−1\mathbf{A}\mathbf{B}^{-1} inverts only its second factor.

Exam tip

When asked for the product rule for the inverse of AB\mathbf{A}\mathbf{B}, write that exact product in brackets and reverse the factors on the right. A correct rule for (BA)−1(\mathbf{B}\mathbf{A})^{-1} answers a different question.

The final verification changes the shear entry from 22 to 33, while retaining a non-zero parameter.

Watch out

Wrong: (AB)−1=A−1B−1(\mathbf{A}\mathbf{B})^{-1}=\mathbf{A}^{-1}\mathbf{B}^{-1}. This fails for the first pair: it gives (21−10)\begin{pmatrix}2&1\\-1&0\end{pmatrix}. Undo the last transformation first; the correct inverse is B−1A−1=(01−12)\mathbf{B}^{-1}\mathbf{A}^{-1}=\begin{pmatrix}0&1\\-1&2\end{pmatrix}.

Write the reversed order before calculating the final verification.

Quick Recap

  • M−1M=MM−1=I\mathbf{M}^{-1}\mathbf{M}=\mathbf{M}\mathbf{M}^{-1}=\mathbf{I}; the inverse exists exactly when the determinant is non-zero.
  • For order 22, swap the main-diagonal entries, change the other two signs and divide the whole matrix by the determinant. For numerical order 33, use the calculator and check the result.
  • det⁡(M−1)=1/det⁡M\det(\mathbf{M}^{-1})=1/\det\mathbf{M}. This checks a determinant, not every entry.
  • Cancel a known factor on its own side: AX=B\mathbf{A}\mathbf{X}=\mathbf{B} gives X=A−1B\mathbf{X}=\mathbf{A}^{-1}\mathbf{B}, while XA=B\mathbf{X}\mathbf{A}=\mathbf{B} gives X=BA−1\mathbf{X}=\mathbf{B}\mathbf{A}^{-1}.
  • (AB)−1=B−1A−1(\mathbf{A}\mathbf{B})^{-1}=\mathbf{B}^{-1}\mathbf{A}^{-1}: undo the last transformation first.

The opening image Q=(5,3)Q=(5,3) has the unique pre-image P=(2,1)P=(2,1), recovered by multiplying its column vector by M−1\mathbf{M}^{-1}.