MathMastery.Beta
Learning Resources

Matrices & Transformations

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

Form 4 Pathway: N/A

First Principles

Core Concept: Every linear transformation in a 2D plane (rotations, reflections, shears, enlargements) can be completely encoded into a 2×2 matrix. Combining transformations corresponds directly to matrix multiplication.

1. The Unit Square & Basis Vectors

To understand what a matrix \(T = \begin{bmatrix} a & b \\ c & d \end{bmatrix}\) does to any point in the Cartesian plane, we only need to track what happens to two fundamental unit vectors:

  • The unit vector on the x-axis: \(\mathbf{i} = \begin{bmatrix} 1 \\ 0 \end{bmatrix} \implies T\mathbf{i} = \begin{bmatrix} a \\ c \end{bmatrix}\) (the 1st column of \(T\))
  • The unit vector on the y-axis: \(\mathbf{j} = \begin{bmatrix} 0 \\ 1 \end{bmatrix} \implies T\mathbf{j} = \begin{bmatrix} b \\ d \end{bmatrix}\) (the 2nd column of \(T\))

Where the unit vectors land determines where every shape, Kitenge fabric motif, or architectural boundary lands!

💡 Interactive Visualizer: Matrix Transformation of the Unit Square

Adjust the matrix entries \(a, b, c, d\) to see the unit square transform in real time.

2. Order of Successive Transformations

If a transformation \(A\) is performed first on point \(\mathbf{p}\), followed by a second transformation \(B\), the compound result is given by:

\[\mathbf{p}'' = B(A\mathbf{p}) = (BA)\mathbf{p}\]

Crucial Rule: The matrix of the transformation that occurs first is written on the right-hand side of the product.

Key Formulas

1. Transformation of a Point / Vector:

\[\mathbf{v}' = T\mathbf{v} \implies \begin{bmatrix} x' \\ y' \end{bmatrix} = \begin{bmatrix} a & b \\ c & d \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} ax + by \\ cx + dy \end{bmatrix}\]

2. Standard Transformation Matrices:

  • Reflection in the line \(y = 0\) (x-axis): \(\begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix}\)
  • Reflection in the line \(x = 0\) (y-axis): \(\begin{bmatrix} -1 & 0 \\ 0 & 1 \end{bmatrix}\)
  • Reflection in the line \(y = x\): \(\begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}\)
  • Reflection in the line \(y = -x\): \(\begin{bmatrix} 0 & -1 \\ -1 & 0 \end{bmatrix}\)
  • Rotation by \(90^\circ\) anticlockwise about the origin \((0,0)\): \(\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}\)
  • Rotation by \(180^\circ\) about the origin: \(\begin{bmatrix} -1 & 0 \\ 0 & -1 \end{bmatrix}\)
  • Rotation by \(270^\circ\) anticlockwise (or \(90^\circ\) clockwise): \(\begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}\)
  • Enlargement with scale factor \(k\), centre \((0,0)\): \(\begin{bmatrix} k & 0 \\ 0 & k \end{bmatrix}\)

3. Matrix Determinant and Area Scale Factor (ASF):

\[\det(T) = \left| \begin{matrix} a & b \\ c & d \end{matrix} \right| = ad - bc\] \[\text{Area Scale Factor (ASF)} = |\det(T)| = |ad - bc|\] \[\text{Area of Image} = |\det(T)| \times \text{Area of Object}\]

4. Inverse Matrix (Undoing a Transformation):

\[T^{-1} = \frac{1}{ad - bc}\begin{bmatrix} d & -b \\ -c & a \end{bmatrix}, \quad \text{where } ad - bc \neq 0\]

Worked Examples

Example 1 (Easy): Single Transformation of a Point

Problem: A point \(P(2, 3)\) is mapped onto \(P'\) by the transformation matrix \(M = \begin{bmatrix} 3 & -1 \\ 2 & 4 \end{bmatrix}\). Find the coordinates of \(P'\).

Step-by-Step Solution:

  1. Write the point \(P\) as a column vector: \(\mathbf{p} = \begin{bmatrix} 2 \\ 3 \end{bmatrix}\).
  2. Multiply the transformation matrix \(M\) by \(\mathbf{p}\): \[\begin{bmatrix} x' \\ y' \end{bmatrix} = \begin{bmatrix} 3 & -1 \\ 2 & 4 \end{bmatrix} \begin{bmatrix} 2 \\ 3 \end{bmatrix}\]
  3. Compute the dot products: \[x' = (3 \times 2) + (-1 \times 3) = 6 - 3 = 3\] \[y' = (2 \times 2) + (4 \times 3) = 4 + 12 = 16\]
  4. Conclusion: The coordinates of the image point are \(P'(3, 16)\).

Example 2 (Medium): Successive Combined Transformations

Problem: A textile pattern at point \(A(1, 4)\) undergoes a transformation represented by \(T_1 = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}\), followed immediately by a transformation \(T_2 = \begin{bmatrix} 2 & 0 \\ 0 & 2 \end{bmatrix}\). Find the single matrix \(T\) representing the combined transformation, and determine the image of \(A\).

Step-by-Step Solution:

  1. Set up the combined matrix. Since \(T_1\) happens first and \(T_2\) happens second, the combined matrix is: \[T = T_2 T_1\]
  2. Perform matrix multiplication: \[T = \begin{bmatrix} 2 & 0 \\ 0 & 2 \end{bmatrix} \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix} = \begin{bmatrix} (2)(0) + (0)(-1) & (2)(1) + (0)(0) \\ (0)(0) + (2)(-1) & (0)(1) + (2)(0) \end{bmatrix} = \begin{bmatrix} 0 & 2 \\ -2 & 0 \end{bmatrix}\]
  3. Apply \(T\) to point \(A(1, 4)\): \[\begin{bmatrix} x' \\ y' \end{bmatrix} = \begin{bmatrix} 0 & 2 \\ -2 & 0 \end{bmatrix} \begin{bmatrix} 1 \\ 4 \end{bmatrix} = \begin{bmatrix} (0)(1) + (2)(4) \\ (-2)(1) + (0)(4) \end{bmatrix} = \begin{bmatrix} 8 \\ -2 \end{bmatrix}\]
  4. Conclusion: The single combined matrix is \(\begin{bmatrix} 0 & 2 \\ -2 & 0 \end{bmatrix}\) and the final image is \(A'(8, -2)\).

Example 3 (Hard): Area Scale Factor & Inverse Recovery

Problem: A triangular piece of land in Machakos with an area of \(24\text{ m}^2\) is mapped onto a new plan using the transformation matrix \(M = \begin{bmatrix} 5 & 2 \\ 3 & 2 \end{bmatrix}\).
(a) Find the area of the mapped image.
(b) Find the inverse matrix \(M^{-1}\) that maps the image back to the original land boundary.

Step-by-Step Solution:

  1. Find the determinant of \(M\): \[\det(M) = (5)(2) - (2)(3) = 10 - 6 = 4\]
  2. Calculate image area: \[\text{Area of Image} = |\det(M)| \times \text{Original Area} = 4 \times 24\text{ m}^2 = 96\text{ m}^2\]
  3. Determine \(M^{-1}\): \[M^{-1} = \frac{1}{\det(M)} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix} = \frac{1}{4} \begin{bmatrix} 2 & -2 \\ -3 & 5 \end{bmatrix} = \begin{bmatrix} 0.5 & -0.5 \\ -0.75 & 1.25 \end{bmatrix}\]

Common Mistakes

1. Reversing the Order of Matrix Multiplication

Mistake When transformation \(A\) is followed by transformation \(B\), writing the compound matrix as \(AB\).

Correction Because vectors multiply on the right (\(B(A\mathbf{v})\)), the correct compound matrix is \(BA\).

Why it feels right We read left-to-right, so our brain naturally wants to write what happens first on the left.

2. Element-by-Element Multiplication

Mistake Computing \(\begin{bmatrix} a & b \\ c & d \end{bmatrix} \begin{bmatrix} e & f \\ g & h \end{bmatrix} = \begin{bmatrix} ae & bf \\ cg & dh \end{bmatrix}\).

Correction Matrix multiplication requires the dot product of rows with columns: Row 1 × Column 1, Row 1 × Column 2, etc.

Why it feels right Matrix addition is done element-wise, so learners assume multiplication follows the same rule.

3. Negative Determinant vs. Negative Area

Mistake Concluding that an image has negative area if \(\det(T) = -3\).

Correction Area scale factor is the absolute value of the determinant (\(|\det(T)| = 3\)). The negative sign simply indicates an orientation reversal (such as after a reflection).

Why it feels right Direct substitution of \(\det(T)\) without taking the magnitude leads to negative area.

Real World

Kitenge and Kanga Pattern Printing: Textile designers in Eldoret and Nairobi create repeating geometric border patterns by applying sequential reflection and rotation matrices to a single core motif.
GIS Mapping & Drone Surveying in Kenya: When survey drones capture oblique aerial photos over the Great Rift Valley, GIS software applies a 2D/3D affine transformation matrix to correct perspective tilt and align image coordinates with national survey benchmarks.
Computer Graphics & Mobile Gaming: Video game engines calculate player movement, camera rotation, and zoom scaling at 60 frames per second using transformation matrix pipelines.
Robotic Arm Calibration: Automated packaging robots at tea factories in Kericho use transformation matrices to translate motor rotation angles into precise coordinates for picking up cartons.

Practice

The matrix \(A = \begin{bmatrix} 2 & -1 \\ 3 & 4 \end{bmatrix}\) represents a linear transformation in the plane. If the point \(P\) has coordinates \((1, 2)\), what is the x-coordinate of the image of \(P\) under this transformation? (Type only the number, e.g., 42)
Review the concepts above.
Given the matrix \(A = \begin{bmatrix} 3 & 4 \\ 2 & 5 \end{bmatrix}\), find its determinant. (Type only the number, e.g., 12)
Review the concepts above.
Find the determinant of the matrix \(M = \begin{bmatrix} 3 & 5 \\ 2 & -1 \end{bmatrix}\). (Type only the number, e.g., 42)
Review the concepts above.
A point \(P(2, 3)\) is first reflected in the line \(y = x\) and then translated by the vector \(\begin{bmatrix} 4 \\ -2 \end{bmatrix}\). What is the x-coordinate of the final image of \(P\)? (Type only the number, e.g., 42)
Review the concepts above.
Matrix \(A\) is given by \(A = \begin{bmatrix} 3 & 2 \\ 5 & -4 \end{bmatrix}\). Find the determinant of matrix \(A\). (Type only the number, e.g., 7)
Review the concepts above.
The matrices \(A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}\) and \(B = \begin{bmatrix} 0 & 5 \\ -1 & 2 \end{bmatrix}\) represent two linear transformations. Find the determinant of the combined matrix resulting from first applying \(A\) and then \(B\) (i.e. the product matrix \(BA\)). (Type only the number, e.g., 42)
Review the concepts above.