Matrices & Determinants
Interactive curriculum lessons, worked examples, and geometric problem-solving techniques designed to help Kenyan students master CBC, KPSEA, KCSE, and IGCSE mathematics.
First Principles
Objective
Understand the geometric and algebraic meaning of the determinant of a \(2 \times 2\) matrix, construct its multiplicative inverse, and apply matrix inversion to solve systems of linear simultaneous equations.
Everyday Analogy: A matrix acts like an encoded order slip in an agribusiness market: each row represents a distinct order or transaction, each column corresponds to a specific commodity (e.g., maize, beans), and the entry is the quantity purchased. The inverse matrix works like an automatic invoice decoder that extracts exact unit prices from total receipts.
Step 1 — The Concrete Scenario
Two traders at Muthurwa Market in Nairobi purchase bags of potatoes (\(p\)) and cabbages (\(c\)).
- Trader A buys 3 bags of potatoes and 2 bags of cabbages for a total of KSh 5,000.
- Trader B buys 1 bag of potatoes and 4 bags of cabbages for a total of KSh 4,500.
This system of simultaneous equations is represented in matrix form as:
\[\begin{bmatrix} 3 & 2 \\ 1 & 4 \end{bmatrix} \begin{bmatrix} p \\ c \end{bmatrix} = \begin{bmatrix} 5000 \\ 4500 \end{bmatrix}\]Step 2 — Geometric Meaning of Determinant
A \(2 \times 2\) matrix maps the 2D coordinate plane onto another orientation by stretching, rotating, or shearing area. The determinant, denoted \(\det(A)\) or \(|A|\), represents the signed area factor of this transformation:
- If \(\det(A) > 0\), the transformation preserves orientation and scales area by \(\det(A)\).
- If \(\det(A) = 0\), the 2D plane collapses into a 1D line or single point. Information is permanently lost, meaning the matrix is singular and has no inverse.
Step 3 — Algebraic Construction of the Inverse
For a general \(2 \times 2\) matrix \(A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}\):
- Calculate determinant: \(\det(A) = ad - bc\).
- Form the adjugate matrix by swapping main diagonal entries (\(a \leftrightarrow d\)) and negating off-diagonal entries (\(b \to -b, c \to -c\)): \(\begin{bmatrix} d & -b \\ -c & a \end{bmatrix}\).
- Scale by \(\frac{1}{\det(A)}\):
Interactive 2×2 Determinant & Inverse Builder
Adjust matrix values \(a, b, c, d\) to see the determinant and inverse update dynamically.
Matrix A
Inverse A-1
Key Formulas
1. Determinant of a 2×2 Matrix
\[\det(A) = |A| = \begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc\]Multiply the leading diagonal entries \((ad)\) and subtract the product of the trailing diagonal \((bc)\).
2. Inverse of a 2×2 Matrix
\[A^{-1} = \frac{1}{|A|} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix} = \frac{1}{ad - bc} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix}\]Where \(|A| \neq 0\). If \(|A| = 0\), the matrix is singular and \(A^{-1}\) is undefined.
3. Identity Matrix Property
\[A \cdot A^{-1} = A^{-1} \cdot A = I = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}\]4. Solving Linear Matrix Systems
\[A \mathbf{x} = \mathbf{b} \implies A^{-1}(A \mathbf{x}) = A^{-1}\mathbf{b} \implies I \mathbf{x} = A^{-1}\mathbf{b} \implies \mathbf{x} = A^{-1}\mathbf{b}\]Worked Examples
Problem: Calculate the determinant of the matrix \(M = \begin{bmatrix} 5 & 2 \\ 3 & 4 \end{bmatrix}\).
- Identify matrix entries: \(a = 5, b = 2, c = 3, d = 4\).
- Apply the determinant formula: \(\det(M) = ad - bc\).
- Substitute values: \(\det(M) = (5)(4) - (2)(3) = 20 - 6 = 14\).
Answer: \(\det(M) = 14\).
Problem: Find the inverse of matrix \(P = \begin{bmatrix} 3 & 1 \\ 2 & 4 \end{bmatrix}\) and show that \(P P^{-1} = I\).
- Compute determinant: \(\det(P) = (3)(4) - (1)(2) = 12 - 2 = 10\).
- Since \(\det(P) = 10 \neq 0\), the matrix is non-singular.
- Form the adjugate: swap diagonal entries and negate off-diagonals: \(\begin{bmatrix} 4 & -1 \\ -2 & 3 \end{bmatrix}\).
- Multiply by \(\frac{1}{10}\): \[P^{-1} = \frac{1}{10}\begin{bmatrix} 4 & -1 \\ -2 & 3 \end{bmatrix} = \begin{bmatrix} 0.4 & -0.1 \\ -0.2 & 0.3 \end{bmatrix}\]
- Verification check: \[\begin{bmatrix} 3 & 1 \\ 2 & 4 \end{bmatrix} \begin{bmatrix} 0.4 & -0.1 \\ -0.2 & 0.3 \end{bmatrix} = \begin{bmatrix} 3(0.4)+1(-0.2) & 3(-0.1)+1(0.3) \\ 2(0.4)+4(-0.2) & 2(-0.1)+4(0.3) \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}\]
Answer: \(P^{-1} = \frac{1}{10}\begin{bmatrix} 4 & -1 \\ -2 & 3 \end{bmatrix}\).
Problem: At a hardware store in Nakuru, 3 bags of cement and 2 tins of paint cost KSh 5,000, while 1 bag of cement and 4 tins of paint cost KSh 4,500. Use matrix inversion to find the cost of a single bag of cement (\(c\)) and one tin of paint (\(p\)).
- Set up the matrix equation: \[\begin{bmatrix} 3 & 2 \\ 1 & 4 \end{bmatrix} \begin{bmatrix} c \\ p \end{bmatrix} = \begin{bmatrix} 5000 \\ 4500 \end{bmatrix}\]
- Let \(A = \begin{bmatrix} 3 & 2 \\ 1 & 4 \end{bmatrix}\). Calculate \(\det(A) = (3)(4) - (2)(1) = 12 - 2 = 10\).
- Find \(A^{-1}\): \[A^{-1} = \frac{1}{10}\begin{bmatrix} 4 & -2 \\ -1 & 3 \end{bmatrix}\]
- Pre-multiply the constants vector by \(A^{-1}\): \[\begin{bmatrix} c \\ p \end{bmatrix} = \frac{1}{10}\begin{bmatrix} 4 & -2 \\ -1 & 3 \end{bmatrix} \begin{bmatrix} 5000 \\ 4500 \end{bmatrix}\]
- Multiply out: \[\begin{bmatrix} c \\ p \end{bmatrix} = \frac{1}{10} \begin{bmatrix} 4(5000) - 2(4500) \\ -1(5000) + 3(4500) \end{bmatrix} = \frac{1}{10} \begin{bmatrix} 20000 - 9000 \\ -5000 + 13500 \end{bmatrix} = \frac{1}{10} \begin{bmatrix} 11000 \\ 8500 \end{bmatrix} = \begin{bmatrix} 1100 \\ 850 \end{bmatrix}\]
Answer: Cost of 1 bag of cement is KSh 1,100; cost of 1 tin of paint is KSh 850.
Common Mistakes
Misconception 1: Swapping Signs Instead of Swapping Entries
Misconception 2: Inverting a Singular Matrix (\(\det(A) = 0\))
Misconception 3: Right-Multiplying Instead of Left-Multiplying
Real World
Real-World Applications of 2×2 Matrices in Kenya
1. Agricultural Supply Chain Pricing (Wholesale Commodity Deconstruction)
Cereal board traders and cooperatives in Eldoret deal with mixed grain shipments (maize and wheat). When purchases are made in combined bundles with lump-sum invoices, accountants form a \(2 \times 2\) system and use matrix inversion to accurately isolate the fluctuating farm-gate prices per bag.
2. Mobile Money & Financial Transaction Verification
Fintech algorithms process pairs of combined exchange and processing fees across mobile money platforms (like M-PESA and Airtel Money). Determinant testing ensures that transaction fee equations are linearly independent, preventing duplicate charge resolutions or singular system crashes.
3. Computer Graphics & Mapping Coordinates
GPS tracking systems in logistics fleets across East Africa use \(2 \times 2\) transformation matrices to rotate and scale 2D map views. The determinant calculates exact scaling factors, ensuring land parcel areas are not distorted when rendered on digital screens.
Practice