1. Home
  2. Explore
  3. Mathematics
  4. Linear Transformations and Matrices

Study methods

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

Linear Transformations and Matrices

🌌 Linear Transformations and Matrices

A linear transformation is a fundamental concept in linear algebra that provides an intuitive way to understand how matrices operate on vectors. It's often the key to making other linear algebra topics "click" for students. This concept is particularly visual and can be understood by imagining the transformation of space.

πŸ’‘ Understanding Transformations

The term transformation is essentially a sophisticated synonym for a function. In the context of linear algebra, it refers to a function that takes an input vector and produces an output vector.

  • Visualization through Movement: Instead of thinking of transformations as abstract functions, it's helpful to visualize them as movement. An input vector "moves" to become an output vector.

  • Transforming Space: To understand a transformation holistically, imagine every possible input vector moving to its corresponding output vector.

  • Points, Not Arrows: To avoid visual clutter, it's effective to conceptualize each vector not as an arrow, but as a single pointβ€”the tip of the vector. This allows us to visualize a transformation as every point in space moving to a new location.

  • Grid Visualization: For 2D transformations, visualizing an infinite grid of points moving helps to understand the "shape" of the transformation. Keeping a copy of the original grid in the background helps track relative movements.

  • Squishing and Morphing: Linear transformations give the impression of squishing and morphing space itself, offering a powerful visual intuition.

πŸ“ Properties of Linear Transformations

While arbitrary transformations can be complex, linear transformations are a special, more manageable type. Visually, a transformation is linear if it adheres to two critical properties:

  1. Lines Remain Lines: All lines in space must remain straight lines; they cannot become curved.

  2. Origin Remains Fixed: The origin (the point (0,0) in 2D) must not move from its initial position.

❌ Non-Linear Examples

  • Curved Lines: A transformation that causes grid lines to curve is not linear.

  • Moved Origin: A transformation that keeps lines straight but shifts the origin is not linear.

  • Hidden Curvature: Even if horizontal and vertical lines appear straight, a transformation is not linear if it curves diagonal lines.

βœ… Key Visual Characteristic

Linear transformations are best thought of as transformations that keep grid lines parallel and evenly spaced. This property is crucial for understanding how they operate.

πŸ“ Describing Linear Transformations Numerically

How can we describe these transformations mathematically? The remarkable insight is that to describe any 2D linear transformation, you only need to know where the two basis vectors, i^\mathbf{\hat{i}}i^ and j^\mathbf{\hat{j}}j^​, land.

  • Basis Vectors: In 2D, the standard basis vectors are i^=(10)\mathbf{\hat{i}} = \begin{pmatrix} 1 \\ 0 \end{pmatrix}i^=(10​) (pointing along the x-axis) and j^=(01)\mathbf{\hat{j}} = \begin{pmatrix} 0 \\ 1 \end{pmatrix}j^​=(01​) (pointing along the y-axis).

  • Linear Combination Property: Any vector v=(xy)\mathbf{v} = \begin{pmatrix} x \\ y \end{pmatrix}v=(xy​) can be expressed as a linear combination of the basis vectors: v=xβ‹…i^+yβ‹…j^\mathbf{v} = x \cdot \mathbf{\hat{i}} + y \cdot \mathbf{\hat{j}}v=xβ‹…i^+yβ‹…j^​.

  • Transformation of Linear Combinations: Due to the properties of linear transformations (lines remain lines, origin fixed, grid lines parallel and evenly spaced), if i^\mathbf{\hat{i}}i^ lands on i^β€²\mathbf{\hat{i}'}i^β€² and j^\mathbf{\hat{j}}j^​ lands on j^β€²\mathbf{\hat{j}'}j^​′, then v\mathbf{v}v will land on the same linear combination of the transformed basis vectors: vβ€²=xβ‹…i^β€²+yβ‹…j^β€²\mathbf{v'} = x \cdot \mathbf{\hat{i}'} + y \cdot \mathbf{\hat{j}'}vβ€²=xβ‹…i^β€²+yβ‹…j^​′.

πŸ”’ Example Calculation

Let's say a transformation moves:

  • i^\mathbf{\hat{i}}i^ to (1βˆ’2)\begin{pmatrix} 1 \\ -2 \end{pmatrix}(1βˆ’2​)

  • j^\mathbf{\hat{j}}j^​ to (30)\begin{pmatrix} 3 \\ 0 \end{pmatrix}(30​)

Consider an input vector v=(βˆ’12)\mathbf{v} = \begin{pmatrix} -1 \\ 2 \end{pmatrix}v=(βˆ’12​), which is βˆ’1β‹…i^+2β‹…j^-1 \cdot \mathbf{\hat{i}} + 2 \cdot \mathbf{\hat{j}}βˆ’1β‹…i^+2β‹…j^​. The transformed vector vβ€²\mathbf{v'}vβ€² will be: vβ€²=βˆ’1β‹…(1βˆ’2)+2β‹…(30)\mathbf{v'} = -1 \cdot \begin{pmatrix} 1 \\ -2 \end{pmatrix} + 2 \cdot \begin{pmatrix} 3 \\ 0 \end{pmatrix}vβ€²=βˆ’1β‹…(1βˆ’2​)+2β‹…(30​) vβ€²=(βˆ’12)+(60)\mathbf{v'} = \begin{pmatrix} -1 \\ 2 \end{pmatrix} + \begin{pmatrix} 6 \\ 0 \end{pmatrix}vβ€²=(βˆ’12​)+(60​) vβ€²=(52)\mathbf{v'} = \begin{pmatrix} 5 \\ 2 \end{pmatrix}vβ€²=(52​)

This means the original vector (βˆ’12)\begin{pmatrix} -1 \\ 2 \end{pmatrix}(βˆ’12​) lands on (52)\begin{pmatrix} 5 \\ 2 \end{pmatrix}(52​) after the transformation. This method allows us to deduce where any vector lands, just by knowing where i^\mathbf{\hat{i}}i^ and j^\mathbf{\hat{j}}j^​ land.

For a general vector (xy)\begin{pmatrix} x \\ y \end{pmatrix}(xy​), its transformed coordinates would be: xβ‹…(1βˆ’2)+yβ‹…(30)=(1x+3yβˆ’2x+0y)x \cdot \begin{pmatrix} 1 \\ -2 \end{pmatrix} + y \cdot \begin{pmatrix} 3 \\ 0 \end{pmatrix} = \begin{pmatrix} 1x + 3y \\ -2x + 0y \end{pmatrix}xβ‹…(1βˆ’2​)+yβ‹…(30​)=(1x+3yβˆ’2x+0y​)

πŸ“ Matrices as Transformations

A 2D linear transformation is completely described by four numbers: the two coordinates for where i^\mathbf{\hat{i}}i^ lands and the two coordinates for where j^\mathbf{\hat{j}}j^​ lands.

  • Matrix Representation: These four numbers are conventionally packaged into a 2x2 matrix. The columns of this matrix represent the transformed basis vectors.

    (x-coordΒ ofΒ i^β€²x-coordΒ ofΒ j^β€²y-coordΒ ofΒ i^β€²y-coordΒ ofΒ j^β€²)\begin{pmatrix} \text{x-coord of } \mathbf{\hat{i}'} & \text{x-coord of } \mathbf{\hat{j}'} \\ \text{y-coord of } \mathbf{\hat{i}'} & \text{y-coord of } \mathbf{\hat{j}'} \end{pmatrix}(x-coordΒ ofΒ i^β€²y-coordΒ ofΒ i^′​x-coordΒ ofΒ j^​′y-coordΒ ofΒ j^​′​)
    M=(abcd)\mathbf{M} = \begin{pmatrix} a & b \\ c & d \end{pmatrix}M=(ac​bd​)
    • The first column (ac)\begin{pmatrix} a \\ c \end{pmatrix}(ac​) shows where i^\mathbf{\hat{i}}i^ lands.

    • The second column (bd)\begin{pmatrix} b \\ d \end{pmatrix}(bd​) shows where j^\mathbf{\hat{j}}j^​ lands.

  • Matrix-Vector Multiplication: When you apply this transformation to an input vector (xy)\begin{pmatrix} x \\ y \end{pmatrix}(xy​), the process is called matrix-vector multiplication:

    (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​)

πŸ”„ Examples of Matrices and Transformations

  1. 90-degree Counter-Clockwise Rotation

    • i^\mathbf{\hat{i}}i^ lands on (01)\begin{pmatrix} 0 \\ 1 \end{pmatrix}(01​)

    • j^\mathbf{\hat{j}}j^​ lands on (βˆ’10)\begin{pmatrix} -1 \\ 0 \end{pmatrix}(βˆ’10​)

    • Matrix: (0βˆ’110)\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}(01β€‹βˆ’10​)

    • To rotate any vector (xy)\begin{pmatrix} x \\ y \end{pmatrix}(xy​), multiply by this matrix: (0βˆ’110)(xy)=(βˆ’yx)\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} -y \\ x \end{pmatrix}(01β€‹βˆ’10​)(xy​)=(βˆ’yx​)

  2. Shear Transformation

    • i^\mathbf{\hat{i}}i^ remains fixed, lands on (10)\begin{pmatrix} 1 \\ 0 \end{pmatrix}(10​)

    • j^\mathbf{\hat{j}}j^​ moves to (11)\begin{pmatrix} 1 \\ 1 \end{pmatrix}(11​)

    • Matrix: (1101)\begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}(10​11​)

    • To shear any vector (xy)\begin{pmatrix} x \\ y \end{pmatrix}(xy​), multiply by this matrix: (1101)(xy)=(x+yy)\begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} x+y \\ y \end{pmatrix}(10​11​)(xy​)=(x+yy​)

βͺ Deducing Transformation from Matrix

Given a matrix, you can visualize its transformation:

  • Consider the matrix (1321)\begin{pmatrix} 1 & 3 \\ 2 & 1 \end{pmatrix}(12​31​).

  • This means i^\mathbf{\hat{i}}i^ lands on (12)\begin{pmatrix} 1 \\ 2 \end{pmatrix}(12​) and j^\mathbf{\hat{j}}j^​ lands on (31)\begin{pmatrix} 3 \\ 1 \end{pmatrix}(31​).

  • Imagine moving i^\mathbf{\hat{i}}i^ to (1,2)(1,2)(1,2) and j^\mathbf{\hat{j}}j^​ to (3,1)(3,1)(3,1), while keeping grid lines parallel and evenly spaced.

πŸ“‰ Linearly Dependent Basis Vectors

If the vectors that i^\mathbf{\hat{i}}i^ and j^\mathbf{\hat{j}}j^​ land on are linearly dependent (meaning one is a scaled version of the other), the transformation will squish all of 2D space onto a single line. This line is the one-dimensional span of those two linearly dependent vectors.

✨ Conclusion

  • Linear transformations are movements of space where grid lines stay parallel and evenly spaced, and the origin remains fixed.

  • These transformations are entirely defined by where the basis vectors (i^\mathbf{\hat{i}}i^ and j^\mathbf{\hat{j}}j^​) land.

  • Matrices provide a powerful language to describe these transformations, with their columns representing the transformed basis vectors.

  • Matrix-vector multiplication is the computation that tells you where a given vector lands after the transformation.

The crucial takeaway is to always interpret a matrix as a transformation of space. This perspective is fundamental for understanding advanced topics in linear algebra, such as matrix multiplication, determinants, change of basis, and eigenvalues.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent