MathMastery.Beta
Learning Resources

Matrices & Determinants

Interactive curriculum lessons, worked examples, and geometric problem-solving techniques designed to help Kenyan students master CBC, KPSEA, KCSE, and IGCSE mathematics.

Form 3 Pathway: N/A

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}\):

  1. Calculate determinant: \(\det(A) = ad - bc\).
  2. 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}\).
  3. Scale by \(\frac{1}{\det(A)}\):
\[A^{-1} = \frac{1}{ad - bc} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix}\]

Interactive 2×2 Determinant & Inverse Builder

Adjust matrix values \(a, b, c, d\) to see the determinant and inverse update dynamically.

3
2
1
4

Matrix A

0.4
-0.2
-0.1
0.3

Inverse A-1

det(A) = 10
Non-singular (Invertible)



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

Example 1 (Easy): Basic Determinant Evaluation

Problem: Calculate the determinant of the matrix \(M = \begin{bmatrix} 5 & 2 \\ 3 & 4 \end{bmatrix}\).

  1. Identify matrix entries: \(a = 5, b = 2, c = 3, d = 4\).
  2. Apply the determinant formula: \(\det(M) = ad - bc\).
  3. Substitute values: \(\det(M) = (5)(4) - (2)(3) = 20 - 6 = 14\).

Answer: \(\det(M) = 14\).

Example 2 (Medium): Inverting a Matrix and Verification

Problem: Find the inverse of matrix \(P = \begin{bmatrix} 3 & 1 \\ 2 & 4 \end{bmatrix}\) and show that \(P P^{-1} = I\).

  1. Compute determinant: \(\det(P) = (3)(4) - (1)(2) = 12 - 2 = 10\).
  2. Since \(\det(P) = 10 \neq 0\), the matrix is non-singular.
  3. Form the adjugate: swap diagonal entries and negate off-diagonals: \(\begin{bmatrix} 4 & -1 \\ -2 & 3 \end{bmatrix}\).
  4. 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}\]
  5. 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}\).

Example 3 (Hard): Solving Simultaneous Equations via Matrix Inversion

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\)).

  1. 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}\]
  2. Let \(A = \begin{bmatrix} 3 & 2 \\ 1 & 4 \end{bmatrix}\). Calculate \(\det(A) = (3)(4) - (2)(1) = 12 - 2 = 10\).
  3. Find \(A^{-1}\): \[A^{-1} = \frac{1}{10}\begin{bmatrix} 4 & -2 \\ -1 & 3 \end{bmatrix}\]
  4. 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}\]
  5. 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

Common Mistake Negating the main diagonal entries \(a\) and \(d\) and swapping the off-diagonal entries \(b\) and \(c\).

Correction Remember the rule: SWAP the main diagonal entries (\(a \leftrightarrow d\)) and NEGATE the secondary diagonal entries (\(b \to -b, c \to -c\)).

Misconception 2: Inverting a Singular Matrix (\(\det(A) = 0\))

Common Mistake Trying to write \(A^{-1}\) when \(\det(A) = 0\), forgetting that dividing by zero is undefined.

Correction Always compute \(\det(A) = ad - bc\) first. If \(\det(A) = 0\), state immediately that the matrix is singular and has no inverse.

Misconception 3: Right-Multiplying Instead of Left-Multiplying

Common Mistake Writing \(\mathbf{x} = \mathbf{b} A^{-1}\) instead of \(\mathbf{x} = A^{-1}\mathbf{b}\).

Correction Matrix multiplication is non-commutative (\(AB \neq BA\)). In \(A\mathbf{x} = \mathbf{b}\), \(A\) is on the left of \(\mathbf{x}\), so we must left-multiply both sides by \(A^{-1}\) to get \(\mathbf{x} = A^{-1}\mathbf{b}\). Right-multiplying a \(2 \times 1\) vector by a \(2 \times 2\) matrix is undefined by matrix dimensions.

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

Given the matrix \(A = \begin{pmatrix} 2 & 3 \\ 5 & 7 \end{pmatrix}\), calculate its determinant. (Type only the number, e.g., 42)
Review the concepts above.
Calculate the determinant of the matrix \(\begin{bmatrix} 3 & 5 \\ 2 & 7 \end{bmatrix}\). (Type only the number, e.g., 42)
Review the concepts above.
Given the matrix \(A = \begin{bmatrix} 3 & -2 \\ 5 & 4 \end{bmatrix}\), find the determinant of \(A\). (Type only the number, e.g., 42)
Review the concepts above.
A transport company records passenger counts on two routes using the matrix \(\begin{bmatrix} 120 & 30 \\ 45 & x \end{bmatrix}\). If the determinant of this matrix is 4500, what is the value of \(x\)? (Type only the number, e.g., 15)
Review the concepts above.
Solve the system \(2x + y = 5\) and \(3x - 2y = 4\) using matrix methods. What is the value of \(x\)? (Type only the number, e.g., 7)
Review the concepts above.
Use matrix inversion to solve the simultaneous equations: \[3x + 2y = 12\] \[4x - y = 5\] What is the value of \(y\)? (Type only the number, e.g., 3)
Review the concepts above.