Determinants, Inverses & Matrix Transformations

Amari Cross & Matthew Williams
||8 min read
DeterminantsInversesMatricesTransformations

2×2 determinants, matrix inverses, solving equations using matrices, and transformation matrices.

Matrices give a compact way to perform several calculations at once. In the optional CSEC section on Vectors and Matrices, you may be asked to use matrices to undo operations, solve simultaneous equations, or transform points on a plane.

The key idea is that matrix work is highly procedural, but it still needs interpretation. A determinant tells you whether an inverse exists; an inverse matrix reverses the effect of another matrix; a transformation matrix moves points in a predictable way. State what the matrix is doing before you start multiplying.

What is an Inverse?

An inverse matrix reverses the effect of a matrix multiplication, similar to how division reverses multiplication with ordinary numbers.

The inverse of matrix AA is matrix A1A^{-1} such that: AA1=A1A=IAA^{-1} = A^{-1}A = I

Think of it like division: A1A^{-1} "undoes" what AA does.

When Does an Inverse Exist?

Only when det(A)0\det(A) \neq 0 (called a non-singular matrix)

Formula for 2×2 Inverse

The formula swaps the diagonal entries, changes the signs of the other diagonal, and divides by the determinant. The determinant check comes first because division by zero is impossible.

For A=(abcd)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}:

A1=1adbc(dbca)A^{-1} = \frac{1}{ad - bc} \begin{pmatrix} d & -b \\ -c & a \end{pmatrix}

Steps:

  1. Calculate determinant: adbcad - bc
  2. Swap aa and dd
  3. Negate bb and cc
  4. Divide by determinant

2×2 Inverse Example

Find the inverse of A=(3124)A = \begin{pmatrix} 3 & 1 \\ 2 & 4 \end{pmatrix}

Step 1: Find determinant

det(A)=3(4)1(2)=122=10\det(A) = 3(4) - 1(2) = 12 - 2 = 10

Step 2: Apply formula

A1=110(4123)=(0.40.10.20.3)A^{-1} = \frac{1}{10} \begin{pmatrix} 4 & -1 \\ -2 & 3 \end{pmatrix} = \begin{pmatrix} 0.4 & -0.1 \\ -0.2 & 0.3 \end{pmatrix}

Step 3: Verify (multiply AA1A \cdot A^{-1})

(3124)(0.40.10.20.3)\begin{pmatrix} 3 & 1 \\ 2 & 4 \end{pmatrix} \begin{pmatrix} 0.4 & -0.1 \\ -0.2 & 0.3 \end{pmatrix}

Position (1,1): 3(0.4)+1(0.2)=1.20.2=13(0.4) + 1(-0.2) = 1.2 - 0.2 = 1

Position (1,2): 3(0.1)+1(0.3)=0.3+0.3=03(-0.1) + 1(0.3) = -0.3 + 0.3 = 0

Position (2,1): 2(0.4)+4(0.2)=0.80.8=02(0.4) + 4(-0.2) = 0.8 - 0.8 = 0

Position (2,2): 2(0.1)+4(0.3)=0.2+1.2=12(-0.1) + 4(0.3) = -0.2 + 1.2 = 1

Result: I=(1001)I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}

Exam Tip

Always verify your inverse by multiplying AA1A \cdot A^{-1} to check you get the identity matrix.

No Inverse When Determinant = 0

A=(2412)A = \begin{pmatrix} 2 & 4 \\ 1 & 2 \end{pmatrix}

det(A)=2(2)4(1)=44=0\det(A) = 2(2) - 4(1) = 4 - 4 = 0

Since determinant is 0, this matrix has no inverse. (Its columns are proportional—row 1 is exactly 2× row 2.)


Part 10: Solving Systems Using Matrices

Converting a System to Matrix Form

Matrix form separates coefficients, unknowns, and constants. This makes a pair of simultaneous equations look like one compact equation: AX=BAX = B.

System: 2x+3y=8xy=1\begin{aligned} 2x + 3y &= 8 \\ x - y &= 1 \end{aligned}

Matrix Form: AX=BAX = B

(2311)(xy)=(81)\begin{pmatrix} 2 & 3 \\ 1 & -1 \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} 8 \\ 1 \end{pmatrix}

Where:

  • AA = coefficient matrix
  • XX = variable column vector
  • BB = constants column vector

Solving Using Matrix Inverse

If AX=BAX = B, multiplying by A1A^{-1} undoes the coefficient matrix. The result is the unknown vector XX.

If AX=BAX = B, then:

X=A1BX = A^{-1}B

(Multiply both sides by A1A^{-1} on the left)

Complete Example

Problem: Solve (2311)(xy)=(81)\begin{pmatrix} 2 & 3 \\ 1 & -1 \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} 8 \\ 1 \end{pmatrix}

Step 1: Find det(A)\det(A)

det(2311)=2(1)3(1)=23=5\det \begin{pmatrix} 2 & 3 \\ 1 & -1 \end{pmatrix} = 2(-1) - 3(1) = -2 - 3 = -5

Step 2: Find A1A^{-1}

A1=15(1312)=(0.20.60.20.4)A^{-1} = \frac{1}{-5} \begin{pmatrix} -1 & -3 \\ -1 & 2 \end{pmatrix} = \begin{pmatrix} 0.2 & 0.6 \\ 0.2 & -0.4 \end{pmatrix}

Step 3: Multiply A1BA^{-1}B

(xy)=(0.20.60.20.4)(81)\begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} 0.2 & 0.6 \\ 0.2 & -0.4 \end{pmatrix} \begin{pmatrix} 8 \\ 1 \end{pmatrix}

x=0.2(8)+0.6(1)=1.6+0.6=2.2x = 0.2(8) + 0.6(1) = 1.6 + 0.6 = 2.2

y=0.2(8)0.4(1)=1.60.4=1.2y = 0.2(8) - 0.4(1) = 1.6 - 0.4 = 1.2

Answer: x=2.2x = 2.2, y=1.2y = 1.2

Check: 2(2.2)+3(1.2)=4.4+3.6=82(2.2) + 3(1.2) = 4.4 + 3.6 = 8 ✓ and 2.21.2=12.2 - 1.2 = 1

Remember

Matrix method works when det(A)0\det(A) \neq 0. If determinant is 0, the system either has no solution or infinitely many solutions.


Part 11: Transformation Matrices

What Transformations Do Matrices Represent?

Transformation matrices describe movement on the coordinate plane. Each point is written as a column vector, multiplied by the matrix, and changed into its image.

Matrices can represent:

  • Rotation: Turn a shape around origin
  • Reflection: Mirror a shape
  • Scaling: Enlarge or reduce
  • Shear: Skew a shape

How it Works: To transform point (x,y)(x, y), multiply by transformation matrix

(xy)=(abcd)(xy)\begin{pmatrix} x' \\ y' \end{pmatrix} = \begin{pmatrix} a & b \\ c & d \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix}

Rotation Matrix

Rotate counterclockwise by angle θ\theta:

R(θ)=(cos(θ)sin(θ)sin(θ)cos(θ))R(\theta) = \begin{pmatrix} \cos(\theta) & -\sin(\theta) \\ \sin(\theta) & \cos(\theta) \end{pmatrix}

Example

Rotate 90° counterclockwise: cos(900˘0b0)=0\cos(90\u00b0) = 0, sin(900˘0b0)=1\sin(90\u00b0) = 1

R(900˘0b0)=(0110)R(90\u00b0) = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}

Transform (1,0)(1, 0): (0110)(10)=(01)\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix} \begin{pmatrix} 1 \\ 0 \end{pmatrix} = \begin{pmatrix} 0 \\ 1 \end{pmatrix}

Point (1,0)(1, 0)(0,1)(0, 1) (rotated 90°) ✓

Reflection Matrix

Reflect across x-axis: Rx=(1001)R_x = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}

Reflect across y-axis: Ry=(1001)R_y = \begin{pmatrix} -1 & 0 \\ 0 & 1 \end{pmatrix}

Reflect across line y=xy = x: Ry=x=(0110)R_{y=x} = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}

Scaling Matrix

Scale by factor kk (same in both directions): S(k)=(k00k)S(k) = \begin{pmatrix} k & 0 \\ 0 & k \end{pmatrix}

Scale different in each direction (x by aa, y by bb): S(a,b)=(a00b)S(a,b) = \begin{pmatrix} a & 0 \\ 0 & b \end{pmatrix}

Example

Double the size of point (2,3)(2, 3):

(2002)(23)=(46)\begin{pmatrix} 2 & 0 \\ 0 & 2 \end{pmatrix} \begin{pmatrix} 2 \\ 3 \end{pmatrix} = \begin{pmatrix} 4 \\ 6 \end{pmatrix}

Composite Transformations

Composite transformations are performed in sequence. In matrix form, the matrix nearest the point acts first, so the written order must be handled carefully.

Apply multiple transformations by multiplying matrices

To apply transformation T2T_2 after T1T_1: Result=T2T1(xy)\text{Result} = T_2 \cdot T_1 \cdot \begin{pmatrix} x \\ y \end{pmatrix}

(Work right to left: apply T1T_1 first, then T2T_2)

ANIMATION: Composite transformations
- Show original triangle
- Apply first transformation (e.g., rotation)
- Show intermediate result
- Apply second transformation (e.g., scaling)
- Show final result
- Show that multiplying matrices in order gives same result

Part 12: Non-Commutativity of Matrix Multiplication

Matrix Multiplication is Not Commutative

Critical Rule: ABBAAB \neq BA in general

Unlike multiplication of numbers, matrix multiplication depends on order.

Example

A=(1201),B=(0110)A = \begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix}, \quad B = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}

AB=(1201)(0110)=(2110)AB = \begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix} \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} = \begin{pmatrix} 2 & 1 \\ 1 & 0 \end{pmatrix}

BA=(0110)(1201)=(0112)BA = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} \begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix} = \begin{pmatrix} 0 & 1 \\ 1 & 2 \end{pmatrix}

Notice: ABBAAB \neq BA

Why It Matters: In transformations, the order you apply them matters completely. Rotating then scaling gives a different result than scaling then rotating.

Exam Tip

When composing two transformations represented by matrices T1T_1 and T2T_2:

  • To apply T1T_1 first, then T2T_2: multiply as T2T1T_2 \cdot T_1 (right to left)
  • Never assume T1T2=T2T1T_1 \cdot T_2 = T_2 \cdot T_1—they're different transformations

Summary: Key Concepts

ConceptDefinitionKey Formula
VectorObject with magnitude and directionv=x2+y2\|\vec{v}\| = \sqrt{x^2 + y^2}
Vector AdditionCombine vectors head-to-tailu+v\vec{u} + \vec{v} component-wise
MatrixRectangular array of numbersA=(aij)A = (a_{ij}) rows × columns
Matrix ProductRow × Column combinationABij=row icol jAB_{ij} = \text{row } i \cdot \text{col } j
2×2 DeterminantScalar value of matrixdet(A)=adbc\det(A) = ad - bc
2×2 InverseUndoes matrix multiplicationA1=1adbc(dbca)A^{-1} = \frac{1}{ad-bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}
Rotation MatrixRotates by angle θ\theta(cosθsinθsinθcosθ)\begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}