Determinants and Inverses
From the Linear algebra curriculum
TL;DR
Determinants tell us important things about square matrices, especially if an inverse exists, which is crucial for solving systems of linear equations. The determinant is a single number calculated from a matrix, and a matrix has an inverse if and only if its determinant isn't zero. The inverse matrix, when it exists, allows us to "undo" the original matrix's transformation.
1. The Mental Model
Imagine a matrix as a transformation that stretches, rotates, or flips space. The determinant tells you how much this transformation scales areas or volumes. If the determinant is zero, it means the transformation squishes everything into a flatter space, losing information, so you can't "un-squish" it (no inverse).
2. The Core Material
Determinants are specific numbers calculated from square matrices (matrices with the same number of rows and columns). They reveal crucial properties about the matrix, particularly its invertibility.
2.1 What a Determinant Is
For a 2x2 matrix, the determinant is straightforward:
If A = [[a, b], [c, d]], then det(A) = ad - bc.
For larger matrices (3x3, 4x4, etc.), the calculation involves a sum of products of elements, where each product is multiplied by a "cofactor." It can get a bit tedious by hand, but calculators and software handle it easily. The key idea is that it's a single, scalar value.
2.2 Invertibility and the Determinant
This is the most critical connection:
A square matrix A has an inverse (denoted A⁻¹) if and only if det(A) ≠ 0.
If det(A) = 0, the matrix is called singular or non-invertible. This means the transformation it represents collapses dimensions, making it impossible to reverse. Geometrically, it means it maps space onto a lower-dimensional subspace (e.g., a 3D volume to a 2D plane or line).
2.3 The Matrix Inverse
The inverse of a square matrix A, if it exists, is another matrix A⁻¹ such that:
A * A⁻¹ = I and A⁻¹ * A = I
where I is the identity matrix (a square matrix with ones on the main diagonal and zeros everywhere else). The identity matrix acts like the number 1 in scalar multiplication: A * I = A.
The inverse is incredibly useful for solving systems of linear equations. If you have Ax = b, and A⁻¹ exists, you can find x by calculating x = A⁻¹b.
Calculating a 2x2 Inverse
For a 2x2 matrix A = [[a, b], [c, d]]:
A⁻¹ = (1 / det(A)) * [[d, -b], [-c, a]]
Remember, this only works if det(A) ≠ 0.
graph TD
A[Start: Have a Square Matrix A?] --> B{Is A a square matrix?};
B -- No --> C[Stop: No determinant or inverse];
B -- Yes --> D[Calculate det(A)];
D --> E{Is det(A) = 0?};
E -- Yes --> F[A is Singular: No Inverse Exists];
E -- No --> G[A is Non-singular: Inverse A⁻¹ Exists];
G --> H[Calculate A⁻¹ (e.g., using formula for 2x2 or more complex methods for larger matrices)];
H --> I[End: A⁻¹ is found];
F --> J[End: No inverse];
3. Worked Example
Let's find the determinant and inverse for the matrix A = [[3, 2], [1, 4]].
-
Calculate the determinant:
det(A) = (3 * 4) - (2 * 1) = 12 - 2 = 10 -
Check for invertibility:
Sincedet(A) = 10, which is not zero, the matrixAis non-singular and its inverse exists. -
Calculate the inverse:
Using the 2x2 inverse formula:
A⁻¹ = (1 / 10) * [[4, -2], [-1, 3]]
A⁻¹ = [[4/10, -2/10], [-1/10, 3/10]]
A⁻¹ = [[2/5, -1/5], [-1/10, 3/10]]
To verify, let's multiply A * A⁻¹:
[[3, 2], [1, 4]] * [[2/5, -1/5], [-1/10, 3/10]]
= [[(3 * 2/5) + (2 * -1/10), (3 * -1/5) + (2 * 3/10)],
[(1 * 2/5) + (4 * -1/10), (1 * -1/5) + (4 * 3/10)]]
= [[6/5 - 2/10, -3/5 + 6/10],
[2/5 - 4/10, -1/5 + 12/10]]
= [[12/10 - 2/10, -6/10 + 6/10],
[4/10 - 4/10, -2/10 + 12/10]]
= [[10/10, 0], [0, 10/10]]
= [[1, 0], [0, 1]] = I
It works!
4. Key Takeaways
- Determinants are single numbers that describe properties of square matrices.
- A matrix must be square to have a determinant or an inverse.
- If
det(A) ≠ 0, the matrixAhas an inverseA⁻¹. - If
det(A) = 0, the matrixAis singular and does not have an inverse. - The inverse
A⁻¹"undoes" the transformation ofA, such thatA * A⁻¹ = I. - Inverses are crucial for solving systems of linear equations like
Ax = b.
Common mistakes to avoid:
- Trying to calculate a determinant or inverse for a non-square matrix.
- Forgetting that if the determinant is zero, an inverse simply doesn't exist.
- Confusing the determinant (a scalar) with the inverse (a matrix).
- Making arithmetic errors when calculating ad - bc for 2x2 or larger determinants.
5. Now Try It
Consider the matrix B = [[2, 6], [1, 3]].
1. Calculate det(B).
2. Based on the determinant, determine if B is invertible.
3. If it is, calculate B⁻¹. If not, explain why.
Success looks like correctly calculating the determinant, identifying if an inverse exists, and if so, computing it. If an inverse doesn't exist, your explanation should be that the determinant is zero.
Try it yourself: Matrix transformations visualiser
Frequently asked about Determinants and Inverses
Study this next
Get the full Linear algebra curriculum
Clone the complete plan to your dashboard for unlimited AI-generated notes, practice quizzes, and a personalised revision schedule.
Save this course free