01 / 21

Geometric Matrix
Transformations

Discover how matrices rotate, reflect, scale, and shear shapes in the plane: the bridge between algebra and geometry.

Linear Algebra

What Is a Matrix Transformation?

A matrix transformation is a function \( T: \mathbb{R}^2 \to \mathbb{R}^2 \) defined by multiplying every point \( \mathbf{v} \) by a \( 2 \times 2 \) matrix \( A \):

Every point in the plane gets sent to a new location. When we apply the same matrix to every point of a shape, the entire shape moves, stretches, rotates, or flips: that is the geometric effect of the matrix.

Why Geometry Meets Algebra

Computer Graphics
Every rotation, zoom, and flip on screen is a matrix multiplication.
Physics
Stress tensors and coordinate changes use transformation matrices.
Data Science
PCA and dimensionality reduction are geometric transformations of data.

The Four Fundamental Transformation Types

Rotation
Turns the plane by angle \( \theta \) about the origin.
Reflection
Flips the plane across a line through the origin.
Scaling
Stretches or compresses along axis directions.
Shear
Tilts the plane, turning squares into parallelograms.

Columns Are Transformed Basis Vectors

The key insight: the columns of a \( 2\times2 \) matrix tell you where the standard basis vectors \( \hat{\mathbf{i}} \) and \( \hat{\mathbf{j}} \) land after the transformation.

\(\hat{\mathbf{i}}\)
\(\hat{\mathbf{j}}\)
→
\(T(\hat{\mathbf{i}}) = \text{col 1}\)
\(T(\hat{\mathbf{j}}) = \text{col 2}\)
Before After

The Rotation Matrix

\(\theta\)
original T(i) T(j) Key properties:
\(\det(R)=1\)
Preserves lengths Preserves angles

The Reflection Matrix

x y mirror Original Reflected
\(\det = -1\)
Orientation flips

Scaling Transformations

1 × 1
\(s_x = 2\)
\(s_y = 1.5\)
Area scales by
\(|\det| = s_x s_y\)

Shear Transformations

original sheared
\(k \cdot y\)
\(\det = 1\)
Area unchanged Angles change

Rotation vs Reflection

Rotation Reflection
Determinant +1 -1
Orientation Preserved (CCW stays CCW) Reversed (CCW becomes CW)
Fixed points Only the origin Entire mirror line
Lengths Preserved Preserved
Applying twice Rotates by \( 2\theta \) Returns to original

The Determinant as Area Factor

The absolute value of the determinant \( |\det(A)| \) tells you how the area of any shape scales. The sign tells you if orientation flips.

\(|\det| > 1\)
Areas expand: shapes get larger.
\(|\det| = 1\)
Areas preserved: rotations, reflections, shears.
\(|\det| < 1\)
Areas shrink: shapes compress.

How to Identify the Transformation

1
Read the columns. Column 1 is where \( \hat{\mathbf{i}} = (1,0) \) goes. Column 2 is where \( \hat{\mathbf{j}} = (0,1) \) goes.
2
Compute \(\det(A)\). Positive: orientation preserved. Negative: orientation flipped. Zero: degenerate.
3
Check column lengths. Both length 1 and perpendicular: rotation or reflection. Different lengths: scaling present.
4
Check for off-diagonal terms. Diagonal matrix: pure scaling. Off-diagonal only: shear. Mixed: combination.

Example 1: Identify the Transformation

1
Column 1: \( \hat{\mathbf{i}} \to \begin{pmatrix} 0 \\ 1 \end{pmatrix} \). That is straight up.
2
Column 2: \( \hat{\mathbf{j}} \to \begin{pmatrix} -1 \\ 0 \end{pmatrix} \). That is straight left.
3
Determinant: \( (0)(0) - (-1)(1) = \) +1. Orientation preserved, area unchanged.
4
Conclusion: 90° counter-clockwise rotation.

Example 1: Visualized

Original Rotated
\(90^\circ \text{ CCW}\)
x y

Example 2: Scaling and Shear

1
Column 1: \( (2, 0) \): the x-axis is stretched by 2.
2
Column 2: \( (1, 3) \): \( \hat{\mathbf{j}} \) is stretched by 3 vertically and shifted right by 1 (shear component).
3
Determinant: \( (2)(3) - (1)(0) = 6 \). Area scales by 6×.
1×1 Transformed
\(s_x = 2\)
\(s_y = 3\)
\(\det = 6\)
\(\text{Area: } 1 \to 6\)

Common Mistakes

✕ Confusing det sign
A negative determinant means orientation flips, not that the matrix "reverses direction." \(\det = -2\) still scales area by 2.
✕ Swapping row and column
Column 1 is where \(\hat{\mathbf{i}}\) goes, not row 1. Reading rows instead of columns gives the transpose's transformation.
✕ Ignoring order
Matrix multiplication is not commutative: rotating then reflecting differs from reflecting then rotating.

Summary of Transformations

Type Matrix Form det Preserves
Rotation \(\begin{pmatrix}\cos\theta & -\sin\theta \\ \sin\theta & \cos\theta\end{pmatrix}\) +1 Lengths, angles
Reflection e.g. \(\begin{pmatrix}1 & 0 \\ 0 & -1\end{pmatrix}\) -1 Lengths, angles
Scaling \(\begin{pmatrix}s_x & 0 \\ 0 & s_y\end{pmatrix}\) \(s_x s_y\) Axes directions
Shear \(\begin{pmatrix}1 & k \\ 0 & 1\end{pmatrix}\) 1 Area, one axis

Question 1 of 5

What geometric transformation does the matrix \(\begin{pmatrix} -1 & 0 \\ 0 & 1 \end{pmatrix}\) represent?

Question 2 of 5

A \(2 \times 2\) matrix has \(\det(A) = 5\). A unit square is transformed by \(A\). What is the area of the resulting shape?

Question 3 of 5

Which matrix represents a counter-clockwise rotation by \(180°\)?

Question 4 of 5

The matrix \(\begin{pmatrix} 1 & 3 \\ 0 & 1 \end{pmatrix}\) transforms a square. The resulting shape is a:

Question 5 of 5

If \(\det(A) = 0\), what happens geometrically when you apply \(A\) to the plane?