1. Why Peek Beyond 2D

  • The course works mostly in 2D because it’s easy to see on screen.
  • Every core idea carries over smoothly to higher dimensions; this short chapter shows how for 3D.

2. 3D Linear Transformations

Definition 2.1 – Linear transformation in 3D

A function taking 3D vectors to 3D vectors that moves all of space so that grid lines stay parallel and evenly spaced and the origin stays fixed. Each moving point is a stand-in for the vector whose tip sits there.

Definition 2.2 – Standard basis in 3D

(unit vectors along x, y, z). Tracking just these three is usually easier than watching the full 3D grid.


3. 3×3 Matrices

Definition 3.1 – Matrix of a 3D transformation

Write the landing spots of as the three columns:

→ nine numbers describe the whole transformation.

Worked example — rotate 90° about the y-axis.

Basis vectorLands on
(onto the negative z-axis)
(unchanged — it’s the axis)
(onto the x-axis)

Theorem 3.2 – Applying the matrix to a vector

Same reasoning as 2D: coordinates scale the basis vectors, and that scaling-and-adding survives the transformation.

Worked example. With the rotation above:

⚠️ Pitfall: Columns, not rows, hold the landing spots of the basis vectors.


4. Multiplying 3×3 Matrices

Rule 4.1

means apply first (right), then (left) — exactly as in 2D. Column of is times column of .

Why it matters

  • Computer graphics & robotics: arbitrary 3D rotations are hard to describe directly but easy to build as a composition of simpler rotations (e.g. about the x-, y-, z-axes), i.e. a product of matrices.
Concept2D3D
Basis vectors
Matrix size (4 numbers) (9 numbers)
Product Apply then Apply then

Exercises: Work out what the product of two 3×3 matrices must look like by thinking of successive transformations, then verify by composing a 90° rotation about the y-axis with a 90° rotation about the z-axis (lesson page).