Introduction to Linear Transformations

Linear transformations are fundamental mathematical operations that preserve the structure of vector spaces. They are essential tools in linear algebra with applications across mathematics, physics, computer science, and engineering.

Why Linear Transformations Matter:

  • Foundation for understanding systems of linear equations
  • Essential for computer graphics and image processing
  • Used in quantum mechanics and physics
  • Critical for machine learning and data science
  • Applied in engineering for structural analysis
  • Used in economics for input-output models

In this comprehensive guide, we'll explore linear transformations from basic definitions to advanced applications, with clear explanations, visual examples, and interactive practice problems to help you master these essential mathematical tools.

What are Linear Transformations?

A linear transformation is a function between vector spaces that preserves the operations of vector addition and scalar multiplication.

Formal Definition

A function T: V → W between vector spaces V and W is a linear transformation if for all vectors u, v in V and all scalars c:

T(u + v) = T(u) + T(v) (Additivity)
T(cu) = cT(u) (Homogeneity)

Key Terminology:

  • Domain: The vector space V where the transformation starts
  • Codomain: The vector space W where the transformation ends
  • Range/Image: The set of all outputs T(v) for v in V
  • Kernel/Null Space: The set of all vectors v in V such that T(v) = 0

Examples:

Rotation: T(x,y) = (x cos θ - y sin θ, x sin θ + y cos θ)

Scaling: T(x,y) = (2x, 3y) scales vectors by factors of 2 and 3

Projection: T(x,y,z) = (x,y,0) projects 3D vectors onto the xy-plane

Verifying Linearity

Step 1: Check additivity: T(u + v) = T(u) + T(v)

Step 2: Check homogeneity: T(cu) = cT(u)

Step 3: If both properties hold, the transformation is linear

Example: Verify if T(x,y) = (2x + y, x - 3y) is linear

Additivity: T((x₁,y₁)+(x₂,y₂)) = T(x₁+x₂, y₁+y₂) = (2(x₁+x₂)+(y₁+y₂), (x₁+x₂)-3(y₁+y₂)) = (2x₁+y₁+2x₂+y₂, x₁-3y₁+x₂-3y₂) = T(x₁,y₁) + T(x₂,y₂) ✓

Homogeneity: T(c(x,y)) = T(cx,cy) = (2cx+cy, cx-3cy) = c(2x+y, x-3y) = cT(x,y) ✓

Conclusion: T is linear

Linearity Checker

Enter a transformation to check if it's linear

Matrix Representation of Linear Transformations

Every linear transformation between finite-dimensional vector spaces can be represented by a matrix. This powerful connection allows us to use matrix algebra to study linear transformations.

Matrix Representation Theorem

If T: ℝⁿ → ℝᵐ is a linear transformation, then there exists an m×n matrix A such that T(v) = Av for all v in ℝⁿ.

The columns of A are the images of the standard basis vectors: A = [T(e₁) T(e₂) ... T(eₙ)]

Examples:

Rotation by 90°: T(x,y) = (-y,x) has matrix [0-110]

Scaling: T(x,y) = (2x,3y) has matrix [2003]

Shear: T(x,y) = (x+y,y) has matrix [1101]

Finding the Matrix of a Linear Transformation

Step 1: Apply T to each standard basis vector e₁, e₂, ..., eₙ

Step 2: Write the results as column vectors

Step 3: Form the matrix with these column vectors

Example: Find the matrix for T(x,y,z) = (2x, x+y, 3z)

Step 1: T(1,0,0) = (2,1,0), T(0,1,0) = (0,1,0), T(0,0,1) = (0,0,3)

Step 2: Column vectors: [2,1,0]ᵀ, [0,1,0]ᵀ, [0,0,3]ᵀ

Step 3: Matrix A = [200110003]

Matrix Finder

Enter transformation details to find its matrix representation

Geometric Interpretations of Linear Transformations

Linear transformations have intuitive geometric interpretations in 2D and 3D space. Understanding these visual representations helps build intuition for more abstract concepts.

Common Geometric Transformations

Rotation: Rotates vectors around the origin by a fixed angle

Scaling: Stretches or compresses vectors along coordinate axes

Reflection: Mirrors vectors across a line or plane

Shear: Slants the shape of objects while preserving area

Projection: Projects vectors onto a subspace

Examples with Matrices:

Rotation by θ: [cosθ-sinθsinθcosθ]

Reflection across x-axis: [100-1]

Horizontal shear: [1k01]

Transformation Visualizer

45°
Select a transformation type to see its effect

Eigenvalues and Eigenvectors

Eigenvalues and eigenvectors reveal fundamental properties of linear transformations. They describe directions that remain unchanged (except for scaling) under the transformation.

Eigenvalue Equation
Av = λv

Where A is a square matrix, v is an eigenvector, and λ is the corresponding eigenvalue.

Eigenvectors are vectors that only get scaled by the transformation, not rotated.

Examples:

For A = [2112], eigenvalues are λ=3 and λ=1

Eigenvector for λ=3: v = [1,1]ᵀ (since A[1,1]ᵀ = [3,3]ᵀ = 3[1,1]ᵀ)

Eigenvector for λ=1: v = [1,-1]ᵀ (since A[1,-1]ᵀ = [1,-1]ᵀ = 1[1,-1]ᵀ)

Finding Eigenvalues and Eigenvectors

Step 1: Solve the characteristic equation: det(A - λI) = 0

Step 2: For each eigenvalue λ, solve (A - λI)v = 0 to find eigenvectors

Step 3: The solution space gives the eigenvectors for that eigenvalue

Example: Find eigenvalues and eigenvectors of A = [4123]

Step 1: det(A - λI) = det([4-λ123-λ]) = (4-λ)(3-λ) - 2 = λ² - 7λ + 10 = 0

Eigenvalues: λ=2, λ=5

Step 2: For λ=2: (A-2I)v=0 → [2121]v=0 → v = t[1,-2]ᵀ

Step 3: Eigenvector for λ=2: [1,-2]ᵀ (and all scalar multiples)

Eigenvalue Calculator

Enter a square matrix to find its eigenvalues and eigenvectors

Composition and Inverse of Linear Transformations

Linear transformations can be combined through composition, and many have inverses that undo their effects. These operations correspond to matrix multiplication and inversion.

Composition of Transformations

If T: U → V and S: V → W are linear transformations, then their composition S∘T: U → W is also linear.

If A is the matrix for T and B is the matrix for S, then BA is the matrix for S∘T.

Examples:

Rotation by 30° followed by scaling by 2:

T(x) = rotation, S(x) = scaling, S∘T(x) = scaling(rotation(x))

Matrix: [2002] × [cos30-sin30sin30cos30]

Inverse Transformations

A linear transformation T: V → W is invertible if there exists T⁻¹: W → V such that T⁻¹(T(v)) = v for all v in V.

T is invertible if and only if its matrix representation is invertible (nonzero determinant).

Finding the Inverse of a Transformation

Step 1: Find the matrix A representing T

Step 2: Calculate the inverse matrix A⁻¹

Step 3: The transformation with matrix A⁻¹ is T⁻¹

Example: Find the inverse of T(x,y) = (2x+y, x+3y)

Step 1: Matrix A = [2113]

Step 2: det(A) = 2×3 - 1×1 = 5, A⁻¹ = (1/5)[3-1-12]

Step 3: T⁻¹(x,y) = ((3x-y)/5, (-x+2y)/5)

Transformation Composer

Enter two transformation matrices to find their composition

Real-World Applications of Linear Transformations

Linear transformations are used in countless real-world applications across various fields. Here are some prominent examples:

💻

Computer Graphics

Linear transformations are fundamental to computer graphics for rendering 2D and 3D scenes.

Applications: Rotation, scaling, and translation of objects; perspective projections; image processing filters.

Example: A 3D model is transformed using matrices to position it correctly in a scene before rendering.

📈

Data Science & Machine Learning

Linear transformations are used in dimensionality reduction and feature extraction.

Applications: Principal Component Analysis (PCA); linear regression; neural networks.

Example: PCA finds the eigenvectors of the covariance matrix to identify the most important directions in high-dimensional data.

⚛️

Quantum Mechanics

Linear transformations describe how quantum states evolve over time.

Applications: Time evolution operators; quantum gates in quantum computing; symmetry operations.

Example: The Schrödinger equation describes how quantum states transform unitarily over time.

🏗️

Engineering & Physics

Linear transformations model physical systems and structural changes.

Applications: Stress-strain relationships in materials; electrical circuit analysis; control systems.

Example: The deformation of a material under stress can be modeled as a linear transformation of its original shape.

Real-World Problem: Image Compression

Problem: How can we compress an image while preserving its most important features?

Step 1: Represent the image as a matrix of pixel values

Step 2: Apply a linear transformation (like Discrete Cosine Transform) to convert to frequency domain

Step 3: Keep only the most significant coefficients (eigenvalues)

Step 4: Apply the inverse transformation to reconstruct the compressed image

Result: JPEG compression uses this principle to reduce file size while maintaining image quality.

Interactive Practice

Linear Transformations Practice Tool

Practice all linear transformation concepts with randomly generated problems or create your own.

Select a topic and click "Generate Problem"

Challenge: Find the matrix representation of the linear transformation T: ℝ² → ℝ² that rotates vectors by 45° counterclockwise.

Solution:

The rotation matrix for angle θ is: [cosθ-sinθsinθcosθ]

For θ = 45°: cos45° = sin45° = √2/2 ≈ 0.7071

Matrix = [0.7071-0.70710.70710.7071]

Challenge: Find the eigenvalues and eigenvectors of the matrix A = [3113]

Solution:

Characteristic equation: det(A - λI) = (3-λ)² - 1 = λ² - 6λ + 8 = 0

Eigenvalues: λ = 2, λ = 4

For λ=2: (A-2I)v=0 → [1111]v=0 → v = t[1,-1]ᵀ

For λ=4: (A-4I)v=0 → [-111-1]v=0 → v = t[1,1]ᵀ

Eigenvectors: [1,-1]ᵀ for λ=2, [1,1]ᵀ for λ=4

Linear Transformations Summary & Cheat Sheet

Concept Definition Formula/Example Key Points
Linear Transformation Function preserving vector addition and scalar multiplication T(u+v)=T(u)+T(v), T(cu)=cT(u) Preserves linear structure
Matrix Representation Every linear transformation has a matrix representation A = [T(e₁) T(e₂) ... T(eₙ)] Columns are images of basis vectors
Eigenvalues & Eigenvectors Vectors that only get scaled by the transformation Av = λv Reveal fundamental transformation properties
Composition Applying one transformation after another (S∘T)(v) = S(T(v)) Corresponds to matrix multiplication
Inverse Transformation Transformation that reverses the effect of T T⁻¹(T(v)) = v Exists if matrix is invertible (det≠0)
Kernel & Range Subspaces associated with a transformation Ker(T) = {v: T(v)=0}, Range(T) = {T(v)} Reveal transformation structure
Common Geometric Transformations (2D)

Rotation by θ:

[cosθ-sinθsinθcosθ]

Preserves lengths and angles

Scaling by a,b:

[a00b]

Stretches/compresses along axes

Reflection across x-axis:

[100-1]

Mirrors across a line

Shear:

[1k01]

Slants while preserving area

Pro Tips for Success
  • Understand the geometry: Visualize what the transformation does to vectors
  • Master matrix operations: Matrix multiplication and inversion are essential
  • Practice with examples: Work through specific transformations to build intuition
  • Connect concepts: See how eigenvalues, determinants, and inverses relate
  • Apply to real problems: Understand how linear transformations model real-world phenomena