Steply

Inverse of [3, 0, -2; 1, 0, -1; 2, -2, 1]

Step by step, with the reason for every step · Inverse of a 3 × 3 matrix · Algebra 2

Step by step

The question

Question: find the inverse of A.

A = [3, 0, −2; 1, 0, −1; 2, −2, 1]

The inverse A⁻¹ is the matrix that times A gives I: 1s down the diagonal, 0s elsewhere.

A × A−1 = I

1 Find the determinant

First we need D, the determinant of A, by the diagonals.

D = |3, 0, −2; 1, 0, −1; 2, −2, 1|3, 0; 1, 0; 2, −2

We write the first two columns again, on the right.

Then every diagonal has three numbers.

Down: 3 × 0 × 1, 0 × (−1) × 2, −2 × 1 × (−2).

down = 3 × 0 × 1 + 0 × −1 × 2 + (−2) × 1 × (−2)

0, 0, 4.

Together: 4.

= 0 + 0 + 4 = 4

Up: 2 × 0 × (−2), −2 × (−1) × 3, 1 × 1 × 0.

up = 2 × 0 × (−2) + (−2) × −1 × 3 + 1 × 1 × 0

0, 6, 0.

Together: 6.

= 0 + 6 + 0 = 6

Down minus up: 4 minus 6 is −2.

So D = −2.

D = 4 − 6 = −2

2 Find the minors

Each entry has a minor: cover its row and its column.

A 2 by 2 is left.

Its determinant, down minus up, is the minor.

minors = [0×1 − −2×(−1), 1×1 − 2×(−1), 1×(−2) − 2×0; 0×1 − −2×(−2), 3×1 − 2×(−2), 3×(−2) − 2×0; 0×(−1) − 0×(−2), 3×(−1) − 1×(−2), 3×0 − 1×0]

Work out each one: −2, 3, −2; −4, 7, −6; 0, −1, 0.

= [−2, 3, −2; −4, 7, −6; 0, −1, 0]

3 Change the signs

The signs go plus, minus, plus, like a checkerboard.

Where there is a minus, the minor changes sign.

signs: [+, −, +; −, +, −; +, −, +]

So the cofactors are rows −2, −3, −2, 4, 7, 6 and 0, 1, 0.

The purple ones changed sign.

C = [−2, −3, −2; 4, 7, 6; 0, 1, 0]

Careful!

Only the minus places change sign: where the row number plus the column number is odd.

Careful: the − places: row + column is odd

4 Swap rows and columns

Row 1 of C becomes column 1, row 2 becomes column 2, row 3 becomes column 3.

Then we divide by D: times 1 over −2.

A−1 = 1−2 × [−2, 4, 0; −3, 7, 1; −2, 6, 0]

5 Divide by the determinant

Every entry over −2, made simpler: rows 1, −2, 0, 3/2, −7/2, −1/2 and 1, −3, 0.

A−1 = [1, −2, 0; 3 over 2, −7 over 2, −1 over 2; 1, −3, 0]

6 Check

Let's check: A times our answer must be I.

Row 1 of A times column 1 of the answer: 1.

row 1 × column 1: 3 × 1 + 0 × 32 + −2 × 1 = 1

Row 1 times column 2: 0.

row 1 × column 2: 3 × (−2) + 0 × (−72) + −2 × (−3) = 0

The other entries work the same way: 1s down the diagonal, 0s elsewhere.

So the answer is right!

A × A−1 = I

Let's look back.

First: find the determinant.

Then: find the minors.

Then: change the signs.

Then: swap rows and columns.

Then: divide by the determinant.

Last: check.

Answer
A−1 = [1, −2, 0; 3 over 2, −7 over 2, −1 over 2; 1, −3, 0]

Your turn

Try this one yourself, then check:

Find the inverse of A = [2, 0, −1; 1, 0, −1; 4, −2, 3]
Show the answer
A−1 = [1, −1, 0; 7 over 2, −5, −1 over 2; 1, −2, 0]

More from Inverse of a 3 × 3 matrix

The whole lesson: Inverse of a 3 × 3 matrix →