Lesson 2.7 · 12 of 25 lessons

Scaling & rotation

Grow from linear combinations to independence, bases, the fundamental subspaces, and transformations.

Open the interactive animation

01 · Story

What to verify in this scene

Follow the explanations and operations, then identify the mathematical evidence that remains in the final scene.

  1. 01

    Diagonal matrix S keeps the axis directions but doubles horizontal length

  2. 02

    Apply S to widen the x-spacing of the basis and grid

  3. 03

    Only the x direction stretched, so the space became wider

  4. 04

    Now use rotation matrix R to turn the basis and grid by 90 degrees

  5. 05

    Both axes and the grid rotated together
    Matrix multiplication transforms the entire coordinate grid

02 · Notebook

The runnable notebook

This source creates the mathematical objects and controls the order of operations and animation. Read it here, then play the same scene yourself.

2d
zoom 4/5
grid on
relative-grid on
basis on
coordinates off

2 0  #S
0 1
// Diagonal matrix {{S}} keeps the axis directions but doubles horizontal length
checkpoint Scaling & rotation · 1

// Apply {{S}} to widen the x-spacing of the basis and grid
S
// Only the x direction stretched, so the space became wider
checkpoint Scaling & rotation · 2

clear
space reset
0 -1  #R
1 0
// Now use rotation matrix {{R}} to turn the basis and grid by 90 degrees
checkpoint Scaling & rotation · 3

R
// Both axes and the grid rotated together\nMatrix multiplication transforms the **entire coordinate grid**
Open the interactive animation

03 · Unit 2

Lessons in this unit

Vector spaces & transformations — Grow from linear combinations to independence, bases, the fundamental subspaces, and transformations.

  1. 2.1Vectors & scalars
  2. 2.2Vector addition
  3. 2.3Linear combinations
  4. 2.4Independence & dependence
  5. 2.5Bases & coordinates
  6. 2.6Column space & null space
  7. 2.7Scaling & rotation