Lesson 16: Matrices and Determinants (Introduction)
🎧 Audio narration for this lesson is coming soon.
A matrix is a rectangular array of numbers — the natural data structure for marks sheets, price lists, and systems of equations. This introductory lesson covers matrix arithmetic, the transpose and identity, the determinant of a 2×2 (and the idea for 3×3), and solving a pair of linear equations by Cramer's rule, which closes the loop with Lesson 3.
Arithmetic of matrices
Matrices of the same order add element-wise. Multiplication is different: the product AB exists only when A's columns match B's rows, and each entry of AB is a row-times-column sum. Multiplication is not commutative — AB ≠ BA in general.
Worked example 1 (basic). Let A = [[1, 2], [3, 4]] and B = [[2, 0], [1, 3]]. Find AB and BA. AB = [[1×2 + 2×1, 1×0 + 2×3], [3×2 + 4×1, 3×0 + 4×3]] = [[4, 6], [10, 12]]. BA = [[2×1 + 0×3, 2×2 + 0×4], [1×1 + 3×3, 1×2 + 3×4]] = [[2, 4], [10, 14]]. AB ≠ BA — compare positions (1,1): 4 vs 2. Keep both computations; this contrast is the lesson's most-asked short question.
Identity and transpose. I = [[1, 0], [0, 1]] behaves like the number 1: AI = IA = A. The transpose Aᵀ swaps rows and columns: Aᵀ = [[1, 3], [2, 4]] for the A above. A matrix with Aᵀ = A is symmetric.
Determinants
For a 2×2 matrix, det [[a, b], [c, d]] = ad − bc — main diagonal product minus the other. For A above: det A = 1×4 − 2×3 = −2. A determinant of 0 means the matrix is singular: it has no inverse, and the matching system of equations has no unique solution (Lesson 3's parallel/coincident cases in disguise).
The inverse of a 2×2 is A⁻¹ = (1/det A) [[d, −b], [−c, a]] — swap the diagonal, negate the off-diagonal, divide by the determinant.
Cramer's rule: systems by determinants
For a₁x + b₁y = c₁ and a₂x + b₂y = c₂, set D = a₁b₂ − a₂b₁, Dₓ = c₁b₂ − c₂b₁, D_y = a₁c₂ − a₂c₁. If D ≠ 0: x = Dₓ/D, y = D_y/D.
Worked example 2 (intermediate). Solve 2x + y = 7 and x + 3y = 11 by Cramer. D = 2×3 − 1×1 = 5. Dₓ = 7×3 − 11×1 = 10 → x = 2. D_y = 2×11 − 1×7 = 15 → y = 3. Solution (2, 3). Check: 4 + 3 = 7 ✓; 2 + 9 = 11 ✓.
Worked example 3 (exemplar style). Find A² for A = [[2, 3], [1, 4]], and verify one entry of AA by hand for the examiner's benefit. A² = [[2×2 + 3×1, 2×3 + 3×4], [1×2 + 4×1, 1×3 + 4×4]] = [[7, 18], [6, 19]]. The (1,2) entry: row 1 of A times column 2 of A = 2×3 + 3×4 = 18 ✓. Writing out one entry's expansion is exactly what "show your working" means for matrix products.
Competency application: marks matrix for a class test
A teacher stores two tests' marks for three students as M = [[72, 85], [90, 78], [65, 88]] (rows = students, columns = tests). The class policy weights Test 1 at 40% and Test 2 at 60%. Weighted totals are the matrix product M × [[0.4], [0.6]]: student 1: 72(0.4) + 85(0.6) = 28.8 + 51 = 79.8; student 2: 36 + 46.8 = 82.8; student 3: 26 + 52.8 = 78.8. A (3×2)·(2×1) product — the order-matching rule is the content of the competency here: the weights vector must have one entry per *column* of M.
Common mistakes
- Multiplying matrices element-wise. Only addition works that way. Each product entry is a full row·column sum.
- Assuming AB = BA, or that AB = 0 forces A or B to be zero — neither holds for matrices.
- Determinant sign slips: ad − bc, in that order. For [[2, 3], [1, 4]] it is 8 − 3 = 5, not 3 − 8.
- Applying Cramer's rule when D = 0. D = 0 means no unique solution — report that conclusion (the system is inconsistent or dependent) instead of dividing by zero.
Exam Experience
Section A — Multiple choice (1 mark each)
Q1. If A is of order 2 × 3 and B is of order 3 × 2, the order of AB is: (a) 3 × 3 (b) 2 × 2 (c) 3 × 2 (d) not defined. Answer: (b) 2 × 2. Rows of A by columns of B; the inner 3s must match — and they do.
Q2. The determinant of [[5, 2], [3, 1]] is: (a) 11 (b) −1 (c) 1 (d) −11. Answer: (b) −1. 5×1 − 2×3 = 5 − 6 = −1.
Section B — Short answer (3 marks) Q3. For A = [[2, 3], [1, 4]], compute A². Marking scheme: 1 mark for setting up the row-column products; 1 mark for the first row [7, 18]; 1 mark for the second row [6, 19] — i.e. A² = [[7, 18], [6, 19]].
Section C — Case-based long answer (5 marks) Q4. A school canteen audits its billing software by feeding it a small test system whose answer is known: 2x + y = 7 and x + 3y = 11, where x and y are two item prices in tens of rupees. (i) Write the coefficient matrix of the test system and find its determinant. (2 marks) (ii) Solve the test system by Cramer's rule. (2 marks) (iii) State what a determinant of zero would have meant for the audit. (1 mark) Marking scheme: (i) Coefficient matrix [[2, 1], [1, 3]] (1 mark); D = 2×3 − 1×1 = 5 (1 mark). (ii) Dₓ = 7×3 − 11×1 = 10, x = 10/5 = 2 (1 mark); D_y = 2×11 − 7×1 = 15, y = 15/5 = 3 (1 mark). (iii) D = 0 would mean the two records give no unique breakdown — the equations are parallel (contradictory sales data) or the same record twice (dependent) (1 mark).
Going deeper: the 3 × 3 determinant
For a 3×3 matrix, expand along the first row, alternating signs (+ − +): det [[a, b, c], [d, e, f], [g, h, i]] = a(ei − fh) − b(di − fg) + c(dh − eg). Worked example. M = [[1, 2, 3], [0, 1, 4], [5, 6, 0]]. det M = 1 × (1×0 − 4×6) − 2 × (0×0 − 4×5) + 3 × (0×6 − 1×5) = 1(−24) − 2(−20) + 3(−5) = −24 + 40 − 15 = 1. Each bracket is the 2×2 determinant of the sub-matrix left after deleting that entry's row and column (its *minor*), and the checkerboard of signs is the part everyone forgets — write the + − + / − + − / + − + grid beside any 3×3 expansion as a matter of routine. A determinant of 1 here means the associated system has a unique solution obtainable with clean arithmetic; determinants of 0 (singular) remain the warning flag.
Going deeper: solving a system with the inverse
Cramer's rule and the inverse are two views of one fact. For the Lesson 3-style system 2x + y = 7, x + 3y = 11, write A = [[2, 1], [1, 3]], det A = 5, so A⁻¹ = (1/5)[[3, −1], [−1, 2]]. Then [x, y]ᵀ = A⁻¹ × [7, 11]ᵀ = (1/5) × [3×7 − 1×11, −1×7 + 2×11]ᵀ = (1/5)[10, 15]ᵀ = [2, 3]ᵀ ✓ — the same answer Cramer's rule produced, because Cramer *is* the inverse written out component by component. The matrix equation AX = B also unlocks matrix unknowns directly: to solve 2X + A = B, subtract and halve element-wise — matrices obey ordinary algebra wherever the operations are defined and multiplication order is respected.
Going deeper: symmetric matrices and A + Aᵀ
For any square matrix A, the sum A + Aᵀ is always symmetric (equal to its own transpose), because (A + Aᵀ)ᵀ = Aᵀ + A. Example: A = [[1, 2], [3, 4]] gives Aᵀ = [[1, 3], [2, 4]] and A + Aᵀ = [[2, 5], [5, 8]] — visibly mirrored across the diagonal. Conversely every square matrix splits into a symmetric part, (A + Aᵀ)/2, and a skew-symmetric part, (A − Aᵀ)/2 (zero diagonal, off-diagonals negated on transposing). This decomposition is a favourite structured question: it tests transpose fluency and element-wise arithmetic in three lines.
Final drills
Drill 1 — the transpose of a product. Claim: (AB)ᵀ = BᵀAᵀ (order reverses). Verify with A = [[1, 2], [3, 4]] and B = [[2, 0], [1, 3]]: AB = [[4, 6], [10, 12]], so (AB)ᵀ = [[4, 10], [6, 12]]. Meanwhile BᵀAᵀ = [[2, 1], [0, 3]] × [[1, 3], [2, 4]] = [[2 + 2, 6 + 4], [0 + 6, 0 + 12]] = [[4, 10], [6, 12]] ✓. The reversal is forced: (AB)ᵀ must have the order that *can* multiply — Bᵀ (2×2) by Aᵀ (2×2) either way here, but for rectangular matrices only the reversed order fits.
Drill 2 — inverse with a check. Find the inverse of M = [[5, 2], [3, 1]]. det M = 5 − 6 = −1. M⁻¹ = (1/(−1)) [[1, −2], [−3, 5]] = [[−1, 2], [3, −5]]. Verify: M × M⁻¹ = [[5(−1) + 2(3), 5(2) + 2(−5)], [3(−1) + 1(3), 3(2) + 1(−5)]] = [[1, 0], [0, 1]] ✓. Multiplying back to the identity is a complete verification — build the habit; it costs thirty seconds and certifies the whole computation.
📈 Interactive Graph: Function Explorer — Matrices and Determinants (Introduction)
Explore how functions behave — a core skill for Matrices and Determinants (Introduction).
🕉️ Interactive: Vedic Mathematics Lab — Matrices and Determinants (Introduction)
Ancient Indian sutras for lightning calculation — pick a technique, enter numbers, and see every step.
These sutras come from the Vedic mathematics tradition — mental-math shortcuts Indian students have used for generations.
Key Terms
- Matrix
- Rectangular array; order is rows × columns.
- Determinant
- Scalar from a square matrix; zero means singular.
- Identity matrix
- I; 1s on diagonal; AI = IA = A.
- Inverse
- A⁻¹; AA⁻¹ = I; exists iff det ≠ 0.
- Singular
- Determinant zero; no inverse; no unique solution.
Discussion Questions
- Add: [2 5; 1 3] + [1 1; 4 2]. Multiply them (both orders).
- Find the determinant of [4 7; 2 5]. Is it invertible?
- Solve using matrices: 3x + 2y = 12, x - y = 1.
- Explain why matrix multiplication is not commutative (give an example).
- How does Google use matrices? Research PageRank briefly.