1. The matrix machine
A 2 by 2 matrix transforms every point in the plane. The columns tell where the standard basis vectors go.
If A = [[a,b],[c,d]], then the first column is Ae1 and the second column is Ae2.
2. Transform the unit square and circle
The unit square becomes the parallelogram spanned by the columns of the matrix. The unit circle shows how the transformation stretches different directions.
A rotation keeps the circle circular. A stretch or shear turns it into an ellipse. A collapse turns it into a line segment.
3. Build transformations by sliders
This panel builds a matrix from a rotation, a horizontal shear, and separate horizontal/vertical scaling:
A = Rotation × Shear × Scale
4. Data cloud transformation
A dataset with two features is a cloud of points. Applying a matrix reshapes the cloud. This is a preview of linear algebra in data science.
The same matrix from Panel 1 is applied to the data cloud.
5. Transform a simple picture
A picture can be represented by points and line segments. Matrix transformations are the language behind many operations in computer graphics.
The same matrix from Panel 1 transforms this small house drawing.
Question: which transformations preserve the house's shape? Which ones distort it?
Reflection prompts
- Why do the columns of a matrix determine the whole transformation?
- What geometric information does the determinant give?
- How can a matrix preserve area but still distort angles?
- Why is matrix multiplication the correct operation for doing transformations in sequence?