Linear Algebra • Linear Transformations

Geometric Matrix Transformations — Interpretation of Matrix Transformations Geometrically

Discover how multiplying by a matrix can rotate, reflect, stretch, or squish shapes on the coordinate plane.

Linear Algebra emblem with a matrix grid, a variable, and three-dimensional axes.
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

Long before computers could render 3-D video games or animate movies, mathematicians needed a reliable way to describe movement and change in geometry. How do you rotate a triangle? Flip a shape across a line? Stretch an image wider? People tried many approaches, but the real breakthrough came when they realized that a simple grid of numbers — a matrix — could encode all of these geometric actions in one compact package.

The story of matrix transformations stretches across centuries. Ancient Greek mathematicians explored reflections and rotations, but they had no algebraic shorthand for them. It took the invention of coordinate geometry, then matrices, and finally the formal idea of a linear transformation to connect algebra with geometry in a powerful way.

1637 • Coordinate Geometry Is Born

René Descartes published his method of placing points on an x-y grid, allowing geometric shapes to be described with numbers and equations for the first time.

1850s • Cayley Formalizes Matrices

Arthur Cayley, an English mathematician, introduced the modern idea of a matrix — a rectangular array of numbers — and defined rules for multiplying them together.

1888 • Lie Groups & Continuous Transformations

Sophus Lie studied smooth, continuous transformations such as rotations that can be described by families of matrices, linking algebra to geometry at a deep level.

1950s–60s • Computer Graphics Emerge

Engineers at MIT and Boeing used matrix multiplication to rotate, scale, and project 3-D objects on computer screens, making geometric matrix transformations an everyday tool.

Today • Everywhere in Technology

From smartphone image filters to self-driving car vision systems, matrix transformations power nearly every visual technology you use.

The big question this lesson answers is: When you multiply a point or shape by a matrix, what happens to it on the coordinate plane, and why? Understanding this connection between numbers and pictures is one of the most useful skills in all of mathematics.

SECTION 2

Core Principles & Definitions

Before we dive into pictures, let's nail down a few key ideas. A transformation is any rule that takes a point (or a whole shape) and moves it to a new location. A linear transformation is a special kind: it keeps straight lines straight and keeps the origin (0, 0) in place. Every 2 × 2 matrix defines exactly one linear transformation of the coordinate plane.

1

Matrix = Transformation Recipe

A 2 × 2 matrix is a set of four numbers arranged in two rows and two columns. It tells you exactly where the two basis vectors î = (1, 0) and ĵ = (0, 1) land after the transformation.
2

Lines Stay Straight

A linear transformation can stretch, rotate, reflect, or shear, but it will never bend a straight line into a curve. Grid lines may tilt or spread, but they remain straight and evenly spaced.
3

Origin Stays Put

No matter which 2 × 2 matrix you use, the point (0, 0) always maps to (0, 0). If you need to also slide (translate) a shape, you need additional tools beyond a basic matrix multiplication.
4

Columns Are Destinations

The first column of the matrix is where î lands; the second column is where ĵ lands. Once you know where these two arrows go, every other point follows automatically.
✦

KEY TAKEAWAY

Think of a matrix like a set of instructions for rearranging a sheet of graph paper. You grab the two special arrows î and ĵ and move them to new positions. The entire grid — and every shape drawn on it — warps along with them. The matrix just records where those two arrows end up.

SECTION 3

Visual Explanation — Watching a Square Transform

The best way to understand matrix transformations is to watch them happen. Below is a diagram showing a unit square (the square with corners at the origin, (1, 0), (0, 1), and (1, 1)) before and after a transformation. The matrix used here stretches the x-direction by 2 and leaves y unchanged — a horizontal scaling.

BEFORE (Identity)AFTER (Scaled ×2 in x)xyî = (1,0)ĵ = (0,1)(0,0)(1,1)xyî → (2,0)ĵ → (0,1)(2,1)M = [2 0 ; 0 1]
On the left, the original unit square sits with î (cyan arrow) pointing right and ĵ (violet arrow) pointing up. The matrix [2, 0; 0, 1] doubles the x-component of every point. The square becomes a rectangle twice as wide, shown in pink on the right.

Notice how ĵ stayed the same — that's because the second column of the matrix is still (0, 1). Meanwhile, î moved from (1, 0) to (2, 0), matching the first column. Every point in the plane moved accordingly: a point at (3, 1) would land at (6, 1) because its x-coordinate doubled.

SECTION 4

Mathematical Framework

Now let's see the algebra that makes all of this work. A 2 × 2 matrix has the form shown below. When you multiply it by a point (x, y), you get a new point (x', y').

MATRIX–VECTOR MULTIPLICATION

[ab][x][a⋅x+b⋅y][cd]×[y]=[c⋅x+d⋅y][ a b ] [ x ] [ a·x + b·y ] [ c d ] × [ y ] = [ c·x + d·y ]

Here a, b, c, d are the four entries of the matrix. The new x-coordinate is a × x + b × y, and the new y-coordinate is c × x + d × y.

Where do the columns come in? Plug in the point (1, 0) for î: you get (a × 1 + b × 0, c × 1 + d × 0) = (a, c). That is simply the first column! Similarly, plugging in (0, 1) for ĵ gives (b, d), the second column. This proves the column rule from Section 2.

ROTATION BY ANGLE θ

R(θ)=[cosθ−sinθ][sinθcosθ]R(θ) = [ cos θ −sin θ ] [ sin θ cos θ ]

This matrix rotates every point counterclockwise by the angle θ about the origin. For example, θ = 90° gives cos 90° = 0 and sin 90° = 1, so R = [0, −1; 1, 0].

REFLECTION ACROSS THE x-AXIS

Fx=[10][0−1]F_x = [ 1 0 ] [ 0 −1 ]

This matrix flips every point over the x-axis: (x, y) → (x, −y). The first column stays (1, 0), but the second column becomes (0, −1), sending ĵ downward.

DETERMINANT — AREA SCALE FACTOR

det(M)=a×d−b×cdet(M) = a × d − b × c

The determinant tells you how much the matrix scales areas. If det = 2, areas double. If det = −1, areas keep the same size but orientation flips (like looking in a mirror).

SECTION 5

A Gallery of Common Transformations

Different matrices produce different geometric effects. The diagram below shows four common types applied to the same unit square. Studying these side by side helps you recognize transformations by sight and connect them back to their matrices.

Four Common Matrix Transformations90° Rotation[0 −1; 1 0]det = 1Reflection (y-axis)[−1 0; 0 1]det = −1Scaling (×2, ×0.5)[2 0; 0 0.5]det = 1Shear[1 0.5; 0 1]det = 1Quick Reference• Rotation: turns the shape around the origin. Area stays the same (det = 1).• Reflection: flips the shape across an axis. Area stays the same but orientation reverses (det = −1).• Scaling: stretches or squishes along x and/or y. Area changes by |det|.• Shear: tilts the shape sideways (or up/down) like leaning a stack of cards. Area stays the same.Dashed cyan = original square · Solid color = transformed shape
The dashed cyan square is the original unit square in every panel. Each solid colored shape shows the result of multiplying every point by the matrix listed below it. Notice how the determinant tells you whether area changed or orientation flipped.
TransformationMatrix ExampleWhat It DoesDeterminant
Rotation (90°)[0 −1; 1 0]Turns every point 90° counterclockwise1
Reflection (y-axis)[−1 0; 0 1]Flips left ↔ right across the y-axis−1
Scaling[2 0; 0 3]Stretches x by 2 and y by 36
Shear (horizontal)[1 k; 0 1]Slides points sideways by k × their y-value1
Projection onto x-axis[1 0; 0 0]Collapses all y-values to zero (flat line)0

Common 2 × 2 transformation matrices and their geometric effects

SECTION 6

Worked Example — Rotating a Triangle

Let's apply a 90° counterclockwise rotation to a triangle with vertices at A = (2, 1), B = (4, 1), and C = (3, 3). We'll use the rotation matrix R = [0, −1; 1, 0] and compute the new position of each vertex.

Rotating Triangle ABC by 90°

  1. 1

    Step 1 — Write down the rotation matrix

    For a 90° counterclockwise rotation, cos 90° = 0 and sin 90° = 1. The matrix is R = [0, −1; 1, 0]. This means î lands at (0, 1) and ĵ lands at (−1, 0).
    R = [0 −1; 1 0]
  2. 2

    Step 2 — Transform vertex A = (2, 1)

    Multiply: x' = 0 × 2 + (−1) × 1 = −1. Then y' = 1 × 2 + 0 × 1 = 2. So A moves from (2, 1) to (−1, 2).
    A' = (−1, 2)
  3. 3

    Step 3 — Transform vertex B = (4, 1)

    x' = 0 × 4 + (−1) × 1 = −1. Then y' = 1 × 4 + 0 × 1 = 4. So B moves from (4, 1) to (−1, 4).
    B' = (−1, 4)
  4. 4

    Step 4 — Transform vertex C = (3, 3)

    x' = 0 × 3 + (−1) × 3 = −3. Then y' = 1 × 3 + 0 × 3 = 3. So C moves from (3, 3) to (−3, 3).
    C' = (−3, 3)
  5. 5

    Step 5 — Interpret the result geometrically

    The original triangle sat in the first quadrant (positive x, positive y). After a 90° counterclockwise rotation, it now sits in the second quadrant (negative x, positive y). The shape and size of the triangle are exactly the same — only its orientation changed. We can confirm this by checking the determinant: det(R) = 0 × 0 − (−1) × 1 = 1, which means areas are preserved and no flipping occurred.
    Triangle A'B'C' = (−1, 2), (−1, 4), (−3, 3) — rotated 90° CCW with area preserved

SECTION 7

Strengths & Limitations of Matrix Transformations

Matrix transformations are incredibly powerful, but they aren't a universal tool for every geometric operation. Understanding what they can and cannot do helps you choose the right approach for a given problem.

StrengthsLimitations
Combine multiple transformations by multiplying matrices together (e.g., rotate then reflect in one step).Cannot translate (slide) shapes — the origin always stays fixed with a 2 × 2 matrix.
Easy to undo: if the determinant isn't zero, the inverse matrix reverses the transformation.Cannot create curves — straight lines always remain straight.
Work in any dimension: 3 × 3 matrices transform 3-D space, 4 × 4 handles perspective, etc.If the determinant is 0, the transformation is irreversible — it collapses space into a lower dimension.
Computers can multiply matrices extremely fast, making real-time graphics possible.Non-linear transformations (bending, warping) require more advanced math beyond simple matrices.

Comparing what matrix transformations do well versus where they fall short

✦

KEY TAKEAWAY

Think of matrix transformations like an adjustable wrench: they handle a huge range of bolt sizes (rotations, reflections, scaling, shearing), but they can't hammer nails (translations, curves). When you need translation too, mathematicians upgrade to 3 × 3 "homogeneous" matrices, which add a translation row. That's a topic for a future lesson.

SECTION 8

Connection to Advanced Theory — Higher Dimensions & Eigenvalues

Everything we've explored with 2 × 2 matrices extends naturally to three dimensions and beyond. A 3 × 3 matrix transforms 3-D space: it has three columns, each telling you where the three basis vectors land. Video game engines use 4 × 4 matrices to combine rotation, scaling, and translation in a single multiplication.

Concept in This LessonAdvanced Extension
2 × 2 matrix transformations on the planen × n matrix transformations in n-dimensional space
Determinant tells area scale factorDeterminant tells volume scale factor in 3-D (and hyper-volume in higher dimensions)
Columns show where basis vectors landEigenvectors show special directions that only get stretched, not rotated
Composing two transformations = multiplying matricesMatrix groups classify all symmetries of objects (Lie groups, representation theory)

How today's ideas grow into advanced linear algebra

One particularly exciting idea is the concept of eigenvectors. These are special arrows that don't change direction when the matrix is applied — they just get longer or shorter. Finding eigenvectors is like finding the natural "axes" of a transformation, and it's a key topic in more advanced linear algebra courses.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

A 2 × 2 matrix has the columns (0, 1) and (−1, 0). Without doing any calculations, describe what geometric transformation this matrix performs. How do you know?
Show answer
This matrix sends î = (1, 0) to (0, 1) and ĵ = (0, 1) to (−1, 0). That means the positive x-axis rotates up to the positive y-axis, and the positive y-axis rotates left to the negative x-axis. This is a 90° counterclockwise rotation. You can confirm by noticing the matrix matches the rotation formula [cos 90°, −sin 90°; sin 90°, cos 90°] = [0, −1; 1, 0].

Question 2: BASIC CALCULATION

Use the matrix M = [3, 0; 0, 2] to transform the point P = (4, 5). What are the coordinates of P'? What type of transformation is this?
Show answer
Apply the formula: x' = 3 × 4 + 0 × 5 = 12, and y' = 0 × 4 + 2 × 5 = 10. So P' = (12, 10). This is a scaling transformation that stretches x by a factor of 3 and y by a factor of 2. The determinant is 3 × 2 − 0 × 0 = 6, meaning areas are multiplied by 6.

Question 3: INTERMEDIATE

The matrix M = [1, 1; 0, 1] is a horizontal shear. Apply it to the unit square with corners (0, 0), (1, 0), (0, 1), and (1, 1). List the four new corners and sketch or describe the resulting shape.
Show answer
(0, 0) → (0, 0). (1, 0) → (1 × 1 + 1 × 0, 0 × 1 + 1 × 0) = (1, 0). (0, 1) → (1 × 0 + 1 × 1, 0 × 0 + 1 × 1) = (1, 1). (1, 1) → (1 × 1 + 1 × 1, 0 × 1 + 1 × 1) = (2, 1). The resulting shape is a parallelogram. The bottom side still lies along the x-axis from (0, 0) to (1, 0), but the top side has shifted right, going from (1, 1) to (2, 1). The determinant is 1 × 1 − 1 × 0 = 1, so the parallelogram has the same area as the original square.

Question 4: APPLIED

A game developer wants to make a character sprite appear to lean forward. She decides to apply a vertical shear using M = [1, 0; 0.5, 1]. The character's head is at (0, 4) and feet at (0, 0). Where does the head end up, and by how many units has it shifted horizontally?
Show answer
For the feet at (0, 0): x' = 1 × 0 + 0 × 0 = 0, y' = 0.5 × 0 + 1 × 0 = 0. Feet stay at (0, 0). For the head at (0, 4): x' = 1 × 0 + 0 × 4 = 0, y' = 0.5 × 0 + 1 × 4 = 4. Wait — this is a vertical shear, so let's recheck: x' = 1 × 0 + 0 × 4 = 0 and y' = 0.5 × 0 + 1 × 4 = 4. The head stays at (0, 4). Actually, this matrix shears based on the x-value, and since x = 0, nothing moves. If instead we use M = [1, 0; 0.5, 1] on a point (2, 4), we get y' = 0.5 × 2 + 1 × 4 = 5. For the given point (0, 4), the head stays put. To make the character lean, the developer should use a horizontal shear M = [1, 0.5; 0, 1] instead: x' = 1 × 0 + 0.5 × 4 = 2, y' = 0 × 0 + 1 × 4 = 4. Now the head shifts 2 units to the right while the feet stay fixed.

Question 5: CRITICAL THINKING

You apply matrix A first, then matrix B. Your friend applies B first, then A. Will you always get the same result? Test your answer by using A = [0, −1; 1, 0] (90° rotation) and B = [−1, 0; 0, 1] (reflection over y-axis) on the point (1, 0). What does this tell you about the order of matrix multiplication?
Show answer
Applying A first to (1, 0): A × (1, 0) = (0, 1). Then B × (0, 1) = (0, 1). Final result: (0, 1). Now applying B first to (1, 0): B × (1, 0) = (−1, 0). Then A × (−1, 0) = (0 × (−1) + (−1) × 0, 1 × (−1) + 0 × 0) = (0, −1). Final result: (0, −1). The two results are different! This shows that matrix multiplication is not commutative — the order matters. Geometrically, rotating then reflecting is a different motion than reflecting then rotating. This is one of the most important properties of matrix transformations to remember.

SUMMARY

Lesson Summary

Summary

A 2 × 2 matrix defines a linear transformation of the coordinate plane. Its two columns reveal where the basis vectors î and ĵ land, and every other point follows from those destinations. Common transformations include rotation, reflection, scaling, and shearing — each with a distinctive matrix pattern.

The determinant of the matrix tells you the area scale factor: positive means orientation is preserved, negative means it flips, and zero means the transformation collapses space. Because matrix multiplication is not commutative, the order in which you apply transformations matters. These ideas extend naturally to 3-D and beyond, forming the backbone of computer graphics, physics simulations, and data science.

Varsity Tutors • Linear Algebra • Geometric Matrix Transformations