1. Home
  2. Explore
  3. Mathematics
  4. Linear Transformations Visualized

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

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)(x, y)(x,y) can be expressed as a linear combination of the basis vectors: x⋅i^+y⋅j^x \cdot \hat{i} + y \cdot \hat{j}x⋅i^+y⋅j^​. After a linear transformation, this property holds true: the transformed vector will be xxx times the transformed i^\hat{i}i^ plus yyy times the transformed j^\hat{j}j^​.

📝 Representing Transformations with Matrices

  • To record a transformation, we note the coordinates where i^\hat{i}i^ lands and where j^\hat{j}j^​ lands.

  • The coordinates of the transformed i^\hat{i}i^ form the first column of the matrix.

  • The coordinates of the transformed j^\hat{j}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)(x, y)(x,y) is multiplied by a transformation matrix, the result is computed as:

(abcd)(xy)=x(ac)+y(bd)=(ax+bycx+dy)\begin{pmatrix} a & b \\ c & d \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix} = x \begin{pmatrix} a \\ c \end{pmatrix} + y \begin{pmatrix} b \\ d \end{pmatrix} = \begin{pmatrix} ax + by \\ cx + dy \end{pmatrix}(ac​bd​)(xy​)=x(ac​)+y(bd​)=(ax+bycx+dy​)

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^\hat{i}i^ and j^\hat{j}j^​ ultimately land after both transformations.

💡 Example: Rotation followed by Shear

Consider a 90-degree counterclockwise rotation followed by a shear.

  1. Track i-hat: After both transformations, i^\hat{i}i^ might land at (1,1)(1,1)(1,1). This forms the first column of the composition matrix.

  2. Track j-hat: After both transformations, j^\hat{j}j^​ might land at (−1,0)(-1,0)(−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:

  1. First, multiply the vector by the rotation matrix (on the left).

  2. 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 M2M1M_2 M_1M2​M1​, you first apply the transformation represented by the right matrix (M1M_1M1​), then the transformation represented by the left matrix (M2M_2M2​).

  • This convention stems from function notation, where f(g(x))f(g(x))f(g(x)) means applying ggg first, then fff.

🔢 Computing Matrix Products Numerically

Let's find the matrix for applying transformation M1M_1M1​ then M2M_2M2​ without animation:

Given:

  • M1=(1−210)M_1 = \begin{pmatrix} 1 & -2 \\ 1 & 0 \end{pmatrix}M1​=(11​−20​) (applies first)

  • M2=(0210)M_2 = \begin{pmatrix} 0 & 2 \\ 1 & 0 \end{pmatrix}M2​=(01​20​) (applies second)

To find the composition matrix Mcomp=M2M1M_{comp} = M_2 M_1Mcomp​=M2​M1​:

  1. Find where i-hat lands after M1 then M2:

    • i^\hat{i}i^ lands on the first column of M1M_1M1​ after M1M_1M1​: (11)\begin{pmatrix} 1 \\ 1 \end{pmatrix}(11​).

      • Apply M2M_2M2​ to this result: M2(11)=(0210)(11)=1(01)+1(20)=(0+21+0)=(21)M_2 \begin{pmatrix} 1 \\ 1 \end{pmatrix} = \begin{pmatrix} 0 & 2 \\ 1 & 0 \end{pmatrix} \begin{pmatrix} 1 \\ 1 \end{pmatrix} = 1 \begin{pmatrix} 0 \\ 1 \end{pmatrix} + 1 \begin{pmatrix} 2 \\ 0 \end{pmatrix} = \begin{pmatrix} 0+2 \\ 1+0 \end{pmatrix} = \begin{pmatrix} 2 \\ 1 \end{pmatrix}M2​(11​)=(01​20​)(11​)=1(01​)+1(20​)=(0+21+0​)=(21​).

      • This vector (21)\begin{pmatrix} 2 \\ 1 \end{pmatrix}(21​) becomes the first column of McompM_{comp}Mcomp​.

  2. Find where j-hat lands after M1 then M2:

    • j^\hat{j}j^​ lands on the second column of M1M_1M1​ after M1M_1M1​: (−20)\begin{pmatrix} -2 \\ 0 \end{pmatrix}(−20​).

      • Apply M2M_2M2​ to this result: M2(−20)=(0210)(−20)=−2(01)+0(20)=(0+0−2+0)=(0−2)M_2 \begin{pmatrix} -2 \\ 0 \end{pmatrix} = \begin{pmatrix} 0 & 2 \\ 1 & 0 \end{pmatrix} \begin{pmatrix} -2 \\ 0 \end{pmatrix} = -2 \begin{pmatrix} 0 \\ 1 \end{pmatrix} + 0 \begin{pmatrix} 2 \\ 0 \end{pmatrix} = \begin{pmatrix} 0+0 \\ -2+0 \end{pmatrix} = \begin{pmatrix} 0 \\ -2 \end{pmatrix}M2​(−20​)=(01​20​)(−20​)=−2(01​)+0(20​)=(0+0−2+0​)=(0−2​).

      • This vector (0−2)\begin{pmatrix} 0 \\ -2 \end{pmatrix}(0−2​) becomes the second column of McompM_{comp}Mcomp​.

Therefore, the composition matrix M2M1=(201−2)M_2 M_1 = \begin{pmatrix} 2 & 0 \\ 1 & -2 \end{pmatrix}M2​M1​=(21​0−2​).

📝 General Formula for Matrix Multiplication

Let M1=(abcd)M_1 = \begin{pmatrix} a & b \\ c & d \end{pmatrix}M1​=(ac​bd​) and M2=(efgh)M_2 = \begin{pmatrix} e & f \\ g & h \end{pmatrix}M2​=(eg​fh​). The product M2M1M_2 M_1M2​M1​ is found by applying M2M_2M2​ to each column of M1M_1M1​:

  • First column of M2M1M_2 M_1M2​M1​: M2⋅(ac)=(efgh)(ac)=(ea+fcga+hc)M_2 \cdot \begin{pmatrix} a \\ c \end{pmatrix} = \begin{pmatrix} e & f \\ g & h \end{pmatrix} \begin{pmatrix} a \\ c \end{pmatrix} = \begin{pmatrix} ea + fc \\ ga + hc \end{pmatrix}M2​⋅(ac​)=(eg​fh​)(ac​)=(ea+fcga+hc​)

  • Second column of M2M1M_2 M_1M2​M1​: M2⋅(bd)=(efgh)(bd)=(eb+fdgb+hd)M_2 \cdot \begin{pmatrix} b \\ d \end{pmatrix} = \begin{pmatrix} e & f \\ g & h \end{pmatrix} \begin{pmatrix} b \\ d \end{pmatrix} = \begin{pmatrix} eb + fd \\ gb + hd \end{pmatrix}M2​⋅(bd​)=(eg​fh​)(bd​)=(eb+fdgb+hd​)

So, M2M1=(ea+fceb+fdga+hcgb+hd)M_2 M_1 = \begin{pmatrix} ea + fc & eb + fd \\ ga + hc & gb + hd \end{pmatrix}M2​M1​=(ea+fcga+hc​eb+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=M2M1M_1 M_2 = M_2 M_1M1​M2​=M2​M1​? 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^\hat{i}i^ and j^\hat{j}j^​ are different in these two scenarios.

  • This demonstrates that matrix multiplication is generally not commutative (AB≠BAAB \neq BAAB=BA).

  • This can often be visualized in your head without numerical computation.

🔗 Associativity: Parentheses Don't Matter

If you have three matrices AAA, BBB, and CCC, does (AB)C=A(BC)(AB)C = A(BC)(AB)C=A(BC)? This property is called associativity.

  • Numerically, proving this is complex and tedious.

  • Geometrically, this property becomes trivial:

    • (AB)C(AB)C(AB)C means apply CCC, then BBB, then AAA.

    • A(BC)A(BC)A(BC) means apply CCC, then BBB, then AAA.

  • Both expressions represent the exact same sequence of transformations: first CCC, then BBB, then AAA.

  • Therefore, (AB)C=A(BC)(AB)C = A(BC)(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.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent