Learn Matrices & determinants from scratch
1Matrices and the 2×2 determinant
A matrix is a table of numbers in rows and columns. A matrix with 2 rows and 3 columns is called a 2×3 matrix: rows first, then columns.
Engineers use matrices to write many equations at once. The system 2x + y = 5 and x − y = 1 is stored as the matrix [2 1; 1 −1] of its coefficients.
A square matrix has one special number, its determinant, written det A. For a 2×2 matrix it is the product of one diagonal minus the product of the other.
det A = a·d − b·c
For [3 1; 2 4] the determinant is 3·4 − 1·2 = 10.
If det A = 0, the matrix has no inverse, and the system of equations has no single solution.
Self-check What is the determinant of [4 2; 3 5]? (Row 1 is 4 2, row 2 is 3 5.)
- 14
- 26
- 9
- −14
Answer: 14. a·d − b·c = 4·5 − 2·3 = 20 − 6 = 14. Adding the two products gives 26, and taking bc − ad gives −14.
23×3 determinants and products
For a 3×3 matrix, expand along the first row. Each entry is multiplied by its minor: the 2×2 determinant that is left when you cross out that entry’s row and column.
det A = a11·M11 − a12·M12 + a13·M13
The signs go + − + along the first row. This sign pattern is the easiest part to forget.
A matrix product AB is built from rows of A and columns of B. The entry in row i, column j is row i of A times column j of B: multiply pairs and add.
[1 2; 3 4] · [5; 6] = [1·5 + 2·6; 3·5 + 4·6] = [17; 39]
The product only exists when A has as many columns as B has rows. In general AB is not the same as BA.
Self-check A = [2 1; 0 3] and B = [1 4; 2 1]. What is the entry in row 1, column 2 of AB?
- 13
- 4
- 6
- 9
Answer: 9. Row 1 of A is (2, 1) and column 2 of B is (4, 1): 2·4 + 1·1 = 9. Multiplying only the matching entries gives 1·4 = 4, and 13 is the entry of BA.
3Eigenvalues and systems
An eigenvalue λ of A is a number for which A·v = λ·v for some vector v ≠ 0. The matrix only stretches that vector, it does not turn it.
You find the eigenvalues from the characteristic equation. Here I is the identity matrix [1 0; 0 1].
det(A − λI) = 0
For a 2×2 matrix this becomes a quadratic. Its middle coefficient is the trace a + d, and its constant is det A:
λ² − (a + d)·λ + (ad − bc) = 0
For [4 1; 2 3]: λ² − 7λ + 10 = 0, so (λ − 2)(λ − 5) = 0 and the eigenvalues are 2 and 5.
Cramer’s rule solves a system with determinants. Replace column i of A by the right-hand side to get Ai, then xi = det Ai / det A.
For 2x + y = 5 and x − y = 1: det A = −3 and det Ax = 5·(−1) − 1·1 = −6, so x = −6/−3 = 2.
Self-check What is the larger eigenvalue of [2 1; 1 2]?
- 1
- 2
- 3
- 4
Answer: 3. λ² − 4λ + 3 = 0 gives (λ − 1)(λ − 3) = 0, so the eigenvalues are 1 and 3. 4 is the trace, which is the sum of the eigenvalues, not one of them.
4The method step by step
- Copy the matrix carefully, with every minus sign.
- 2×2 determinant: ad − bc.
- 3×3 determinant: for each entry of the first row, cross out its row and column and find the 2×2 minor.
- Combine with the signs + − +: a11M11 − a12M12 + a13M13.
- Eigenvalues: write λ² − (a + d)λ + det A = 0 and solve the quadratic.
- Check: a row of zeros, or two equal rows, always gives det A = 0.
Tip: expand along a row or column with many zeros. Every zero entry saves you a minor.
5A worked example
Follow every step. Try to predict the next one before you open it.
Worked exampleFind the determinant of the 3×3 matrix A = [2 1 0; 1 3 1; 0 2 4].
1Cross out row 1 and column 1 of the entry 2. What is left is [3 1; 2 4].
M11 = 3·4 − 1·2 = 10
2Cross out row 1 and column 2 of the entry 1. What is left is [1 1; 0 4].
M12 = 1·4 − 1·0 = 4
3The entry a13 is 0, so its term is 0 whatever the minor is. You can skip it.
4det A = 2·10 − 1·4 + 0 = 20 − 4 = 16
5For 3×3 matrices, the rule of Sarrus gives the same value: three “down” diagonal products minus three “up” diagonal products.
(2·3·4 + 1·1·0 + 0·1·2) − (0·3·0 + 2·1·2 + 1·1·4) = 24 − 8 = 16
6Common mistakes
- Forgetting the minus sign for the middle term in the 3×3 expansion.
- Computing bc − ad instead of ad − bc.
- Losing a minus sign when an entry is negative: −2 · −3 is +6.
- Multiplying matrices entry by entry instead of row times column.
- Taking the trace or a diagonal entry as an eigenvalue instead of solving the characteristic equation.
Self-check What is the determinant of [1 2 0; 3 1 0; 0 0 2]?
- 10
- 14
- −10
- −14
Answer: −10. det = 1·(1·2 − 0) − 2·(3·2 − 0) + 0 = 2 − 12 = −10. Using + for the middle term gives 2 + 12 = 14, the most common slip.
7How exam questions look
- Easy: the determinant of a 2×2 matrix, often with negative entries. Use ad − bc.
- Medium: a 3×3 determinant or a matrix product. Expand along the first row with + − +.
- Hard: eigenvalues of a 2×2 matrix, or one unknown of a 2×2 system with Cramer’s rule.
A quick check for eigenvalues: they must add up to the trace a + d and multiply to det A.
Learn it step by step in the appLearn it step by step in the app