Skip to content
Lesson 5 of 9 · Linear Algebra

Determinants and inverses

Compute determinants and inverses, understand them as area scaling and as an 'undo' operation, and know exactly when an inverse exists.

24 min

The determinant

For a 2 × 2 matrix A = [a b; c d]:

det A = ad − bc

Geometrically, A sends the unit square to a parallelogram of area |det A|. The sign records whether orientation is flipped (negative: like a mirror image). For a 3 × 3 matrix the determinant is a volume scale factor and is computed by cofactor expansion along a row:

det A = a₁₁(a₂₂a₃₃ − a₂₃a₃₂) − a₁₂(a₂₁a₃₃ − a₂₃a₃₁) + a₁₃(a₂₁a₃₂ − a₂₂a₃₁)

Properties worth knowing:

  • det(AB) = det A · det B; det(Aᵀ) = det A.
  • Swapping two rows changes the sign; scaling one row by c scales det by c.
  • For an n × n matrix, det(cA) = cⁿ det A.
  • A triangular matrix has det = product of its diagonal entries.

The inverse A⁻¹ undoes A: AA⁻¹ = A⁻¹A = I. It exists if and only if det A ≠ 0, which also means: the columns are independent, rank is full, and Ax = b has exactly one solution for every b. Such a matrix is invertible (non-singular).

For 2 × 2:

A⁻¹ = (1/(ad − bc)) [d −b; −c a]

For larger matrices, row reduce [A | I] into [I | A⁻¹].

If A is invertible, Ax = b has the solution x = A⁻¹b. In practice, elimination is faster than computing A⁻¹, but the inverse is the clean way to think. Also (AB)⁻¹ = B⁻¹A⁻¹: reverse the order, like taking off socks and shoes.

Find the inverse of A = [2 1; 5 3] and solve Ax = (3, 8).

  1. 1

    det A = 2·3 − 1·5 = 1

    Nonzero, so A is invertible.

1/4

Find det of [1 2 3; 0 1 4; 5 6 0].

  1. 1

    Expand along row 1: 1·(1·0 − 4·6) − 2·(0·0 − 4·5) + 3·(0·6 − 1·5)

    Signs alternate + − +.

1/3
Try it

With (2, 1, 5, 3) the determinant is 1. Make the second row a multiple of the first, for example c = 4, d = 2: the determinant becomes 0 because the columns point the same way and the unit square collapses. Make it negative by swapping the columns' roles and notice the orientation flip.

2
1
5
3

det [a b; c d]

—

Common misconception

“An invertible matrix is one with no zeros in it.”

Zeros look like missing information, and nonzero entries look 'healthy'.

What is actually true

Invertibility depends on the pattern, not on zeros: the identity matrix is full of zeros and invertible, while [1 2; 2 4] has no zeros and is not (its determinant is 0).

How to catch yourself

Compute the determinant, or check that the columns are independent.

  • det [a b; c d] = ad − bc; it is the area scale factor, with a sign for orientation.
  • A is invertible exactly when det A ≠ 0.
  • 2 × 2 inverse: swap a and d, negate b and c, divide by ad − bc.
  • det(AB) = det A · det B and (AB)⁻¹ = B⁻¹A⁻¹.
  • If A is invertible, Ax = b has the unique solution x = A⁻¹b.
Check yourself

Practice.

1Numeric answer

det [3 2; 1 4] = ?

2Numeric answer

A is 2 × 2 with det A = 5. Find det(2A).

3Numeric answer

For which k is [k 2; 3 6] singular?

4Multiple choice

The inverse of [1 2; 3 5] is:

  • A[−5 2; 3 −1]
  • B[5 −2; −3 1]
  • C[1 3; 2 5]
  • D[−1 2; 3 −5]
5Multiple choice

If det A = 0, then:

  • AA has no inverse
  • BA is the zero matrix
  • CA⁻¹ = Aᵀ
  • DAx = b always has a unique solution

Practise this lesson, not just read it

In BiliMind the questions above are marked when you answer, the flashcards come back on a schedule, and the rest of Linear Algebra is planned around your week. Free.