Confusing matrix multiplication order: Matrix multiplication is NOT commutative: AB is generally not equal to BA. When applying a transformation matrix to a point, the ORDER matters. For combined transformations, the matrix closest to the point is applied FIRST: if transformation B follows transformation A, the combined matrix is BA (not AB).
Forgetting that the determinant of a singular matrix is zero: A singular matrix has determinant zero and NO inverse. If asked to find the inverse of a 2x2 matrix, always check that the determinant is non-zero first. A zero determinant means the transformation collapses space (maps the plane onto a line), which is why no inverse exists.
Misidentifying the type of transformation from its matrix: A reflection in the y-axis has matrix [[-1, 0], [0, 1]] (negative in top-left). A reflection in the x-axis has matrix [[1, 0], [0, -1]] (negative in bottom-right). Students frequently confuse these two. Also, a rotation of 90 degrees anticlockwise gives [[0, -1], [1, 0]], which students often mix up with the clockwise rotation.
Arithmetic errors when calculating determinants and inverses: For a 2x2 matrix [[a, b], [c, d]], the determinant is ad - bc (not ad + bc). The inverse is (1/det) * [[d, -b], [-c, a]] (note the swap of a and d and the negative signs). A single sign error invalidates the entire calculation. Always double-check by multiplying the matrix by its inverse to get the identity.
A square matrix Q Q Q is orthogonal if Q T Q = Q Q T = I Q^T Q = Q Q^T = I Q T Q = Q Q T = I Which means Q − 1 = Q T Q^{-1} = Q^T Q − 1 = Q T .
Equivalent characterisations:
The columns of Q Q Q form an orthonormal set (each column has unit length, and distinct columns are perpendicular). The rows of Q Q Q form an orthonormal set. det ( Q ) = ± 1 \det(Q) = \pm 1 det ( Q ) = ± 1 (since det ( Q T ) det ( Q ) = det ( I ) = 1 \det(Q^T)\det(Q) = \det(I) = 1 det ( Q T ) det ( Q ) = det ( I ) = 1 and det ( Q T ) = det ( Q ) \det(Q^T) = \det(Q) det ( Q T ) = det ( Q ) ).Rotation matrices and reflection matrices in R 2 \mathbb{R}^2 R 2 are orthogonal:
Rotations have det = + 1 \det = +1 det = + 1 and are called proper orthogonal (special orthogonal). Reflections have det = − 1 \det = -1 det = − 1 . Preservation of the inner product. If Q Q Q is orthogonal, then for any vectors u , v \mathbf{u}, \mathbf{v} u , v :
( Q u ) ⋅ ( Q v ) = u ⋅ v (Q\mathbf{u}) \cdot (Q\mathbf{v}) = \mathbf{u} \cdot \mathbf{v} ( Q u ) ⋅ ( Q v ) = u ⋅ v In particular, ∣ Q v ∣ = ∣ v ∣ |Q\mathbf{v}| = |\mathbf{v}| ∣ Q v ∣ = ∣ v ∣ and the angle between vectors is preserved.
Orthogonal diagonalisation (spectral theorem). A real symmetric matrix A A A can always be Orthogonally diagonalised: A = Q D Q T A = QDQ^T A = Q D Q T where Q Q Q is orthogonal and D D D is diagonal. This is a Stronger form of diagonalisation that is guaranteed for all symmetric matrices (even those with Repeated eigenvalues), since symmetric matrices always have n n n linearly independent eigenvectors That can be chosen orthonormal.
flowchart TD
A[3_Matrices And Transformations] --> B[Key Concepts]
A --> C[Core Principles]
A --> D[Practical Applications]
B --> E[Fundamental definitions]
C --> F[Design patterns]
D --> G[Real-world usage] | Concept | Formula / Result | | :------------------------------ | :------------------------------------------------------------------------------------------ | ------- | --- | | 2 × 2 2 \times 2 2 × 2 determinant | det ( a b c d ) = a d − b c \det\begin{pmatrix} a & b \\ c & d \end{pmatrix} = ad - bc det ( a c b d ) = a d − b c | | | | 2 × 2 2 \times 2 2 × 2 inverse | A − 1 = 1 det ( A ) ( d − b − c a ) A^{-1} = \dfrac{1}{\det(A)}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix} A − 1 = det ( A ) 1 ( d − c − b a ) | | | | 3 × 3 3 \times 3 3 × 3 inverse | A − 1 = 1 det ( A ) a d j ( A ) A^{-1} = \dfrac{1}{\det(A)}\mathrm{adj}(A) A − 1 = det ( A ) 1 adj ( A ) | | | | Characteristic equation (2x2) | λ 2 − t r ( A ) λ + det ( A ) = 0 \lambda^2 - \mathrm{tr}(A)\lambda + \det(A) = 0 λ 2 − tr ( A ) λ + det ( A ) = 0 | | | | Diagonalisation | A = P D P − 1 A = PDP^{-1} A = P D P − 1 Where D = d i a g ( λ 1 , … , λ n ) D = \mathrm{diag}(\lambda_1, \ldots, \lambda_n) D = diag ( λ 1 , … , λ n ) | | | | Matrix powers | A k = P D k P − 1 A^k = PD^kP^{-1} A k = P D k P − 1 | | | | Area scale factor | ∣ det ( M ) ∣ | \det(M) | ∣ det ( M ) ∣ | | Rotation by θ \theta θ | ( cos θ − sin θ sin θ cos θ ) \begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix} ( cos θ sin θ − sin θ cos θ ) | | | | Reflection in y = x tan θ y = x\tan\theta y = x tan θ | ( cos 2 θ sin 2 θ sin 2 θ − cos 2 θ ) \begin{pmatrix} \cos 2\theta & \sin 2\theta \\ \sin 2\theta & -\cos 2\theta \end{pmatrix} ( cos 2 θ sin 2 θ sin 2 θ − cos 2 θ ) | | | | Cramer’s rule | x i = det ( A i ) / det ( A ) x_i = \det(A_i)/\det(A) x i = det ( A i ) / det ( A ) | | | | Steady state of Markov chain | \mathbf{s}P = \mathbf{s}$$\sum s_i = 1 | | |
Worked Example: Finding Eigenvalues and Eigenvectors Find the eigenvalues and eigenvectors of A = ( 5 3 3 5 ) A = \begin{pmatrix} 5 & 3 \\ 3 & 5 \end{pmatrix} A = ( 5 3 3 5 ) .
Characteristic equation:
det ( A − λ I ) = ( 5 − λ ) 2 − 9 = λ 2 − 10 λ + 16 = 0 \det(A - \lambda I) = (5 - \lambda)^2 - 9 = \lambda^2 - 10\lambda + 16 = 0 det ( A − λ I ) = ( 5 − λ ) 2 − 9 = λ 2 − 10 λ + 16 = 0
( λ − 2 ) ( λ − 8 ) = 0 (\lambda - 2)(\lambda - 8) = 0 ( λ − 2 ) ( λ − 8 ) = 0
λ 1 = 2 \lambda_1 = 2 λ 1 = 2 , λ 2 = 8 \lambda_2 = 8 λ 2 = 8 .
Eigenvector for λ 1 = 2 \lambda_1 = 2 λ 1 = 2 :
( 3 3 3 3 ) ( v 1 v 2 ) = ( 0 0 ) ⟹ v 1 = − v 2 \begin{pmatrix} 3 & 3 \\ 3 & 3 \end{pmatrix}\begin{pmatrix} v_1 \\ v_2 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix} \implies v_1 = -v_2 ( 3 3 3 3 ) ( v 1 v 2 ) = ( 0 0 ) ⟹ v 1 = − v 2
Eigenvector: ( 1 − 1 ) \begin{pmatrix} 1 \\ -1 \end{pmatrix} ( 1 − 1 ) (or any scalar multiple).
Eigenvector for λ 2 = 8 \lambda_2 = 8 λ 2 = 8 :
( − 3 3 3 − 3 ) ( v 1 v 2 ) = ( 0 0 ) ⟹ v 1 = v 2 \begin{pmatrix} -3 & 3 \\ 3 & -3 \end{pmatrix}\begin{pmatrix} v_1 \\ v_2 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix} \implies v_1 = v_2 ( − 3 3 3 − 3 ) ( v 1 v 2 ) = ( 0 0 ) ⟹ v 1 = v 2
Eigenvector: ( 1 1 ) \begin{pmatrix} 1 \\ 1 \end{pmatrix} ( 1 1 ) .
The eigenvectors are perpendicular (as expected for a symmetric matrix).
Given A = ( 2 − 1 4 3 ) A = \begin{pmatrix} 2 & -1 \\ 4 & 3 \end{pmatrix} A = ( 2 4 − 1 3 ) and B = ( 1 5 − 2 0 ) B = \begin{pmatrix} 1 & 5 \\ -2 & 0 \end{pmatrix} B = ( 1 − 2 5 0 ) Find A B AB A B and B A BA B A . Comment on whether A B = B A AB = BA A B = B A .
Solution A B = ( 2 ( 1 ) + ( − 1 ) ( − 2 ) 2 ( 5 ) + ( − 1 ) ( 0 ) 4 ( 1 ) + 3 ( − 2 ) 4 ( 5 ) + 3 ( 0 ) ) = ( 4 10 − 2 20 ) AB = \begin{pmatrix} 2(1) + (-1)(-2) & 2(5) + (-1)(0) \\ 4(1) + 3(-2) & 4(5) + 3(0) \end{pmatrix} = \begin{pmatrix} 4 & 10 \\ -2 & 20 \end{pmatrix} A B = ( 2 ( 1 ) + ( − 1 ) ( − 2 ) 4 ( 1 ) + 3 ( − 2 ) 2 ( 5 ) + ( − 1 ) ( 0 ) 4 ( 5 ) + 3 ( 0 ) ) = ( 4 − 2 10 20 )
B A = ( 1 ( 2 ) + 5 ( 4 ) 1 ( − 1 ) + 5 ( 3 ) − 2 ( 2 ) + 0 ( 4 ) − 2 ( − 1 ) + 0 ( 3 ) ) = ( 22 14 − 4 2 ) BA = \begin{pmatrix} 1(2) + 5(4) & 1(-1) + 5(3) \\ -2(2) + 0(4) & -2(-1) + 0(3) \end{pmatrix} = \begin{pmatrix} 22 & 14 \\ -4 & 2 \end{pmatrix} B A = ( 1 ( 2 ) + 5 ( 4 ) − 2 ( 2 ) + 0 ( 4 ) 1 ( − 1 ) + 5 ( 3 ) − 2 ( − 1 ) + 0 ( 3 ) ) = ( 22 − 4 14 2 )
A B ≠ B A AB \neq BA A B = B A Confirming that matrix multiplication is not commutative.
If you get this wrong, revise: Matrix Multiplication properties.
Find the determinant and inverse of A = ( 5 3 2 1 ) A = \begin{pmatrix} 5 & 3 \\ 2 & 1 \end{pmatrix} A = ( 5 2 3 1 ) .
Solution det ( A ) = 5 ( 1 ) − 3 ( 2 ) = 5 − 6 = − 1 \det(A) = 5(1) - 3(2) = 5 - 6 = -1 det ( A ) = 5 ( 1 ) − 3 ( 2 ) = 5 − 6 = − 1
Since det ( A ) ≠ 0 \det(A) \neq 0 det ( A ) = 0 The inverse exists:
A − 1 = 1 − 1 ( 1 − 3 − 2 5 ) = ( − 1 3 2 − 5 ) A^{-1} = \frac{1}{-1}\begin{pmatrix} 1 & -3 \\ -2 & 5 \end{pmatrix} = \begin{pmatrix} -1 & 3 \\ 2 & -5 \end{pmatrix} A − 1 = − 1 1 ( 1 − 2 − 3 5 ) = ( − 1 2 3 − 5 )
Verification: A A − 1 = ( 5 3 2 1 ) ( − 1 3 2 − 5 ) = ( − 5 + 6 15 − 15 − 2 + 2 6 − 5 ) = ( 1 0 0 1 ) AA^{-1} = \begin{pmatrix} 5 & 3 \\ 2 & 1 \end{pmatrix}\begin{pmatrix} -1 & 3 \\ 2 & -5 \end{pmatrix} = \begin{pmatrix} -5+6 & 15-15 \\ -2+2 & 6-5 \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} A A − 1 = ( 5 2 3 1 ) ( − 1 2 3 − 5 ) = ( − 5 + 6 − 2 + 2 15 − 15 6 − 5 ) = ( 1 0 0 1 )
If you get this wrong, revise: 2x2 Determinant and Inverse sections.
Find the determinant of A = ( 2 3 1 0 − 1 2 1 4 − 1 ) A = \begin{pmatrix} 2 & 3 & 1 \\ 0 & -1 & 2 \\ 1 & 4 & -1 \end{pmatrix} A = 2 0 1 3 − 1 4 1 2 − 1 .
Solution Expanding along row 2 (which contains a zero):
det ( A ) = 0 ⋅ C 21 + ( − 1 ) ⋅ C 22 + 2 ⋅ C 23 \det(A) = 0 \cdot C_{21} + (-1) \cdot C_{22} + 2 \cdot C_{23} det ( A ) = 0 ⋅ C 21 + ( − 1 ) ⋅ C 22 + 2 ⋅ C 23
C 22 = ( − 1 ) 2 + 2 ∣ 2 1 1 − 1 ∣ = − 2 − 1 = − 3 C_{22} = (-1)^{2+2}\begin{vmatrix} 2 & 1 \\ 1 & -1 \end{vmatrix} = -2 - 1 = -3 C 22 = ( − 1 ) 2 + 2 2 1 1 − 1 = − 2 − 1 = − 3
C 23 = ( − 1 ) 2 + 3 ∣ 2 3 1 4 ∣ = − ( 8 − 3 ) = − 5 C_{23} = (-1)^{2+3}\begin{vmatrix} 2 & 3 \\ 1 & 4 \end{vmatrix} = -(8 - 3) = -5 C 23 = ( − 1 ) 2 + 3 2 1 3 4 = − ( 8 − 3 ) = − 5
det ( A ) = 0 + ( − 1 ) ( − 3 ) + 2 ( − 5 ) = 3 − 10 = − 7 \det(A) = 0 + (-1)(-3) + 2(-5) = 3 - 10 = -7 det ( A ) = 0 + ( − 1 ) ( − 3 ) + 2 ( − 5 ) = 3 − 10 = − 7
If you get this wrong, revise: 3x3 Determinant — Cofactor Expansion.
Find the matrix representing an anticlockwise rotation by 60 ∘ 60^\circ 6 0 ∘ about the origin, and use it to Find the image of the point ( 1 , 3 ) (1, \sqrt{3}) ( 1 , 3 ) .
Solution R 60 = ( cos 60 ∘ − sin 60 ∘ sin 60 ∘ cos 60 ∘ ) = ( 1 2 − 3 2 3 2 1 2 ) R_{60} = \begin{pmatrix} \cos 60^\circ & -\sin 60^\circ \\ \sin 60^\circ & \cos 60^\circ \end{pmatrix} = \begin{pmatrix} \frac{1}{2} & -\frac{\sqrt{3}}{2} \\ \frac{\sqrt{3}}{2} & \frac{1}{2} \end{pmatrix} R 60 = ( cos 6 0 ∘ sin 6 0 ∘ − sin 6 0 ∘ cos 6 0 ∘ ) = ( 2 1 2 3 − 2 3 2 1 )
( 1 2 − 3 2 3 2 1 2 ) ( 1 3 ) = ( 1 2 − 3 2 3 2 + 3 2 ) = ( − 1 3 ) \begin{pmatrix} \frac{1}{2} & -\frac{\sqrt{3}}{2} \\ \frac{\sqrt{3}}{2} & \frac{1}{2} \end{pmatrix}\begin{pmatrix} 1 \\ \sqrt{3} \end{pmatrix} = \begin{pmatrix} \frac{1}{2} - \frac{3}{2} \\ \frac{\sqrt{3}}{2} + \frac{\sqrt{3}}{2} \end{pmatrix} = \begin{pmatrix} -1 \\ \sqrt{3} \end{pmatrix} ( 2 1 2 3 − 2 3 2 1 ) ( 1 3 ) = ( 2 1 − 2 3 2 3 + 2 3 ) = ( − 1 3 )
The image is ( − 1 , 3 ) (-1, \sqrt{3}) ( − 1 , 3 ) .
If you get this wrong, revise: Rotations section.
A reflection in the y y y -axis is followed by an enlargement with scale factor 3 3 3 about the origin. Find the single matrix that represents this composite transformation. What is the area scale factor?
Solution Reflection in the y y y -axis: R y = ( − 1 0 0 1 ) R_y = \begin{pmatrix} -1 & 0 \\ 0 & 1 \end{pmatrix} R y = ( − 1 0 0 1 )
Enlargement with scale factor 3 3 3 : E 3 = ( 3 0 0 3 ) E_3 = \begin{pmatrix} 3 & 0 \\ 0 & 3 \end{pmatrix} E 3 = ( 3 0 0 3 )
Composite (enlargement applied after reflection):
M = E 3 ⋅ R y = ( 3 0 0 3 ) ( − 1 0 0 1 ) = ( − 3 0 0 3 ) M = E_3 \cdot R_y = \begin{pmatrix} 3 & 0 \\ 0 & 3 \end{pmatrix}\begin{pmatrix} -1 & 0 \\ 0 & 1 \end{pmatrix} = \begin{pmatrix} -3 & 0 \\ 0 & 3 \end{pmatrix} M = E 3 ⋅ R y = ( 3 0 0 3 ) ( − 1 0 0 1 ) = ( − 3 0 0 3 )
Area scale factor: ∣ det ( M ) ∣ = ∣ − 3 × 3 − 0 ∣ = 9 |\det(M)| = |-3 \times 3 - 0| = 9 ∣ det ( M ) ∣ = ∣ − 3 × 3 − 0∣ = 9 .
If you get this wrong, revise: Composite Transformations and Area Scale Factor.
Solve the system of equations using matrices:
3 x + 2 y − z = 5 3x + 2y - z = 5 3 x + 2 y − z = 5 x − y + 2 z = 1 x - y + 2z = 1 x − y + 2 z = 1 2 x + y + z = 4 2x + y + z = 4 2 x + y + z = 4
Solution Coefficient matrix: A = ( 3 2 − 1 1 − 1 2 2 1 1 ) A = \begin{pmatrix} 3 & 2 & -1 \\ 1 & -1 & 2 \\ 2 & 1 & 1 \end{pmatrix} A = 3 1 2 2 − 1 1 − 1 2 1
Constants: b = ( 5 1 4 ) \mathbf{b} = \begin{pmatrix} 5 \\ 1 \\ 4 \end{pmatrix} b = 5 1 4
det ( A ) = 3 ( − 1 − 2 ) − 2 ( 1 − 4 ) + ( − 1 ) ( 1 + 2 ) = − 9 + 6 − 3 = − 6 \det(A) = 3(-1 - 2) - 2(1 - 4) + (-1)(1 + 2) = -9 + 6 - 3 = -6 det ( A ) = 3 ( − 1 − 2 ) − 2 ( 1 − 4 ) + ( − 1 ) ( 1 + 2 ) = − 9 + 6 − 3 = − 6
By Cramer’s rule:
x = det ( 5 2 − 1 1 − 1 2 4 1 1 ) − 6 = 5 ( − 1 − 2 ) − 2 ( 1 − 8 ) + ( − 1 ) ( 1 + 4 ) − 6 = − 15 + 14 − 5 − 6 = − 6 − 6 = 1 x = \frac{\det\begin{pmatrix} 5 & 2 & -1 \\ 1 & -1 & 2 \\ 4 & 1 & 1 \end{pmatrix}}{-6} = \frac{5(-1-2) - 2(1-8) + (-1)(1+4)}{-6} = \frac{-15+14-5}{-6} = \frac{-6}{-6} = 1 x = − 6 d e t ( 5 1 4 2 − 1 1 − 1 2 1 ) = − 6 5 ( − 1 − 2 ) − 2 ( 1 − 8 ) + ( − 1 ) ( 1 + 4 ) = − 6 − 15 + 14 − 5 = − 6 − 6 = 1
y = det ( 3 5 − 1 1 1 2 2 4 1 ) − 6 = 3 ( 1 − 8 ) − 5 ( 1 − 4 ) + ( − 1 ) ( 4 − 2 ) − 6 = − 21 + 15 − 2 − 6 = − 8 − 6 = 4 3 y = \frac{\det\begin{pmatrix} 3 & 5 & -1 \\ 1 & 1 & 2 \\ 2 & 4 & 1 \end{pmatrix}}{-6} = \frac{3(1-8) - 5(1-4) + (-1)(4-2)}{-6} = \frac{-21+15-2}{-6} = \frac{-8}{-6} = \frac{4}{3} y = − 6 d e t ( 3 1 2 5 1 4 − 1 2 1 ) = − 6 3 ( 1 − 8 ) − 5 ( 1 − 4 ) + ( − 1 ) ( 4 − 2 ) = − 6 − 21 + 15 − 2 = − 6 − 8 = 3 4
z = det ( 3 2 5 1 − 1 1 2 1 4 ) − 6 = 3 ( − 4 − 1 ) − 2 ( 4 − 2 ) + 5 ( 1 + 2 ) − 6 = − 15 − 4 + 15 − 6 = − 4 − 6 = 2 3 z = \frac{\det\begin{pmatrix} 3 & 2 & 5 \\ 1 & -1 & 1 \\ 2 & 1 & 4 \end{pmatrix}}{-6} = \frac{3(-4-1) - 2(4-2) + 5(1+2)}{-6} = \frac{-15-4+15}{-6} = \frac{-4}{-6} = \frac{2}{3} z = − 6 d e t ( 3 1 2 2 − 1 1 5 1 4 ) = − 6 3 ( − 4 − 1 ) − 2 ( 4 − 2 ) + 5 ( 1 + 2 ) = − 6 − 15 − 4 + 15 = − 6 − 4 = 3 2
Solution: x = 1$$y = \frac{4}{3}$$z = \frac{2}{3} .
If you get this wrong, revise: Cramer’s Rule section.
Find the eigenvalues and eigenvectors of A = ( 3 − 2 1 0 ) A = \begin{pmatrix} 3 & -2 \\ 1 & 0 \end{pmatrix} A = ( 3 1 − 2 0 ) .
Solution Characteristic equation:
det ( A − λ I ) = ( 3 − λ ) ( − λ ) − ( − 2 ) ( 1 ) = λ 2 − 3 λ + 2 = 0 \det(A - \lambda I) = (3 - \lambda)(-\lambda) - (-2)(1) = \lambda^2 - 3\lambda + 2 = 0 det ( A − λ I ) = ( 3 − λ ) ( − λ ) − ( − 2 ) ( 1 ) = λ 2 − 3 λ + 2 = 0
( λ − 1 ) ( λ − 2 ) = 0 (\lambda - 1)(\lambda - 2) = 0 ( λ − 1 ) ( λ − 2 ) = 0
λ 1 = 1 \lambda_1 = 1 λ 1 = 1 , λ 2 = 2 \lambda_2 = 2 λ 2 = 2 .
Eigenvector for λ 1 = 1 \lambda_1 = 1 λ 1 = 1 :
( 2 − 2 1 − 1 ) ( v 1 v 2 ) = ( 0 0 ) ⟹ v 1 = v 2 \begin{pmatrix} 2 & -2 \\ 1 & -1 \end{pmatrix}\begin{pmatrix} v_1 \\ v_2 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix} \implies v_1 = v_2 ( 2 1 − 2 − 1 ) ( v 1 v 2 ) = ( 0 0 ) ⟹ v 1 = v 2
Eigenvector: ( 1 1 ) \begin{pmatrix} 1 \\ 1 \end{pmatrix} ( 1 1 ) .
Eigenvector for λ 2 = 2 \lambda_2 = 2 λ 2 = 2 :
( 1 − 2 1 − 2 ) ( v 1 v 2 ) = ( 0 0 ) ⟹ v 1 = 2 v 2 \begin{pmatrix} 1 & -2 \\ 1 & -2 \end{pmatrix}\begin{pmatrix} v_1 \\ v_2 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix} \implies v_1 = 2v_2 ( 1 1 − 2 − 2 ) ( v 1 v 2 ) = ( 0 0 ) ⟹ v 1 = 2 v 2
Eigenvector: ( 2 1 ) \begin{pmatrix} 2 \\ 1 \end{pmatrix} ( 2 1 ) .
If you get this wrong, revise: Eigenvalues and Eigenvectors section.
A stretch parallel to the x x x -axis with scale factor 2 2 2 is followed by a stretch parallel to the y y y -axis with scale factor 3 3 3 . Find the single matrix and describe its effect on the unit square.
Solution M = ( 1 0 0 3 ) ( 2 0 0 1 ) = ( 2 0 0 3 ) M = \begin{pmatrix} 1 & 0 \\ 0 & 3 \end{pmatrix}\begin{pmatrix} 2 & 0 \\ 0 & 1 \end{pmatrix} = \begin{pmatrix} 2 & 0 \\ 0 & 3 \end{pmatrix} M = ( 1 0 0 3 ) ( 2 0 0 1 ) = ( 2 0 0 3 )
The unit square (area = 1) is mapped to a rectangle with vertices ( 0 , 0 ) (0,0) ( 0 , 0 ) , ( 2 , 0 ) (2,0) ( 2 , 0 ) , ( 2 , 3 ) (2,3) ( 2 , 3 ) , ( 0 , 3 ) (0,3) ( 0 , 3 ) . The new area is 6 6 6 .
Area scale factor: ∣ det ( M ) ∣ = 6 |\det(M)| = 6 ∣ det ( M ) ∣ = 6 .
If you get this wrong, revise: Enlargements and Stretches section.
Find the invariant points and invariant lines of the transformation represented by M = ( 2 1 0 2 ) M = \begin{pmatrix} 2 & 1 \\ 0 & 2 \end{pmatrix} M = ( 2 0 1 2 ) .
Solution Invariant points: Solve ( M − I ) x = 0 (M - I)\mathbf{x} = \mathbf{0} ( M − I ) x = 0 :
( 1 1 0 1 ) ( x y ) = ( 0 0 ) \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix} ( 1 0 1 1 ) ( x y ) = ( 0 0 )
From row 2: y = 0 y = 0 y = 0 . From row 1: x + 0 = 0 x + 0 = 0 x + 0 = 0 So x = 0 x = 0 x = 0 .
The only invariant point is the origin ( 0 , 0 ) (0, 0) ( 0 , 0 ) .
Invariant lines: For an invariant line through the origin, the direction vector must be an Eigenvector. Eigenvalues satisfy ( 2 − λ ) 2 = 0 (2-\lambda)^2 = 0 ( 2 − λ ) 2 = 0 So λ = 2 \lambda = 2 λ = 2 (repeated).
For λ = 2 \lambda = 2 λ = 2 : ( 0 1 0 0 ) ( v 1 v 2 ) = ( 0 0 ) \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix}\begin{pmatrix} v_1 \\ v_2 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix} ( 0 0 1 0 ) ( v 1 v 2 ) = ( 0 0 ) Giving v 2 = 0 v_2 = 0 v 2 = 0 . The only eigenvector direction is ( 1 0 ) \begin{pmatrix} 1 \\ 0 \end{pmatrix} ( 1 0 ) .
The x x x -axis (y = 0 y = 0 y = 0 ) is the only invariant line through the origin.
If you get this wrong, revise: Invariant Points and Lines section.
The transition matrix for a two-state Markov chain is P = ( 0.6 0.3 0.4 0.7 ) P = \begin{pmatrix} 0.6 & 0.3 \\ 0.4 & 0.7 \end{pmatrix} P = ( 0.6 0.4 0.3 0.7 ) . Find the steady-state distribution.
Solution Solve s P = s \mathbf{s}P = \mathbf{s} s P = s where s = ( s 1 s 2 ) \mathbf{s} = \begin{pmatrix} s_1 & s_2 \end{pmatrix} s = ( s 1 s 2 ) with s 1 + s 2 = 1 s_1 + s_2 = 1 s 1 + s 2 = 1 .
From s P = s \mathbf{s}P = \mathbf{s} s P = s :
0.6 s 1 + 0.4 s 2 = s 1 ⟹ − 0.4 s 1 + 0.4 s 2 = 0 ⟹ s 1 = s 2 0.6s_1 + 0.4s_2 = s_1 \implies -0.4s_1 + 0.4s_2 = 0 \implies s_1 = s_2 0.6 s 1 + 0.4 s 2 = s 1 ⟹ − 0.4 s 1 + 0.4 s 2 = 0 ⟹ s 1 = s 2
With s 1 + s 2 = 1 s_1 + s_2 = 1 s 1 + s 2 = 1 : s 1 = 0.5 s_1 = 0.5 s 1 = 0.5 , s 2 = 0.5 s_2 = 0.5 s 2 = 0.5 .
Steady state: ( 0.5 0.5 ) \begin{pmatrix} 0.5 & 0.5 \end{pmatrix} ( 0.5 0.5 ) .
If you get this wrong, revise: Markov Chains section.
Encrypt the word “CAT” using the Hill cipher with key matrix K = ( 2 1 1 1 ) K = \begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix} K = ( 2 1 1 1 ) Padding with “X” if needed.
Solution C = 2, A = 0, T = 19. Pad to make even length: “CATX” where X = 23.
Block 1: ( 2 0 ) \begin{pmatrix} 2 \\ 0 \end{pmatrix} ( 2 0 ) Block 2: ( 19 23 ) \begin{pmatrix} 19 \\ 23 \end{pmatrix} ( 19 23 )
Block 1:
( 2 1 1 1 ) ( 2 0 ) = ( 4 2 ) ≡ ( 4 2 ) ( m o d 26 ) \begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix}\begin{pmatrix} 2 \\ 0 \end{pmatrix} = \begin{pmatrix} 4 \\ 2 \end{pmatrix} \equiv \begin{pmatrix} 4 \\ 2 \end{pmatrix} \pmod{26} ( 2 1 1 1 ) ( 2 0 ) = ( 4 2 ) ≡ ( 4 2 ) ( mod 26 )
Giving “EC”.
Block 2:
( 2 1 1 1 ) ( 19 23 ) = ( 61 42 ) ≡ ( 9 16 ) ( m o d 26 ) \begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix}\begin{pmatrix} 19 \\ 23 \end{pmatrix} = \begin{pmatrix} 61 \\ 42 \end{pmatrix} \equiv \begin{pmatrix} 9 \\ 16 \end{pmatrix} \pmod{26} ( 2 1 1 1 ) ( 19 23 ) = ( 61 42 ) ≡ ( 9 16 ) ( mod 26 )
61 m o d 26 = 9 61 \bmod 26 = 9 61 mod 26 = 9 (J), 42 m o d 26 = 16 42 \bmod 26 = 16 42 mod 26 = 16 (Q). Giving “JQ”.
Ciphertext: “ECJQ”.
If you get this wrong, revise: Hill Cipher section.
Diagonalise the matrix A = ( 2 1 1 2 ) A = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix} A = ( 2 1 1 2 ) and use the diagonalisation To find A 4 A^4 A 4 .
Solution Eigenvalues:
det ( A − λ I ) = ( 2 − λ ) 2 − 1 = λ 2 − 4 λ + 3 = 0 \det(A - \lambda I) = (2-\lambda)^2 - 1 = \lambda^2 - 4\lambda + 3 = 0 det ( A − λ I ) = ( 2 − λ ) 2 − 1 = λ 2 − 4 λ + 3 = 0
( λ − 1 ) ( λ − 3 ) = 0 ⟹ λ 1 = 1 , λ 2 = 3 (\lambda - 1)(\lambda - 3) = 0 \implies \lambda_1 = 1, \lambda_2 = 3 ( λ − 1 ) ( λ − 3 ) = 0 ⟹ λ 1 = 1 , λ 2 = 3
Eigenvectors:
λ 1 = 1 \lambda_1 = 1 λ 1 = 1 : ( 1 1 1 1 ) ( v 1 v 2 ) = 0 ⟹ v 1 = − v 2 \begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix}\begin{pmatrix} v_1 \\ v_2 \end{pmatrix} = \mathbf{0} \implies v_1 = -v_2 ( 1 1 1 1 ) ( v 1 v 2 ) = 0 ⟹ v 1 = − v 2 So v 1 = ( 1 − 1 ) \mathbf{v}_1 = \begin{pmatrix} 1 \\ -1 \end{pmatrix} v 1 = ( 1 − 1 ) .
λ 2 = 3 \lambda_2 = 3 λ 2 = 3 : ( − 1 1 1 − 1 ) ( v 1 v 2 ) = 0 ⟹ v 1 = v 2 \begin{pmatrix} -1 & 1 \\ 1 & -1 \end{pmatrix}\begin{pmatrix} v_1 \\ v_2 \end{pmatrix} = \mathbf{0} \implies v_1 = v_2 ( − 1 1 1 − 1 ) ( v 1 v 2 ) = 0 ⟹ v 1 = v 2 So v 2 = ( 1 1 ) \mathbf{v}_2 = \begin{pmatrix} 1 \\ 1 \end{pmatrix} v 2 = ( 1 1 ) .
Diagonalisation:
P = ( 1 1 − 1 1 ) , D = ( 1 0 0 3 ) P = \begin{pmatrix} 1 & 1 \\ -1 & 1 \end{pmatrix}, \quad D = \begin{pmatrix} 1 & 0 \\ 0 & 3 \end{pmatrix} P = ( 1 − 1 1 1 ) , D = ( 1 0 0 3 )
det ( P ) = 2 , P − 1 = 1 2 ( 1 − 1 1 1 ) \det(P) = 2, \quad P^{-1} = \frac{1}{2}\begin{pmatrix} 1 & -1 \\ 1 & 1 \end{pmatrix} det ( P ) = 2 , P − 1 = 2 1 ( 1 1 − 1 1 )
Compute A 4 A^4 A 4 :
D 4 = ( 1 0 0 81 ) D^4 = \begin{pmatrix} 1 & 0 \\ 0 & 81 \end{pmatrix} D 4 = ( 1 0 0 81 )
A 4 = P D 4 P − 1 = ( 1 1 − 1 1 ) ( 1 0 0 81 ) 1 2 ( 1 − 1 1 1 ) A^4 = PD^4 P^{-1} = \begin{pmatrix} 1 & 1 \\ -1 & 1 \end{pmatrix}\begin{pmatrix} 1 & 0 \\ 0 & 81 \end{pmatrix}\frac{1}{2}\begin{pmatrix} 1 & -1 \\ 1 & 1 \end{pmatrix} A 4 = P D 4 P − 1 = ( 1 − 1 1 1 ) ( 1 0 0 81 ) 2 1 ( 1 1 − 1 1 )
= 1 2 ( 1 81 − 1 81 ) ( 1 − 1 1 1 ) = 1 2 ( 82 80 80 82 ) = ( 41 40 40 41 ) = \frac{1}{2}\begin{pmatrix} 1 & 81 \\ -1 & 81 \end{pmatrix}\begin{pmatrix} 1 & -1 \\ 1 & 1 \end{pmatrix} = \frac{1}{2}\begin{pmatrix} 82 & 80 \\ 80 & 82 \end{pmatrix} = \begin{pmatrix} 41 & 40 \\ 40 & 41 \end{pmatrix} = 2 1 ( 1 − 1 81 81 ) ( 1 1 − 1 1 ) = 2 1 ( 82 80 80 82 ) = ( 41 40 40 41 )
If you get this wrong, revise: Diagonalisation and Matrix Powers sections.
A matrix is a machine that transforms space. It stretches, rotates, reflects, and shears every point according to a fixed rule. The determinant measures how much the matrix scales area — a determinant of two means every region doubles in area; a determinant of zero means the transformation collapses the plane onto a line or point, losing information permanently. Eigenvalues reveal the special directions where the matrix only stretches without rotating, and eigenvectors point along those directions. Diagonalisation is like finding the natural coordinate system of the transformation — the basis in which the matrix acts as simple scaling along each axis.
Misreading the question, particularly with ‘hence’ vs ‘hence or otherwise’. The former requires using previous work.
Confusing sin ( 2 x ) \sin(2x) sin ( 2 x ) with 2 sin ( x ) 2\sin(x) 2 sin ( x ) . Double-angle formulas are not the same as scalar multiplication.
Matrix multiplication is not commutative (A B ≠ B A AB \neq BA A B = B A ) det A = 0 \det A = 0 det A = 0 means A A A is singular (no inverse)2 × 2 2 \times 2 2 × 2 inverse: 1 a d − b c ( d − b − c a ) \frac{1}{ad-bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix} a d − b c 1 ( d − c − b a ) Transformations represented by matrices: rotation, reflection, enlargement Topic Site Link [Matrices] A-Level View [Matrices] IB View
Worked examples demonstrating the application of key concepts are covered in the detailed sub-pages linked above.