MathematicsGrade 12–13 · University

Matrices as linear maps

Two arrows decide everything: wherever they point, the matrix rotates, stretches or reflects the whole grid.

Loading simulation …

What is it about?

A 2×22 \times 2 matrix maps x⃗\vec{x} to Ax⃗A\vec{x}. Its columns are the images of e⃗1\vec{e}_1 and e⃗2\vec{e}_2, so the grid becomes a grid of parallelograms. Applying BB first and then AA gives the product A⋅BA \cdot B; in general AB≠BAAB \neq BA.

det⁡A=ad−bc\det A = ad - bc is the signed area of the image of the unit square: areas are multiplied by ∣det⁡A∣|\det A|, a negative sign reverses orientation, and det⁡A=0\det A = 0 squashes the plane onto a line (not invertible). Otherwise A−1=1ad−bc(d−b−ca)A^{-1} = \frac{1}{ad - bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}.

Eigenvectors satisfy Av⃗=λv⃗A\vec{v} = \lambda\vec{v}; the eigenvalues solve λ2−(a+d)λ+(ad−bc)=0\lambda^2 - (a + d)\lambda + (ad - bc) = 0. Rotations by φ≠0°,180°\varphi \neq 0°, 180° have non-real eigenvalues. For an iteration x⃗n+1=Ax⃗n\vec{x}_{n+1} = A\vec{x}_n the eigenvalue of largest absolute value decides the long-term behaviour; for a transition matrix the fixed vector with sum 1 is the stationary distribution.

Try it

  1. General: drag the tips of Ae⃗1A\vec{e}_1 and Ae⃗2A\vec{e}_2; press “Play the transformation”.
  2. Rotation, reflection in y = x, shear, projection.
  3. AB ≠ BA, eigenvectors, inverse.
  4. Everyday: kaleidoscope, shadow, population, customers switching.

Tasks

Task 1: Matrix from images

e⃗1↦(2,1)\vec{e}_1 \mapsto (2, 1), e⃗2↦(1,2)\vec{e}_2 \mapsto (1, 2). Find AA, the area factor and the eigenvalues. Load task

Show solution

A=(2112)A = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}, det⁡A=3\det A = 3; λ2−4λ+3=0\lambda^2 - 4\lambda + 3 = 0 gives eigenvalues 33 and 11 with eigenvectors (1,1)(1, 1) and (1,−1)(1, -1). Show

Task 2: Order matters

Compute ABAB and BABA for A=(1234)A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}, B=(0110)B = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}. Load task

Show solution

AB=(2143)AB = \begin{pmatrix} 2 & 1 \\ 4 & 3 \end{pmatrix} (columns swapped), BA=(3412)BA = \begin{pmatrix} 3 & 4 \\ 1 & 2 \end{pmatrix} (rows swapped). Show

Task 3: Inverse

Find the inverse of (2111)\begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix}. Load task

Show solution

det⁡A=1\det A = 1, so A−1=(1−1−12)A^{-1} = \begin{pmatrix} 1 & -1 \\ -1 & 2 \end{pmatrix}. Show

Task 4: Stationary distribution

Find the stationary distribution of (0.90.20.10.8)\begin{pmatrix} 0.9 & 0.2 \\ 0.1 & 0.8 \end{pmatrix}. Load task

Show solution

0.9p+0.2q=p0.9p + 0.2q = p gives p=2qp = 2q; with p+q=1p + q = 1: p=23p = \frac{2}{3}, q=13q = \frac{1}{3}. Show

Ideas for the classroom

  • Let students build rotations, reflections and shears by dragging, then write down the matrices and compare with the standard forms.
  • Switch “Show values” off: compute determinant, product, inverse or eigenvalues first, then check in the picture.
  • Common stumbling blocks: swapping rows and columns; thinking AA acts first in ABAB; ignoring the sign of the determinant; believing eigenvectors stay unchanged (they may be stretched or flipped).