MGU Mathematics Series — Linear Algebra
Part II: Inverses, Determinants, and Linear Transformations
Functions on Vectors · Matrices as Actions · Geometry of Transformation
Chapter 7 of 14
MGU Mathematics Series  ·  Linear Algebra  ·  Library Textbook Edition

Chapter 7:
Linear
Transformations

Functions from vectors to vectors — scaling, reflection, rotation, shear, projection, composition, and the matrix representation of geometric change

■ Math Level: Linear Algebra ■

■ 14 Sections  •  Part II of 5 ■

Follows Chapter 6: Determinants  ·  Prepares students for Part III: Vector Spaces

Purpose and Overview

This chapter introduces one of the most important ideas in all of mathematics: a linear transformation. You have spent several chapters learning what vectors are, how systems of equations describe linear conditions, how matrices encode data and operations, and how inverses and determinants reveal structural information about matrices. Now it is time to bring those ideas together into a unified concept.

A linear transformation is a function. It takes a vector as input and produces a vector as output. But it is not just any function — it is a function that respects the structure of vectors. It preserves the operations of vector addition and scalar multiplication. This preservation is what makes linear transformations so powerful, so analyzable, and so widely useful across mathematics, science, engineering, computing, and data science.

This chapter is also one of the most visual chapters in this book. Almost every linear transformation has a geometric meaning: it stretches, shrinks, rotates, reflects, shears, or projects space. Learning to see transformations geometrically will help you understand not just the algebra, but the shape and behavior of mathematical change.

Opening Question

Suppose you are working with a computer graphics program. You have a triangle defined by three corner points in the coordinate plane. You want to rotate the entire triangle by 45° around the origin, then reflect it across the x-axis, then scale it to be twice as large. Each operation is described by a matrix. How can three separate operations collapse into one single matrix multiplication? And what happens when you try to reverse all three operations at once? Chapter 7 answers these questions.

14Sections
10Objectives
20+Key Terms
12+Worked Examples

Why This Chapter Matters

In Algebra II and Precalculus, you worked with functions from real numbers to real numbers: f(x) = 2x + 3, g(x) = x². These functions accept a single number and return a single number. Linear transformations are functions from vectors to vectors — they accept an input vector describing a point or direction and return an output vector describing where that point or direction moves. This generalization is fundamental to multivariable mathematics.

When you reach Calculus, the Jacobian matrix — central to multivariable calculus — is essentially a linear transformation describing how a function behaves near a point. Beyond calculus, linear transformations appear in computer graphics (rotation, scaling, projection), robotics (joint kinematics), physics (coordinate frame changes), data science (dimensionality reduction, PCA), signal processing, and economics.

Learning Objectives

  1. 1Define a linear transformation and state the two defining properties.
  2. 2Verify whether a function from ℝⁿ to ℝᵐ is a linear transformation.
  3. 3Represent a linear transformation as a matrix transformation T(x) = Ax.
  4. 4Find the standard matrix of a linear transformation given its action on basis vectors.
  5. 5Describe and compute scaling, reflection, rotation, shear, and projection transformations in ℝ².
  6. 6Describe the geometric effect of a linear transformation on a set of points or a shape.
  7. 7Compose two or more linear transformations using matrix multiplication.
  8. 8Find the inverse of an invertible linear transformation and interpret it geometrically.
  9. 9Connect linear transformations to applications in graphics, geometry, physics, and robotics.
  10. 10Identify and avoid common mistakes in working with linear transformations.

Sections at a Glance

Sections 7.1 – 7.5
Defining Linear Transformations and Their Matrices
Definition · Functions on Vectors · Verification · Matrix Form · Standard Matrices

What a Linear Transformation Is

A linear transformation is a function that takes vectors as inputs and produces vectors as outputs, while preserving the two most fundamental operations of vector algebra: addition and scalar multiplication.

Before the formal definition, consider the function T(x, y) = (2x, 2y), which doubles every vector. If you add two vectors and then double, you get the same answer as doubling each vector first and then adding. If you scale a vector by 5 and then double, you get the same as doubling first and then scaling. These two observations are not accidents — they are the defining properties of a linear transformation.

Definition
Linear Transformation

Let T : ℝⁿ → ℝᵐ be a function from ℝⁿ to ℝᵐ. We say T is a linear transformation if it satisfies both of the following properties for all vectors u, v ∈ ℝⁿ and all scalars c ∈ ℝ:

Property 1 — Additivity:   T(u + v) = T(u) + T(v)

Property 2 — Homogeneity:   T(cu) = c T(u)

Together, these may be written: T(cu + dv) = c T(u) + d T(v) for all vectors u, v and all scalars c, d.

Geometric Meaning

Linearity means the transformation respects vector structure. Geometrically, a linear transformation must map the zero vector to the zero vector (it cannot shift the origin), must map lines through the origin to lines through the origin, must map equally spaced points on a line to equally spaced points on the image line, and must preserve parallel structure. This last point is key to why linear transformations are so useful in graphics: they move shapes in structured ways that maintain relationships between points.

What Linear Transformations Cannot Do

A function that shifts the origin — like T(x, y) = (x + 3, y − 1) — is not a linear transformation, because T(0) = (3, −1) ≠ 0. A function with a nonlinear rule — like T(x, y) = (x², y) — is not linear either. These are useful functions, but they are not linear transformations in the strict sense.

MGU Library Connection
  • For a review of function notation and domain-codomain from Precalculus, see the Trigonometry and Precalculus chapter on functions.
  • For linear transformations in abstract vector spaces, see Chapter 8 of this textbook.

Functions from Vectors to Vectors

To understand linear transformations clearly, it helps to be explicit about what kind of function they are. The domain of T is ℝⁿ: all input vectors. The codomain of T is ℝᵐ: all possible output vectors. The domain and codomain do not need to have the same dimension. A linear transformation can take a 3-dimensional vector and return a 2-dimensional vector, or vice versa. The notation T : ℝⁿ → ℝᵐ is read as "T is a function from ℝⁿ to ℝᵐ."

NotationDomainCodomainExample Rule
T : ℝ² → ℝ²ℝ²ℝ²T(x, y) = (3x − y, 2x + 4y)
T : ℝ³ → ℝ²ℝ³ℝ²T(x, y, z) = (x + 2y, 3z − y)
T : ℝ² → ℝ³ℝ²ℝ³T(x, y) = (x, y, x + y)
Notation Reminder

We write T(x) for the output of T applied to input vector x. Some textbooks write Tx without parentheses when the context is clear. Both are standard.

Preserving Addition and Scalar Multiplication

To verify that a transformation is linear, you must check both properties for arbitrary vectors and scalars — not just for specific numerical examples. A single numerical check can show that a property holds for that case, but cannot prove it holds in general. A single counterexample, however, is sufficient to prove that a function is not linear.

Example 7.3.1
Verifying That a Transformation Is Linear
  • ProblemLet T : ℝ² → ℝ² be defined by T(x, y) = (3x − y, 2x + 4y). Verify that T is a linear transformation.
  • ThinkLet u = (u₁, u₂) and v = (v₁, v₂) be arbitrary vectors; let c be any scalar. Check both properties symbolically.
  • Additivity T(u + v) = T(u₁+v₁, u₂+v₂) = (3(u₁+v₁)−(u₂+v₂), 2(u₁+v₁)+4(u₂+v₂)) = (3u₁−u₂+3v₁−v₂, 2u₁+4u₂+2v₁+4v₂) T(u) + T(v) = (3u₁−u₂, 2u₁+4u₂) + (3v₁−v₂, 2v₁+4v₂) = (3u₁−u₂+3v₁−v₂, 2u₁+4u₂+2v₁+4v₂) ✓
  • Homogeneity T(cu) = T(cu₁, cu₂) = (3cu₁−cu₂, 2cu₁+4cu₂) = c(3u₁−u₂, 2u₁+4u₂) = c T(u) ✓
  • InterpretBoth properties hold. T is a linear transformation. Note that linearity followed directly from the fact that the formula involves only linear combinations of the input components — no squaring, no absolute values, no constants added to the output.
T is a linear transformation. Both additivity and homogeneity are satisfied.
Example 7.3.2
Showing That a Transformation Is NOT Linear
  • ProblemShow that T(x, y) = (x + 1, y) is not a linear transformation.
  • ThinkCheck the zero-vector test: any linear transformation must send 0 to 0. (Set c = 0 in homogeneity: T(0) = T(0·v) = 0·T(v) = 0.)
  • CalculateT(0, 0) = (0+1, 0) = (1, 0) ≠ (0, 0)
  • InterpretThe zero vector does not map to the zero vector. Therefore T is not a linear transformation. This kind of shift (translation) moves the origin, violating linearity.
T is NOT linear. T(0) ≠ 0 because T(0,0) = (1,0).
The Zero Vector Test (Necessary but Not Sufficient)

Every linear transformation satisfies T(0) = 0. If T(0) ≠ 0, the function is immediately not linear — no further checking is needed. If T(0) = 0, you must still verify both defining properties fully to confirm linearity.

Matrix Transformations

Every linear transformation from ℝⁿ to ℝᵐ can be represented as multiplication by a matrix. This is one of the central theorems of linear algebra: linear transformations and matrices are two descriptions of the same mathematical object.

If T : ℝⁿ → ℝᵐ is a linear transformation, then there exists a unique m × n matrix A such that T(x) = Ax for all x ∈ ℝⁿ. Conversely, for any m × n matrix A, the function T(x) = Ax is a linear transformation from ℝⁿ to ℝᵐ.

Why T(x) = Ax Is Always Linear

For any matrix A and vectors u, v, and scalar c:

A(u + v) = Au + Av   (distributivity of matrix multiplication — Chapter 4)

A(cu) = c(Au)   (scalar multiplication rule — Chapter 4)

Linearity of T(x) = Ax follows directly from properties of matrix multiplication.

Dimension Matching

If A is m × n, then the input x must be in ℝⁿ (n components, matching A's columns) and the output Ax lands in ℝᵐ (m components, matching A's rows). A 2 × 3 matrix transforms ℝ³ into ℝ². A 3 × 2 matrix transforms ℝ² into ℝ³.

Example 7.4.1
Evaluating a Matrix Transformation
  • ProblemLet T(x) = Ax where A = [[2, −1], [0, 3]]. Compute T(4, 1).
  • Calculate T([4, 1]) = [2 −1] [4] = [2(4)+(−1)(1)] = [7] [0 3] [1] [0(4)+ 3(1)] [3]
  • CheckInput was 2-vector, matrix is 2×2, output is 2-vector. Dimensions consistent. ✓
  • InterpretThe transformation T sends the point (4, 1) to the point (7, 3). The matrix A has moved the point in a specific direction determined by the matrix entries. We will study the geometric effects of different matrix types throughout this chapter.
T(4, 1) = (7, 3).

Standard Matrices

Given a linear transformation T described geometrically or verbally, how do we find its matrix? The answer lies in what happens to the standard basis vectors. Because every vector in ℝⁿ is a linear combination of the standard basis vectors, and because T is linear, T is completely determined by where it sends each basis vector.

In ℝ²: e₁ = (1, 0) and e₂ = (0, 1). In ℝ³: e₁ = (1, 0, 0), e₂ = (0, 1, 0), e₃ = (0, 0, 1).

Finding the Standard Matrix

The standard matrix A of T : ℝⁿ → ℝᵐ is the m × n matrix whose columns are the images of the standard basis vectors:

A = [ T(e₁) T(e₂) ··· T(eₙ) ]

The first column of A is T(e₁), the second is T(e₂), and so on. Columns of A tell you where the coordinate directions go under T.

Example 7.5.1
Finding the Standard Matrix from a Geometric Description
  • ProblemA linear transformation T : ℝ² → ℝ² doubles every vector. Find its standard matrix.
  • ThinkT doubles every vector, so T(e₁) = 2(1, 0) = (2, 0) and T(e₂) = 2(0, 1) = (0, 2).
  • CalculateA = [T(e₁) T(e₂)] = [2 0] = 2I [0 2]
  • InterpretThe standard matrix is 2I. Multiplying any vector by 2I doubles it. This confirms our description.
A = 2I = [[2, 0], [0, 2]].
Example 7.5.2
Finding the Standard Matrix from a Formula
  • ProblemLet T : ℝ² → ℝ³ be defined by T(x, y) = (x − y, 2x, 3y). Find the standard matrix of T.
  • Calculate T(e₁) = T(1, 0) = (1−0, 2·1, 3·0) = (1, 2, 0) T(e₂) = T(0, 1) = (0−1, 2·0, 3·1) = (−1, 0, 3) [ 1 −1] A = [ 2 0] [ 0 3]
  • CheckA is 3 × 2, consistent with T : ℝ² → ℝ³. Multiplying any 2-vector by A gives a 3-vector. ✓
  • InterpretThe two columns describe where the two coordinate directions go. The first column describes where the x-direction goes; the second where the y-direction goes. Any other input is a linear combination of these, and the output is the corresponding combination of columns.
A = [[1, −1], [2, 0], [0, 3]] (a 3×2 matrix).
Sections 7.6 – 7.10
The Geometry of Linear Transformations
Scaling · Reflections · Rotations · Shears · Projections

Scaling Transformations

A scaling transformation multiplies every vector by a fixed factor. It stretches or compresses every direction. Uniform scaling by factor k has standard matrix kI. Non-uniform scaling stretches different axes by different factors.

TypeStandard MatrixGeometric Effectdet(A)
Uniform scale by kkI = [[k,0],[0,k]]All distances multiplied by kk²
Scale x by k₁, y by k₂[[k₁,0],[0,k₂]]Different stretches per axisk₁k₂

Diagram description: Imagine the unit square with corners at (0,0), (1,0), (1,1), (0,1). Under non-uniform scaling with k₁ = 3 and k₂ = 2, the corners become (0,0), (3,0), (3,2), (0,2). The shape remains a rectangle but is now 3 units wide and 2 units tall. The area scales by k₁ · k₂ = 6, matching the determinant.

Example 7.6.1
Applying a Non-Uniform Scaling Transformation
  • ProblemLet A = [[3, 0], [0, 1/2]]. Find T(2, 4) and describe the geometric effect.
  • CalculateT([2, 4]) = [3 0 ] [2] = [3·2 + 0·4 ] = [6] [0 1/2] [4] [0·2 + (1/2)·4] [2]
  • InterpretThe x-coordinate tripled (2 → 6); the y-coordinate halved (4 → 2). A tall, narrow figure becomes wide and short. The area scales by det(A) = 3 · (1/2) = 3/2.
T(2, 4) = (6, 2). Area scales by factor 3/2.

Reflections

A reflection flips every vector across a line in ℝ². The line acts like a mirror. Points on the mirror line do not move. Points on either side swap positions.

Reflection AcrossStandard MatrixEffect
x-axis[[1, 0], [0, −1]]Negates y; keeps x
y-axis[[−1, 0], [0, 1]]Negates x; keeps y
Line y = x[[0, 1], [1, 0]]Swaps x and y
Line y = −x[[0, −1], [−1, 0]]Swaps and negates both
Key Properties of Reflections

Every reflection has det(A) = −1. The negative determinant encodes orientation reversal — a right-handed figure becomes left-handed.

Every reflection is its own inverse: A² = I, so A⁻¹ = A. Reflecting twice returns to the original.

Diagram description: The point (2, 3) reflected across the x-axis becomes (2, −3). Reflected across the y-axis it becomes (−2, 3). Reflected across y = x it becomes (3, 2). In each case, the point's distance from the mirror line is preserved; only its position relative to the line changes.

Example 7.7.1
Reflecting a Triangle Across the y-Axis
  • ProblemA triangle has vertices P = (1, 2), Q = (3, 2), R = (2, 5). Reflect across the y-axis.
  • RepresentA = [−1 0] [ 0 1]
  • Calculate T(1,2) = (−1, 2) T(3,2) = (−3, 2) T(2,5) = (−2, 5)
  • InterpretThe reflected triangle has vertices (−1, 2), (−3, 2), (−2, 5). It is a mirror image. All y-coordinates are unchanged — as expected for a reflection across the y-axis.
Reflected vertices: (−1, 2), (−3, 2), (−2, 5).

Rotations

A rotation turns every vector in the plane through a fixed angle θ around the origin. The derivation uses the standard basis vectors: under a counterclockwise rotation by θ, the unit vector e₁ = (1, 0) moves to the point at angle θ from the positive x-axis, which is (cos θ, sin θ). The unit vector e₂ = (0, 1) starts at angle 90° and rotates to angle 90° + θ, giving (cos(90° + θ), sin(90° + θ)) = (−sin θ, cos θ).

Rotation Matrix — Counterclockwise by θ

R_θ = [[cos θ, −sin θ], [sin θ, cos θ]]

The columns are where e₁ and e₂ go under the rotation.

Key properties: det(R_θ) = cos²θ + sin²θ = 1. Rotations preserve area and orientation. R_θ · R_φ = R_{θ+φ}. Rotating by θ then by φ equals rotating by θ + φ. R_θ⁻¹ = R_{−θ} = R_θᵀ. Rotation matrices are orthogonal.

Diagram description: The unit circle gives a visual anchor. A point (1, 0) on the positive x-axis, after a counterclockwise rotation by 45°, lands at (√2/2, √2/2) — exactly halfway between the x-axis and y-axis directions. After 90°, it lands at (0, 1) on the y-axis. After 180°, at (−1, 0). The rotation keeps the point on the unit circle because rotation preserves length.

Example 7.8.1
Rotating a Point by 90°
  • ProblemRotate the point (3, 1) counterclockwise by 90°.
  • Representcos 90° = 0, sin 90° = 1, so R₉₀° = [[0, −1], [1, 0]].
  • CalculateR₉₀° [3] = [0·3 + (−1)·1] = [−1] [1] [1·3 + 0·1] [ 3]
  • CheckOriginal length: √(9+1) = √10. Rotated length: √(1+9) = √10. ✓ Rotation preserves length.
  • InterpretThe point (3, 1) moved from the first quadrant to (−1, 3) in the second quadrant, consistent with a 90° counterclockwise rotation.
Image of (3, 1) under 90° CCW rotation: (−1, 3).
Example 7.8.2
Rotating by 45°
  • ProblemFind the image of v = (2, 0) under a 45° counterclockwise rotation.
  • Representcos 45° = √2/2, sin 45° = √2/2, so R₄₅° = [[√2/2, −√2/2], [√2/2, √2/2]].
  • Calculate R₄₅° [2] = [(√2/2)(2) + (−√2/2)(0)] = [√2] [0] [(√2/2)(2) + (√2/2)(0)] [√2]
  • InterpretThe vector (2, 0), pointing in the positive x-direction with length 2, rotated 45° counterclockwise to (√2, √2), pointing diagonally. Length check: √((√2)² + (√2)²) = √4 = 2. ✓
Image of (2, 0) under 45° CCW rotation: (√2, √2).

Shears

A shear displaces points in one direction proportionally to their coordinate in a perpendicular direction. Points with y = 0 do not move horizontally; points with y = 1 shift by k; points with y = 2 shift by 2k. The transformation slides layers of the plane past each other, like a deck of cards being pushed from the side.

TypeStandard MatrixEffect on Unit Squaredet(A)
Horizontal shear by k[[1, k], [0, 1]]Top edge slides k units right; bottom stays1
Vertical shear by k[[1, 0], [k, 1]]Right edge slides k units up; left stays1

Diagram description: The unit square under a horizontal shear with k = 2. Corners (0,0) and (1,0) stay fixed (y = 0). Corner (0,1) moves to (2,1) and corner (1,1) moves to (3,1). The square becomes a parallelogram leaning to the right. Its area is still 1 square unit, consistent with det = 1.

Example 7.9.1
Applying a Horizontal Shear
  • ProblemApply a horizontal shear with k = 2 to the unit square with vertices (0,0), (1,0), (1,1), (0,1).
  • RepresentA = [[1, 2], [0, 1]].
  • Calculate T(0,0) = (0,0) T(1,0) = (1,0) T(1,1) = (3,1) T(0,1) = (2,1)
  • InterpretThe image is the parallelogram with vertices (0,0), (1,0), (3,1), (2,1). The bottom edge is unchanged (y = 0 points are unaffected). The top edge shifted 2 units right. Area still 1, consistent with det(A) = 1.
Image parallelogram: (0,0), (1,0), (3,1), (2,1). Area = 1.

Projections

A projection maps every vector onto a lower-dimensional subspace — typically a line — by dropping its component perpendicular to that subspace. Every point in the plane is "shadowed" down onto the line, losing any information about how far it was from the line. Projections are used in data analysis, physics, and approximation.

Projection OntoStandard MatrixEffect
x-axis[[1, 0], [0, 0]]Drops y; keeps x
y-axis[[0, 0], [0, 1]]Drops x; keeps y
Line y = x[[1/2, 1/2], [1/2, 1/2]]Projects onto 45° diagonal
Key Properties of Projections

Idempotent: Applying the projection twice gives the same result as applying it once: A² = A. If a point is already on the x-axis, projecting again does not move it.

Not invertible: det(A) = 0. Many different points map to the same projected point (all points on a vertical line have the same shadow on the x-axis). The original cannot be recovered from its shadow alone.

Example 7.10.1
Verifying That Projection Is Idempotent
  • ProblemLet A = [[1,0],[0,0]] be the projection onto the x-axis. Verify A² = A.
  • Calculate A² = [1 0][1 0] = [1·1+0·0 1·0+0·0] = [1 0] = A ✓ [0 0][0 0] [0·1+0·0 0·0+0·0] [0 0]
  • InterpretYes, A² = A. Once a point is projected onto the x-axis, projecting again leaves it there. This is the defining algebraic property of a projection matrix.
A² = A confirmed. The projection is idempotent.
Sections 7.11 – 7.14
Composition, Inversion, Applications, and Common Mistakes
Composing Transformations · Inverse Transformations · Graphics and Robotics · Errors

Composition of Linear Transformations

When two linear transformations are applied one after another, the combined effect is also a linear transformation. This is the composition of the two transformations. If T₁ : ℝⁿ → ℝᵐ and T₂ : ℝᵐ → ℝᵖ, then the composition T₂ ∘ T₁ is defined by (T₂ ∘ T₁)(x) = T₂(T₁(x)): apply T₁ first, then apply T₂.

Composition and Matrix Multiplication

If T₁(x) = A₁x and T₂(x) = A₂x, then:

(T₂ ∘ T₁)(x) = A₂(A₁x) = (A₂A₁)x

The standard matrix of the composition is A₂A₁ — with A₁ on the right (applied first) and A₂ on the left (applied second). This is precisely why matrix multiplication is defined as it is: it encodes composition of linear transformations.

Order Matters

Because matrix multiplication is not commutative in general, the order of composition matters. "Rotate first, then reflect" gives A_reflect · A_rotate. "Reflect first, then rotate" gives A_rotate · A_reflect. These are different matrices that produce different results. Always place the first-applied transformation's matrix on the right.

Example 7.11.1
Composing a Reflection and a Rotation
  • ProblemLet T₁ be reflection across the x-axis (A₁) and T₂ be 90° CCW rotation (A₂). Compute T₂ ∘ T₁ and T₁ ∘ T₂ and compare.
  • Represent A₁ (reflect, x-axis) = [ 1 0] [ 0 −1] A₂ (rotate 90° CCW) = [ 0 −1] [ 1 0]
  • T₂ ∘ T₁ (reflect, then rotate) A₂A₁ = [ 0 −1][ 1 0] = [0·1+(−1)·0 0·0+(−1)·(−1)] = [0 1] [ 1 0][ 0 −1] [1·1+ 0·0 1·0+ 0·(−1)] [1 0]
  • T₁ ∘ T₂ (rotate, then reflect) A₁A₂ = [ 1 0][ 0 −1] = [0 −1] [ 0 −1][ 1 0] [−1 0]
  • InterpretA₂A₁ = [[0,1],[1,0]], which is the reflection across y = x. A₁A₂ = [[0,−1],[−1,0]], which is reflection across y = −x. Same two operations in different orders produce completely different transformations.
Reflect then rotate: reflection across y = x. Rotate then reflect: reflection across y = −x. Not equal — order matters.
Example 7.11.2
Composing Three Transformations for a Graphics Pipeline
  • ProblemA graphics program applies: (1) scale by 2, (2) rotate 90° CCW, (3) reflect across x-axis. Find the single combined matrix and verify on e₁.
  • Represent A₁ (scale 2) = [2 0] [0 2] A₂ (rotate 90°) = [0 −1] [1 0] A₃ (reflect x) = [1 0] [0 −1]
  • CalculateCombined matrix = A₃A₂A₁ (apply A₁ first, A₃ last): A₃A₂ = [1 0][0 −1] = [0 −1] [0 −1][1 0] [−1 0] A₃A₂A₁ = [0 −1][2 0] = [0 −2] [−1 0][0 2] [−2 0]
  • Check with e₁Trace (1,0) manually: scale → (2,0); rotate 90° → (0,2); reflect x-axis → (0,−2). Combined matrix: [[0,−2],[−2,0]] · (1,0) = (0,−2). ✓
  • InterpretThe single matrix [[0,−2],[−2,0]] replaces three separate operations. In a graphics engine, this allows the same combined transformation to be applied to thousands of points with just one matrix multiplication each.
Combined matrix: [[0, −2], [−2, 0]].

Inverse Transformations

If a linear transformation T : ℝⁿ → ℝⁿ is invertible, there exists a linear transformation T⁻¹ : ℝⁿ → ℝⁿ such that T⁻¹(T(x)) = x for all x. The inverse transformation "undoes" what T does. If T(x) = Ax, then T is invertible if and only if A is invertible (det(A) ≠ 0), and T⁻¹(x) = A⁻¹x.

TransformationInverseReason
Rotation by θRotation by −θRotating back undoes the rotation
Reflection across a lineSame reflectionReflecting twice returns to original: A² = I
Scaling by k ≠ 0Scaling by 1/kUndoing the stretch
Horizontal shear by kHorizontal shear by −kShearing back by same amount
ProjectionNo inverse existsdet = 0; information about perpendicular direction is lost
Example 7.12.1
Finding and Verifying an Inverse Transformation
  • ProblemT(x, y) = (2x + y, x + y) with A = [[2,1],[1,1]]. Find T⁻¹ and verify.
  • Calculate det(A) = 2·1 − 1·1 = 1 ≠ 0 A⁻¹ = (1/1)[ 1 −1] = [ 1 −1] [−1 2] [−1 2] So T⁻¹(x, y) = (x − y, −x + 2y)
  • VerifyTest with (3, 1): T(3,1) = (7, 4). Then T⁻¹(7,4) = (7−4, −7+8) = (3, 1). ✓
  • InterpretThe inverse transformation exactly undoes T. If T encodes a change of coordinates, T⁻¹ restores the original configuration.
T⁻¹(x, y) = (x − y, −x + 2y). Verified: T⁻¹(T(3,1)) = (3,1). ✓

Transformations in Graphics, Geometry, Physics Readiness, and Robotics

Linear transformations are not abstract mathematical curiosities — they are the computational machinery behind some of the most important technologies in use today.

Computer Graphics

Every time a 3D scene is rendered on a 2D screen, linear transformations are doing the work. Rotation matrices orient objects in three-dimensional space. Scaling matrices resize objects. Projection matrices map three-dimensional scenes onto two-dimensional screens. A graphics pipeline might apply dozens of transformations in sequence — but because all are matrix multiplications, the entire sequence collapses into a single matrix product. This is why modern graphics processors (GPUs) are optimized for fast matrix multiplication.

Pure translations are not linear transformations (they shift the origin). In graphics this is handled using homogeneous coordinates: 2D points (x, y) are represented as 3D vectors (x, y, 1), and translations become linear transformations in the higher-dimensional space. Students will study this in a graphics or advanced linear algebra course.

Robotics and Kinematics

A robotic arm is a sequence of rigid bodies joined at pivots. The position and orientation of the arm's endpoint is computed by composing rotation and translation matrices — one for each joint. This is called forward kinematics. The same mathematics controls animation rigs in video games and films: a character's skeleton is driven by composing transformation matrices at each joint.

Physics: Coordinate Frame Rotations

In physics, different observers may use different coordinate frames. A rotation matrix transforms measurements from one frame to another. These frame transformations appear in mechanics, electromagnetism, special relativity, and quantum mechanics. Understanding rotation matrices now prepares you for the tensor transformations of advanced physics.

Data Science: Dimensionality Reduction

A dataset of n observations with p features forms a matrix. A linear transformation can map this high-dimensional data into a lower-dimensional space while preserving as much structure as possible. This is the foundation of principal component analysis (PCA). PCA finds the most important directions using eigenvalues and eigenvectors (Chapter 12), but the core operation is a matrix multiplication — a linear map from high-dimensional feature space to a lower-dimensional representation.

Reference Table: Common 2×2 Transformations

TransformationStandard Matrixdet(A)
Identity[[1,0],[0,1]]1
Uniform scaling by k[[k,0],[0,k]]k²
Non-uniform scaling (k₁, k₂)[[k₁,0],[0,k₂]]k₁k₂
Reflection, x-axis[[1,0],[0,−1]]−1
Reflection, y-axis[[−1,0],[0,1]]−1
Reflection, y = x[[0,1],[1,0]]−1
Reflection, y = −x[[0,−1],[−1,0]]−1
Rotation CCW by θ[[cosθ, −sinθ],[sinθ, cosθ]]1
Horizontal shear by k[[1,k],[0,1]]1
Vertical shear by k[[1,0],[k,1]]1
Projection, x-axis[[1,0],[0,0]]0
Projection, y-axis[[0,0],[0,1]]0
MGU Library Connection
  • Appendix I: Linear Transformation Reference — full reference of standard matrices, including 3D rotations about the x-, y-, and z-axes
  • MGU Computer Science Library: Introduction to Graphics — homogeneous coordinates, rendering pipeline
  • MGU Robotics Library: Kinematics and Transformations — forward and inverse kinematics
  • Chapter 12: Eigenvalues and Eigenvectors — stable directions of transformations, PCA foundations

Common Linear Transformation Mistakes

Mistake 1 — Reversing Composition Order
"Rotate then reflect" → A_rotate · A_reflect

Correct: The first transformation to be applied goes on the RIGHT. "Rotate then reflect" → A_reflect · A_rotate. The matrix on the left is applied last.

Mistake 2 — Assuming Composition Is Commutative
A_reflect · A_rotate = A_rotate · A_reflect

Correct: Matrix multiplication is generally not commutative. The order of composition matters. Always verify the intended order.

Mistake 3 — Trying to Invert a Projection
A = [[1,0],[0,0]] has inverse A⁻¹ = [[1,0],[0,∞]]

Correct: Projections are not invertible. det(A) = 0. Infinitely many input vectors (all points on any vertical line) map to the same output point on the x-axis. The lost perpendicular information cannot be recovered.

Mistake 4 — Thinking the Matrix IS the Transformation
"Changing coordinates changes what the transformation does."

Correct: A matrix is a representation of a linear transformation in a particular coordinate system. The same transformation can be described by different matrices in different bases. The underlying transformation (the geometric action) does not change when the basis changes.

Mistake 5 — Confusing Kernel and Image
"The image of T is the set of all x that map to 0."

Correct: That is the KERNEL (null space), not the image. The KERNEL of T is {x : T(x) = 0} — vectors that get sent to zero. The IMAGE of T is the set of all output vectors T(x) — this equals the column space of the matrix.

Mistake 6 — Confusing Linear and Affine Transformations
T(x) = Ax + b is a linear transformation.

Correct: T(x) = Ax + b (with b ≠ 0) is an AFFINE transformation, not a linear transformation. It does not map the zero vector to itself. The linear part is Ax; the translation by b makes it affine, not linear.

Mistake 7 — Using the Wrong Sign in a Rotation
Counterclockwise rotation by θ: [[cosθ, sinθ], [−sinθ, cosθ]]

Correct: CCW rotation by θ is [[cosθ, −sinθ], [sinθ, cosθ]]. The −sinθ belongs in the top-right position (the first row, second column). Clockwise rotation by θ uses [[cosθ, sinθ], [−sinθ, cosθ]].

Mistake 8 — Applying a Transformation to Only One Vertex
Transform one point of a triangle and assume the shape moved.

Correct: A transformation must be applied to every defining point of a geometric figure. Compute T for each vertex separately. This is not just repetitive work — different vertices may move in different directions under a non-uniform transformation.

Chapter Summary

Key Terms Review

linear transformation
A function T : ℝⁿ → ℝᵐ satisfying additivity T(u+v) = T(u)+T(v) and homogeneity T(cu) = cT(u).
additivity
The property T(u+v) = T(u)+T(v): adding vectors before or after applying T gives the same result.
homogeneity
The property T(cu) = cT(u): scaling before or after applying T gives the same result.
domain
The input space of a transformation; for T : ℝⁿ → ℝᵐ, the domain is ℝⁿ.
codomain
The target space; for T : ℝⁿ → ℝᵐ, the codomain is ℝᵐ.
matrix transformation
A function of the form T(x) = Ax defined by a matrix A. Every linear transformation has this form.
standard matrix
The matrix A whose columns are T(e₁), T(e₂), …, T(eₙ). Uniquely represents T in standard coordinates.
standard basis vectors
The vectors e₁, e₂, …, eₙ with a 1 in one position and 0s elsewhere. They span ℝⁿ and determine T completely.
scaling
A transformation that multiplies coordinates by fixed constants. Matrix is diagonal. Area scales by det.
reflection
A transformation that flips space across a line. det = −1; orientation reversed; self-inverse.
rotation
A transformation that turns space by a fixed angle. Matrix: [[cosθ,−sinθ],[sinθ,cosθ]]. det = 1; lengths preserved.
shear
A transformation that displaces points parallel to an axis proportionally to perpendicular distance. det = 1; area preserved.
projection
A transformation that maps vectors onto a subspace. Idempotent (A² = A); det = 0; not invertible.
idempotent
A transformation T satisfying T² = T. Projections are idempotent: applying the projection twice does not change the result.
composition
Applying one transformation after another. Corresponds to matrix multiplication: (T₂ ∘ T₁)(x) = A₂A₁x.
inverse transformation
The transformation T⁻¹ that undoes T. Exists iff det(A) ≠ 0. Standard matrix is A⁻¹.
kernel
The set {x : T(x) = 0} — all vectors mapped to the zero vector. Equals the null space of A.
image
The set of all output vectors T(x) as x ranges over ℝⁿ. Equals the column space of A.
orthogonal matrix
A matrix A satisfying Aᵀ = A⁻¹. Rotation matrices are orthogonal; they preserve lengths and dot products.
affine transformation
A linear transformation plus a translation: T(x) = Ax + b. Not a linear transformation when b ≠ 0 because T(0) ≠ 0.

Concept Review Questions

  1. State the two properties that define a linear transformation. What does each property mean geometrically?
  2. Explain why every function T(x) = Ax is a linear transformation. Which properties of matrix multiplication are used?
  3. What is the standard matrix of a linear transformation, and how is it constructed?
  4. What is the geometric meaning of the determinant of a 2×2 transformation matrix?
  5. How does the composition of two linear transformations relate to matrix multiplication? What determines the order of the matrices?
  6. Which of the five transformation families studied in this chapter are invertible, and which are not? Explain the reason for each.
  7. What is the kernel of a linear transformation? What does a nontrivial kernel (containing more than just the zero vector) mean geometrically?
  8. Why is the translation T(x) = x + b (with b ≠ 0) not a linear transformation?
  9. A rotation matrix R_θ satisfies R_θᵀ = R_θ⁻¹. Verify this for θ = 90°.
  10. What does it mean geometrically for a projection to be idempotent?

Transformation Identification Practice

For each matrix, identify the type of transformation (scaling, reflection, rotation, shear, projection, or other) and describe its geometric effect.

  1. [[1,0],[0,1]]
  2. [[−1,0],[0,−1]]
  3. [[5,0],[0,5]]
  4. [[1,3],[0,1]]
  5. [[0,−1],[1,0]]
  6. [[√3/2,−1/2],[1/2,√3/2]]
  7. [[0,0],[0,1]]
  8. [[0,1],[1,0]]
  9. [[3,0],[0,−2]]
  10. [[1,0],[−5,1]]
Practice Set AMatrix Transformation Practice
  1. Let A = [[4,−1],[2,3]]. Compute T(v) for: (a) v = (1,0), (b) v = (0,1), (c) v = (2,3), (d) v = (−1,4).
  2. Find the standard matrix for T : ℝ³ → ℝ² defined by T(x,y,z) = (x − 2y + z, 3y − z).
  3. A linear transformation T : ℝ² → ℝ² satisfies T(e₁) = (3,−1) and T(e₂) = (0,4). Write the standard matrix of T and compute T(5,2).
  4. Let T have standard matrix A = [[1,2],[3,4]]. Is T invertible? If so, find the inverse transformation.
  5. Determine whether each function is a linear transformation. If not, identify which property fails: (a) T(x,y) = (2x, y−1); (b) T(x,y) = (x+y, 2x−y); (c) T(x,y) = (xy, x+y); (d) T(x,y) = (0,0).
Practice Set BGeometric Transformation Practice
  1. A triangle has vertices P = (0,0), Q = (4,0), R = (2,3). For each transformation, find the image of all three vertices: (a) Reflection across the x-axis; (b) Rotation by 90° CCW; (c) Scaling by 3; (d) Horizontal shear with k = 1.
  2. Describe (or sketch) the image of the unit square under each matrix: (a) [[2,0],[0,2]]; (b) [[1,2],[0,1]]; (c) [[0,1],[1,0]]; (d) [[1,0],[0,0]].
  3. For rotation by 30° CCW (cos 30° = √3/2, sin 30° = 1/2): (a) Find the standard matrix. (b) Find the image of (2,0). (c) Find the image of (0,2). (d) Verify that lengths are preserved for each point.
  4. For each transformation, determine whether it preserves (+1) or reverses (−1) orientation: (a) Rotation by 120°; (b) Reflection across y = −x; (c) Scaling by k = −3; (d) Horizontal shear by k = 7.
Practice Set CComposition Practice
  1. Let T₁ be reflection across the y-axis and T₂ be 90° CCW rotation. (a) Find the matrix for T₂ ∘ T₁. (b) Find the matrix for T₁ ∘ T₂. (c) Are they equal? What does this show?
  2. Let T₁ be horizontal shear with k = 3 and T₂ be vertical shear with k = −2. Find the matrix of T₂ ∘ T₁.
  3. A logo transformation requires: (1) scale all coordinates by 1/2; (2) rotate by 180°; (3) reflect across the x-axis. Find the single combined matrix.
  4. Show that rotating by θ then by −θ is the identity, by computing R_{−θ} · R_θ.
  5. (Challenge) Let P = [[1,0],[0,0]] be the projection onto the x-axis. (a) Compute P². (b) Can repeated projection ever produce the identity? Explain.

Application Problems

Application 1 — Graphics: Animating a Shape
Composing Transformations for a Game Character
  • ContextA game developer wants to animate a square with vertices at (1,0), (2,0), (2,1), (1,1). She applies: Step 1 — rotate 45° CCW; Step 2 — scale by factor 2.
  • Part AFind the single matrix that performs both steps.
  • Part BApply this matrix to all four vertices and list the new coordinates (use √2 where needed).
  • Part CThe original shape had area 1. What is the area of the transformed shape? Confirm using the determinant.
Application 2 — Robotics: A Two-Joint Arm
Kinematics and Composition
  • ContextA robotic arm has two segments. The first segment points at 30° from the positive x-axis. The second segment is attached at the end of the first, oriented an additional 45° CCW.
  • Part AWrite the rotation matrix for each joint.
  • Part BA point at the tip of the first segment is at (3, 0) in the first segment's frame. Find its position in the global frame after both rotations.
  • Part CWhy does the order of the joint rotations matter when computing the arm's endpoint position?
Application 3 — Data Science: Projecting onto a Feature Direction
Projection and Information Loss
  • ContextA dataset has two features (x, y). A data scientist projects all data points onto the line y = x to reduce dimension.
  • Part AWrite the 2×2 projection matrix for the line y = x.
  • Part BApply the matrix to the data point (4, 6) and interpret.
  • Part CIs any information lost in this projection? What information?
  • Part DWhy does the projection matrix have no inverse?

Error Analysis

Each problem below contains a mistake. Identify the error and explain the correct approach.

Error 1 — Composition Order
"Rotate 90° CCW, then reflect across x-axis" → A = R₉₀° · A_reflect

Identify the error. Write the correct matrix product and explain which transformation should be on the right.

Error 2 — Inverting a Projection
A student writes: the inverse of P = [[1,0],[0,0]] is P⁻¹ = [[1,0],[0,∞]].

What is wrong? Explain why projections cannot be inverted, using the concepts of det and information loss.

Error 3 — Checking Linearity with One Example
A student tests T(2·u) = 2T(u) for u = (1,0) and concludes T is linear.

Why is a single numerical check insufficient? What must be done to properly verify linearity?

Error 4 — Applying T to Only One Vertex
A student reflects a triangle across y = x by computing T for only the first vertex, then assumes the other vertices move the same way.

Explain why this is incorrect. Under what (very limited) circumstances would all vertices move identically?

Error 5 — Calling an Affine Transformation Linear
T(x, y) = (x + 3, y − 1) is a linear transformation because the formula is simple.

Identify the error. Use the zero-vector test to show T is not linear, and explain what type of transformation it is.

Chapter 7 Checkpoint

Chapter 7 Checkpoint
Covers all major skills from Chapter 7 — complete independently without notes
Part A — Concept Questions
  1. State the two conditions a function T : ℝⁿ → ℝᵐ must satisfy to be a linear transformation.
  2. Explain in one or two sentences why a projection matrix is not invertible.
  3. Write the standard matrix for a counterclockwise rotation by angle θ and identify which column corresponds to where e₁ goes.
Part B — Standard Matrices
  1. Find the standard matrix for T : ℝ² → ℝ² defined by T(x, y) = (5x − 3y, −x + 2y).
  2. A linear transformation satisfies T(e₁) = (2, −1, 4) and T(e₂) = (0, 3, −2). Write the standard matrix.
Part C — Geometric Transformations
  1. Write the standard matrix for a reflection across the line y = x and identify what happens to the point (3, 5).
  2. Find the image of the point (1, 0) under a counterclockwise rotation by 120° (cos 120° = −1/2, sin 120° = √3/2).
  3. The unit square is transformed by A = [[2,1],[0,3]]. What is the area of the image? Use the determinant to confirm.
Part D — Composition
  1. Let A₁ = [[1,0],[0,−1]] (reflection) and A₂ = [[0,−1],[1,0]] (rotation). Compute the matrix for "rotation then reflection" and the matrix for "reflection then rotation." Are they equal?
  2. Three transformations are applied in sequence: horizontal shear with k = 2, reflection across the y-axis, and uniform scaling by 3. Find the single combined matrix.
Part E — Inverse Transformations
  1. Let A = [[3,5],[1,2]]. Find A⁻¹ and write the formula for T⁻¹(x).
  2. Can a shear transformation be inverted? If yes, describe the inverse geometrically and find the inverse of the horizontal shear with k = 4.
Part F — Application
  1. A graphic designer applies a counterclockwise rotation of 60° followed by scaling by factor 1/2 to a logo. The original logo has a point at (4, 0). (a) Find the combined matrix. (b) Find the image of (4, 0). (c) What does the determinant of the combined matrix tell you about area?
Bridge to Part III and Beyond
Chapter 8: Vector Spaces and Subspaces

Chapter 7 showed that linear transformations are functions that preserve the structure of vectors — and that every such function has a matrix representation. The next step is to study the spaces that these transformations act on.

Part III begins with Chapter 8: Vector Spaces and Subspaces. You will learn to recognize collections of objects — vectors in ℝⁿ, polynomials, matrices, sequences — that behave like vectors: they can be added and scaled according to consistent rules. The column space, null space, and row space of a matrix (studied in Chapters 8 and 10) are the natural subspaces that arise from the linear transformation T(x) = Ax. Everything you built in Chapters 1 through 7 — systems, row reduction, matrices, inverses, determinants, and transformations — will be unified in the language of vector spaces.

In Chapters 12 and 13 you will revisit linear transformations through eigenvalues and eigenvectors: the directions that a transformation leaves unchanged in orientation, only scaling them. These special directions are central to data science, physics, discrete dynamical systems, and the solution of differential equations. They are the deepest structural feature of a linear transformation.

Bridge to Calculus and Multivariable Calculus

In Multivariable Calculus, the Jacobian matrix of a vector-valued function at a point is precisely the matrix of the best linear approximation to that function near the point. Every concept from Chapter 7 — standard matrices, composition, invertibility, geometric behavior — reappears in the study of multivariable change. Linear transformations are the local language of nonlinear functions. Understanding them now will make the Jacobian feel natural when you encounter it.

MGU Library Connection
  • Appendix I: Linear Transformation Reference — complete table of standard matrices in ℝ² and ℝ³
  • Appendix R: Calculus Readiness Bridge Guide — preview of Jacobian matrices and multivariable change
  • MGU Computer Science Library: Introduction to Graphics — homogeneous coordinates, 3D rendering pipeline
  • MGU Robotics Library: Kinematics and Transformations — forward and inverse kinematics with matrices
  • Chapter 8: Vector Spaces and Subspaces — the spaces that linear transformations act on
  • Chapter 12: Eigenvalues and Eigenvectors — stable directions and scaling factors of transformations