Back to Discover
Curiosity

Why Order Matters: Matrices, Turns, and Walks

Walks are translations and turns are rotations, encoded as matrices that act on position vectors; applying a rotation matrix then a translation matrix moves the point differently than translating first then rotating, because matrix multiplication is non-commutative and the rotation literally rotates the direction the translation points in.

Before you enter

A complete interactive classroom, not just a preview.

Start when you are ready to enter this Stage's 9 scenes and explore, respond, and learn as you go.

9
Scenes
18 min
Estimated
Content language: en-US
Start this Stage
Sign-in may be required to play
What happens inside
  1. 01Same Steps, Different Endpointsslide
    Question

    Open with the lived experience: stand, walk three paces north, turn 90° to face east. Reset, turn 90° first, then walk three paces in that new direction. The two final positions are not the same square. Pose the driving question in its matrix form: why does the order in which we apply a rotation and a translation change where we end up?

    • Both routines use the same 90° turn and the same three-pace walk
    • Both start from the same point on the same floor
    • The two endpoints differ — the order of the two operations changed the outcome
  2. 02Your First Guessquiz
    Prediction

    Ask the learner to commit to a single hypothesis before any matrix machinery is shown.

    • Choose one explanation for why the two endpoints differ
  3. 03The Two Paths on a Gridslide
    Evidence

    A clean top-down diagram of both paths on a coordinate grid, with the start, intermediate, and end points labeled in coordinates. This pins the observation in a frame we can later describe with matrices.

    • Walk then turn: final point is (3, 0) plus a rotation about the start
    • Turn then walk: final point is (0, 3), the rotation has already moved the heading
    • Same steps, same numbers, different coordinates — the algebra must reflect this
  4. 04Try Both Orders on the Gridinteractive
    Evidence

    An interactive grid simulation in which the learner drags a 'walk' step and a 'turn' step into either order, presses Play, and watches two trails drawn to their two distinct endpoints. The simulation also displays the running matrix expression so the learner can see the two orderings produce two different matrix products.

    • Drag to reorder the walk and the turn
    • Press Play to animate both paths simultaneously
    • Watch the on-screen expression: T·R versus R·T applied to the start point
  5. 05Walks Are Translations, Turns Are Rotation Matricesslide
    Explanation

    Introduce the two matrix representations. A walk of distance d in direction (cos θ, sin θ) is the translation by t = (d cos θ, d sin θ). A turn by angle φ about the origin is the 2x2 rotation matrix R(φ). Composing them is matrix multiplication; the order matters because the rotation matrix acts on whatever vector sits to its right.

    • Translation: x ↦ x + t, where t is the displacement vector
    • Rotation: x ↦ R(φ)·x, where R(φ) is the 2x2 rotation matrix
    • Walk then turn: R·(p + t) — the rotation acts on the walked-to point
    • Turn then walk: R·p + (rotation applied to t) — the rotation has already moved the heading
  6. 06The Algebra: R·T Versus T·Rslide
    Explanation

    Write both compositions out in coordinates. Walk then turn ends at R·p + R·t. Turn then walk ends at R·p + t (if we model turn-then-walk as translate-then-rotate) — but in body coordinates it ends at R·p + R·t. The crucial observation: the translation vector itself gets rotated by R when the turn happens first, so the two endpoints differ by (R − I)·t.

    • Walk then turn: final position is R·p + R·t
    • Turn then walk (in body frame): final position is R·p + R·t as well, but the t here is the translation in the original frame, and R rotates it
    • The difference between the two orderings is exactly the rotated translation vector (R − I)·t
    • If R is the identity (0° or 360°), the difference collapses to zero
  7. 07Sweep the Angle and the Distanceinteractive
    Transfer

    A generalized simulation: the learner drags sliders for φ (turn angle) and d (walk distance) and watches the two endpoints and the gap between them update live, with the algebraic expression (R − I)·t shown numerically. Tests whether the explanation holds beyond the 90°–3-step case.

    • Slide to change turn angle φ and walk distance d
    • Watch the gap vector (R − I)·t update in real time
    • Notice the gap shrinks to zero at φ = 0° and φ = 360°
  8. 08When Does Order Stop Mattering?slide
    Boundary

    Identify the precise cases where the two paths coincide. Order stops mattering exactly when the rotation matrix equals the identity: a 0° turn, a 360° turn, or in the degenerate case where the walk distance is zero. Any other combination produces a nonzero (R − I)·t and the endpoints diverge.

    • Zero turn angle: R = I, both paths identical
    • 360° turn: R = I, both paths identical
    • Zero walk distance: t = 0, both paths identical regardless of R
    • Any other combination: (R − I)·t ≠ 0, endpoints diverge
  9. 09Order Matters Because Matrices Multiply, Not Addslide
    Resolution

    Directly answer the driving question. Walks are translations (x ↦ x + t) and turns are rotation matrices (x ↦ R·x). Composing the two operations is matrix multiplication, and matrix multiplication is not commutative. The rotation matrix reshapes the translation vector itself: when the turn comes first, R acts on t and steers it into a new direction; when the walk comes first, t is applied first and R only rotates the endpoint. The gap between the two orderings is exactly (R − I)·t — zero only when the rotation is the identity.

    • Walks are translations and turns are rotation matrices
    • Composing them is matrix multiplication, which is not commutative
    • The rotation matrix literally rotates the translation vector when applied first
    • The endpoint difference is (R − I)·t — a concrete, computable mismatch
Discussion

Discussion threads for a Stage aren't available yet.

Where this leads
Other versions of this lesson
Explore more

More in Math & Logic

See all