Linear Algebra and Vector Geometry 201-SN4-RE • CEGEP, Montreal
Corrected exercises: linear transformations of the plane (201-SN4-RE)
This is the corrected exercise set on linear transformations of the plane, and of space at the end of the set, for Linear Algebra and Vector Geometry, 201-SN4-RE (formerly 201-NYC). Part A covers the matrices of rotations, reflections, dilations and orthogonal projections (exercises 1 and 2), composition and its non-commutativity (exercise 3), the matrix recovered from the images of the basis, the determinant as an area factor (exercise 4) and the shear (exercise 5). Part B rises to exam level: linearity, orthogonal matrices and idempotent projections (exercise 6), a rotation-dilation linked to complex numbers (exercise 7), the reflection about an arbitrary line (exercise 8), the matrix obtained from non-standard vectors (exercise 9) and the properties that are preserved (exercise 10). Part C goes back over the classics: transformations of space with 3×3 matrices, the ellipse that is the image of a circle, the inverse of a composition, a cast shadow as an oblique projection, and recognizing a matrix (exercises 11 to 15).
Exercise 0.1 opens the set with ten direct calculations, as in the exercise lists of the textbooks: the image of a point under each standard transformation, then under a composition whose order decides everything, an area factor, and a preimage found with the inverse matrix.
This is the chapter where linear algebra turns back into geometry. A 2×2 matrix stops being a table of numbers and becomes an action on the plane: it rotates, it reflects, it enlarges, it flattens. And the determinant, computed mechanically for weeks, finally takes on its meaning: it is the factor by which areas are multiplied, and its sign tells whether orientation is preserved.
The central reflex of the chapter fits in one sentence: the columns of the matrix are the images of the standard basis vectors. If you know where (1,0) and (0,1) go, you know the matrix, and conversely. The traps worked through in the solutions: the order of the product in a composition, and the inverse that reverses this order (exercises 3 and 13), and the belief that a linear transformation always preserves distances (exercise 10).
Self-checking setType your answers and check them question by question: the page tells you right or wrong before you open the solution. With an account, every answer right on the first try earns points, and your right answers stay filled in when you come back.
•Linear transformation: a map T:R2→R2 is linear if T(u+v)=T(u)+T(v) and T(ku)=kT(u) for all vectors and every scalar. Every linear transformation of the plane can be written T(v)=Av for a unique 2×2 matrix A.
•Reading the columns: the first column of A is T(1,0) and the second is T(0,1). This is the key to building a matrix from a geometric description, and to recovering the geometry from a matrix.
•Rotation through θ about the origin: Rθ=(cosθsinθ−sinθcosθ). Its determinant is 1.
•Reflection about the x-axis: (100−1). About the y-axis: (−1001). About the line y=x: (0110). All have determinant −1.
•Dilation with factor k centred at the origin: (k00k), with determinant k2. Orthogonal projection onto the x-axis: (1000), with determinant 0.
•Composition: the matrix of T2∘T1 is the PRODUCT A2A1, in that order. The transformation applied first goes on the right, because it is the one that meets the vector first in the product A2(A1v).
•Determinant and area: if a figure of area A is transformed by T with matrix A, the image has area ∣det(A)∣×A. A negative determinant signals a reversed orientation, a zero determinant a figure flattened onto a line.
Calculations: images to compute
Exercise 0.1: Computing the image of a point under a transformation: ten direct calculations
For each line, write the matrix of the transformation, always centred at the origin, then compute what is asked: the two coordinates of the image (to two decimal places when they are irrational), the area scale factor, or the preimage. Rotations are counterclockwise unless stated otherwise.
One method for all ten lines: the columns of the matrix are the images of (1,0) and (0,1), which you write down first. Then multiply the matrix by the point written as a column, row by column. For a composition, the matrix of the transformation applied FIRST goes on the RIGHT of the product; for a preimage, apply the inverse matrix; for an area factor, take the absolute value of the determinant.
a) The image of the point (−4,6) under the dilation with factor 25.
b) The image of the point (−7,4) under the reflection about the y-axis.
c) The image of the point (6,−1) under the rotation through 180∘.
d) The image of the point (5,2) under the reflection about the line y=−x.
e) The image of the point (−3,8) under the orthogonal projection onto the y-axis.
f) The image of the point (2,−5) under the vertical shear with factor 3, which sends (1,0) to (1,3) and leaves (0,1) fixed.
g) The image of the point (4,2) under the rotation through 30∘, exactly and then to two decimal places.
h) The image of the point (2,1) under the transformation that first applies the rotation through 90∘ CLOCKWISE, then the shear with matrix (10−11).
i) The factor by which the transformation with matrix (34−2−5) multiplies areas.
j) The preimage of the point (4,7) under the transformation with matrix (2513).
Show the solution
Answers
a)(250025); image (−10,15)
b)(−1001); image (7,4)
c)(−100−1); image (−6,1)
d)(0−1−10); image (−2,−5)
e)(0001); image (0,8)
f)(1301); image (2,1)
g)image (23−1,2+3)≈(2.46,3.73)
h)T=(1−110); image (3,−2)
i)det=−7; area factor 7
j)A−1=(3−5−12); preimage (5,−6)
The move that decides everything: write the matrix by its COLUMNS, that is, find where (1,0) and (0,1) go, instead of reciting it from memory. Every sign error in this list comes from a recited matrix; none survives a sketch of the two basis vectors.
a)
H=(250025), so the image is 25(−4,6)=(−10,15). Each coordinate is multiplied by the factor.
b)
(1,0) goes to (−1,0) and (0,1) stays fixed: Sy=(−1001), and the image is (7,4). Pitfall: changing the sign of y, which is the reflection about the x-axis and gives (−7,−4).
c)
R180=(−100−1), since cos180∘=−1 and sin180∘=0: the image is (−6,1), the point symmetric to (6,−1) through the origin.
d)
(1,0) goes to (0,−1) and (0,1) to (−1,0): (0−1−10). The image of (5,2) is (−2,−5): swap the coordinates AND change both signs. Pitfall: swapping without changing the signs, which gives (2,5), the image under the reflection about y=x.
e)
(1,0) goes to (0,0) and (0,1) stays fixed: Qy=(0001), so the image is (0,8). Pitfall: keeping the x-coordinate, (−3,0), which is the projection onto the x-axis.
f)
The columns are (1,3) and (0,1): (1301). The image is (2,3×2+(−5))=(2,1): the x-coordinate does not move, the y-coordinate slides by 3x. Pitfall: writing the horizontal shear (1031), which gives (−13,−5).
g)
R30=(2321−2123), so x′=4⋅23−2⋅21=23−1≈2.46 and y′=4⋅21+2⋅23=2+3≈3.73. Pitfall: putting the −sin at the bottom left, which rotates through 30∘ clockwise.
h)
The clockwise rotation through 90∘ sends (1,0) to (0,−1) and (0,1) to (1,0): R=(0−110). Applied first, it goes on the right: T=CR=(10−11)(0−110)=(1−110). The image of (2,1) is (3,−2); step by step, R(2,1)=(1,−2) then C(1,−2)=(3,−2). Pitfall: the product RC, which applies the shear first and gives (1,−1).
i)
det(34−2−5)=3×(−5)−(−2)×4=−15+8=−7. Areas are multiplied by ∣det∣=7; the minus sign only says that the orientation is reversed. Pitfall: answering −7; an area is never negative.
j)
detA=2×3−1×5=1, so A−1=(3−5−12): swap the diagonal entries, change the sign of the other two, divide by the determinant. The preimage is A−1(4,7)=(12−7,−20+14)=(5,−6), and we check A(5,−6)=(10−6,25−18)=(4,7). Pitfall: applying A instead of A−1, which gives the image (15,41) and not the preimage.
Check: for each line, redo the calculation on a sketch. A reflection keeps the distance to the origin, and so does a rotation (42+22=20 and (23−1)2+(2+3)2=20 in g); a projection flattens the point onto its axis; and a preimage, once transformed, gives back the starting point.
Tick the exercises you have done or want to review: a free account, no password, keeps your ticks and your right answers from one visit to the next, tells you which chapter to tackle next and lets you ask for the exercise you are missing. Create your space, an email is enough.
Part A: the basics (/50)
Exercise 1: Matrices of the standard geometric transformations
All the transformations in this exercise are centred at the origin. Let P(3,2) be the point whose image we follow throughout.
a) Give the matrix R of the counterclockwise rotation through 90∘, then the image of P.
b) Give the matrix S of the reflection about the line y=x, then the image of P.
c) Give the matrix H of the dilation with factor 3, then the image of P.
d) Give the matrix Q of the orthogonal projection onto the x-axis, then the image of P. Compute the four determinants and say what each one reveals.
Show the solution
Answers
a)R=(01−10); (−2,3)
b)S=(0110); (2,3)
c)H=3I; (9,6)
d)Q: (3,0); determinants 1, −1, 9, 0
a)
Apply the formula for Rθ with θ=90∘, so cos90∘=0 and sin90∘=1: R=(01−10). Image of P: R(32)=((0)(3)+(−1)(2)(1)(3)+(0)(2))=(−23). Visual check: the point was in the first quadrant and moves to the second, which is exactly what a counterclockwise quarter turn does.
b)
The reflection about y=x swaps the two coordinates, so S=(0110). Image of P: (2,3). The matrix can also be recovered from its columns: (1,0) reflects to (0,1), which gives the first column, and (0,1) reflects to (1,0), which gives the second.
c)
H=(3003), and the image of P is (9,6). A dilation centred at the origin reads off directly: each coordinate is multiplied by the factor.
d)
The projection onto the x-axis keeps the x-coordinate and sets the y-coordinate to zero, so Q=(1000), and the image of P is (3,0).
The determinants: det(R)=(0)(0)−(−1)(1)=1, det(S)=(0)(0)−(1)(1)=−1, det(H)=(3)(3)−0=9 and det(Q)=(1)(0)−0=0.
What each one says. det(R)=1: the rotation preserves areas and orientation, as expected of a rigid motion. det(S)=−1: the reflection preserves areas in absolute value but reverses orientation; a triangle traced counterclockwise is traced clockwise after the reflection. det(H)=9=32: areas are multiplied by 9, not by 3, because the enlargement acts in both directions at once. det(Q)=0: the projection flattens the whole plane onto a line, every area becomes zero, and the transformation is therefore not invertible, since there is no way back from a point of the axis to its preimage.
Exercise 2: Rotation through 60 degrees and powers of a matrix
Let R60 be the matrix of the counterclockwise rotation through 60∘ about the origin. Recall that cos60∘=21 and sin60∘=23.
The blue arrow shows the direction of the rotation.
a) Write the matrix R60.
b) Find the image of the point A(2,0), and check that the distance to the origin is preserved.
c) Compute R602 and identify the resulting transformation geometrically.
d) Without computing the product, what is R606? Justify geometrically, then give det(R606).
R60(20)=21(2)−23(0)23(2)+21(0)=(13). The image is A′(1,3), whose distance to the origin is 1+3=2, exactly that of A. A rotation preserves lengths, and this check should become a reflex.
So R602=−2123−23−21. This is Rθ with cosθ=−21 and sinθ=23, that is θ=120∘. Applying a rotation through 60∘ twice gives a rotation through 120∘: the angles add when the matrices multiply.
d)
Six rotations through 60∘ make 360∘, one full turn, which brings every point back to where it started. So R606=I=(1001), with no matrix computation at all. Consequently det(R606)=det(I)=1, consistent with (detR60)6=16=1.
Remember the mechanism: RαRβ=Rα+β. It turns the power of a matrix into a simple sum of angles, and it is exactly what De Moivre's formula does with complex numbers. The two chapters describe the same phenomenon in two languages.
Exercise 3: Composition of transformations and non-commutativity
Let S be the reflection about the x-axis, with matrix (100−1), and R the counterclockwise rotation through 90∘, with matrix (01−10).
a) Compute the matrix of R∘S, that is, the transformation that applies S first and then R. Identify the result geometrically.
b) Compute the matrix of S∘R and identify it as well.
c) Compare a) and b). What can you conclude? Illustrate with the point P(1,0).
d) Compute the determinants of R, S, R∘S and S∘R, and check that they agree with the property det(AB)=det(A)det(B).
Show the solution
Answers
a)RS: reflection about y=x
b)SR: reflection about y=−x
c)RS=SR; (0,1) versus (0,−1)
d)All the determinants equal ±1, as expected
a)
Applying S then R corresponds to the product RS, since the matrix of the transformation applied first goes on the RIGHT. RS=(01−10)(100−1)=((0)(1)+(−1)(0)(1)(1)+(0)(0)(0)(0)+(−1)(−1)(1)(0)+(0)(−1))=(0110). This is the matrix of the reflection about the line y=x.
b)
Applying R then S corresponds to the product SR=(100−1)(01−10)=((1)(0)+(0)(1)(0)(0)+(−1)(1)(1)(−1)+(0)(0)(0)(−1)+(−1)(0))=(0−1−10). This is the matrix of the reflection about the line y=−x.
c)
The two results differ: RS=SR. Composition of transformations is therefore NOT commutative, which mirrors the non-commutativity of matrix multiplication. The order in which the transformations are chained changes the geometric result.
Illustration with P(1,0). Under R∘S: the reflection leaves P unchanged since it lies on the x-axis, then the rotation sends it to (0,1). Under S∘R: the rotation sends P to (0,1), then the reflection about the x-axis sends it to (0,−1). The images are (0,1) and (0,−1), two different points, from the same starting point and the same two transformations. This is the concrete proof that order matters.
d)
det(R)=1, det(S)=−1, det(RS)=(0)(0)−(1)(1)=−1 and det(SR)=(0)(0)−(−1)(−1)=−1. The property holds both ways: det(R)det(S)=(1)(−1)=−1=det(RS), and likewise for SR.
Notice what this reveals: the determinant of the product does not depend on the order of the factors, whereas the product itself does. The determinant only sees the effect on areas and orientation; it cannot tell apart two reflections about different axes. Two transformations can have the same determinant without being the same transformation, and that is precisely the case here.
Exercise 4: Recovering the matrix, image of a figure and area factor
A linear transformation T of the plane is defined by what it does to the vectors of the standard basis: T(1,0)=(3,1) and T(0,1)=(−1,2).
a) Find the matrix A of T.
b) Find the image of the vector (4,−2).
c) The triangle with vertices (0,0), (1,0) and (0,1) has area 21. Find the area of its image under T.
d) Is the transformation T invertible? If so, find A−1 and the preimage of the point (7,7).
Show the solution
Answers
a)A=(31−12)
b)(14,0)
c)detA=7: area 3.5
d)A−1=71(2−113); (3,2)
a)
The columns of the matrix are the images of the standard basis vectors, in order. The first column is therefore T(1,0)=(3,1) and the second T(0,1)=(−1,2), which gives A=(31−12). Be careful not to write the images as ROWS: it is the most common mistake, and it produces the transpose, hence a different transformation.
b)
A(4−2)=((3)(4)+(−1)(−2)(1)(4)+(2)(−2))=(12+24−4)=(140). There is another way to check, by linearity: T(4,−2)=4T(1,0)−2T(0,1)=4(3,1)−2(−1,2)=(12+2,4−4)=(14,0). Both routes give the same result, and the second one shows directly what linear means.
c)
det(A)=(3)(2)−(−1)(1)=6+1=7. The area of the image is ∣det(A)∣ times the original area, that is 7×21=27=3.5 square units. Since the determinant is positive, the orientation of the triangle is preserved.
d)
det(A)=7=0, so T is invertible. For a 2×2 matrix, A−1=det(A)1(d−c−ba)=71(2−113).
Preimage of (7,7): A−1(77)=71((2)(7)+(1)(7)(−1)(7)+(3)(7))=71(2114)=(32). Direct check: T(3,2)=(9−2,3+4)=(7,7), as required.
A remark that holds for the whole chapter: the area of the image of the triangle is also the area of the triangle built on the two column vectors (3,1) and (−1,2), namely 21∣det(A)∣=27. The determinant is not just an abstract multiplying factor: it IS the area of the parallelogram onto which the unit square is mapped.
Exercise 5: The shear: a transformation that preserves area without being a rotation
Consider the transformation T with matrix A=(1021), called a horizontal shear. It slides points further the higher they are.
a) Find the images of the four vertices of the unit square (0,0), (1,0), (1,1), (0,1), and describe the resulting figure.
b) Compute det(A) and deduce the area of the image of the unit square.
c) Does the shear preserve lengths? Compare ∥(0,1)∥ with the norm of its image, and conclude.
d) Find all the points left fixed by T. What does this set represent geometrically?
Show the solution
Answers
a)Parallelogram (0,0), (1,0), (3,1), (2,1)
b)det=1: area 1
c)5=1: lengths not preserved
d)The x-axis
a)
T(0,0)=(0,0); T(1,0)=(1,0); T(1,1)=(1+2,1)=(3,1); T(0,1)=(2,1). The image of the unit square is the parallelogram with vertices (0,0), (1,0), (3,1), (2,1). The base on the x-axis has not moved, but the top side has slid two units to the right: the square has become a slanted parallelogram.
b)
det(A)=(1)(1)−(2)(0)=1. The area of the image is ∣det(A)∣×1=1: the shear PRESERVES area, exactly like a rotation. The base and the height of the parallelogram are unchanged (1 and 1), so its area stays 1, even though its shape has changed completely.
c)
No. We have ∥(0,1)∥=1, while its image (2,1) has norm 22+12=5≈2.24. Lengths are therefore not preserved: the shear is NOT an isometry; it is neither a rotation nor a reflection. This is the central lesson of the exercise: a determinant equal to 1 guarantees that areas are preserved, but NOT lengths. Only orthogonal matrices preserve distances, and the shear is not one of them.
d)
A point (x,y) is fixed if T(x,y)=(x,y), that is (x+2y,y)=(x,y). The second coordinate is automatically satisfied, and the first gives x+2y=x, so 2y=0, that is y=0. The fixed points are exactly those of the form (x,0): the whole x-axis. Geometrically, the shear keeps its base line still, point by point, and slides the rest of the plane parallel to it, by an amount proportional to the height.
Part B: exam level (/50)
Exercise 6: Proofs: linearity, orthogonal matrices and projections
This exercise is about the structural properties of transformations. The numerical calculations serve only as checks.
a) Let A be a 2×2 matrix and T(v)=Av. Prove that T is linear.
b) Prove that the translation f(x,y)=(x+1,y) is NOT a linear transformation. Give the quickest criterion.
c) Prove that the rotation matrix Rθ satisfies RθTRθ=I, and deduce that the rotation preserves norms.
d) A matrix P is called idempotent if P2=P. Check that the orthogonal projection onto the x-axis is idempotent, and interpret this property geometrically.
Show the solution
Answers
a)Distributivity and scalars
b)f(0,0)=(1,0)=(0,0)
c)RθTRθ=I: norms preserved
d)P2=P: projecting twice changes nothing
a)
We must establish the two properties of the definition, and both follow from the rules of matrix algebra. Additivity: T(u+v)=A(u+v)=Au+Av=T(u)+T(v), by distributivity of matrix multiplication over addition. Homogeneity: T(ku)=A(ku)=k(Au)=kT(u), because a scalar moves freely through a matrix product. Both conditions hold, so T is linear.
b)
The quickest criterion is the origin test: every linear transformation satisfies T(0)=0, since T(0)=T(0⋅0)=0⋅T(0)=0. Here, however, f(0,0)=(1,0)=(0,0). The origin moves, so f is not linear. One line is enough.
It can also be seen from additivity: f(1,0)+f(1,0)=(2,0)+(2,0)=(4,0), whereas f((1,0)+(1,0))=f(2,0)=(3,0). The two results differ. Remember the general lesson: a translation, however simple it is geometrically, is never linear. That is why the rotations and reflections of this chapter are all centred at the origin.
c)
Rθ=(cosθsinθ−sinθcosθ), so RθT=(cosθ−sinθsinθcosθ). The product RθTRθ has top-left entry cos2θ+sin2θ=1, top-right entry −cosθsinθ+sinθcosθ=0, bottom-left entry −sinθcosθ+cosθsinθ=0, and bottom-right entry sin2θ+cos2θ=1. So RθTRθ=I: the matrix is orthogonal, and Rθ−1=RθT.
Norms are preserved: ∥Rθv∥2=(Rθv)⋅(Rθv)=(Rθv)T(Rθv)=vTRθTRθv=vTIv=vTv=∥v∥2. Since norms are non-negative, ∥Rθv∥=∥v∥. The rotation therefore preserves lengths and, by taking differences of vectors, distances between points as well: it is an isometry. The fact that Rθ−1=RθT has a crystal-clear geometric reading: the inverse of a rotation through θ is the rotation through −θ, and replacing θ by −θ changes the sign of the sines only, which is exactly what transposition does here.
d)
P=(1000), so P2=(1000)(1000)=(1000)=P. The matrix is indeed idempotent.
Geometric interpretation: projecting a point onto the x-axis brings it onto that axis; projecting it a second time does not move it any more, since it is already there. Repeating the operation changes nothing, which algebra writes as P2=P. Notice the consequence: an idempotent matrix other than the identity cannot be invertible. Indeed, if P were invertible, we could multiply P2=P by P−1 and get P=I. Since P=I here, P is not invertible, as det(P)=0 confirms. The information lost in the projection, the y-coordinate, cannot be recovered.
Exercise 7: Problem: a rotation-dilation, from the unit square to the inverse
Consider the transformation T of the plane obtained by first applying the counterclockwise rotation through 45∘ about the origin, then the dilation with factor 2 centred at the origin.
Recall that cos45∘=sin45∘=22.
a) Show that the matrix of T is A=(11−11).
b) Compute det(A) and deduce the factor by which areas are multiplied.
c) Find the images of the four vertices of the unit square (0,0), (1,0), (1,1), (0,1). Check that the image is a square and compute its area in two ways.
d) Compute A2 and identify the transformation T∘T geometrically.
e) Find A−1 and the preimage of the point (3,5).
f) Check that T acts on the point (x,y) exactly as multiplying the complex number x+iy by 1+i. What are the modulus and the argument of 1+i, and what do you recover?
Show the solution
Answers
a)A=2R45=(11−11)
b)detA=2
c)Square (0,0), (1,1), (0,2), (−1,1): area 2
d)A2=2R90
e)(4,1)
f)Modulus 2, argument 45∘
a)
The matrix of the rotation through 45∘ is R=2222−2222 and that of the dilation is H=2I. The rotation is applied first, so it goes on the right: A=HR=22222−2222=2222−2222=(11−11).
Here the order would have changed nothing, because a dilation centred at the origin commutes with every matrix: it is a multiple of the identity. This is an exception, not the rule, and it must not become a habit.
b)
det(A)=(1)(1)−(−1)(1)=1+1=2. Areas are therefore multiplied by ∣det(A)∣=2. Consistency with the construction: the rotation does not change areas, and the dilation with factor 2 multiplies them by (2)2=2. The two arguments agree.
c)
T(0,0)=(0,0), T(1,0)=(1,1), T(1,1)=(1−1,1+1)=(0,2) and T(0,1)=(−1,1). The image of the unit square is therefore the quadrilateral with vertices (0,0), (1,1), (0,2) and (−1,1).
It is indeed a square: the four sides have length 12+12=2, and two consecutive sides from the origin, (1,1) and (−1,1), have dot product (1)(−1)+(1)(1)=0, so they are perpendicular. The unit square, rotated through 45∘ and enlarged by a factor 2, is still a square.
Area, first method: side 2, so area =(2)2=2 square units. Second method: ∣det(A)∣×1=2 square units, since the unit square has area 1. The two values agree.
d)
A2=(11−11)(11−11)=(1−11+1−1−1−1+1)=(02−20). Factor: A2=2(01−10), that is, the dilation with factor 2 composed with the rotation through 90∘.
This is exactly what we expected: applying a rotation through 45∘ twice gives 90∘, and applying a dilation with factor 2 twice gives a factor (2)2=2. Angles add, factors multiply. Check with the determinant: det(A2)=(detA)2=4, and directly (0)(0)−(−2)(2)=4.
e)
For a 2×2 matrix: A−1=det(A)1(1−111)=21(1−111). Preimage of (3,5): A−1(35)=21(3+5−3+5)=21(82)=(41). Check: T(4,1)=(4−1,4+1)=(3,5), as required.
Geometrically, A−1 is the rotation through −45∘ followed by the dilation with factor 21, which exactly undoes T.
f)
Compute the complex product: (x+iy)(1+i)=x+ix+iy+i2y=x+ix+iy−y=(x−y)+i(x+y). This complex number has real part x−y and imaginary part x+y. Now T(x,y)=A(xy)=(x−yx+y). The two results are identical: multiplying by 1+i in the complex plane is applying T in the real plane.
The modulus of 1+i is 12+12=2 and its argument is 45∘, since the point (1,1) lies on the bisector of the first quadrant. We recover exactly the two parameters used to build T: the modulus gives the dilation factor, the argument gives the angle of the rotation.
This is the bridge between the last two chapters of the course. Multiplying by a complex number with modulus r and argument θ means composing a rotation through θ with a dilation with factor r, and De Moivre's formula (reiθ)n=rneinθ is nothing but the complex version of the computation of An carried out in d). When an exam problem asks for a high power of a rotation-dilation matrix, going through complex numbers is often the shortest route.
Exercise 8: Reflections about a line and the composition of two reflections
The reflection about the line through the origin that makes an angle θ with the x-axis has matrix M(θ)=(cos2θsin2θsin2θ−cos2θ).
a) Using this formula, recover the matrix of the reflection about the x-axis (θ=0) and about the line y=x (θ=45∘).
b) Show that every reflection matrix satisfies det(M)=−1 and M2=I. What does the second equality mean geometrically?
c) Let S0 be the reflection about the x-axis and S45 the reflection about y=x. Compute the matrix of S45∘S0 and identify the resulting transformation.
d) State and justify the general rule: the composition of two reflections whose axes make an angle α is a rotation through 2α. Check that the determinants agree, then give the angle of the resulting rotation when the two axes make an angle of 30∘.
Show the solution
Answers
a)(100−1) and (0110)
b)det=−1, M2=I: an involution
c)Rotation through 90∘
d)Rotation through 2α; 60∘ for axes 30∘ apart
a)
For θ=0: cos0=1 and sin0=0, so M(0)=(100−1), the reflection about the x-axis. For θ=45∘: 2θ=90∘, cos90∘=0 and sin90∘=1, so M(45∘)=(0110), the reflection about y=x, which swaps the two coordinates. The two familiar matrices are indeed special cases of the general formula.
b)
det(M)=(cos2θ)(−cos2θ)−(sin2θ)(sin2θ)=−cos22θ−sin22θ=−1, using the Pythagorean identity. For the square: the top-left entry of M2 is cos22θ+sin22θ=1, the top-right entry is cos2θsin2θ−sin2θcos2θ=0, and in the same way M2=I. Geometrically, M2=I means that applying the same reflection twice brings every point back to its place: a reflection is its own inverse, it is an involution. The determinant −1 confirms that each reflection reverses orientation.
c)
Applying S0 then S45 corresponds to the product S45S0=(0110)(100−1)=(01−10). This is the matrix of the counterclockwise rotation through 90∘. Two reflections have composed into a rotation.
d)
Rule: the composition of two reflections about axes through the origin that make an angle α with each other is the rotation through 2α (in the direction that goes from the first axis to the second). Justification with matrices: M(β)M(α) is computed with the angle-sum formulas and gives exactly R2(β−α). Here the axes are the x-axis (θ=0) and the line y=x (θ=45∘), so the angle between them is 45∘, and the composition is the rotation through 2×45∘=90∘, as the computation in c) confirms. Consistency of the determinants: each reflection has determinant −1, so their product has determinant (−1)(−1)=+1, which is indeed that of a rotation. The orientation, reversed twice, is finally restored. For two axes 30∘ apart, the composition is the rotation through 2×30∘=60∘.
Exercise 9: Recovering the matrix from its action on two arbitrary vectors
A linear transformation T of the plane is known to satisfy T(1,1)=(3,1) and T(1,−1)=(1,3). The two starting vectors are NOT those of the standard basis, so the matrix has to be found some other way than by simply reading off the columns.
The starting vectors are dashed, their images are solid.
a) Setting A=(acbd), translate the two conditions into equations and find A.
b) Deduce the images T(1,0) and T(0,1) of the standard basis vectors.
c) Compute det(A), say whether T is invertible and by what factor it multiplies areas.
d) Find A−1, then the preimage of the point (4,0).
Show the solution
Answers
a)A=(221−1)
b)T(1,0)=(2,2), T(0,1)=(1,−1)
c)det=−4: invertible, areas ×4
d)(1,2)
a)
The condition T(1,1)=(3,1) gives (a+bc+d)=(31), that is a+b=3 and c+d=1. The condition T(1,−1)=(1,3) gives (a−bc−d)=(13), that is a−b=1 and c−d=3. Adding and subtracting: a=2, b=1, then c=2, d=−1. So A=(221−1). Check: A(1,1)=(3,1) and A(1,−1)=(1,3) ✓.
b)
The columns of A are precisely the images of the standard basis vectors: T(1,0)=(2,2) (first column) and T(0,1)=(1,−1) (second column). Knowing the action on two independent vectors is enough to know the action on the whole basis, hence on the whole plane: a direct consequence of linearity.
c)
det(A)=(2)(−1)−(1)(2)=−2−2=−4. It is non-zero, so T is invertible. Areas are multiplied by ∣det(A)∣=4, and the negative sign indicates that T reverses the orientation of the plane.
d)
A−1=det(A)1(d−c−ba)=−41(−1−2−12)=(412141−21). Preimage of (4,0): A−1(40)=(41(4)21(4))=(12). Check: T(1,2)=(2+2,2−2)=(4,0), as required.
Exercise 10: Proofs: composition, image of a line and midpoints preserved
These proofs use nothing but the definition of linearity. They explain why a linear transformation preserves the geometric structure of the plane.
a) Let T1 and T2 be two linear transformations with matrices A1 and A2. Prove that T2∘T1 is linear and that its matrix is the product A2A1.
b) Prove that the image under a linear transformation T of a line {P+tu:t∈R} is a line (or a point if T(u)=0).
c) Prove that T preserves midpoints: T(2P+Q)=2T(P)+T(Q). What can you deduce about the image of a parallelogram?
d) True or false: every linear transformation preserves distances. State the correct criterion and illustrate it by comparing a rotation with the shear (1011).
Show the solution
Answers
a)Matrix A2A1
b)T(P)+tT(u): a line or a point
c)Midpoints preserved: parallelograms preserved
d)False: ATA=I is needed; 65=5
a)
Linearity of the composition: for all u,v and every scalar k, (T2∘T1)(u+v)=T2(T1(u+v))=T2(T1(u)+T1(v))=T2(T1u)+T2(T1v), using the linearity of T1 and then that of T2; likewise (T2∘T1)(ku)=k(T2∘T1)(u). The composition is therefore linear. Its matrix: (T2∘T1)(v)=T2(A1v)=A2(A1v)=(A2A1)v, by associativity of matrix multiplication. The matrix of the composition is therefore A2A1, with the transformation applied first on the right.
b)
Take a point of the line, P+tu. Its image is T(P+tu)=T(P)+tT(u), by linearity. As t runs through R, this point describes the set {T(P)+tT(u):t∈R}. If T(u)=0, it is the line through T(P) with direction vector T(u). If T(u)=0, all the points have the same image T(P): the line is collapsed onto a point. In every case, the image of a line is a line or a point, never a curve: a linear transformation does not bend lines.
c)
T(2P+Q)=21T(P+Q)=21(T(P)+T(Q))=2T(P)+T(Q), by taking the scalar 21 out and then using additivity. The midpoint of segment PQ is therefore mapped to the midpoint of the segment from T(P) to T(Q). Consequence: since the diagonals of a parallelogram bisect each other, this property is preserved, so the image of a parallelogram is a parallelogram (possibly flattened if the transformation is singular). More generally, T preserves parallelism and ratios along a line.
d)
FALSE in general. The correct criterion: a linear transformation preserves distances if and only if its matrix is ORTHOGONAL, that is, satisfies ATA=I (rotations and reflections). A rotation through θ satisfies this criterion and therefore preserves lengths; for example ∥(3,4)∥=5 is preserved. The shear (1011), on the other hand, does NOT preserve distances even though its determinant is 1: the image of (3,4) is (7,4), with norm 65=5. A determinant equal to 1 and an orthogonal matrix are two different conditions: the first preserves areas, only the second preserves lengths.
Part C: the classics (/50)
Exercise 11: Three transformations of space
In space, consider the rotation R through 90∘ about the z-axis, with matrix 010−100001, the orthogonal projection Q onto the plane z=0, with matrix 100010000, and the reflection S about the plane x=y, with matrix 010100001.
a) Compute the images of the point P(1,2,3) under R, Q and S.
b) Compute the three determinants and interpret them in terms of volume.
c) Compute the matrix of R∘S and identify the transformation.
d) What is the smallest integer k≥1 such that Rk=I?
e) Which points are left fixed by R?
Show the solution
Answers
a)(−2,1,3), (1,2,0), (2,1,3)
b)1, 0, −1
c)Reflection about the plane x=0
d)k=4
e)The z-axis
a)
R(P)=(−2,1,3): the quarter turn acts in the horizontal plane and leaves the z-coordinate alone. Q(P)=(1,2,0): the z-coordinate is set to zero. S(P)=(2,1,3): the first two coordinates are swapped.
b)
detR=1: volumes and orientation preserved. detQ=0: space is flattened onto a plane, every volume becomes zero and Q is not invertible. detS=−1: volumes preserved, orientation reversed, as for a reflection in the plane.
c)
RS=010−100001010100001=−100010001: this is the reflection about the plane x=0, which changes the sign of the x-coordinate. Its determinant, −1, is indeed the product 1×(−1).
d)
Each application of R turns through 90∘ about the z-axis: it takes four quarter turns to come back to the start, so k=4. Indeed R2 is the half turn, with matrix diag(−1,−1,1), which is not I.
e)
R(x,y,z)=(−y,x,z)=(x,y,z) forces x=−y and y=x, so x=y=0 with z arbitrary: the fixed points form the z-axis, the axis of the rotation.
The thread: in dimension 3, the columns of the matrix are still the images of the basis vectors, and the determinant measures the effect on volumes.
Exercise 12: The image of a circle: an ellipse
Consider the transformation T with matrix A=(3002) and the unit circle, made up of the points (cost,sint).
a) Find the image of the point (cost,sint) and the equation of the image curve.
b) What are the semi-axes of this curve?
c) The area of an ellipse with semi-axes a and b is πab. Compute the area of the image, to two decimal places, and compare it with ∣detA∣ times the area of the unit disk.
d) Now apply the shear (1011) to the unit disk. What is the area of the image, to two decimal places?
e) Is the image of a circle centred at the origin under a rotation a circle?
Show the solution
Answers
a)9x2+4y2=1
b)3 and 2
c)6π≈18.85=∣detA∣π
d)π≈3.14
e)Yes
a)
T(cost,sint)=(3cost,2sint). With X=3cost and Y=2sint: 9X2+4Y2=cos2t+sin2t=1. The image curve is the ellipse 9x2+4y2=1.
b)
The semi-axes are 3, along the x-axis, and 2, along the y-axis: they are the diagonal entries, which stretch each direction.
c)
π×3×2=6π≈18.85. The unit disk has area π, and ∣detA∣=6: we recover 6π. The area factor given by the determinant holds for every figure, not only for polygons.
d)
The shear has determinant 1: the image, a tilted ellipse, has the same area as the disk, π≈3.14, even though its shape is very different.
e)
Yes: a rotation preserves distances to the origin, so every point of the circle stays at the same distance. More generally, only the transformations with an orthogonal matrix map the unit circle onto itself.
The thread: a linear transformation maps a circle onto an ellipse, whose area is multiplied by the absolute value of the determinant.
Exercise 13: Undoing a composite transformation
Let C be the shear with matrix (1011) and R the counterclockwise rotation through 90∘, with matrix (01−10). The transformation T applies C first, then R.
a) Compute the matrix of T.
b) Compute the image of the point (2,3) under T.
c) Compute detT and the matrix of T−1.
d) Compute C−1R−1 and R−1C−1. Which of the two products equals T−1? Explain.
e) Apply T−1 to the point obtained in b).
Show the solution
Answers
a)T=(01−11)
b)(−3,5)
c)detT=1; T−1=(1−110)
d)T−1=C−1R−1
e)(2,3)
a)
The first transformation goes on the right: T=RC=(01−10)(1011)=(01−11).
b)
T(23)=(−32+3)=(−35). In two steps: C(2,3)=(5,3), then R(5,3)=(−3,5).
c)
detT=0×1−(−1)×1=1, and T−1=(1−110).
d)
C−1=(10−11) and R−1=(0−110). C−1R−1=(1−110)=T−1, whereas R−1C−1=(0−111) is different. To undo “C, then R”, first undo R, the last one applied, then C: T−1=(RC)−1=C−1R−1, just as you take off your shoes before your socks.
e)
T−1(−35)=(−3+53)=(23): we get back the starting point.
The thread: the inverse of a composition undoes the transformations in the reverse of the order in which they were done.
Exercise 14: Problem: a cast shadow, an oblique projection
The Sun's rays arrive in the direction d=(1,1,−2) on horizontal ground, the plane z=0. The shadow of a point M(x,y,z) is the point where the line through M with direction d meets the ground.
The orange arrow gives the direction of the Sun's rays.
a) A vertical pole joins the origin to the point (0,0,4). Find the shadow of its top and the length of the shadow, to two decimal places.
b) Show that the shadow of M(x,y,z) is (x+2z,y+2z,0) and write the matrix Ω of this transformation.
c) Check that Ω2=Ω and interpret.
d) Find the kernel of Ω and its determinant.
e) Is this transformation the orthogonal projection onto the ground? Compare with the shadow of the same pole at noon under a vertical Sun.
Show the solution
Answers
a)(2,2,0); length 22≈2.83
b)Ω=10001021210
c)Ω2=Ω: a projection
d)Kernel spanned by d; detΩ=0
e)No: an oblique projection
a)
The point (t,t,4−2t) reaches the ground when t=2: the shadow of the top is (2,2,0), and the shadow of the pole is the segment from the origin to that point, of length 22≈2.83.
b)
M+td=(x+t,y+t,z−2t) touches the ground when t=2z, hence the shadow (x+2z,y+2z,0). Each coordinate is a linear combination of x, y, z: Ω=10001021210.
c)
The first row of Ω2 is (1,0,21+0), the second (0,1,21), and the third is zero: Ω2=Ω. The shadow of a shadow is itself: a point already on the ground no longer moves. This is a projection.
d)
Ω(x,y,z)=0 forces x=−2z and y=−2z: the kernel is the line spanned by (−1,−1,2), that is, by d. Vectors parallel to the rays have a zero shadow. detΩ=0, since the third row is zero.
e)
No: the orthogonal projection onto the ground has matrix diag(1,1,0) and sends (0,0,4) to the origin, a shadow of length zero, that of a Sun exactly overhead. Here the rays are oblique, and Ω is an OBLIQUE projection: same image, the ground, but a tilted kernel, the direction of the rays.
The thread: a projection is characterized by P2=P; it is determined by its image and by its kernel, the direction along which it projects.
Exercise 15: Problem: recognizing a transformation matrix
Consider the matrices M1=(0.60.8−0.80.6), M2=(0.80.60.6−0.8), M3=(22−22) and M4=(1031). Recall that a matrix M is orthogonal if MTM=I.
a) Among M1, M2 and M4, which are orthogonal?
b) Show that M1 is a rotation and give its angle, to the hundredth of a degree.
c) Compute detM2. Show that M2 is a reflection and give the angle between its axis and the x-axis, to the hundredth of a degree.
d) Write M3 as a multiple of a rotation matrix. Give the factor, to two decimal places, and the angle.
e) Compute detM4. Which transformation is it?
Show the solution
Answers
a)M1 and M2 are orthogonal, M4 is not
b)Rotation through 53.13∘
c)det=−1: a reflection, axis at 18.43∘
d)Factor 22≈2.83, angle 45∘
e)detM4=1: a shear
a)
M1TM1: diagonal 0.36+0.64=1, off-diagonal −0.48+0.48=0, so M1 is orthogonal. Likewise M2TM2=I. For M4, the second column (3,1) has norm 10=1: M4 is not orthogonal.
b)
M1 is orthogonal with determinant 0.36+0.64=1: it is a rotation, of the form (cosθsinθ−sinθcosθ) with cosθ=0.6 and sinθ=0.8, so θ≈53.13∘.
c)
detM2=−0.64−0.36=−1: orthogonal with determinant −1, it is a reflection, of the form (cos2θsin2θsin2θ−cos2θ). cos2θ=0.8 and sin2θ=0.6 give 2θ≈36.87∘, and the axis makes an angle θ≈18.43∘ with the x-axis.
d)
M3=22(2222−2222): the rotation through 45∘ followed by the dilation with factor 22≈2.83. Check: detM3=8=(22)2.
e)
detM4=1: areas are preserved, but the matrix is not orthogonal, so lengths are not. It is the horizontal shear that slides each point by 3 times its height.
The thread: orthogonal with determinant 1 is a rotation; with determinant −1, a reflection; a multiple of a rotation is a rotation-dilation; a determinant of 1 without orthogonality preserves areas only.
Something missing from this set?A type of exercise your teacher gives, a problem you are stuck on, a mistake you spotted: tell me, I read every request.
Sending goes through your free space: that is how I can answer you and tell you when the exercise is added. An email is enough, no password. Create your space.
Rather not create an account? Write to me directly.
Get in touch for a first session. We work on 201-SN4-RE at the real level of CEGEP assessments, from rotation matrices to proofs about composite transformations.