Linear Transformations Visualized
📐 Linear Transformations & Matrix Multiplication
This section revisits the fundamental concepts of linear transformations and their matrix representation, then delves into the powerful idea of composing transformations through matrix multiplication. Understanding the geometric intuition behind these operations is crucial for grasping their properties.
🔄 Recap: Linear Transformations and Matrices
Linear transformations are functions that take vectors as inputs and produce vectors as outputs. Visually, they can be understood as operations that "smoosh" or manipulate space in specific ways:
Grid lines remain parallel and evenly spaced: This means that the transformation preserves the structure of the grid.
The origin remains fixed: The point (0,0) does not move.
The key takeaway is that a linear transformation is entirely defined by where it maps the basis vectors of the space. In two dimensions, these are the i-hat and j-hat vectors (unit vectors along the x and y axes, respectively).
Any other vector (x,y) can be expressed as a linear combination of the basis vectors: x⋅i^+y⋅j^. After a linear transformation, this property holds true: the transformed vector will be x times the transformed i^ plus y times the transformed j^.
📝 Representing Transformations with Matrices
To record a transformation, we note the coordinates where i^ lands and where j^ lands.
The coordinates of the transformed i^ form the first column of the matrix.
The coordinates of the transformed j^ form the second column of the matrix.
Matrix-vector multiplication is defined as the sum of the scaled versions of these columns. If a vector (x,y) is multiplied by a transformation matrix, the result is computed as:
This means that a matrix represents a specific linear transformation, and multiplying a matrix by a vector is the computational way to apply that transformation to the vector.
✨ Composing Transformations: Matrix Multiplication
Often, we want to describe the effect of applying multiple transformations sequentially. For instance, first rotating a plane 90 degrees counterclockwise, then applying a shear.
The overall effect of applying one transformation then another is also a linear transformation.
This new, combined transformation is called the composition of the individual transformations.
Like any linear transformation, a composition can be represented by its own matrix. To find this matrix, we track where i^ and j^ ultimately land after both transformations.
💡 Example: Rotation followed by Shear
Consider a 90-degree counterclockwise rotation followed by a shear.
Track i-hat: After both transformations, i^ might land at (1,1). This forms the first column of the composition matrix.
Track j-hat: After both transformations, j^ might land at (−1,0). This forms the second column of the composition matrix.
The resulting matrix captures the single overall effect of the combined transformations.
🧮 Matrix Product: Applying Transformations Computationally
If you have a vector and want to apply a rotation, then a shear:
First, multiply the vector by the rotation matrix (on the left).
Then, take the resulting vector and multiply it by the shear matrix (on the left).
This sequence of multiplications should yield the same result as multiplying the original vector by the new composition matrix. Therefore, the composition matrix is considered the product of the original two matrices.
Geometric Meaning: Multiplying two matrices means applying one transformation, then another.
⚠️ Order Matters: Right-to-Left Application
A crucial aspect of matrix multiplication is the order of operations:
When multiplying matrices like M2M1, you first apply the transformation represented by the right matrix (M1), then the transformation represented by the left matrix (M2).
This convention stems from function notation, where f(g(x)) means applying g first, then f.
🔢 Computing Matrix Products Numerically
Let's find the matrix for applying transformation M1 then M2 without animation:
Given:
M1=(11−20) (applies first)
M2=(0120) (applies second)
To find the composition matrix Mcomp=M2M1:
Find where i-hat lands after M1 then M2:
i^ lands on the first column of M1 after M1: (11).
Apply M2 to this result: M2(11)=(0120)(11)=1(01)+1(20)=(0+21+0)=(21).
This vector (21) becomes the first column of Mcomp.
Find where j-hat lands after M1 then M2:
j^ lands on the second column of M1 after M1: (−20).
Apply M2 to this result: M2(−20)=(0120)(−20)=−2(01)+0(20)=(0+0−2+0)=(0−2).
This vector (0−2) becomes the second column of Mcomp.
Therefore, the composition matrix M2M1=(210−2).
📝 General Formula for Matrix Multiplication
Let M1=(acbd) and M2=(egfh). The product M2M1 is found by applying M2 to each column of M1:
First column of M2M1: M2⋅(ac)=(egfh)(ac)=(ea+fcga+hc)
Second column of M2M1: M2⋅(bd)=(egfh)(bd)=(eb+fdgb+hd)
So, M2M1=(ea+fcga+hceb+fdgb+hd). This formula, while often memorized algorithmically, is derived directly from the geometric interpretation of applying transformations sequentially.
🧐 Properties of Matrix Multiplication
Thinking about matrix multiplication as composed transformations provides deep insight into its properties.
🔀 Non-Commutativity: Order Matters
Does M1M2=M2M1? In terms of transformations, this asks: Does the order in which you apply transformations matter?
Consider a shear followed by a rotation.
Then consider the same rotation followed by the same shear.
Visually, the final positions of i^ and j^ are different in these two scenarios.
This demonstrates that matrix multiplication is generally not commutative (AB=BA).
This can often be visualized in your head without numerical computation.
🔗 Associativity: Parentheses Don't Matter
If you have three matrices A, B, and C, does (AB)C=A(BC)? This property is called associativity.
Numerically, proving this is complex and tedious.
Geometrically, this property becomes trivial:
(AB)C means apply C, then B, then A.
A(BC) means apply C, then B, then A.
Both expressions represent the exact same sequence of transformations: first C, then B, then A.
Therefore, (AB)C=A(BC) is true, and the geometric interpretation provides a straightforward and intuitive proof.
Understanding matrix multiplication through the lens of linear transformations provides a robust conceptual framework that makes these properties much easier to comprehend and even prove.

Ask anything
We've read this whole study set, so questions about it get the best answers.