Matrices as transformations - what a matrix does to the plane, step by step
· 16 min read
In short
A 2 × 2 matrix moves every point of the plane, sending (x, y) to (ax + by, cx + dy). Its columns show where the unit vectors e₁ and e₂ land, and the rest of the grid follows. The absolute value of the determinant ad − bc is the area scale factor, and a negative determinant means that figures are mirrored.
Words to know
- Matrix
- A table of numbers. A 2 × 2 matrix has two rows and two columns.
- Unit vectors e₁ and e₂
- e₁ = (1, 0) and e₂ = (0, 1) - one step along the x-axis and one step up the y-axis.
- Linear transformation
- A transformation given by a matrix. The origin stays put, and the square grid becomes a grid of equal parallelograms (or is squashed flat).
- Unit square
- The square with corners (0, 0), (1, 0), (1, 1) and (0, 1). Its area is 1.
- Determinant
- The number ad − bc for the matrix with rows (a b) and (c d). Its absolute value is the area scale factor - the number every area is multiplied by.
- Orientation
- Whether a figure is the right way round or mirrored. A negative determinant reverses it.
What do you think?
The matrix moves the unit square, the square with corners , , and . Its corners land on , , and . What is the area of the new figure?
The new figure is a parallelogram. It fits in the rectangle from to , which has area . The rest of the rectangle is four right-angled triangles: two of area and two of area , so altogether. That leaves for the parallelogram. The animation below shows how to read this straight from the matrix.
The idea: a matrix moves the whole plane
A matrix is a table of numbers. A matrix has four of them, in two rows and two columns:
You can read it as a recipe for moving points: the point goes to the point . Every point of the plane moves at the same time, so the whole plane is transformed. It can turn, stretch, slant or flip over.
The recipe is simpler than it looks. You only need to know where two arrows go: , one step along the -axis, and , one step up. Their new positions are the two columns of the matrix, and the rest of the grid follows.
Watch the grid change
Go through the animation step by step with the buttons or the arrow keys. The faint grid is the plane before the move, and the coloured grid shows where the matrix takes it. The arrows and are the images of and - where the matrix sends them.
M = matrix with rows 1; 0 and 0; 1·det M = 1
This is the plane with its square grid. The arrows are e₁ = (1, 0) and e₂ = (0, 1). They are two sides of the unit square, which has area 1 and a flag inside.
Two arrows decide everything. Every point can be built from them, , so once you know where and go, you know where every point goes.
Try it yourself: build a matrix
Set the four numbers of the matrix with the sliders. The left pair is the first column - where goes. The right pair is the second column - where goes. Watch the grid, the square and the flag, and read the determinant under the sliders.
- the matrix M
- matrix with rows 2; 1 and -1; 1
- det M = ad − bc
- 2 · 1 − 1 · (-1) = 3
- area of the image of the unit square
- 3
- the flag
- the right way round
Start from
What to notice:
- the rotation by and the shear change the square’s position or shape, but not its area: both have determinant ,
- the stretch multiplies every area by its determinant, ,
- the reflection has determinant : the area stays , but the flag is mirrored,
- with parallel columns, such as and , the determinant is and the plane is flattened onto a line,
- drag one column across the other: just as they line up, the determinant passes through , changes sign, and the flag flips over.
The definition
A matrix as a transformation. The matrix sends the point (or vector) to
Each new coordinate is a row of the matrix times the vector: multiply the matching numbers and add them up.
The columns are the images of e₁ and e₂. Put in and you get , the first column. Put in and you get , the second. Every vector is , so
To write down the matrix of a transformation, find where and go and write their images as columns.
Linearity. Such a transformation is linear: and for every number . So the origin stays put. A line through the point in the direction is made of the points , and they go to the points . That is a line in the direction , or a single point when . Parallel lines share their direction, so their images are parallel too - unless the whole plane is squashed onto one line.
The determinant. The number
is the determinant of . Its absolute value is the area of the image of the unit square - the parallelogram spanned by the two columns. Every other area is multiplied by the same number, so is the area scale factor: a figure of area goes to a figure of area . The sign says more:
- : figures keep their orientation,
- : figures are mirrored,
- : the columns are parallel and the plane is squashed onto a line or a point. Such a transformation cannot be undone - has no inverse.
One transformation after another. Doing first and then is the transformation with matrix - the one done first stands on the right. The order matters: usually . First scales areas, then does, so .
Example 1: the image of a triangle and its area
The matrix moves the triangle with corners , and . Where does the triangle go, and what is its new area?
Step 1. Find the image of A
We multiply each row of by the vector . The origin stays where it is.
Step 2. Find the image of B
The point is , so its image is the second column of .
Step 3. Work out the determinant
We multiply along the diagonals and subtract.
Step 4. Scale the area
The triangle has a right angle at , base and height , so its area is . The matrix multiplies every area by .
Answer
The image is the triangle with corners , and , and its area is . The determinant is positive, so the triangle is not mirrored.
Example 2: the matrix of a rotation by 90°
Find the matrix of the rotation through anticlockwise about the origin.
Step 1. Find where e₁ goes
A quarter turn anticlockwise takes on the -axis to on the -axis.
Step 2. Find where e₂ goes
The same quarter turn takes on the -axis to on the negative -axis.
Step 3. Write the images as columns
The image of is the first column, and the image of the second.
Step 4. Check the determinant
A rotation does not change areas and does not mirror anything, so its determinant must be .
Answer
. It sends to : every point makes a quarter turn anticlockwise about the origin.
Your turn
A transformation sends to and to . Write down its matrix, find the image of the point and say what the transformation does to areas.
Hintshow
The images of and are the columns. The point is .
Solutiontry it on your own first
Step 1. Write the images as columns
The image of is the first column, and the image of the second.
Step 2. Find the image of the point
The point is , so it goes to twice the first column plus three times the second.
Step 3. Work out the determinant
The determinant says what happens to areas.
Answer
, and the point goes to . Every area is multiplied by , and since the determinant is positive, figures are not mirrored.
Common mistakes
- Rows instead of columns. The images of and are the columns of the matrix. Written as rows, the rotation becomes - a rotation the other way.
- “The order does not matter.” Take , the rotation by anticlockwise, and , the reflection in the -axis. Rotating first and then reflecting gives , the reflection in the line . Reflecting first gives , the reflection in .
- “A negative determinant means a negative area.” An area is never negative. When , every area doubles and figures are mirrored.
- “A determinant of 0 means a matrix full of zeros.” The matrix has no zero in it, yet its determinant is . Its columns are parallel, so it flattens the plane onto a line.
In exams and at university
In England, matrices are not part of A-level Mathematics, but they belong to the core content of A-level Further Mathematics that every exam board must include. Students use matrices for transformations of the plane, such as rotations, reflections, stretches and enlargements. They combine two transformations by multiplying their matrices, with the same rule as on this page: means first, then . They also interpret the determinant as the area scale factor, including its effect on orientation, and find invariant points and lines - points and lines that the transformation maps onto themselves. The unit vectors that this page calls and are written and at A-level.
In the United States, AP Precalculus ends with the unit Functions Involving Parameters, Vectors, and Matrices. In it, a matrix acts as a linear transformation of the plane, and the absolute value of its determinant shows how areas are scaled. That unit is not tested on the AP exam: teachers may include it, depending on state or local requirements.
At university, matrix transformations and determinants belong to a first course in linear algebra. In the open textbook Understanding Linear Algebra by David Austin, matrix transformations come in the second chapter, a few sections after the product of a matrix and a vector. The determinant follows in the third chapter, where it is defined as a signed area - the same picture as on this page.
Check yourself
Test yourself
Where does the matrix send ?
A figure has area . What is the area of its image under the matrix ?
A matrix has determinant . What happens to areas and figures?
What is the image of the point under the matrix ?
For which does the matrix flatten the plane onto a line?
Flashcards for review
Flip a card and say whether you knew the answer. The ones you did not know come back at the end of the deck. Why it pays to come back to them in a few days is explained in the guide Spaced repetition.
Flashcards
Question
Answer
Where does the matrix send the point ?
To .What are the columns of a matrix?
The images of and : the first column is where goes, and the second is where goes.How do you work out the determinant of ?
What does tell you?
The area scale factor. The image of the unit square has area , and a figure of area goes to one of area .What does a negative determinant mean?
Figures are mirrored - the orientation is reversed. Areas are still multiplied by .What does mean?
The columns are parallel. The plane is squashed onto a line or a point, and has no inverse.What is the matrix of the rotation by anticlockwise?
. It sends to .Which matrix stands for “first , then ”?
- the one done first stands on the right. Usually .What is ?
- first scales areas, then does.
Sources
We checked the facts on this page against these sources. All of them may be reused freely: they carry an open licence or are not covered by copyright.
- David Austin - Understanding Linear Algebra, 2.2 Matrix multiplication and linear combinations (Ax is a combination of the columns; AB is not in general BA) · CC BY 4.0
- David Austin - Understanding Linear Algebra, 2.5 Matrix transformations (the j-th column is the image of eⱼ; the rotation by 90°; doing T and then S has the matrix BA) · CC BY 4.0
- David Austin - Understanding Linear Algebra, 2.6 The geometry of matrix transformations (linearity, the origin cannot move, the unit square and the grid, a shear, the order matters) · CC BY 4.0
- David Austin - Understanding Linear Algebra, 3.4 Determinants (ad − bc as a signed area, the area scale factor, orientation, det = 0 when the columns fold onto a line, det(AB) = det A · det B) · CC BY 4.0
- Ken Kuttler (Lyryx) - A First Course in Linear Algebra, 5.1 Linear Transformations (matrix transformations are linear) · CC BY 4.0
- Ken Kuttler (Lyryx) - A First Course in Linear Algebra, 5.2 The Matrix of a Linear Transformation I (the image of eᵢ is the i-th column) · CC BY 4.0
- Ken Kuttler (Lyryx) - A First Course in Linear Algebra, 5.4 Special Linear Transformations in R² (the rotation by 90°, the reflection in the x-axis, the order of the matrices) · CC BY 4.0
- Peter Selinger - Matrix Theory and Linear Algebra, 6.3-6.4 (the columns are the images of e₁ and e₂; the rotation by 90°, the reflection in y = x, a shear; doing S and then T has the matrix BA) and 7.5 (det(AB)) (PDF) · CC BY 4.0
- Jim Hefferon - Linear Algebra, Three.IV.2 Matrix Multiplication, Topic: Geometry of Linear Maps and Four.II.1 Determinants as Size Functions (composition is a product and is not commutative; lines go to lines; a shear keeps area; the sign shows orientation) (PDF) · CC BY-SA 2.5
- Wikibooks - Linear Algebra/Determinants as Size Functions (the determinant as an area, its sign and orientation, the same factor for every box) · CC BY-SA 4.0
- Wikibooks - Linear Algebra/Topic: Geometry of Linear Maps (a shear keeps area; a line goes to a line or a single point) · CC BY-SA 4.0
- Wikipedia - Transformation matrix (the columns are the images of the basis vectors; B(Ax) = (BA)x) · CC BY-SA 4.0
- Wikipedia - Determinant (ad − bc, area, orientation, invertible exactly when det ≠ 0, the determinant of a product) · CC BY-SA 4.0
- Wikipedia - Affine transformation (lines stay lines, parallel lines stay parallel) · CC BY-SA 4.0
- Wikipedia - Rotation matrix (the rotation by 90°, rotations have determinant 1) · CC BY-SA 4.0
- Wikipedia - Shear mapping (determinant 1, so area is preserved) · CC BY-SA 4.0
- Wikipedia - AP Precalculus (Unit 4, with vectors and matrices, is not tested on the exam) · CC BY-SA 4.0