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×33\times 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×22\times 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)(1, 0) and (0,1)(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).

16 corrected exercises • 160 points • 225 minutes

This chapter is part of 201-SN4-RE, every chapter with its set and sheet Before you start Revision sheet: the traps and the method for this chapter

Self-checking set Type 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.

Course recap

  • • Linear transformation: a map T:R2→R2T:\mathbb{R}^{2}\to\mathbb{R}^{2} is linear if T(u⃗+v⃗)=T(u⃗)+T(v⃗)T(\vec{u}+\vec{v})=T(\vec{u})+T(\vec{v}) and T(ku⃗)=k T(u⃗)T(k\vec{u})=k\,T(\vec{u}) for all vectors and every scalar. Every linear transformation of the plane can be written T(v⃗)=Av⃗T(\vec{v})=A\vec{v} for a unique 2×22\times 2 matrix AA.
  • • Reading the columns: the first column of AA is T(1,0)T(1, 0) and the second is T(0,1)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 θ\theta about the origin: Rθ=(cos⁡θ−sin⁡θsin⁡θcos⁡θ)R_{\theta}=\begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}. Its determinant is 11.
  • • Reflection about the xx-axis: (100−1)\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}. About the yy-axis: (−1001)\begin{pmatrix} -1 & 0 \\ 0 & 1 \end{pmatrix}. About the line y=xy=x: (0110)\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}. All have determinant −1-1.
  • • Dilation with factor kk centred at the origin: (k00k)\begin{pmatrix} k & 0 \\ 0 & k \end{pmatrix}, with determinant k2k^{2}. Orthogonal projection onto the xx-axis: (1000)\begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}, with determinant 00.
  • • Composition: the matrix of T2∘T1T_{2}\circ T_{1} is the PRODUCT A2A1A_{2}A_{1}, 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⃗)A_{2}(A_{1}\vec{v}).
  • • Determinant and area: if a figure of area A\mathcal{A} is transformed by TT with matrix AA, the image has area ∣det⁡(A)∣×A|\det(A)|\times\mathcal{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)(1, 0) and (0,1)(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)(-4, 6) under the dilation with factor 52\frac{5}{2}.
  • b) The image of the point (−7,4)(-7, 4) under the reflection about the yy-axis.
  • c) The image of the point (6,−1)(6, -1) under the rotation through 180∘180^{\circ}.
  • d) The image of the point (5,2)(5, 2) under the reflection about the line y=−xy=-x.
  • e) The image of the point (−3,8)(-3, 8) under the orthogonal projection onto the yy-axis.
  • f) The image of the point (2,−5)(2, -5) under the vertical shear with factor 33, which sends (1,0)(1, 0) to (1,3)(1, 3) and leaves (0,1)(0, 1) fixed.
  • g) The image of the point (4,2)(4, 2) under the rotation through 30∘30^{\circ}, exactly and then to two decimal places.
  • h) The image of the point (2,1)(2, 1) under the transformation that first applies the rotation through 90∘90^{\circ} CLOCKWISE, then the shear with matrix (1−101)\begin{pmatrix} 1 & -1 \\ 0 & 1 \end{pmatrix}.
  • i) The factor by which the transformation with matrix (3−24−5)\begin{pmatrix} 3 & -2 \\ 4 & -5 \end{pmatrix} multiplies areas.
  • j) The preimage of the point (4,7)(4, 7) under the transformation with matrix (2153)\begin{pmatrix} 2 & 1 \\ 5 & 3 \end{pmatrix}.

Type your answers, the page tells you right or wrong 0/19

a)
b)
c)
d)
e)
f)
g)
h)
i)
j)
Show the solution

Answers

  • a) (520052)\begin{pmatrix} \frac{5}{2} & 0 \\ 0 & \frac{5}{2} \end{pmatrix}; image (−10,15)(-10, 15)
  • b) (−1001)\begin{pmatrix} -1 & 0 \\ 0 & 1 \end{pmatrix}; image (7,4)(7, 4)
  • c) (−100−1)\begin{pmatrix} -1 & 0 \\ 0 & -1 \end{pmatrix}; image (−6,1)(-6, 1)
  • d) (0−1−10)\begin{pmatrix} 0 & -1 \\ -1 & 0 \end{pmatrix}; image (−2,−5)(-2, -5)
  • e) (0001)\begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix}; image (0,8)(0, 8)
  • f) (1031)\begin{pmatrix} 1 & 0 \\ 3 & 1 \end{pmatrix}; image (2,1)(2, 1)
  • g) image (23−1,2+3)≈(2.46,3.73)(2\sqrt{3}-1, 2+\sqrt{3})\approx(2.46, 3.73)
  • h) T=(11−10)T=\begin{pmatrix} 1 & 1 \\ -1 & 0 \end{pmatrix}; image (3,−2)(3, -2)
  • i) det⁡=−7\det=-7; area factor 77
  • j) A−1=(3−1−52)A^{-1}=\begin{pmatrix} 3 & -1 \\ -5 & 2 \end{pmatrix}; preimage (5,−6)(5, -6)

The move that decides everything: write the matrix by its COLUMNS, that is, find where (1,0)(1, 0) and (0,1)(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=(520052)H=\begin{pmatrix} \frac{5}{2} & 0 \\ 0 & \frac{5}{2} \end{pmatrix}, so the image is 52(−4,6)=(−10,15)\frac{5}{2}(-4, 6)=(-10, 15). Each coordinate is multiplied by the factor.

b)

(1,0)(1, 0) goes to (−1,0)(-1, 0) and (0,1)(0, 1) stays fixed: Sy=(−1001)S_{y}=\begin{pmatrix} -1 & 0 \\ 0 & 1 \end{pmatrix}, and the image is (7,4)(7, 4). Pitfall: changing the sign of yy, which is the reflection about the xx-axis and gives (−7,−4)(-7, -4).

c)

R180=(−100−1)R_{180}=\begin{pmatrix} -1 & 0 \\ 0 & -1 \end{pmatrix}, since cos⁡180∘=−1\cos 180^{\circ}=-1 and sin⁡180∘=0\sin 180^{\circ}=0: the image is (−6,1)(-6, 1), the point symmetric to (6,−1)(6, -1) through the origin.

d)

(1,0)(1, 0) goes to (0,−1)(0, -1) and (0,1)(0, 1) to (−1,0)(-1, 0): (0−1−10)\begin{pmatrix} 0 & -1 \\ -1 & 0 \end{pmatrix}. The image of (5,2)(5, 2) is (−2,−5)(-2, -5): swap the coordinates AND change both signs. Pitfall: swapping without changing the signs, which gives (2,5)(2, 5), the image under the reflection about y=xy=x.

e)

(1,0)(1, 0) goes to (0,0)(0, 0) and (0,1)(0, 1) stays fixed: Qy=(0001)Q_{y}=\begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix}, so the image is (0,8)(0, 8). Pitfall: keeping the xx-coordinate, (−3,0)(-3, 0), which is the projection onto the xx-axis.

f)

The columns are (1,3)(1, 3) and (0,1)(0, 1): (1031)\begin{pmatrix} 1 & 0 \\ 3 & 1 \end{pmatrix}. The image is (2,3×2+(−5))=(2,1)(2, 3\times 2+(-5))=(2, 1): the xx-coordinate does not move, the yy-coordinate slides by 3x3x. Pitfall: writing the horizontal shear (1301)\begin{pmatrix} 1 & 3 \\ 0 & 1 \end{pmatrix}, which gives (−13,−5)(-13, -5).

g)

R30=(32−121232)R_{30}=\begin{pmatrix} \frac{\sqrt{3}}{2} & -\frac{1}{2} \\ \frac{1}{2} & \frac{\sqrt{3}}{2} \end{pmatrix}, so x′=4⋅32−2⋅12=23−1≈2.46x'=4\cdot\frac{\sqrt{3}}{2}-2\cdot\frac{1}{2}=2\sqrt{3}-1\approx 2.46 and y′=4⋅12+2⋅32=2+3≈3.73y'=4\cdot\frac{1}{2}+2\cdot\frac{\sqrt{3}}{2}=2+\sqrt{3}\approx 3.73. Pitfall: putting the −sin⁡-\sin at the bottom left, which rotates through 30∘30^{\circ} clockwise.

h)

The clockwise rotation through 90∘90^{\circ} sends (1,0)(1, 0) to (0,−1)(0, -1) and (0,1)(0, 1) to (1,0)(1, 0): R=(01−10)R=\begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix}. Applied first, it goes on the right: T=CR=(1−101)(01−10)=(11−10)T=CR=\begin{pmatrix} 1 & -1 \\ 0 & 1 \end{pmatrix}\begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix}=\begin{pmatrix} 1 & 1 \\ -1 & 0 \end{pmatrix}. The image of (2,1)(2, 1) is (3,−2)(3, -2); step by step, R(2,1)=(1,−2)R(2, 1)=(1, -2) then C(1,−2)=(3,−2)C(1, -2)=(3, -2). Pitfall: the product RCRC, which applies the shear first and gives (1,−1)(1, -1).

i)

det⁡(3−24−5)=3×(−5)−(−2)×4=−15+8=−7\det\begin{pmatrix} 3 & -2 \\ 4 & -5 \end{pmatrix}=3\times(-5)-(-2)\times 4=-15+8=-7. Areas are multiplied by ∣det⁡∣=7|\det|=7; the minus sign only says that the orientation is reversed. Pitfall: answering −7-7; an area is never negative.

j)

det⁡A=2×3−1×5=1\det A=2\times 3-1\times 5=1, so A−1=(3−1−52)A^{-1}=\begin{pmatrix} 3 & -1 \\ -5 & 2 \end{pmatrix}: 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)A^{-1}(4, 7)=(12-7, -20+14)=(5, -6), and we check A(5,−6)=(10−6,25−18)=(4,7)A(5, -6)=(10-6, 25-18)=(4, 7). Pitfall: applying AA instead of A−1A^{-1}, which gives the image (15,41)(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\sqrt{4^{2}+2^{2}}=\sqrt{20} and (23−1)2+(2+3)2=20(2\sqrt{3}-1)^{2}+(2+\sqrt{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)P(3, 2) be the point whose image we follow throughout.

-3-2-112345678910-11234567P
  • a) Give the matrix RR of the counterclockwise rotation through 90∘90^{\circ}, then the image of PP.
  • b) Give the matrix SS of the reflection about the line y=xy=x, then the image of PP.
  • c) Give the matrix HH of the dilation with factor 33, then the image of PP.
  • d) Give the matrix QQ of the orthogonal projection onto the xx-axis, then the image of PP. Compute the four determinants and say what each one reveals.

Type your answers, the page tells you right or wrong 0/10

a)
b)
c)
d)
Show the solution

Answers

  • a) R=(0−110)R=\begin{pmatrix}0&-1\\1&0\end{pmatrix}; (−2,3)(-2, 3)
  • b) S=(0110)S=\begin{pmatrix}0&1\\1&0\end{pmatrix}; (2,3)(2, 3)
  • c) H=3IH=3I; (9,6)(9, 6)
  • d) QQ: (3,0)(3, 0); determinants 11, −1-1, 99, 00
a)

Apply the formula for RθR_{\theta} with θ=90∘\theta=90^{\circ}, so cos⁡90∘=0\cos 90^{\circ}=0 and sin⁡90∘=1\sin 90^{\circ}=1: R=(0−110)R=\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}. Image of PP: R(32)=((0)(3)+(−1)(2)(1)(3)+(0)(2))=(−23)R\begin{pmatrix} 3 \\ 2 \end{pmatrix}=\begin{pmatrix} (0)(3)+(-1)(2) \\ (1)(3)+(0)(2) \end{pmatrix}=\begin{pmatrix} -2 \\ 3 \end{pmatrix}. 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=xy=x swaps the two coordinates, so S=(0110)S=\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}. Image of PP: (2,3)(2, 3). The matrix can also be recovered from its columns: (1,0)(1, 0) reflects to (0,1)(0, 1), which gives the first column, and (0,1)(0, 1) reflects to (1,0)(1, 0), which gives the second.

c)

H=(3003)H=\begin{pmatrix} 3 & 0 \\ 0 & 3 \end{pmatrix}, and the image of PP is (9,6)(9, 6). A dilation centred at the origin reads off directly: each coordinate is multiplied by the factor.

d)

The projection onto the xx-axis keeps the xx-coordinate and sets the yy-coordinate to zero, so Q=(1000)Q=\begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}, and the image of PP is (3,0)(3, 0).

The determinants: det⁡(R)=(0)(0)−(−1)(1)=1\det(R)=(0)(0)-(-1)(1)=1, det⁡(S)=(0)(0)−(1)(1)=−1\det(S)=(0)(0)-(1)(1)=-1, det⁡(H)=(3)(3)−0=9\det(H)=(3)(3)-0=9 and det⁡(Q)=(1)(0)−0=0\det(Q)=(1)(0)-0=0.

What each one says. det⁡(R)=1\det(R)=1: the rotation preserves areas and orientation, as expected of a rigid motion. det⁡(S)=−1\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\det(H)=9=3^{2}: areas are multiplied by 99, not by 33, because the enlargement acts in both directions at once. det⁡(Q)=0\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.

-3-2-112345678910-11234567PR(P)S(P)H(P)Q(P)

Exercise 2: Rotation through 60 degrees and powers of a matrix

Let R60R_{60} be the matrix of the counterclockwise rotation through 60∘60^{\circ} about the origin. Recall that cos⁡60∘=12\cos 60^{\circ}=\dfrac{1}{2} and sin⁡60∘=32\sin 60^{\circ}=\dfrac{\sqrt{3}}{2}.

The blue arrow shows the direction of the rotation.

-3-2-1123-1123A60°
  • a) Write the matrix R60R_{60}.
  • b) Find the image of the point A(2,0)A(2, 0), and check that the distance to the origin is preserved.
  • c) Compute R602R_{60}^{2} and identify the resulting transformation geometrically.
  • d) Without computing the product, what is R606R_{60}^{6}? Justify geometrically, then give det⁡(R606)\det(R_{60}^{6}).

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
Show the solution

Answers

  • a) R60=(12−323212)R_{60}=\begin{pmatrix}\frac12&-\frac{\sqrt3}{2}\\\frac{\sqrt3}{2}&\frac12\end{pmatrix}
  • b) (1,3)(1, \sqrt3), distance 2
  • c) Rotation through 120∘120^\circ
  • d) R606=IR_{60}^6=I, determinant 1
a)

R60=(cos⁡60∘−sin⁡60∘sin⁡60∘cos⁡60∘)=(12−323212)R_{60}=\begin{pmatrix} \cos 60^{\circ} & -\sin 60^{\circ} \\ \sin 60^{\circ} & \cos 60^{\circ} \end{pmatrix}=\begin{pmatrix} \dfrac{1}{2} & -\dfrac{\sqrt{3}}{2} \\[4pt] \dfrac{\sqrt{3}}{2} & \dfrac{1}{2} \end{pmatrix}.

b)

R60(20)=(12(2)−32(0)32(2)+12(0))=(13)R_{60}\begin{pmatrix} 2 \\ 0 \end{pmatrix}=\begin{pmatrix} \dfrac{1}{2}(2)-\dfrac{\sqrt{3}}{2}(0) \\[4pt] \dfrac{\sqrt{3}}{2}(2)+\dfrac{1}{2}(0) \end{pmatrix}=\begin{pmatrix} 1 \\ \sqrt{3} \end{pmatrix}. The image is A′(1,3)A'(1, \sqrt{3}), whose distance to the origin is 1+3=2\sqrt{1+3}=2, exactly that of AA. A rotation preserves lengths, and this check should become a reflex.

c)

R602=(12−323212)(12−323212)R_{60}^{2}=\begin{pmatrix} \dfrac{1}{2} & -\dfrac{\sqrt{3}}{2} \\[4pt] \dfrac{\sqrt{3}}{2} & \dfrac{1}{2} \end{pmatrix}\begin{pmatrix} \dfrac{1}{2} & -\dfrac{\sqrt{3}}{2} \\[4pt] \dfrac{\sqrt{3}}{2} & \dfrac{1}{2} \end{pmatrix}. Top-left entry: 14−34=−12\dfrac{1}{4}-\dfrac{3}{4}=-\dfrac{1}{2}. Top right: −34−34=−32-\dfrac{\sqrt{3}}{4}-\dfrac{\sqrt{3}}{4}=-\dfrac{\sqrt{3}}{2}. Bottom left: 34+34=32\dfrac{\sqrt{3}}{4}+\dfrac{\sqrt{3}}{4}=\dfrac{\sqrt{3}}{2}. Bottom right: −34+14=−12-\dfrac{3}{4}+\dfrac{1}{4}=-\dfrac{1}{2}.

So R602=(−12−3232−12)R_{60}^{2}=\begin{pmatrix} -\dfrac{1}{2} & -\dfrac{\sqrt{3}}{2} \\[4pt] \dfrac{\sqrt{3}}{2} & -\dfrac{1}{2} \end{pmatrix}. This is RθR_{\theta} with cos⁡θ=−12\cos\theta=-\dfrac{1}{2} and sin⁡θ=32\sin\theta=\dfrac{\sqrt{3}}{2}, that is θ=120∘\theta=120^{\circ}. Applying a rotation through 60∘60^{\circ} twice gives a rotation through 120∘120^{\circ}: the angles add when the matrices multiply.

d)

Six rotations through 60∘60^{\circ} make 360∘360^{\circ}, one full turn, which brings every point back to where it started. So R606=I=(1001)R_{60}^{6}=I=\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}, with no matrix computation at all. Consequently det⁡(R606)=det⁡(I)=1\det(R_{60}^{6})=\det(I)=1, consistent with (det⁡R60)6=16=1\big(\det R_{60}\big)^{6}=1^{6}=1.

Remember the mechanism: RαRβ=Rα+βR_{\alpha}R_{\beta}=R_{\alpha+\beta}. 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 SS be the reflection about the xx-axis, with matrix (100−1)\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, and RR the counterclockwise rotation through 90∘90^{\circ}, with matrix (0−110)\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}.

  • a) Compute the matrix of R∘SR\circ S, that is, the transformation that applies SS first and then RR. Identify the result geometrically.
  • b) Compute the matrix of S∘RS\circ R and identify it as well.
  • c) Compare a) and b). What can you conclude? Illustrate with the point P(1,0)P(1, 0).
  • d) Compute the determinants of RR, SS, R∘SR\circ S and S∘RS\circ R, and check that they agree with the property det⁡(AB)=det⁡(A)det⁡(B)\det(AB)=\det(A)\det(B).

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
Show the solution

Answers

  • a) RSRS: reflection about y=xy=x
  • b) SRSR: reflection about y=−xy=-x
  • c) RS≠SRRS\neq SR; (0,1)(0, 1) versus (0,−1)(0, -1)
  • d) All the determinants equal ±1\pm 1, as expected
a)

Applying SS then RR corresponds to the product RSRS, since the matrix of the transformation applied first goes on the RIGHT. RS=(0−110)(100−1)=((0)(1)+(−1)(0)(0)(0)+(−1)(−1)(1)(1)+(0)(0)(1)(0)+(0)(−1))=(0110)RS=\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}=\begin{pmatrix} (0)(1)+(-1)(0) & (0)(0)+(-1)(-1) \\ (1)(1)+(0)(0) & (1)(0)+(0)(-1) \end{pmatrix}=\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}. This is the matrix of the reflection about the line y=xy=x.

b)

Applying RR then SS corresponds to the product SR=(100−1)(0−110)=((1)(0)+(0)(1)(1)(−1)+(0)(0)(0)(0)+(−1)(1)(0)(−1)+(−1)(0))=(0−1−10)SR=\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}=\begin{pmatrix} (1)(0)+(0)(1) & (1)(-1)+(0)(0) \\ (0)(0)+(-1)(1) & (0)(-1)+(-1)(0) \end{pmatrix}=\begin{pmatrix} 0 & -1 \\ -1 & 0 \end{pmatrix}. This is the matrix of the reflection about the line y=−xy=-x.

c)

The two results differ: RS≠SRRS\neq 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)P(1, 0). Under R∘SR\circ S: the reflection leaves PP unchanged since it lies on the xx-axis, then the rotation sends it to (0,1)(0, 1). Under S∘RS\circ R: the rotation sends PP to (0,1)(0, 1), then the reflection about the xx-axis sends it to (0,−1)(0, -1). The images are (0,1)(0, 1) and (0,−1)(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(R)=1, det⁡(S)=−1\det(S)=-1, det⁡(RS)=(0)(0)−(1)(1)=−1\det(RS)=(0)(0)-(1)(1)=-1 and det⁡(SR)=(0)(0)−(−1)(−1)=−1\det(SR)=(0)(0)-(-1)(-1)=-1. The property holds both ways: det⁡(R)det⁡(S)=(1)(−1)=−1=det⁡(RS)\det(R)\det(S)=(1)(-1)=-1=\det(RS), and likewise for SRSR.

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.

startS, then R: RSR, then S: SRRS ≠ SR

Exercise 4: Recovering the matrix, image of a figure and area factor

A linear transformation TT of the plane is defined by what it does to the vectors of the standard basis: T(1,0)=(3,1)T(1, 0)=(3, 1) and T(0,1)=(−1,2)T(0, 1)=(-1, 2).

-3-2-112345-1123T(1, 0) = (3, 1)T(0, 1) = (−1, 2)
  • a) Find the matrix AA of TT.
  • b) Find the image of the vector (4,−2)(4, -2).
  • c) The triangle with vertices (0,0)(0, 0), (1,0)(1, 0) and (0,1)(0, 1) has area 12\dfrac{1}{2}. Find the area of its image under TT.
  • d) Is the transformation TT invertible? If so, find A−1A^{-1} and the preimage of the point (7,7)(7, 7).

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
Show the solution

Answers

  • a) A=(3−112)A=\begin{pmatrix}3&-1\\1&2\end{pmatrix}
  • b) (14,0)(14, 0)
  • c) det⁡A=7\det A=7: area 3.53.5
  • d) A−1=17(21−13)A^{-1}=\frac17\begin{pmatrix}2&1\\-1&3\end{pmatrix}; (3,2)(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)T(1, 0)=(3, 1) and the second T(0,1)=(−1,2)T(0, 1)=(-1, 2), which gives A=(3−112)A=\begin{pmatrix} 3 & -1 \\ 1 & 2 \end{pmatrix}. 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)A\begin{pmatrix} 4 \\ -2 \end{pmatrix}=\begin{pmatrix} (3)(4)+(-1)(-2) \\ (1)(4)+(2)(-2) \end{pmatrix}=\begin{pmatrix} 12+2 \\ 4-4 \end{pmatrix}=\begin{pmatrix} 14 \\ 0 \end{pmatrix}. There is another way to check, by linearity: T(4,−2)=4 T(1,0)−2 T(0,1)=4(3,1)−2(−1,2)=(12+2,4−4)=(14,0)T(4, -2)=4\,T(1, 0)-2\,T(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\det(A)=(3)(2)-(-1)(1)=6+1=7. The area of the image is ∣det⁡(A)∣|\det(A)| times the original area, that is 7×12=72=3.57\times\dfrac{1}{2}=\dfrac{7}{2}=3.5 square units. Since the determinant is positive, the orientation of the triangle is preserved.

d)

det⁡(A)=7≠0\det(A)=7\neq 0, so TT is invertible. For a 2×22\times 2 matrix, A−1=1det⁡(A)(d−b−ca)=17(21−13)A^{-1}=\dfrac{1}{\det(A)}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}=\dfrac{1}{7}\begin{pmatrix} 2 & 1 \\ -1 & 3 \end{pmatrix}.

Preimage of (7,7)(7, 7): A−1(77)=17((2)(7)+(1)(7)(−1)(7)+(3)(7))=17(2114)=(32)A^{-1}\begin{pmatrix} 7 \\ 7 \end{pmatrix}=\dfrac{1}{7}\begin{pmatrix} (2)(7)+(1)(7) \\ (-1)(7)+(3)(7) \end{pmatrix}=\dfrac{1}{7}\begin{pmatrix} 21 \\ 14 \end{pmatrix}=\begin{pmatrix} 3 \\ 2 \end{pmatrix}. Direct check: T(3,2)=(9−2,3+4)=(7,7)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)(3, 1) and (−1,2)(-1, 2), namely 12∣det⁡(A)∣=72\dfrac{1}{2}|\det(A)|=\dfrac{7}{2}. The determinant is not just an abstract multiplying factor: it IS the area of the parallelogram onto which the unit square is mapped.

-3-2-112345-2-1123T(1, 0) = (3, 1)T(0, 1) = (−1, 2)area 7/2

Exercise 5: The shear: a transformation that preserves area without being a rotation

Consider the transformation TT with matrix A=(1201)A=\begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix}, called a horizontal shear. It slides points further the higher they are.

-11234-2-112
  • a) Find the images of the four vertices of the unit square (0,0)(0, 0), (1,0)(1, 0), (1,1)(1, 1), (0,1)(0, 1), and describe the resulting figure.
  • b) Compute det⁡(A)\det(A) and deduce the area of the image of the unit square.
  • c) Does the shear preserve lengths? Compare ∥(0,1)∥\|(0, 1)\| with the norm of its image, and conclude.
  • d) Find all the points left fixed by TT. What does this set represent geometrically?

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
Show the solution

Answers

  • a) Parallelogram (0,0)(0, 0), (1,0)(1, 0), (3,1)(3, 1), (2,1)(2, 1)
  • b) det⁡=1\det=1: area 1
  • c) 5≠1\sqrt5\neq 1: lengths not preserved
  • d) The xx-axis
a)

T(0,0)=(0,0)T(0, 0)=(0, 0); T(1,0)=(1,0)T(1, 0)=(1, 0); T(1,1)=(1+2,1)=(3,1)T(1, 1)=(1+2, 1)=(3, 1); T(0,1)=(2,1)T(0, 1)=(2, 1). The image of the unit square is the parallelogram with vertices (0,0)(0, 0), (1,0)(1, 0), (3,1)(3, 1), (2,1)(2, 1). The base on the xx-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\det(A)=(1)(1)-(2)(0)=1. The area of the image is ∣det⁡(A)∣×1=1|\det(A)|\times 1=1: the shear PRESERVES area, exactly like a rotation. The base and the height of the parallelogram are unchanged (11 and 11), so its area stays 11, even though its shape has changed completely.

c)

No. We have ∥(0,1)∥=1\|(0, 1)\|=1, while its image (2,1)(2, 1) has norm 22+12=5≈2.24\sqrt{2^{2}+1^{2}}=\sqrt{5}\approx 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 11 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)(x, y) is fixed if T(x,y)=(x,y)T(x, y)=(x, y), that is (x+2y,y)=(x,y)(x+2y, y)=(x, y). The second coordinate is automatically satisfied, and the first gives x+2y=xx+2y=x, so 2y=02y=0, that is y=0y=0. The fixed points are exactly those of the form (x,0)(x, 0): the whole xx-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.

-11234-2-112(3, 1)(2, 1)area preserved: 1

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 AA be a 2×22\times 2 matrix and T(v⃗)=Av⃗T(\vec{v})=A\vec{v}. Prove that TT is linear.
  • b) Prove that the translation f(x,y)=(x+1,y)f(x, y)=(x+1, y) is NOT a linear transformation. Give the quickest criterion.
  • c) Prove that the rotation matrix RθR_{\theta} satisfies RθTRθ=IR_{\theta}^{T}R_{\theta}=I, and deduce that the rotation preserves norms.
  • d) A matrix PP is called idempotent if P2=PP^{2}=P. Check that the orthogonal projection onto the xx-axis is idempotent, and interpret this property geometrically.

Type your answers, the page tells you right or wrong 0/4

b)
d)
Show the solution

Answers

  • a) Distributivity and scalars
  • b) f(0,0)=(1,0)≠(0,0)f(0, 0)=(1, 0)\neq(0, 0)
  • c) RθTRθ=IR_\theta^TR_\theta=I: norms preserved
  • d) P2=PP^2=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⃗)T(\vec{u}+\vec{v})=A(\vec{u}+\vec{v})=A\vec{u}+A\vec{v}=T(\vec{u})+T(\vec{v}), by distributivity of matrix multiplication over addition. Homogeneity: T(ku⃗)=A(ku⃗)=k(Au⃗)=k T(u⃗)T(k\vec{u})=A(k\vec{u})=k(A\vec{u})=k\,T(\vec{u}), because a scalar moves freely through a matrix product. Both conditions hold, so TT is linear.

b)

The quickest criterion is the origin test: every linear transformation satisfies T(0⃗)=0⃗T(\vec{0})=\vec{0}, since T(0⃗)=T(0⋅0⃗)=0⋅T(0⃗)=0⃗T(\vec{0})=T(0\cdot\vec{0})=0\cdot T(\vec{0})=\vec{0}. Here, however, f(0,0)=(1,0)≠(0,0)f(0, 0)=(1, 0)\neq(0, 0). The origin moves, so ff 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)f(1, 0)+f(1, 0)=(2, 0)+(2, 0)=(4, 0), whereas f((1,0)+(1,0))=f(2,0)=(3,0)f\big((1, 0)+(1, 0)\big)=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⁡θ)R_{\theta}=\begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}, so RθT=(cos⁡θsin⁡θ−sin⁡θcos⁡θ)R_{\theta}^{T}=\begin{pmatrix} \cos\theta & \sin\theta \\ -\sin\theta & \cos\theta \end{pmatrix}. The product RθTRθR_{\theta}^{T}R_{\theta} has top-left entry cos⁡2θ+sin⁡2θ=1\cos^{2}\theta+\sin^{2}\theta=1, top-right entry −cos⁡θsin⁡θ+sin⁡θcos⁡θ=0-\cos\theta\sin\theta+\sin\theta\cos\theta=0, bottom-left entry −sin⁡θcos⁡θ+cos⁡θsin⁡θ=0-\sin\theta\cos\theta+\cos\theta\sin\theta=0, and bottom-right entry sin⁡2θ+cos⁡2θ=1\sin^{2}\theta+\cos^{2}\theta=1. So RθTRθ=IR_{\theta}^{T}R_{\theta}=I: the matrix is orthogonal, and Rθ−1=RθTR_{\theta}^{-1}=R_{\theta}^{T}.

Norms are preserved: ∥Rθv⃗∥2=(Rθv⃗)⋅(Rθv⃗)=(Rθv⃗)T(Rθv⃗)=v⃗TRθTRθv⃗=v⃗TIv⃗=v⃗Tv⃗=∥v⃗∥2\|R_{\theta}\vec{v}\|^{2}=(R_{\theta}\vec{v})\cdot(R_{\theta}\vec{v})=(R_{\theta}\vec{v})^{T}(R_{\theta}\vec{v})=\vec{v}^{T}R_{\theta}^{T}R_{\theta}\vec{v}=\vec{v}^{T}I\vec{v}=\vec{v}^{T}\vec{v}=\|\vec{v}\|^{2}. Since norms are non-negative, ∥Rθv⃗∥=∥v⃗∥\|R_{\theta}\vec{v}\|=\|\vec{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θTR_{\theta}^{-1}=R_{\theta}^{T} has a crystal-clear geometric reading: the inverse of a rotation through θ\theta is the rotation through −θ-\theta, and replacing θ\theta by −θ-\theta changes the sign of the sines only, which is exactly what transposition does here.

d)

P=(1000)P=\begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}, so P2=(1000)(1000)=(1000)=PP^{2}=\begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}\begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}=\begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}=P. The matrix is indeed idempotent.

Geometric interpretation: projecting a point onto the xx-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=PP^{2}=P. Notice the consequence: an idempotent matrix other than the identity cannot be invertible. Indeed, if PP were invertible, we could multiply P2=PP^{2}=P by P−1P^{-1} and get P=IP=I. Since P≠IP\neq I here, PP is not invertible, as det⁡(P)=0\det(P)=0 confirms. The information lost in the projection, the yy-coordinate, cannot be recovered.

Exercise 7: Problem: a rotation-dilation, from the unit square to the inverse

Consider the transformation TT of the plane obtained by first applying the counterclockwise rotation through 45∘45^{\circ} about the origin, then the dilation with factor 2\sqrt{2} centred at the origin.

Recall that cos⁡45∘=sin⁡45∘=22\cos 45^{\circ}=\sin 45^{\circ}=\dfrac{\sqrt{2}}{2}.

-2-112-1123
  • a) Show that the matrix of TT is A=(1−111)A=\begin{pmatrix} 1 & -1 \\ 1 & 1 \end{pmatrix}.
  • b) Compute det⁡(A)\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)(0, 0), (1,0)(1, 0), (1,1)(1, 1), (0,1)(0, 1). Check that the image is a square and compute its area in two ways.
  • d) Compute A2A^{2} and identify the transformation T∘TT\circ T geometrically.
  • e) Find A−1A^{-1} and the preimage of the point (3,5)(3, 5).
  • f) Check that TT acts on the point (x,y)(x, y) exactly as multiplying the complex number x+iyx+iy by 1+i1+i. What are the modulus and the argument of 1+i1+i, and what do you recover?

Type your answers, the page tells you right or wrong 0/9

b)
c)
d)
e)
f)
Show the solution

Answers

  • a) A=2 R45=(1−111)A=\sqrt2\,R_{45}=\begin{pmatrix}1&-1\\1&1\end{pmatrix}
  • b) det⁡A=2\det A=2
  • c) Square (0,0)(0, 0), (1,1)(1, 1), (0,2)(0, 2), (−1,1)(-1, 1): area 2
  • d) A2=2R90A^2=2R_{90}
  • e) (4,1)(4, 1)
  • f) Modulus 2\sqrt2, argument 45∘45^\circ
a)

The matrix of the rotation through 45∘45^{\circ} is R=(22−222222)R=\begin{pmatrix} \dfrac{\sqrt{2}}{2} & -\dfrac{\sqrt{2}}{2} \\[4pt] \dfrac{\sqrt{2}}{2} & \dfrac{\sqrt{2}}{2} \end{pmatrix} and that of the dilation is H=2 IH=\sqrt{2}\,I. The rotation is applied first, so it goes on the right: A=HR=2(22−222222)=(22−222222)=(1−111)A=HR=\sqrt{2}\begin{pmatrix} \dfrac{\sqrt{2}}{2} & -\dfrac{\sqrt{2}}{2} \\[4pt] \dfrac{\sqrt{2}}{2} & \dfrac{\sqrt{2}}{2} \end{pmatrix}=\begin{pmatrix} \dfrac{2}{2} & -\dfrac{2}{2} \\[4pt] \dfrac{2}{2} & \dfrac{2}{2} \end{pmatrix}=\begin{pmatrix} 1 & -1 \\ 1 & 1 \end{pmatrix}.

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\det(A)=(1)(1)-(-1)(1)=1+1=2. Areas are therefore multiplied by ∣det⁡(A)∣=2|\det(A)|=2. Consistency with the construction: the rotation does not change areas, and the dilation with factor 2\sqrt{2} multiplies them by (2)2=2(\sqrt{2})^{2}=2. The two arguments agree.

c)

T(0,0)=(0,0)T(0, 0)=(0, 0), T(1,0)=(1,1)T(1, 0)=(1, 1), T(1,1)=(1−1,1+1)=(0,2)T(1, 1)=(1-1, 1+1)=(0, 2) and T(0,1)=(−1,1)T(0, 1)=(-1, 1). The image of the unit square is therefore the quadrilateral with vertices (0,0)(0, 0), (1,1)(1, 1), (0,2)(0, 2) and (−1,1)(-1, 1).

It is indeed a square: the four sides have length 12+12=2\sqrt{1^{2}+1^{2}}=\sqrt{2}, and two consecutive sides from the origin, (1,1)(1, 1) and (−1,1)(-1, 1), have dot product (1)(−1)+(1)(1)=0(1)(-1)+(1)(1)=0, so they are perpendicular. The unit square, rotated through 45∘45^{\circ} and enlarged by a factor 2\sqrt{2}, is still a square.

Area, first method: side 2\sqrt{2}, so area =(2)2=2=(\sqrt{2})^{2}=2 square units. Second method: ∣det⁡(A)∣×1=2|\det(A)|\times 1=2 square units, since the unit square has area 11. The two values agree.

d)

A2=(1−111)(1−111)=(1−1−1−11+1−1+1)=(0−220)A^{2}=\begin{pmatrix} 1 & -1 \\ 1 & 1 \end{pmatrix}\begin{pmatrix} 1 & -1 \\ 1 & 1 \end{pmatrix}=\begin{pmatrix} 1-1 & -1-1 \\ 1+1 & -1+1 \end{pmatrix}=\begin{pmatrix} 0 & -2 \\ 2 & 0 \end{pmatrix}. Factor: A2=2(0−110)A^{2}=2\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}, that is, the dilation with factor 22 composed with the rotation through 90∘90^{\circ}.

This is exactly what we expected: applying a rotation through 45∘45^{\circ} twice gives 90∘90^{\circ}, and applying a dilation with factor 2\sqrt{2} twice gives a factor (2)2=2(\sqrt{2})^{2}=2. Angles add, factors multiply. Check with the determinant: det⁡(A2)=(det⁡A)2=4\det(A^{2})=\big(\det A\big)^{2}=4, and directly (0)(0)−(−2)(2)=4(0)(0)-(-2)(2)=4.

e)

For a 2×22\times 2 matrix: A−1=1det⁡(A)(11−11)=12(11−11)A^{-1}=\dfrac{1}{\det(A)}\begin{pmatrix} 1 & 1 \\ -1 & 1 \end{pmatrix}=\dfrac{1}{2}\begin{pmatrix} 1 & 1 \\ -1 & 1 \end{pmatrix}. Preimage of (3,5)(3, 5): A−1(35)=12(3+5−3+5)=12(82)=(41)A^{-1}\begin{pmatrix} 3 \\ 5 \end{pmatrix}=\dfrac{1}{2}\begin{pmatrix} 3+5 \\ -3+5 \end{pmatrix}=\dfrac{1}{2}\begin{pmatrix} 8 \\ 2 \end{pmatrix}=\begin{pmatrix} 4 \\ 1 \end{pmatrix}. Check: T(4,1)=(4−1,4+1)=(3,5)T(4, 1)=(4-1, 4+1)=(3, 5), as required.

Geometrically, A−1A^{-1} is the rotation through −45∘-45^{\circ} followed by the dilation with factor 12\dfrac{1}{\sqrt{2}}, which exactly undoes TT.

f)

Compute the complex product: (x+iy)(1+i)=x+ix+iy+i2y=x+ix+iy−y=(x−y)+i(x+y)(x+iy)(1+i)=x+ix+iy+i^{2}y=x+ix+iy-y=(x-y)+i(x+y). This complex number has real part x−yx-y and imaginary part x+yx+y. Now T(x,y)=A(xy)=(x−yx+y)T(x, y)=A\begin{pmatrix} x \\ y \end{pmatrix}=\begin{pmatrix} x-y \\ x+y \end{pmatrix}. The two results are identical: multiplying by 1+i1+i in the complex plane is applying TT in the real plane.

The modulus of 1+i1+i is 12+12=2\sqrt{1^{2}+1^{2}}=\sqrt{2} and its argument is 45∘45^{\circ}, since the point (1,1)(1, 1) lies on the bisector of the first quadrant. We recover exactly the two parameters used to build TT: 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 rr and argument θ\theta means composing a rotation through θ\theta with a dilation with factor rr, and De Moivre's formula (r eiθ)n=rneinθ\big(r\,e^{i\theta}\big)^{n}=r^{n}e^{in\theta} is nothing but the complex version of the computation of AnA^{n} 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.

-2-112-1123(1, 1)(0, 2)(−1, 1)area 2

Exercise 8: Reflections about a line and the composition of two reflections

The reflection about the line through the origin that makes an angle θ\theta with the xx-axis has matrix M(θ)=(cos⁡2θsin⁡2θsin⁡2θ−cos⁡2θ)M(\theta)=\begin{pmatrix} \cos 2\theta & \sin 2\theta \\ \sin 2\theta & -\cos 2\theta \end{pmatrix}.

-3-2-1123-3-2-1123axis of S₀axis of S₄₅45°
  • a) Using this formula, recover the matrix of the reflection about the xx-axis (θ=0\theta=0) and about the line y=xy=x (θ=45∘\theta=45^{\circ}).
  • b) Show that every reflection matrix satisfies det⁡(M)=−1\det(M)=-1 and M2=IM^{2}=I. What does the second equality mean geometrically?
  • c) Let S0S_{0} be the reflection about the xx-axis and S45S_{45} the reflection about y=xy=x. Compute the matrix of S45∘S0S_{45}\circ S_{0} and identify the resulting transformation.
  • d) State and justify the general rule: the composition of two reflections whose axes make an angle α\alpha is a rotation through 2α2\alpha. Check that the determinants agree, then give the angle of the resulting rotation when the two axes make an angle of 30∘30^{\circ}.

Type your answers, the page tells you right or wrong 0/4

a)
b)
c)
d)
Show the solution

Answers

  • a) (100−1)\begin{pmatrix}1&0\\0&-1\end{pmatrix} and (0110)\begin{pmatrix}0&1\\1&0\end{pmatrix}
  • b) det⁡=−1\det=-1, M2=IM^2=I: an involution
  • c) Rotation through 90∘90^\circ
  • d) Rotation through 2α2\alpha; 60∘60^{\circ} for axes 30∘30^{\circ} apart
a)

For θ=0\theta=0: cos⁡0=1\cos 0=1 and sin⁡0=0\sin 0=0, so M(0)=(100−1)M(0)=\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, the reflection about the xx-axis. For θ=45∘\theta=45^{\circ}: 2θ=90∘2\theta=90^{\circ}, cos⁡90∘=0\cos 90^{\circ}=0 and sin⁡90∘=1\sin 90^{\circ}=1, so M(45∘)=(0110)M(45^{\circ})=\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, the reflection about y=xy=x, which swaps the two coordinates. The two familiar matrices are indeed special cases of the general formula.

b)

det⁡(M)=(cos⁡2θ)(−cos⁡2θ)−(sin⁡2θ)(sin⁡2θ)=−cos⁡22θ−sin⁡22θ=−1\det(M)=(\cos 2\theta)(-\cos 2\theta)-(\sin 2\theta)(\sin 2\theta)=-\cos^{2}2\theta-\sin^{2}2\theta=-1, using the Pythagorean identity. For the square: the top-left entry of M2M^{2} is cos⁡22θ+sin⁡22θ=1\cos^{2}2\theta+\sin^{2}2\theta=1, the top-right entry is cos⁡2θsin⁡2θ−sin⁡2θcos⁡2θ=0\cos 2\theta\sin 2\theta-\sin 2\theta\cos 2\theta=0, and in the same way M2=IM^{2}=I. Geometrically, M2=IM^{2}=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-1 confirms that each reflection reverses orientation.

c)

Applying S0S_{0} then S45S_{45} corresponds to the product S45S0=(0110)(100−1)=(0−110)S_{45}S_{0}=\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}=\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}. This is the matrix of the counterclockwise rotation through 90∘90^{\circ}. Two reflections have composed into a rotation.

d)

Rule: the composition of two reflections about axes through the origin that make an angle α\alpha with each other is the rotation through 2α2\alpha (in the direction that goes from the first axis to the second). Justification with matrices: M(β)M(α)M(\beta)M(\alpha) is computed with the angle-sum formulas and gives exactly R2(β−α)R_{2(\beta-\alpha)}. Here the axes are the xx-axis (θ=0\theta=0) and the line y=xy=x (θ=45∘\theta=45^{\circ}), so the angle between them is 45∘45^{\circ}, and the composition is the rotation through 2×45∘=90∘2\times 45^{\circ}=90^{\circ}, as the computation in c) confirms. Consistency of the determinants: each reflection has determinant −1-1, so their product has determinant (−1)(−1)=+1(-1)(-1)=+1, which is indeed that of a rotation. The orientation, reversed twice, is finally restored. For two axes 30∘30^{\circ} apart, the composition is the rotation through 2×30∘=60∘2\times 30^{\circ}=60^{\circ}.

v1st reflection2nd reflectionθ

Exercise 9: Recovering the matrix from its action on two arbitrary vectors

A linear transformation TT of the plane is known to satisfy T(1,1)=(3,1)T(1, 1)=(3, 1) and T(1,−1)=(1,3)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.

-11234-2-11234(1, 1)T(1, 1)(1, −1)T(1, −1)
  • a) Setting A=(abcd)A=\begin{pmatrix} a & b \\ c & d \end{pmatrix}, translate the two conditions into equations and find AA.
  • b) Deduce the images T(1,0)T(1, 0) and T(0,1)T(0, 1) of the standard basis vectors.
  • c) Compute det⁡(A)\det(A), say whether TT is invertible and by what factor it multiplies areas.
  • d) Find A−1A^{-1}, then the preimage of the point (4,0)(4, 0).

Type your answers, the page tells you right or wrong 0/8

a)
c)
d)
Show the solution

Answers

  • a) A=(212−1)A=\begin{pmatrix}2&1\\2&-1\end{pmatrix}
  • b) T(1,0)=(2,2)T(1, 0)=(2, 2), T(0,1)=(1,−1)T(0, 1)=(1, -1)
  • c) det⁡=−4\det=-4: invertible, areas ×4\times 4
  • d) (1,2)(1, 2)
a)

The condition T(1,1)=(3,1)T(1, 1)=(3, 1) gives (a+bc+d)=(31)\begin{pmatrix} a+b \\ c+d \end{pmatrix}=\begin{pmatrix} 3 \\ 1 \end{pmatrix}, that is a+b=3a+b=3 and c+d=1c+d=1. The condition T(1,−1)=(1,3)T(1, -1)=(1, 3) gives (a−bc−d)=(13)\begin{pmatrix} a-b \\ c-d \end{pmatrix}=\begin{pmatrix} 1 \\ 3 \end{pmatrix}, that is a−b=1a-b=1 and c−d=3c-d=3. Adding and subtracting: a=2a=2, b=1b=1, then c=2c=2, d=−1d=-1. So A=(212−1)A=\begin{pmatrix} 2 & 1 \\ 2 & -1 \end{pmatrix}. Check: A(1,1)=(3,1)A(1, 1)=(3, 1) and A(1,−1)=(1,3)A(1, -1)=(1, 3) ✓.

b)

The columns of AA are precisely the images of the standard basis vectors: T(1,0)=(2,2)T(1, 0)=(2, 2) (first column) and T(0,1)=(1,−1)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\det(A)=(2)(-1)-(1)(2)=-2-2=-4. It is non-zero, so TT is invertible. Areas are multiplied by ∣det⁡(A)∣=4|\det(A)|=4, and the negative sign indicates that TT reverses the orientation of the plane.

d)

A−1=1det⁡(A)(d−b−ca)=1−4(−1−1−22)=(141412−12)A^{-1}=\dfrac{1}{\det(A)}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}=\dfrac{1}{-4}\begin{pmatrix} -1 & -1 \\ -2 & 2 \end{pmatrix}=\begin{pmatrix} \frac{1}{4} & \frac{1}{4} \\ \frac{1}{2} & -\frac{1}{2} \end{pmatrix}. Preimage of (4,0)(4, 0): A−1(40)=(14(4)12(4))=(12)A^{-1}\begin{pmatrix} 4 \\ 0 \end{pmatrix}=\begin{pmatrix} \frac{1}{4}(4) \\ \frac{1}{2}(4) \end{pmatrix}=\begin{pmatrix} 1 \\ 2 \end{pmatrix}. Check: T(1,2)=(2+2,2−2)=(4,0)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 T1T_{1} and T2T_{2} be two linear transformations with matrices A1A_{1} and A2A_{2}. Prove that T2∘T1T_{2}\circ T_{1} is linear and that its matrix is the product A2A1A_{2}A_{1}.
  • b) Prove that the image under a linear transformation TT of a line {P+tu⃗:t∈R}\{P+t\vec{u}:t\in\mathbb{R}\} is a line (or a point if T(u⃗)=0⃗T(\vec{u})=\vec{0}).
  • c) Prove that TT preserves midpoints: T ⁣(P+Q2)=T(P)+T(Q)2T\!\left(\dfrac{P+Q}{2}\right)=\dfrac{T(P)+T(Q)}{2}. 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 (1101)\begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}.

Type your answers, the page tells you right or wrong 0/2

d)
Show the solution

Answers

  • a) Matrix A2A1A_2A_1
  • b) T(P)+t T(u⃗)T(P)+t\,T(\vec u): a line or a point
  • c) Midpoints preserved: parallelograms preserved
  • d) False: ATA=IA^TA=I is needed; 65≠5\sqrt{65}\neq 5
a)

Linearity of the composition: for all u⃗,v⃗\vec{u},\vec{v} and every scalar kk, (T2∘T1)(u⃗+v⃗)=T2(T1(u⃗+v⃗))=T2(T1(u⃗)+T1(v⃗))=T2(T1u⃗)+T2(T1v⃗)(T_{2}\circ T_{1})(\vec{u}+\vec{v})=T_{2}\big(T_{1}(\vec{u}+\vec{v})\big)=T_{2}\big(T_{1}(\vec{u})+T_{1}(\vec{v})\big)=T_{2}(T_{1}\vec{u})+T_{2}(T_{1}\vec{v}), using the linearity of T1T_{1} and then that of T2T_{2}; likewise (T2∘T1)(ku⃗)=k (T2∘T1)(u⃗)(T_{2}\circ T_{1})(k\vec{u})=k\,(T_{2}\circ T_{1})(\vec{u}). The composition is therefore linear. Its matrix: (T2∘T1)(v⃗)=T2(A1v⃗)=A2(A1v⃗)=(A2A1)v⃗(T_{2}\circ T_{1})(\vec{v})=T_{2}(A_{1}\vec{v})=A_{2}(A_{1}\vec{v})=(A_{2}A_{1})\vec{v}, by associativity of matrix multiplication. The matrix of the composition is therefore A2A1A_{2}A_{1}, with the transformation applied first on the right.

b)

Take a point of the line, P+tu⃗P+t\vec{u}. Its image is T(P+tu⃗)=T(P)+t T(u⃗)T(P+t\vec{u})=T(P)+t\,T(\vec{u}), by linearity. As tt runs through R\mathbb{R}, this point describes the set {T(P)+t T(u⃗):t∈R}\{T(P)+t\,T(\vec{u}):t\in\mathbb{R}\}. If T(u⃗)≠0⃗T(\vec{u})\neq\vec{0}, it is the line through T(P)T(P) with direction vector T(u⃗)T(\vec{u}). If T(u⃗)=0⃗T(\vec{u})=\vec{0}, all the points have the same image T(P)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 ⁣(P+Q2)=12T(P+Q)=12(T(P)+T(Q))=T(P)+T(Q)2T\!\left(\dfrac{P+Q}{2}\right)=\dfrac{1}{2}T(P+Q)=\dfrac{1}{2}\big(T(P)+T(Q)\big)=\dfrac{T(P)+T(Q)}{2}, by taking the scalar 12\tfrac{1}{2} out and then using additivity. The midpoint of segment PQPQ is therefore mapped to the midpoint of the segment from T(P)T(P) to T(Q)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, TT 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=IA^{T}A=I (rotations and reflections). A rotation through θ\theta satisfies this criterion and therefore preserves lengths; for example ∥(3,4)∥=5\|(3, 4)\|=5 is preserved. The shear (1101)\begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}, on the other hand, does NOT preserve distances even though its determinant is 11: the image of (3,4)(3, 4) is (7,4)(7, 4), with norm 65≠5\sqrt{65}\neq 5. A determinant equal to 11 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 RR through 90∘90^{\circ} about the zz-axis, with matrix (0−10100001)\begin{pmatrix} 0 & -1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{pmatrix}, the orthogonal projection QQ onto the plane z=0z=0, with matrix (100010000)\begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 0 \end{pmatrix}, and the reflection SS about the plane x=yx=y, with matrix (010100001)\begin{pmatrix} 0 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{pmatrix}.

xyzOplane x = yP
  • a) Compute the images of the point P(1,2,3)P(1, 2, 3) under RR, QQ and SS.
  • b) Compute the three determinants and interpret them in terms of volume.
  • c) Compute the matrix of R∘SR\circ S and identify the transformation.
  • d) What is the smallest integer k≥1k\geq 1 such that Rk=IR^{k}=I?
  • e) Which points are left fixed by RR?

Type your answers, the page tells you right or wrong 0/9

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) (−2,1,3)(-2, 1, 3), (1,2,0)(1, 2, 0), (2,1,3)(2, 1, 3)
  • b) 11, 00, −1-1
  • c) Reflection about the plane x=0x=0
  • d) k=4k=4
  • e) The zz-axis
a)

R(P)=(−2,1,3)R(P)=(-2, 1, 3): the quarter turn acts in the horizontal plane and leaves the zz-coordinate alone. Q(P)=(1,2,0)Q(P)=(1, 2, 0): the zz-coordinate is set to zero. S(P)=(2,1,3)S(P)=(2, 1, 3): the first two coordinates are swapped.

b)

det⁡R=1\det R=1: volumes and orientation preserved. det⁡Q=0\det Q=0: space is flattened onto a plane, every volume becomes zero and QQ is not invertible. det⁡S=−1\det S=-1: volumes preserved, orientation reversed, as for a reflection in the plane.

c)

RS=(0−10100001)(010100001)=(−100010001)RS=\begin{pmatrix} 0 & -1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{pmatrix}\begin{pmatrix} 0 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{pmatrix}=\begin{pmatrix} -1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix}: this is the reflection about the plane x=0x=0, which changes the sign of the xx-coordinate. Its determinant, −1-1, is indeed the product 1×(−1)1\times(-1).

d)

Each application of RR turns through 90∘90^{\circ} about the zz-axis: it takes four quarter turns to come back to the start, so k=4k=4. Indeed R2R^{2} is the half turn, with matrix diag(−1,−1,1)\text{diag}(-1, -1, 1), which is not II.

e)

R(x,y,z)=(−y,x,z)=(x,y,z)R(x, y, z)=(-y, x, z)=(x, y, z) forces x=−yx=-y and y=xy=x, so x=y=0x=y=0 with zz arbitrary: the fixed points form the zz-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 TT with matrix A=(3002)A=\begin{pmatrix} 3 & 0 \\ 0 & 2 \end{pmatrix} and the unit circle, made up of the points (cos⁡t,sin⁡t)(\cos t, \sin t).

-4-3-2-11234-3-2-1123unit circle
  • a) Find the image of the point (cos⁡t,sin⁡t)(\cos t, \sin t) 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 aa and bb is πab\pi ab. Compute the area of the image, to two decimal places, and compare it with ∣det⁡A∣|\det A| times the area of the unit disk.
  • d) Now apply the shear (1101)\begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix} 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?

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) x29+y24=1\frac{x^2}{9}+\frac{y^2}{4}=1
  • b) 3 and 2
  • c) 6π≈18.85=∣det⁡A∣ π6\pi\approx 18.85=|\det A|\,\pi
  • d) π≈3.14\pi\approx 3.14
  • e) Yes
a)

T(cos⁡t,sin⁡t)=(3cos⁡t,2sin⁡t)T(\cos t, \sin t)=(3\cos t, 2\sin t). With X=3cos⁡tX=3\cos t and Y=2sin⁡tY=2\sin t: X29+Y24=cos⁡2t+sin⁡2t=1\frac{X^{2}}{9}+\frac{Y^{2}}{4}=\cos^{2}t+\sin^{2}t=1. The image curve is the ellipse x29+y24=1\frac{x^{2}}{9}+\frac{y^{2}}{4}=1.

b)

The semi-axes are 33, along the xx-axis, and 22, along the yy-axis: they are the diagonal entries, which stretch each direction.

c)

π×3×2=6π≈18.85\pi\times 3\times 2=6\pi\approx 18.85. The unit disk has area π\pi, and ∣det⁡A∣=6|\det A|=6: we recover 6π6\pi. The area factor given by the determinant holds for every figure, not only for polygons.

d)

The shear has determinant 11: the image, a tilted ellipse, has the same area as the disk, π≈3.14\pi\approx 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.

-4-3-2-11234-3-2-1123unit circlea = 3b = 2

Exercise 13: Undoing a composite transformation

Let CC be the shear with matrix (1101)\begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix} and RR the counterclockwise rotation through 90∘90^{\circ}, with matrix (0−110)\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}. The transformation TT applies CC first, then RR.

  • a) Compute the matrix of TT.
  • b) Compute the image of the point (2,3)(2, 3) under TT.
  • c) Compute det⁡T\det T and the matrix of T−1T^{-1}.
  • d) Compute C−1R−1C^{-1}R^{-1} and R−1C−1R^{-1}C^{-1}. Which of the two products equals T−1T^{-1}? Explain.
  • e) Apply T−1T^{-1} to the point obtained in b).

Type your answers, the page tells you right or wrong 0/9

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) T=(0−111)T=\begin{pmatrix}0&-1\\1&1\end{pmatrix}
  • b) (−3,5)(-3, 5)
  • c) det⁡T=1\det T=1; T−1=(11−10)T^{-1}=\begin{pmatrix}1&1\\-1&0\end{pmatrix}
  • d) T−1=C−1R−1T^{-1}=C^{-1}R^{-1}
  • e) (2,3)(2, 3)
a)

The first transformation goes on the right: T=RC=(0−110)(1101)=(0−111)T=RC=\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}\begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}=\begin{pmatrix} 0 & -1 \\ 1 & 1 \end{pmatrix}.

b)

T(23)=(−32+3)=(−35)T\begin{pmatrix} 2 \\ 3 \end{pmatrix}=\begin{pmatrix} -3 \\ 2+3 \end{pmatrix}=\begin{pmatrix} -3 \\ 5 \end{pmatrix}. In two steps: C(2,3)=(5,3)C(2, 3)=(5, 3), then R(5,3)=(−3,5)R(5, 3)=(-3, 5).

c)

det⁡T=0×1−(−1)×1=1\det T=0\times 1-(-1)\times 1=1, and T−1=(11−10)T^{-1}=\begin{pmatrix} 1 & 1 \\ -1 & 0 \end{pmatrix}.

d)

C−1=(1−101)C^{-1}=\begin{pmatrix} 1 & -1 \\ 0 & 1 \end{pmatrix} and R−1=(01−10)R^{-1}=\begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix}. C−1R−1=(11−10)=T−1C^{-1}R^{-1}=\begin{pmatrix} 1 & 1 \\ -1 & 0 \end{pmatrix}=T^{-1}, whereas R−1C−1=(01−11)R^{-1}C^{-1}=\begin{pmatrix} 0 & 1 \\ -1 & 1 \end{pmatrix} is different. To undo “CC, then RR”, first undo RR, the last one applied, then CC: T−1=(RC)−1=C−1R−1T^{-1}=(RC)^{-1}=C^{-1}R^{-1}, just as you take off your shoes before your socks.

e)

T−1(−35)=(−3+53)=(23)T^{-1}\begin{pmatrix} -3 \\ 5 \end{pmatrix}=\begin{pmatrix} -3+5 \\ 3 \end{pmatrix}=\begin{pmatrix} 2 \\ 3 \end{pmatrix}: 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)\vec{d}=(1, 1, -2) on horizontal ground, the plane z=0z=0. The shadow of a point M(x,y,z)M(x, y, z) is the point where the line through MM with direction d⃗\vec{d} meets the ground.

The orange arrow gives the direction of the Sun's rays.

dO(0, 0, 4)ground z = 0
  • a) A vertical pole joins the origin to the point (0,0,4)(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)M(x, y, z) is (x+z2,y+z2,0)\left(x+\frac{z}{2}, y+\frac{z}{2}, 0\right) and write the matrix Ω\Omega of this transformation.
  • c) Check that Ω2=Ω\Omega^{2}=\Omega and interpret.
  • d) Find the kernel of Ω\Omega 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.

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) (2,2,0)(2, 2, 0); length 22≈2.832\sqrt2\approx 2.83
  • b) Ω=(10120112000)\Omega=\begin{pmatrix}1&0&\frac12\\0&1&\frac12\\0&0&0\end{pmatrix}
  • c) Ω2=Ω\Omega^2=\Omega: a projection
  • d) Kernel spanned by d⃗\vec d; det⁡Ω=0\det\Omega=0
  • e) No: an oblique projection
a)

The point (t,t,4−2t)(t, t, 4-2t) reaches the ground when t=2t=2: the shadow of the top is (2,2,0)(2, 2, 0), and the shadow of the pole is the segment from the origin to that point, of length 22≈2.832\sqrt{2}\approx 2.83.

b)

M+td⃗=(x+t,y+t,z−2t)M+t\vec{d}=(x+t, y+t, z-2t) touches the ground when t=z2t=\frac{z}{2}, hence the shadow (x+z2,y+z2,0)\left(x+\frac{z}{2}, y+\frac{z}{2}, 0\right). Each coordinate is a linear combination of xx, yy, zz: Ω=(10120112000)\Omega=\begin{pmatrix} 1 & 0 & \frac{1}{2} \\ 0 & 1 & \frac{1}{2} \\ 0 & 0 & 0 \end{pmatrix}.

c)

The first row of Ω2\Omega^{2} is (1,0,12+0)\left(1, 0, \frac{1}{2}+0\right), the second (0,1,12)\left(0, 1, \frac{1}{2}\right), and the third is zero: Ω2=Ω\Omega^{2}=\Omega. 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⃗\Omega(x, y, z)=\vec{0} forces x=−z2x=-\frac{z}{2} and y=−z2y=-\frac{z}{2}: the kernel is the line spanned by (−1,−1,2)(-1, -1, 2), that is, by d⃗\vec{d}. Vectors parallel to the rays have a zero shadow. det⁡Ω=0\det\Omega=0, since the third row is zero.

e)

No: the orthogonal projection onto the ground has matrix diag(1,1,0)\text{diag}(1, 1, 0) and sends (0,0,4)(0, 0, 4) to the origin, a shadow of length zero, that of a Sun exactly overhead. Here the rays are oblique, and Ω\Omega 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=PP^{2}=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.6−0.80.80.6)M_{1}=\begin{pmatrix} 0.6 & -0.8 \\ 0.8 & 0.6 \end{pmatrix}, M2=(0.80.60.6−0.8)M_{2}=\begin{pmatrix} 0.8 & 0.6 \\ 0.6 & -0.8 \end{pmatrix}, M3=(2−222)M_{3}=\begin{pmatrix} 2 & -2 \\ 2 & 2 \end{pmatrix} and M4=(1301)M_{4}=\begin{pmatrix} 1 & 3 \\ 0 & 1 \end{pmatrix}. Recall that a matrix MM is orthogonal if MTM=IM^{T}M=I.

  • a) Among M1M_{1}, M2M_{2} and M4M_{4}, which are orthogonal?
  • b) Show that M1M_{1} is a rotation and give its angle, to the hundredth of a degree.
  • c) Compute det⁡M2\det M_{2}. Show that M2M_{2} is a reflection and give the angle between its axis and the xx-axis, to the hundredth of a degree.
  • d) Write M3M_{3} as a multiple of a rotation matrix. Give the factor, to two decimal places, and the angle.
  • e) Compute det⁡M4\det M_{4}. Which transformation is it?

Type your answers, the page tells you right or wrong 0/9

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) M1M_1 and M2M_2 are orthogonal, M4M_4 is not
  • b) Rotation through 53.13∘53.13^\circ
  • c) det⁡=−1\det=-1: a reflection, axis at 18.43∘18.43^\circ
  • d) Factor 22≈2.832\sqrt2\approx 2.83, angle 45∘45^\circ
  • e) det⁡M4=1\det M_4=1: a shear
a)

M1TM1M_{1}^{T}M_{1}: diagonal 0.36+0.64=10.36+0.64=1, off-diagonal −0.48+0.48=0-0.48+0.48=0, so M1M_{1} is orthogonal. Likewise M2TM2=IM_{2}^{T}M_{2}=I. For M4M_{4}, the second column (3,1)(3, 1) has norm 10≠1\sqrt{10}\neq 1: M4M_{4} is not orthogonal.

b)

M1M_{1} is orthogonal with determinant 0.36+0.64=10.36+0.64=1: it is a rotation, of the form (cos⁡θ−sin⁡θsin⁡θcos⁡θ)\begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix} with cos⁡θ=0.6\cos\theta=0.6 and sin⁡θ=0.8\sin\theta=0.8, so θ≈53.13∘\theta\approx 53.13^{\circ}.

c)

det⁡M2=−0.64−0.36=−1\det M_{2}=-0.64-0.36=-1: orthogonal with determinant −1-1, it is a reflection, of the form (cos⁡2θsin⁡2θsin⁡2θ−cos⁡2θ)\begin{pmatrix} \cos 2\theta & \sin 2\theta \\ \sin 2\theta & -\cos 2\theta \end{pmatrix}. cos⁡2θ=0.8\cos 2\theta=0.8 and sin⁡2θ=0.6\sin 2\theta=0.6 give 2θ≈36.87∘2\theta\approx 36.87^{\circ}, and the axis makes an angle θ≈18.43∘\theta\approx 18.43^{\circ} with the xx-axis.

d)

M3=22(22−222222)M_{3}=2\sqrt{2}\begin{pmatrix} \frac{\sqrt{2}}{2} & -\frac{\sqrt{2}}{2} \\ \frac{\sqrt{2}}{2} & \frac{\sqrt{2}}{2} \end{pmatrix}: the rotation through 45∘45^{\circ} followed by the dilation with factor 22≈2.832\sqrt{2}\approx 2.83. Check: det⁡M3=8=(22)2\det M_{3}=8=(2\sqrt{2})^{2}.

e)

det⁡M4=1\det M_{4}=1: areas are preserved, but the matrix is not orthogonal, so lengths are not. It is the horizontal shear that slides each point by 33 times its height.

The thread: orthogonal with determinant 11 is a rotation; with determinant −1-1, a reflection; a multiple of a rotation is a rotation-dilation; a determinant of 11 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.

What is it about?
I read every request myself, nobody else sees it. No need to write your name or your school.
When your request is dealt with, you hear about it by email and in your space.

By sending, you agree that I read your request to answer it. It is kept with your account, erased with it, and never published: privacy policy.

Previous chapter Vector spaces and subspaces, 201-SN4-RE Next chapter Eigenvalues and diagonalization, 201-SN4-RE

© Ahmed Squalli Houssaini. Exercise set published at www.letuteurscientifique.ca/en/exercices/cegep-sn4-linear-transformations. Free for personal and classroom use; republishing it elsewhere requires written permission (legal notice).

See also

Looking for a linear algebra tutor in Montreal?

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.

Site by Studio Squalli