MATH 133 Linear Algebra and Geometry • McGill University, Montreal

Revision sheet: matrix inverses and elementary matrices (MATH 133)

This sheet is not a summary of sections 2.4 and 2.5 of Nicholson: you already have the course notes. It answers one question only, what makes students lose marks on matrix inverses and elementary matrices in MATH 133 at McGill University, and which precise gesture avoids each loss.

Everything below is done by hand, as on the exam: the 2×22 \times 2 inverse by its formula, every larger inverse by row reducing [A∣I][A \mid I] with each operation named, and every answer checked by multiplying back. Determinants of 3×33 \times 3 matrices, the adjugate and Cramer's rule belong to the next chapters and are not needed here.

The thread of the chapter

There is no matrix division: an inverse undoes a matrix from ONE side, and the side is the whole answer. Every row operation multiplies on the left, (AB)−1(AB)^{-1} reverses the order, AX=BAX = B and XA=BXA = B have different solutions, and a product of elementary matrices is read from the side it acts on.

This chapter is part of MATH 133, Linear Algebra and Geometry (McGill)

The essentials

Definition, uniqueness, and the side

  • • AA (square) is invertible when some BB gives AB=IAB = I AND BA=IBA = I. That BB is unique, because B=B(AC)=(BA)C=CB = B(AC) = (BA)C = C, and it is written A−1A^{-1}.
  • • For square matrices one product is enough: AB=IAB = I already forces BA=IBA = I. On a first question, write both anyway.
  • • 2×22 \times 2: (abcd)−1=1ad−bc(d−b−ca)\begin{pmatrix} a & b \\ c & d \end{pmatrix}^{-1} = \frac{1}{ad - bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix} when ad−bc≠0ad - bc \neq 0; no inverse when ad−bc=0ad - bc = 0.
  • • There is no BA\frac{B}{A}. AX=BAX = B gives X=A−1BX = A^{-1}B, XA=BXA = B gives X=BA−1X = BA^{-1}, Ax=bA\mathbf{x} = \mathbf{b} gives x=A−1b\mathbf{x} = A^{-1}\mathbf{b}.
AX=BX =A⁻¹BXA=BX =BA⁻¹A on the LEFT of XA on the RIGHT of X
Same letters, two equations, two answers: A−1A^{-1} enters on the side where AA stood, so A−1BA^{-1}B and BA−1BA^{-1} are different matrices in general.

Every question of the chapter reduces to one habit: before writing A−1A^{-1} anywhere, say on which side of the unknown AA stands, and multiply BOTH sides of the equation on that side.

The algorithm, and what the right block records

  • • Row reduce [A∣I][A \mid I]. If the left block becomes II, the right block is A−1A^{-1}. If a ROW of zeros appears in the left block, stop: AA has no inverse.
  • • Each row operation is a multiplication on the LEFT by an elementary matrix EE, the matrix obtained by doing that operation to II.
  • • If Ek⋯E2E1A=IE_k \cdots E_2E_1A = I, then A−1=Ek⋯E2E1A^{-1} = E_k \cdots E_2E_1, which is exactly what the right block holds, and A=E1−1E2−1⋯Ek−1A = E_1^{-1}E_2^{-1} \cdots E_k^{-1}.
  • • Inverses of elementary matrices: a swap is its own inverse, scaling by c≠0c \neq 0 is undone by scaling by 1c\frac{1}{c}, adding cRjcR_j is undone by subtracting cRjcR_j.
  • • Rules: (AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1}, (AT)−1=(A−1)T(A^T)^{-1} = (A^{-1})^T, (kA)−1=1kA−1(kA)^{-1} = \frac{1}{k}A^{-1}, (An)−1=(A−1)n(A^n)^{-1} = (A^{-1})^n. None for (A+B)−1(A + B)^{-1}.

Column operations are multiplications on the RIGHT: one of them in the middle of the algorithm and the right block is no longer A−1A^{-1}.

The rules in table form

Each row reads from left to right: the assumptions, then the result. A red cell is not an answer, it is the finding that the form settles nothing and the instruction to rewrite it. Every case is followed by a worked example.

Inverting a combination of matrices

Read the expression, then the tempting answer students write, then the correct inverse. Throughout, A=(1112)A = \begin{pmatrix} 1 & 1 \\ 1 & 2 \end{pmatrix} and B=(1031)B = \begin{pmatrix} 1 & 0 \\ 3 & 1 \end{pmatrix}, so A−1=(2−1−11)A^{-1} = \begin{pmatrix} 2 & -1 \\ -1 & 1 \end{pmatrix} and B−1=(10−31)B^{-1} = \begin{pmatrix} 1 & 0 \\ -3 & 1 \end{pmatrix}. The red line is the one rule that does not exist.

ExpressionTempting answerCorrect inverse
(AB)−1(AB)^{-1} A−1B−1A^{-1}B^{-1} B−1A−1B^{-1}A^{-1}

Example: AB=(4172)AB = \begin{pmatrix} 4 & 1 \\ 7 & 2 \end{pmatrix} and (AB)−1=B−1A−1=(2−1−74)(AB)^{-1} = B^{-1}A^{-1} = \begin{pmatrix} 2 & -1 \\ -7 & 4 \end{pmatrix}, while A−1B−1=(5−1−41)A^{-1}B^{-1} = \begin{pmatrix} 5 & -1 \\ -4 & 1 \end{pmatrix}.

(BT)−1(B^T)^{-1} B−1B^{-1} (B−1)T(B^{-1})^T

Example: BT=(1301)B^T = \begin{pmatrix} 1 & 3 \\ 0 & 1 \end{pmatrix} has inverse (1−301)\begin{pmatrix} 1 & -3 \\ 0 & 1 \end{pmatrix}, the transpose of B−1B^{-1}.

(2B)−1(2B)^{-1} 2B−12B^{-1} 12B−1\frac{1}{2}B^{-1}

Example: 2B⋅12B−1=I2B \cdot \frac{1}{2}B^{-1} = I, while 2B⋅2B−1=4I2B \cdot 2B^{-1} = 4I.

(B3)−1(B^3)^{-1} 1B3\frac{1}{B^3} (B−1)3(B^{-1})^3

Example: B3=(1091)B^3 = \begin{pmatrix} 1 & 0 \\ 9 & 1 \end{pmatrix} and (B−1)3=(10−91)(B^{-1})^3 = \begin{pmatrix} 1 & 0 \\ -9 & 1 \end{pmatrix}: their product is II.

(A+B)−1(A + B)^{-1} A−1+B−1A^{-1} + B^{-1} no formula rule does not exist

Example: I+I=2II + I = 2I has inverse 12I\frac{1}{2}I, but I−1+I−1=2II^{-1} + I^{-1} = 2I. Worse, I+(−I)=0I + (-I) = 0 has no inverse at all.

What to do: Add first, check that the sum is invertible, then invert the sum like any other matrix.

Every correct line of this table is proved the same way: name the candidate, multiply it by the matrix on both sides, get II, and conclude by uniqueness of the inverse.

The mistakes that cost marks

These are the errors I correct most often in session. Each one costs marks on a paper, even when the reasoning behind it is right.

1. Solving XA = B as if A stood on the left

the whole question

What not to write

“XA=BXA = B, so X=A−1BX = A^{-1}B.”

What to write

“AA is on the right of XX, so I multiply both sides on the right by A−1A^{-1}: X=BA−1X = BA^{-1}.”

Why: With A=(1112)A = \begin{pmatrix} 1 & 1 \\ 1 & 2 \end{pmatrix} and B=(1031)B = \begin{pmatrix} 1 & 0 \\ 3 & 1 \end{pmatrix}, BA−1=(2−15−2)BA^{-1} = \begin{pmatrix} 2 & -1 \\ 5 & -2 \end{pmatrix} solves the equation and A−1B=(−1−121)A^{-1}B = \begin{pmatrix} -1 & -1 \\ 2 & 1 \end{pmatrix} does not. Check sizes first: if BB has three columns and AA is 2×22 \times 2, XA=BXA = B has no solution of any size.

2. Keeping the original order in the inverse of a product

2 marks, and every result built on it

What not to write

“(AB)−1=A−1B−1(AB)^{-1} = A^{-1}B^{-1}.”

What to write

“(AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1}: BB acted first, so it is undone last.”

Why: (AB)(B−1A−1)=A(BB−1)A−1=I(AB)(B^{-1}A^{-1}) = A(BB^{-1})A^{-1} = I, and the other order leaves AA and A−1A^{-1} separated by BB. The same reversal governs A=E1−1E2−1E3−1A = E_1^{-1}E_2^{-1}E_3^{-1} and (ABC)−1=C−1B−1A−1(ABC)^{-1} = C^{-1}B^{-1}A^{-1}.

3. Inverting a matrix entry by entry

the whole question

What not to write

“(1234)−1=(1121314)\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}^{-1} = \begin{pmatrix} 1 & \frac{1}{2} \\ \frac{1}{3} & \frac{1}{4} \end{pmatrix}.”

What to write

“ad−bc=4−6=−2ad - bc = 4 - 6 = -2, so the inverse is −12(4−2−31)=(−2132−12)-\frac{1}{2}\begin{pmatrix} 4 & -2 \\ -3 & 1 \end{pmatrix} = \begin{pmatrix} -2 & 1 \\ \frac{3}{2} & -\frac{1}{2} \end{pmatrix}.”

Why: The (1,1)(1,1) entry of the product of the matrix with the false answer is 1+23=531 + \frac{2}{3} = \frac{5}{3}, not 11. An inverse undoes the whole map, so each of its entries depends on all four entries of AA.

4. Swapping the wrong entries in the 2 by 2 formula

2 marks

What not to write

“(4311)−1=(1314)\begin{pmatrix} 4 & 3 \\ 1 & 1 \end{pmatrix}^{-1} = \begin{pmatrix} 1 & 3 \\ 1 & 4 \end{pmatrix}.”

What to write

“Swap the DIAGONAL, change the SIGN of the other two, divide by ad−bc=1ad - bc = 1: (1−3−14)\begin{pmatrix} 1 & -3 \\ -1 & 4 \end{pmatrix}.”

Why: The false answer gives (4311)(1314)=(72427)\begin{pmatrix} 4 & 3 \\ 1 & 1 \end{pmatrix}\begin{pmatrix} 1 & 3 \\ 1 & 4 \end{pmatrix} = \begin{pmatrix} 7 & 24 \\ 2 & 7 \end{pmatrix}, visibly not II. Four entries, two gestures: the diagonal entries trade places, the off-diagonal ones stay in place and change sign.

5. Row reducing the left block and forgetting the right one

the whole question, even with a correct left block

What not to write

“R2→R2−2R1R_2 \to R_2 - 2R_1 on AA first, and the identity copied on the right at the end.”

What to write

“Every operation is applied to the WHOLE row of [A∣I][A \mid I], left and right blocks together.”

Why: The right block is the record of the operations: Ek⋯E1[A∣I]=[I∣Ek⋯E1]E_k \cdots E_1[A \mid I] = [I \mid E_k \cdots E_1]. An operation skipped on the right is missing from the product, so the matrix read at the end is not A−1A^{-1}, and multiplying back shows it.

6. Declaring a matrix singular because of a zero in the pivot place

the whole question

What not to write

“The (1,1)(1,1) entry of (0123)\begin{pmatrix} 0 & 1 \\ 2 & 3 \end{pmatrix} is 00, so the matrix is not invertible.”

What to write

“R1↔R2R_1 \leftrightarrow R_2 brings a 22 into the pivot place and the reduction goes on: the inverse is (−321210)\begin{pmatrix} -\frac{3}{2} & \frac{1}{2} \\ 1 & 0 \end{pmatrix}.”

012110231a 0 in the pivot placeswap R1, R2 and go on12-1013000a whole row of zerosstop: no inverse
Left: a 00 in the pivot place with a 11 below it, so swap and continue. Right: a whole row of zeros in the left block, the only situation that proves there is no inverse.

Why: A zero in the pivot place calls for a look BELOW it and a swap. Only a whole row of zeros in the left block ends the algorithm, which happens when the pivot column has nothing but zeros at and below the pivot place.

7. Dividing by a pivot that depends on a letter

half the question, the case analysis

What not to write

“For (123k)\begin{pmatrix} 1 & 2 \\ 3 & k \end{pmatrix}, R2−3R1R_2 - 3R_1 gives the pivot k−6k - 6, then R2→1k−6R2R_2 \to \frac{1}{k-6}R_2: invertible for every kk.”

What to write

“If k=6k = 6, the second row is zero and there is no inverse. If k≠6k \neq 6, the pivot is non-zero and I may divide by it: invertible exactly when k≠6k \neq 6.”

Why: Dividing by k−6k - 6 silently assumes k≠6k \neq 6. The excluded value is the whole answer to for which kk, so it must be stated BEFORE the division, as its own case.

8. Writing A as the product of the elementary matrices in the order found

the whole part

What not to write

“E3E2E1A=IE_3E_2E_1A = I, so A=E1E2E3A = E_1E_2E_3.”

What to write

“E3E2E1A=IE_3E_2E_1A = I, so A−1=E3E2E1A^{-1} = E_3E_2E_1 and A=E1−1E2−1E3−1A = E_1^{-1}E_2^{-1}E_3^{-1}.”

Why: Going back from II to AA means UNDOING the operations, so the factors are the inverses, and the last operation performed is undone first. With the three operations taking (0213)\begin{pmatrix} 0 & 2 \\ 1 & 3 \end{pmatrix} to II, the false product is (0121−3)\begin{pmatrix} 0 & \frac{1}{2} \\ 1 & -3 \end{pmatrix}, another matrix.

9. Factoring X out without the identity

1 mark, and a meaningless line

What not to write

“3X−MX=D3X - MX = D, so (3−M)X=D(3 - M)X = D.”

What to write

“3X−MX=(3I−M)X=D3X - MX = (3I - M)X = D, so X=(3I−M)−1DX = (3I - M)^{-1}D when 3I−M3I - M is invertible.”

Why: A number minus a matrix is not defined: 3X3X is (3I)X(3I)X, and the II is what makes the factorisation legal. Factor XX out on the side where it stands in every term, here the right.

Which method to choose

Which method for the inverse, by the form of the matrix

Look at the size and the shape of the matrix, and at what the statement gives you

ad - bc = -5x + 2y = 43x + y = 7ad - bc = 02x + 4y = 8x + 2y = 2
For a 2×22 \times 2, ad−bcad - bc decides: non-zero, the two lines of Ax=bA\mathbf{x} = \mathbf{b} cross once for every b\mathbf{b}; zero, the rows are proportional and the lines are parallel.
  • If a numerical 2×22 \times 2 → the formula with ad−bcad - bc

    Example: (4311)−1=(1−3−14)\begin{pmatrix} 4 & 3 \\ 1 & 1 \end{pmatrix}^{-1} = \begin{pmatrix} 1 & -3 \\ -1 & 4 \end{pmatrix}

  • If a numerical 3×33 \times 3 or larger → row reduce [A∣I][A \mid I], naming every operation

    Example: the worked example below, four operations

  • If a letter inside the matrix → reduce with the letter, isolate the pivot that contains it, and split the cases BEFORE dividing

    Example: (123k)\begin{pmatrix} 1 & 2 \\ 3 & k \end{pmatrix}: pivot k−6k - 6, invertible iff k≠6k \neq 6

  • If a diagonal matrix → invert each diagonal entry

    Example: diag(2,−1,4)−1=diag(12,−1,14)\text{diag}(2, -1, 4)^{-1} = \text{diag}(\frac{1}{2}, -1, \frac{1}{4})

  • If I−NI - N with NN strictly triangular → (I−N)−1=I+N+N2+…(I - N)^{-1} = I + N + N^2 + \dots, which stops because a power of NN is zero

    Example: N2=0N^2 = 0 gives (I−N)−1=I+N(I - N)^{-1} = I + N

  • If a polynomial identity satisfied by A → factor AA out on each side to get A⋅(… )=IA \cdot (\dots) = I

    Example: A2−2A−3I=0A^2 - 2A - 3I = 0 gives A−1=13(A−2I)A^{-1} = \frac{1}{3}(A - 2I)

  • If a product, a transpose or a power of matrices whose inverses are known → use the rules of the table, never a new reduction

    Example: (AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1}

Not in this chapter: a 3×33 \times 3 determinant to decide invertibility, the adjugate, Cramer's rule. They come next, and a solution built on them before they are taught earns the method marks of none of the above.

Which side: isolating X in a matrix equation

Look where each known matrix stands relative to X

  • If AX=BAX = B → multiply on the LEFT by A−1A^{-1}

    Example: X=A−1BX = A^{-1}B

  • If XA=BXA = B → multiply on the RIGHT by A−1A^{-1}

    Example: X=BA−1X = BA^{-1}

  • If PXQ=RPXQ = R → peel from the outside, left factor from the left, right factor from the right

    Example: X=P−1RQ−1X = P^{-1}RQ^{-1}

  • If an inverse around the unknown, (AX)−1=N(AX)^{-1} = N → invert both sides first, then peel

    Example: X=A−1N−1=(NA)−1X = A^{-1}N^{-1} = (NA)^{-1}

  • If XX in several terms, kX−MX=DkX - MX = D → factor XX on its side with the identity

    Example: X=(kI−M)−1DX = (kI - M)^{-1}D

If no branch fits, compare the sizes: the product on each side of the equation must have the size of the other side, and that alone usually tells you where X must go.

How the answer is expected to be written

A marker ticks steps. Here they are in order, with the concluding sentence expected word for word.

Inverting a matrix by row reduction

When to use it: Any statement that says find A−1A^{-1} for a 3×33 \times 3, or decide whether AA is invertible and if so find its inverse

  1. 1 Write the block [A∣I][A \mid I] in full, with the vertical bar.
  2. 2 Reduce, naming every operation in the margin: R2→R2−2R1R_2 \to R_2 - 2R_1, R1↔R3R_1 \leftrightarrow R_3, R3→12R3R_3 \to \frac{1}{2}R_3. Apply each one to the whole row.
  3. 3 If a whole row of the left block becomes zero, stop and conclude that A is not invertible, quoting that row.
  4. 4 When the left block is II, copy the right block as A−1A^{-1}.
  5. 5 Multiply back: compute AA−1AA^{-1}, or at least one row of it, and write that you obtained II.

Concluding sentence

“The left block reduced to II, so AA is invertible and A−1A^{-1} is the right block. Check: AA−1=IAA^{-1} = I.”

The trap: Stopping at the matrix with no sentence and no check. The marker cannot tell a copied answer from a computed one, and the check is where a sign error becomes visible.

Marking: Typically 1 mark for the set-up, 3 for the operations named and applied correctly, 1 for reading the answer and 1 for the check. The named operations are worth more than the final matrix.

Proving invertibility from a polynomial identity

When to use it: A statement that gives an identity such as A2−2A−3I=0A^2 - 2A - 3I = 0 and asks to show that AA is invertible

  1. 1 Isolate the identity term: A2−2A=3IA^2 - 2A = 3I.
  2. 2 Factor AA out on the LEFT: A(A−2I)=3IA(A - 2I) = 3I, then on the RIGHT: (A−2I)A=3I(A - 2I)A = 3I.
  3. 3 Divide the NUMBER, never a matrix: A⋅13(A−2I)=IA \cdot \frac{1}{3}(A - 2I) = I and 13(A−2I)⋅A=I\frac{1}{3}(A - 2I) \cdot A = I.
  4. 4 Conclude by the definition and the uniqueness of the inverse.

Concluding sentence

“Since A⋅13(A−2I)=13(A−2I)⋅A=IA \cdot \frac{1}{3}(A - 2I) = \frac{1}{3}(A - 2I) \cdot A = I, AA is invertible and A−1=13(A−2I)A^{-1} = \frac{1}{3}(A - 2I).”

The trap: Writing A=3IA−2IA = \frac{3I}{A - 2I}, a fraction of matrices that does not exist, or factoring the identity as (A−3I)(A+I)=0(A - 3I)(A + I) = 0 and concluding A=3IA = 3I or A=−IA = -I: a product of two non-zero matrices can be zero.

Marking: Usually 2 marks for the factorisation on both sides and 1 for the conclusion that names the inverse.

Check before you hand in

Five minutes of checking recover more marks than one more problem started in a hurry.

The typical problem, taken apart

An inverse by row reduction, then an equation solved on the correct side

Let A=(121011122)A = \begin{pmatrix} 1 & 2 & 1 \\ 0 & 1 & 1 \\ 1 & 2 & 2 \end{pmatrix}.

Find A−1A^{-1} by reducing [A∣I][A \mid I], then find the row vector x\mathbf{x} such that xA=(2,5,4)\mathbf{x}A = (2, 5, 4), and say what x\mathbf{x} means for the rows of AA.

Step 1

[A∣I]=(121100011010122001)[A \mid I] = \left(\begin{array}{ccc|ccc} 1 & 2 & 1 & 1 & 0 & 0 \\ 0 & 1 & 1 & 0 & 1 & 0 \\ 1 & 2 & 2 & 0 & 0 & 1 \end{array}\right). R3→R3−R1R_3 \to R_3 - R_1 gives the third row (0,0,1∣−1,0,1)(0, 0, 1 \mid -1, 0, 1).

Why

One operation already produces a staircase with pivots 1, 1, 1: the matrix is invertible, and the rest is clearing upwards. Spotting the cheapest first move is worth more than following a fixed recipe.

Step 2

R2→R2−R3R_2 \to R_2 - R_3 gives (0,1,0∣1,1,−1)(0, 1, 0 \mid 1, 1, -1), and R1→R1−R3R_1 \to R_1 - R_3 gives (1,2,0∣2,0,−1)(1, 2, 0 \mid 2, 0, -1).

Why

Clearing the third column with the third row first means the later operations never touch it again. Every operation is applied to the whole row, right block included, because the right block is the record.

Step 3

R1→R1−2R2R_1 \to R_1 - 2R_2 gives (1,0,0∣0,−2,1)(1, 0, 0 \mid 0, -2, 1). The block is (1000−2101011−1001−101)\left(\begin{array}{ccc|ccc} 1 & 0 & 0 & 0 & -2 & 1 \\ 0 & 1 & 0 & 1 & 1 & -1 \\ 0 & 0 & 1 & -1 & 0 & 1 \end{array}\right), so A−1=(0−2111−1−101)A^{-1} = \begin{pmatrix} 0 & -2 & 1 \\ 1 & 1 & -1 \\ -1 & 0 & 1 \end{pmatrix}.

Why

Four named operations: that list is where most of the marks are, whatever happens to the final matrix.

Step 4

Check: the rows of AA against the columns of A−1A^{-1} give 1,0,01, 0, 0, then 0,1,00, 1, 0, then 0,0,10, 0, 1. So AA−1=IAA^{-1} = I.

Why

Nine dot products, one minute. A sign error in the reduction shows up here as a wrong entry, never silently.

Step 5

xA=(2,5,4)\mathbf{x}A = (2, 5, 4) has AA on the RIGHT of the unknown, so x=(2,5,4)A−1=(0+5−4, −4+5+0, 2−5+4)=(1,1,1)\mathbf{x} = (2, 5, 4)A^{-1} = (0 + 5 - 4,\ -4 + 5 + 0,\ 2 - 5 + 4) = (1, 1, 1).

Why

A row vector times a matrix is a combination of its ROWS: xA=(2,5,4)\mathbf{x}A = (2, 5, 4) asks which combination of the rows of AA gives (2,5,4)(2, 5, 4), and (1,1,1)(1, 1, 1) says the plain sum. Check: (1,2,1)+(0,1,1)+(1,2,2)=(2,5,4)(1, 2, 1) + (0, 1, 1) + (1, 2, 2) = (2, 5, 4).

The conclusion, written out

“A−1=(0−2111−1−101)A^{-1} = \begin{pmatrix} 0 & -2 & 1 \\ 1 & 1 & -1 \\ -1 & 0 & 1 \end{pmatrix}, and x=(2,5,4)A−1=(1,1,1)\mathbf{x} = (2, 5, 4)A^{-1} = (1, 1, 1): the sum of the three rows of AA is (2,5,4)(2, 5, 4).”

The classic mistake on this problem: Computing A−1A^{-1} times the column (2,5,4)(2, 5, 4) instead: that gives (−6,3,2)(-6, 3, 2), which solves Ax=bA\mathbf{x} = \mathbf{b}, a different equation, and −6R1+3R2+2R3=(−4,−5,1)-6R_1 + 3R_2 + 2R_3 = (-4, -5, 1), nowhere near (2,5,4)(2, 5, 4).

Learn by heart

  • • A−1A^{-1} exists when AB=BA=IAB = BA = I for some BB, and it is unique.
  • • 2×22 \times 2: swap the diagonal, change the sign of the other two, divide by ad−bcad - bc; no inverse when ad−bc=0ad - bc = 0.
  • • [A∣I]→[I∣A−1][A \mid I] \to [I \mid A^{-1}]; a zero ROW in the left block means no inverse, a zero ENTRY means swap.
  • • AX=B⇒X=A−1BAX = B \Rightarrow X = A^{-1}B; XA=B⇒X=BA−1XA = B \Rightarrow X = BA^{-1}. Never BA\frac{B}{A}.
  • • (AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1}, (AT)−1=(A−1)T(A^T)^{-1} = (A^{-1})^T, (kA)−1=1kA−1(kA)^{-1} = \frac{1}{k}A^{-1}. No rule for (A+B)−1(A + B)^{-1}.
  • • Ek⋯E1A=I⇒A−1=Ek⋯E1E_k \cdots E_1A = I \Rightarrow A^{-1} = E_k \cdots E_1 and A=E1−1⋯Ek−1A = E_1^{-1} \cdots E_k^{-1}.
  • • N2=0⇒(I−N)−1=I+NN^2 = 0 \Rightarrow (I - N)^{-1} = I + N; N3=0⇒(I−N)−1=I+N+N2N^3 = 0 \Rightarrow (I - N)^{-1} = I + N + N^2.

Frequently asked questions

How do I find the inverse of a 3 by 3 matrix without a calculator?

Write the matrix and the identity side by side and row reduce the whole block until the left half is the identity. The right half is then the inverse. Name every row operation, apply it to the full row, and finish by multiplying the matrix by your answer to check that you get the identity. If a row of zeros appears on the left, the matrix has no inverse.

How do I know a matrix has no inverse in MATH 133?

For a 2 by 2, compute a times d minus b times c: if it is zero, there is no inverse. For anything larger, start the row reduction of the matrix next to the identity. If a whole row of the left half becomes zero, stop: the matrix is not invertible. A single zero in a pivot position is not enough, a row swap usually fixes it.

Is the inverse of AB equal to the inverse of A times the inverse of B?

No, the order reverses: the inverse of AB is the inverse of B times the inverse of A. The matrix B acted first, so it has to be undone last, just as the last step of any procedure is the first one to be undone. The original order gives a different matrix in general, and multiplying it by AB does not give the identity.

What is the difference between AX = B and XA = B?

The side on which A stands. In AX equals B, multiply both sides on the left by the inverse of A, which gives X equals the inverse of A times B. In XA equals B, multiply on the right, which gives X equals B times the inverse of A. Matrices do not commute, so the two answers are different matrices, and only one of them solves each equation.

Why does row reducing next to the identity give the inverse?

Each row operation is the same as multiplying on the left by an elementary matrix. When the left half reaches the identity, the product of all those elementary matrices times A equals the identity, so that product is the inverse of A. The identity on the right started as a blank record and ends up holding exactly that product.

Practise it

Corrected exercises: Matrix inverses and elementary matrices, MATH 133 at McGill

A method is proved on a paper, not on a sheet. The set for the same chapter takes each of these traps into a problem, with the solution written out step by step.

  • 10 corrected exercises
  • 100 points
  • 150 minutes
Do the exercises
Previous sheet Matrix algebra Next sheet Determinants by cofactor expansion

See also

Looking for a MATH 133 tutor in Montreal?

Get in touch for a first session. The inverse chapter is where matrix algebra stops behaving like arithmetic: one side, one order, and a check by multiplication at the end of every answer.

Site by Studio Squalli