MATH 133 Linear Algebra and Geometry • McGill University, Montreal

Corrected exercises: linear transformations and their matrices (MATH 133)

This is the corrected exercise set for the chapter on linear transformations of MATH 133, Linear Algebra and Geometry, the first-year course at McGill University, Nicholson sections 2.6 and 4.4. It covers the definition of linearity and how to refute it with one number, the theorem that every linear transformation from Rn\mathbb{R}^n to Rm\mathbb{R}^m is multiplication by a matrix, the geometric transformations of the plane (rotations, reflections and projections across a line y=mxy = mx, shears and stretches), composition and inverses, the area factor ∣det⁡A∣|\det A|, projections, reflections and rotations in R3\mathbb{R}^3, and the kernel and image read off the rank. No calculator is needed anywhere, as on the exam.

The thread running through the whole set: a linear transformation is decided entirely by where it sends e1,…,ene_1, \dots, e_n, and those images ARE the columns of its matrix. To find a matrix, ask where the standard basis goes; to read a matrix, read its columns. The same gesture answers a formula, a rotation, a reflection across a line, a projection onto a plane, data given on other vectors, a picture of a unit square, and the image of the map, which is simply the span of those columns.

The traps named explicitly in the solutions: writing the images as ROWS instead of columns, trusting T(0)=0T(0) = 0 as a proof of linearity, calling f(x)=3x+2f(x) = 3x + 2 linear, using images of non-standard vectors directly as columns, forgetting to divide by 1+m21 + m^2 in a reflection, multiplying a composition in reading order instead of right to left, writing the sine signs of a rotation about the yy-axis the wrong way round, treating a projection as invertible, and quoting det⁡A\det A instead of ∣det⁡A∣|\det A| as an area.

10 corrected exercises • 100 points • 150 minutes

Revision sheet for this chapter → Every MATH 133 chapter →

Course recap

  • • TT is linear when T(u+v)=T(u)+T(v)T(u + v) = T(u) + T(v) and T(cu)=cT(u)T(cu) = cT(u) for all u,vu, v and all scalars cc. Consequence: T(0)=0T(0) = 0, necessary but NOT sufficient.
  • • Every linear T:Rn→RmT : \mathbb{R}^n \to \mathbb{R}^m is T(x)=AxT(x) = Ax with A=(T(e1)⋯T(en))A = \begin{pmatrix} T(e_1) & \cdots & T(e_n) \end{pmatrix}, an m×nm \times n matrix whose COLUMNS are the images of the standard basis.
  • • Rotation by θ\theta counterclockwise: (cos⁡θ−sin⁡θsin⁡θcos⁡θ)\begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}. Shear x↦x+kyx \mapsto x + ky: (1k01)\begin{pmatrix} 1 & k \\ 0 & 1 \end{pmatrix}. Stretch: (a00b)\begin{pmatrix} a & 0 \\ 0 & b \end{pmatrix}.
  • • Line y=mxy = mx: projection P=11+m2(1mmm2)P = \frac{1}{1+m^2}\begin{pmatrix} 1 & m \\ m & m^2 \end{pmatrix}, reflection F=2P−I=11+m2(1−m22m2mm2−1)F = 2P - I = \frac{1}{1+m^2}\begin{pmatrix} 1-m^2 & 2m \\ 2m & m^2-1 \end{pmatrix}.
  • • Composition: the matrix of S∘TS \circ T (TT first) is ABAB with AA for SS and BB for TT: the map applied first sits next to xx. Inverse: Rθ−1=R−θR_\theta^{-1} = R_{-\theta}, F−1=FF^{-1} = F, a projection has none.
  • • TT multiplies every area by ∣det⁡A∣|\det A|; the sign of det⁡A\det A says whether orientation is kept or reversed.
  • • TT is one-to-one iff ker⁡T={0}\ker T = \{0\} iff rank =n= n; TT is onto iff im T=RmT = \mathbb{R}^m iff rank =m= m.

Part A: the basics (/50)

Exercise 1: Linear or not: one proof, three counterexamples

A transformation T:Rn→RmT : \mathbb{R}^n \to \mathbb{R}^m is linear when it respects the two operations of the course: T(u+v)=T(u)+T(v)T(u + v) = T(u) + T(v) and T(cu)=cT(u)T(cu) = cT(u) for all vectors u,vu, v and every scalar cc. Proving linearity means checking both identities with LETTERS; refuting it takes one explicit set of NUMBERS.

The figure shows the unit square and its image under S(x,y)=(x+1,y−2)S(x, y) = (x + 1, y - 2).

-1123-3-2-112squareimageS(0, 0)
  • a) Prove that T(x,y)=(2x−y, x+3y, −x)T(x, y) = (2x - y,\ x + 3y,\ -x) is linear, using the definition.
  • b) Name the feature of the figure that disqualifies SS at a glance, then confirm with the smallest numerical witness you can find.
  • c) Q(x,y)=(x2,y)Q(x, y) = (x^2, y) sends the origin to the origin. Is it linear? Settle it with numbers.
  • d) Prove in one line that every linear transformation sends 00 to 00. Which of b) and c) can this test decide?
  • e) In high school f(x)=3x+2f(x) = 3x + 2 is called a linear function. Is it a linear transformation of R\mathbb{R}? Which maps R→R\mathbb{R} \to \mathbb{R} are?
Show the solution

Answers

  • a) Linear: T(u+v)=T(u)+T(v)T(u + v) = T(u) + T(v) and T(cu)=cT(u)T(cu) = cT(u) hold for all u,v,cu, v, c.
  • b) Not linear: the origin moves, S(0,0)=(1,−2)≠(0,0)S(0, 0) = (1, -2) \neq (0, 0).
  • c) Not linear: Q(2,0)=(4,0)Q(2, 0) = (4, 0) but 2Q(1,0)=(2,0)2Q(1, 0) = (2, 0).
  • d) T(0)=T(0⋅0)=0 T(0)=0T(0) = T(0 \cdot 0) = 0\,T(0) = 0; it decides b) but not c).
  • e) No, f(0)=2f(0) = 2; the linear maps of R\mathbb{R} are exactly f(x)=axf(x) = ax.

a) Take u=(x1,y1)u = (x_1, y_1), v=(x2,y2)v = (x_2, y_2) and a scalar cc. Then T(u+v)=(2(x1+x2)−(y1+y2), (x1+x2)+3(y1+y2), −(x1+x2))T(u + v) = (2(x_1 + x_2) - (y_1 + y_2),\ (x_1 + x_2) + 3(y_1 + y_2),\ -(x_1 + x_2)), and regrouping each coordinate gives (2x1−y1,x1+3y1,−x1)+(2x2−y2,x2+3y2,−x2)=T(u)+T(v)(2x_1 - y_1, x_1 + 3y_1, -x_1) + (2x_2 - y_2, x_2 + 3y_2, -x_2) = T(u) + T(v). Likewise T(cu)=(2cx1−cy1, cx1+3cy1, −cx1)=c T(u)T(cu) = (2cx_1 - cy_1,\ cx_1 + 3cy_1,\ -cx_1) = c\,T(u). Both identities hold for ALL inputs, so TT is linear. The proof works because every coordinate is a combination of xx and yy with no constant term, no product and no power: that is exactly what the chapter's theorem will turn into T(x)=AxT(x) = Ax with A=(2−113−10)A = \begin{pmatrix} 2 & -1 \\ 1 & 3 \\ -1 & 0 \end{pmatrix}. Checking the identities on one or two particular vectors proves nothing: a proof of linearity must use letters.

b) The square has been slid away from the origin: its corner at (0,0)(0, 0) now sits at (1,−2)(1, -2). A linear map can stretch, turn, flip or crush the square, but it can never move the origin, so the picture already says no. The smallest witness is the zero vector itself: S(0,0)=(1,−2)≠(0,0)S(0, 0) = (1, -2) \neq (0, 0). If you want the additivity rule to fail visibly as well, S(1,0)+S(0,1)=(2,−2)+(1,−1)=(3,−3)S(1, 0) + S(0, 1) = (2, -2) + (1, -1) = (3, -3) while S(1,1)=(2,−1)S(1, 1) = (2, -1). A translation is the textbook example of a map that is geometrically simple and algebraically NOT linear: the constant +1+1 and −2-2 are what break it.

c) QQ passes the origin test, and that proves nothing. Try the scaling rule with c=2c = 2 on e1e_1: Q(2,0)=(4,0)Q(2, 0) = (4, 0), but 2 Q(1,0)=2(1,0)=(2,0)2\,Q(1, 0) = 2(1, 0) = (2, 0). The two differ, so QQ is not linear. The square is the culprit: doubling the input quadruples the first output. This is the trap the exercise is built around, and it costs the whole part on a midterm: T(0)=0T(0) = 0 is a NECESSARY condition, never a sufficient one. When the origin test passes you still owe either a proof with letters or a counterexample with numbers.

d) Using homogeneity with c=0c = 0: T(0)=T(0⋅0)=0⋅T(0)=0T(0) = T(0 \cdot 0) = 0 \cdot T(0) = 0. (Additivity gives it too: T(0)=T(0+0)=T(0)+T(0)T(0) = T(0 + 0) = T(0) + T(0), then subtract T(0)T(0).) So a map with T(0)≠0T(0) \neq 0 is not linear, which decides b) in one line. It cannot decide c), because Q(0)=0Q(0) = 0: the test only ever KILLS a candidate, it never saves one. On an exam it is the first thing to try, because it costs five seconds and settles every translation.

e) No. f(0)=2≠0f(0) = 2 \neq 0, and additivity fails too: f(1)+f(1)=10f(1) + f(1) = 10 while f(2)=8f(2) = 8. What high school calls linear, a straight-line graph, linear algebra calls AFFINE: a linear map plus a translation. The linear transformations R→R\mathbb{R} \to \mathbb{R} are exactly f(x)=axf(x) = ax, the lines through the origin, and their matrix is the 1×11 \times 1 matrix (a)(a), whose single column is f(1)=af(1) = a, the image of the one standard basis vector. Using the high-school meaning of the word in a proof is a vocabulary error that markers penalize every term.

Exercise 2: Every linear map is a matrix: the columns are the images

The central theorem of the chapter: if T:Rn→RmT : \mathbb{R}^n \to \mathbb{R}^m is linear, then T(x)=AxT(x) = Ax for the m×nm \times n matrix A=(T(e1)T(e2)⋯T(en))A = \begin{pmatrix} T(e_1) & T(e_2) & \cdots & T(e_n) \end{pmatrix}, called the standard matrix of TT. Its COLUMNS are the images of the standard basis vectors. This exercise builds the matrix from a formula, then reads a matrix back as a list of images.

  • a) T:R3→R2T : \mathbb{R}^3 \to \mathbb{R}^2 is T(x,y,z)=(x−2y+4z, 3x+z)T(x, y, z) = (x - 2y + 4z,\ 3x + z). Compute T(e1)T(e_1), T(e2)T(e_2), T(e3)T(e_3) and write the standard matrix. What is its size?
  • b) Check T(x)=AxT(x) = Ax at x=(2,−1,1)x = (2, -1, 1), once with the formula and once as a combination of the columns.
  • c) Prove the theorem: for any linear TT, T(x)=AxT(x) = Ax with A=(T(e1)⋯T(en))A = \begin{pmatrix} T(e_1) & \cdots & T(e_n) \end{pmatrix}.
  • d) B=(2−10311)B = \begin{pmatrix} 2 & -1 \\ 0 & 3 \\ 1 & 1 \end{pmatrix} defines TB(x)=BxT_B(x) = Bx. Give its domain and codomain, TB(e2)T_B(e_2), and TB(4,−3)T_B(4, -3).
  • e) A linear U:R2→R2U : \mathbb{R}^2 \to \mathbb{R}^2 satisfies U(e1)=(2,5)U(e_1) = (2, 5) and U(e2)=(−1,3)U(e_2) = (-1, 3). Find U(4,−2)U(4, -2) without writing a formula, then write the formula.
Show the solution

Answers

  • a) T(e1)=(1,3)T(e_1) = (1, 3), T(e2)=(−2,0)T(e_2) = (-2, 0), T(e3)=(4,1)T(e_3) = (4, 1); A=(1−24301)A = \begin{pmatrix} 1 & -2 & 4 \\ 3 & 0 & 1 \end{pmatrix}, size 2×32 \times 3.
  • b) Both give (8,7)(8, 7).
  • c) T(x)=T(∑xiei)=∑xiT(ei)=AxT(x) = T(\sum x_i e_i) = \sum x_i T(e_i) = Ax.
  • d) R2→R3\mathbb{R}^2 \to \mathbb{R}^3; TB(e2)=(−1,3,1)T_B(e_2) = (-1, 3, 1); TB(4,−3)=(11,−9,1)T_B(4, -3) = (11, -9, 1).
  • e) U(4,−2)=(10,14)U(4, -2) = (10, 14); U(x,y)=(2x−y, 5x+3y)U(x, y) = (2x - y,\ 5x + 3y).

a) Substitute each standard basis vector. T(e1)=T(1,0,0)=(1,3)T(e_1) = T(1, 0, 0) = (1, 3), T(e2)=T(0,1,0)=(−2,0)T(e_2) = T(0, 1, 0) = (-2, 0), T(e3)=T(0,0,1)=(4,1)T(e_3) = T(0, 0, 1) = (4, 1). Stand them up as COLUMNS: A=(1−24301)A = \begin{pmatrix} 1 & -2 & 4 \\ 3 & 0 & 1 \end{pmatrix}. The size is 2×32 \times 3: as many rows as the dimension of the CODOMAIN, as many columns as the dimension of the DOMAIN, because there is one column per input basis vector. A 3×23 \times 2 answer is the transposed matrix, the classic slip of writing the images as rows, and it cannot even be multiplied by a vector of R3\mathbb{R}^3. Notice that the rows of AA are the coefficient lists of the two output formulas: that is a useful cross-check, never the definition.

b) With the formula: T(2,−1,1)=(2+2+4, 6+0+1)=(8,7)T(2, -1, 1) = (2 + 2 + 4,\ 6 + 0 + 1) = (8, 7). As a combination of columns: Ax=2(13)−1(−20)+1(41)=(2+2+46−0+1)=(87)Ax = 2\begin{pmatrix} 1 \\ 3 \end{pmatrix} - 1\begin{pmatrix} -2 \\ 0 \end{pmatrix} + 1\begin{pmatrix} 4 \\ 1 \end{pmatrix} = \begin{pmatrix} 2 + 2 + 4 \\ 6 - 0 + 1 \end{pmatrix} = \begin{pmatrix} 8 \\ 7 \end{pmatrix}. The second reading is the one to keep: AxAx is the combination of the columns of AA with the entries of xx as weights, so the image of TT is exactly the span of the columns, a fact exercise 10 will use.

c) Write x=(x1,…,xn)=x1e1+x2e2+⋯+xnenx = (x_1, \dots, x_n) = x_1 e_1 + x_2 e_2 + \cdots + x_n e_n. Linearity lets TT pass through the sum and the scalars: T(x)=x1T(e1)+x2T(e2)+⋯+xnT(en)T(x) = x_1 T(e_1) + x_2 T(e_2) + \cdots + x_n T(e_n). The right-hand side is precisely the product of the matrix whose columns are T(e1),…,T(en)T(e_1), \dots, T(e_n) with the vector xx. So T(x)=AxT(x) = Ax for every xx. Two consequences worth a sentence on any exam: a linear map is COMPLETELY decided by nn vectors, the images of the basis; and two linear maps that agree on e1,…,ene_1, \dots, e_n agree everywhere.

d) BB is 3×23 \times 2, so it multiplies vectors of R2\mathbb{R}^2 and returns vectors of R3\mathbb{R}^3: TB:R2→R3T_B : \mathbb{R}^2 \to \mathbb{R}^3. TB(e2)T_B(e_2) is the SECOND COLUMN, (−1,3,1)(-1, 3, 1). The trap is to read the second row, (0,3)(0, 3), which is not even a vector of the codomain. Then TB(4,−3)=4(2,0,1)−3(−1,3,1)=(8+3, 0−9, 4−3)=(11,−9,1)T_B(4, -3) = 4(2, 0, 1) - 3(-1, 3, 1) = (8 + 3,\ 0 - 9,\ 4 - 3) = (11, -9, 1). Reading a matrix as a list of images is the same gesture as building it, run backwards.

e) Linearity alone suffices: U(4,−2)=U(4e1−2e2)=4U(e1)−2U(e2)=4(2,5)−2(−1,3)=(8+2, 20−6)=(10,14)U(4, -2) = U(4e_1 - 2e_2) = 4U(e_1) - 2U(e_2) = 4(2, 5) - 2(-1, 3) = (8 + 2,\ 20 - 6) = (10, 14). The standard matrix is (2−153)\begin{pmatrix} 2 & -1 \\ 5 & 3 \end{pmatrix}, its columns being the two given images, and its rows give the formula U(x,y)=(2x−y, 5x+3y)U(x, y) = (2x - y,\ 5x + 3y). Check: U(4,−2)=(8+2,20−6)=(10,14)U(4, -2) = (8 + 2, 20 - 6) = (10, 14), the same answer. Two data vectors decided the whole map, exactly as part c) promised.

Exercise 3: Rotations, shears and stretches: the matrix from a picture

When the transformation is described in words or by a picture, there is no formula to read coefficients from. The gesture is the same anyway: draw e1e_1 and e2e_2, draw where they land, and write those two images as columns.

The figure shows e1e_1, e2e_2 and their images under the rotation TT by an angle θ\theta counterclockwise about the origin.

e1e2T(e1)T(e2)θθ
  • a) Read T(e1)T(e_1) and T(e2)T(e_2) off the figure with trigonometry and derive the rotation matrix RθR_\theta.
  • b) Write RθR_\theta exactly for θ=2π/3\theta = 2\pi/3 and compute the image of (3,1)(\sqrt{3}, 1). Check the answer geometrically.
  • c) The horizontal shear of factor 33 slides every point parallel to the xx-axis by 33 times its height. Find its standard matrix.
  • d) Find the matrix of the stretch by a factor 22 horizontally and 1/31/3 vertically, and of the dilation by a factor 55. Give the image of (3,6)(3, 6) under the stretch.
  • e) Is 15(3−443)\frac{1}{5}\begin{pmatrix} 3 & -4 \\ 4 & 3 \end{pmatrix} a rotation? And (11−11)\begin{pmatrix} 1 & 1 \\ -1 & 1 \end{pmatrix}? Justify from the columns.
Show the solution

Answers

  • a) Rθ=(cos⁡θ−sin⁡θsin⁡θcos⁡θ)R_\theta = \begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}
  • b) R2π/3=(−1/2−3/23/2−1/2)R_{2\pi/3} = \begin{pmatrix} -1/2 & -\sqrt{3}/2 \\ \sqrt{3}/2 & -1/2 \end{pmatrix}; image (−3,1)(-\sqrt{3}, 1).
  • c) (1301)\begin{pmatrix} 1 & 3 \\ 0 & 1 \end{pmatrix}
  • d) (2001/3)\begin{pmatrix} 2 & 0 \\ 0 & 1/3 \end{pmatrix} and 5I5I; (3,6)↦(6,2)(3, 6) \mapsto (6, 2).
  • e) Yes, rotation with cos⁡θ=3/5\cos\theta = 3/5, sin⁡θ=4/5\sin\theta = 4/5. No: rotation by −π/4-\pi/4 times a dilation by 2\sqrt{2}.

a) e1e_1 is a unit vector along the xx-axis; turned by θ\theta it stays on the unit circle, at angle θ\theta, so T(e1)=(cos⁡θ,sin⁡θ)T(e_1) = (\cos\theta, \sin\theta). e2e_2 sits at angle π/2\pi/2 and lands at angle θ+π/2\theta + \pi/2: T(e2)=(cos⁡(θ+π/2),sin⁡(θ+π/2))=(−sin⁡θ,cos⁡θ)T(e_2) = (\cos(\theta + \pi/2), \sin(\theta + \pi/2)) = (-\sin\theta, \cos\theta). Columns: Rθ=(cos⁡θ−sin⁡θsin⁡θcos⁡θ)R_\theta = \begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}. The minus sign sits in the FIRST row because T(e2)T(e_2) points to the left of the yy-axis for small positive θ\theta, as the figure shows. Why is a rotation linear at all? Turning the parallelogram built on uu and vv turns its diagonal u+vu + v with it, and turning a vector twice as long gives a vector twice as long: the two rules of the definition, read on the picture.

b) cos⁡(2π/3)=−1/2\cos(2\pi/3) = -1/2 and sin⁡(2π/3)=3/2\sin(2\pi/3) = \sqrt{3}/2, so R=(−1/2−3/23/2−1/2)R = \begin{pmatrix} -1/2 & -\sqrt{3}/2 \\ \sqrt{3}/2 & -1/2 \end{pmatrix}. Then R(3,1)=(−3/2−3/2, 3/2−1/2)=(−3,1)R(\sqrt{3}, 1) = (-\sqrt{3}/2 - \sqrt{3}/2,\ 3/2 - 1/2) = (-\sqrt{3}, 1). Geometric check: (3,1)(\sqrt{3}, 1) has length 22 and angle π/6\pi/6; after a turn of 2π/32\pi/3 it must have length 22 and angle 5π/65\pi/6, which is (2cos⁡(5π/6),2sin⁡(5π/6))=(−3,1)(2\cos(5\pi/6), 2\sin(5\pi/6)) = (-\sqrt{3}, 1). Both agree. A rotation must preserve lengths: if your image of a vector of length 22 has another length, a sign is wrong.

c) A point at height yy moves by 3y3y horizontally: (x,y)↦(x+3y,y)(x, y) \mapsto (x + 3y, y). So e1e_1, at height 00, does not move: T(e1)=(1,0)T(e_1) = (1, 0); e2e_2, at height 11, moves to (3,1)(3, 1). Columns: (1301)\begin{pmatrix} 1 & 3 \\ 0 & 1 \end{pmatrix}. The trap is to put the 33 below the diagonal, (1031)\begin{pmatrix} 1 & 0 \\ 3 & 1 \end{pmatrix}, which is the VERTICAL shear: it sends e1e_1 to (1,3)(1, 3) and moves points up in proportion to their abscissa. Asking where e1e_1 goes settles which one you wrote in two seconds.

d) The stretch sends e1e_1 to (2,0)(2, 0) and e2e_2 to (0,1/3)(0, 1/3): (2001/3)\begin{pmatrix} 2 & 0 \\ 0 & 1/3 \end{pmatrix}, and (3,6)↦(6,2)(3, 6) \mapsto (6, 2). The dilation by 55 sends every vector to 55 times itself, so e1↦(5,0)e_1 \mapsto (5, 0), e2↦(0,5)e_2 \mapsto (0, 5) and the matrix is 5I=(5005)5I = \begin{pmatrix} 5 & 0 \\ 0 & 5 \end{pmatrix}, not the 1×11 \times 1 number 55 and not a matrix full of fives. Diagonal matrices are exactly the maps that act on each axis separately, which is why their columns are multiples of e1e_1 and e2e_2.

e) A rotation matrix has columns of length 11, perpendicular to each other, and determinant +1+1. For 15(3−443)\frac{1}{5}\begin{pmatrix} 3 & -4 \\ 4 & 3 \end{pmatrix}: (32+42)/25=1(3^2 + 4^2)/25 = 1 for each column, 3⋅(−4)+4⋅3=03 \cdot (-4) + 4 \cdot 3 = 0, and det⁡=(9+16)/25=1\det = (9 + 16)/25 = 1. It is the rotation by the angle θ\theta with cos⁡θ=3/5\cos\theta = 3/5 and sin⁡θ=4/5\sin\theta = 4/5, about 0.930.93 radian. For (11−11)\begin{pmatrix} 1 & 1 \\ -1 & 1 \end{pmatrix} the columns are perpendicular but of length 2\sqrt{2} and det⁡=2\det = 2: not a rotation. Its first column (1,−1)(1, -1) points at angle −π/4-\pi/4, so it is the rotation by −π/4-\pi/4 followed by the dilation by 2\sqrt{2}: 2 R−π/4=2(2/22/2−2/22/2)\sqrt{2}\,R_{-\pi/4} = \sqrt{2}\begin{pmatrix} \sqrt{2}/2 & \sqrt{2}/2 \\ -\sqrt{2}/2 & \sqrt{2}/2 \end{pmatrix}, which is the given matrix.

Exercise 4: Reflecting and projecting across a line y = mx

Let LL be the line y=2xy = 2x, with direction vector d=(1,2)d = (1, 2). The projection PP onto LL drops every point perpendicularly onto LL; the reflection FF across LL sends every point to its mirror image, on the other side of LL at the same distance.

The figure shows e1e_1, the foot P(e1)P(e_1) of the perpendicular from e1e_1 to LL, and the mirror image F(e1)F(e_1). The images are known geometrically; the coordinates are what you must compute.

L: y = 2xe1P(e1)F(e1)
  • a) Using projd(v)=v⋅dd⋅d d\text{proj}_d(v) = \frac{v \cdot d}{d \cdot d}\,d, compute P(e1)P(e_1) and P(e2)P(e_2) and write the standard matrix of PP.
  • b) Explain from the figure why F(v)=2P(v)−vF(v) = 2P(v) - v for every vv, and deduce the standard matrix of FF.
  • c) Show that for the line y=mxy = mx the reflection matrix is 11+m2(1−m22m2mm2−1)\frac{1}{1+m^2}\begin{pmatrix} 1-m^2 & 2m \\ 2m & m^2-1 \end{pmatrix}, and test it on m=0m = 0 and m=1m = 1.
  • d) Compute F(5,0)F(5, 0) and check the answer with two geometric facts.
  • e) The yy-axis is not a line y=mxy = mx. Find the matrices of the reflection across it and of the projection onto it.
Show the solution

Answers

  • a) P(e1)=15(1,2)P(e_1) = \frac{1}{5}(1, 2), P(e2)=25(1,2)P(e_2) = \frac{2}{5}(1, 2), P=15(1224)P = \frac{1}{5}\begin{pmatrix} 1 & 2 \\ 2 & 4 \end{pmatrix}
  • b) F=2P−I=15(−3443)F = 2P - I = \frac{1}{5}\begin{pmatrix} -3 & 4 \\ 4 & 3 \end{pmatrix}
  • c) m=0m = 0 gives (100−1)\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, m=1m = 1 gives (0110)\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}.
  • d) F(5,0)=(−3,4)F(5, 0) = (-3, 4): length 55, midpoint (1,2)(1, 2) on LL.
  • e) Reflection (−1001)\begin{pmatrix} -1 & 0 \\ 0 & 1 \end{pmatrix}, projection (0001)\begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix}.

a) d⋅d=1+4=5d \cdot d = 1 + 4 = 5. For e1e_1: e1⋅d=1e_1 \cdot d = 1, so P(e1)=15(1,2)=(1/5,2/5)P(e_1) = \frac{1}{5}(1, 2) = (1/5, 2/5), the green point of the figure. For e2e_2: e2⋅d=2e_2 \cdot d = 2, so P(e2)=25(1,2)=(2/5,4/5)P(e_2) = \frac{2}{5}(1, 2) = (2/5, 4/5). Columns: P=15(1224)P = \frac{1}{5}\begin{pmatrix} 1 & 2 \\ 2 & 4 \end{pmatrix}. Check on a vector you know: dd itself lies on LL and must not move, and indeed P(1,2)=15(1+4, 2+8)=(1,2)P(1, 2) = \frac{1}{5}(1 + 4,\ 2 + 8) = (1, 2). A vector perpendicular to LL, such as (2,−1)(2, -1), must be crushed to 00: 15(2−2, 4−4)=(0,0)\frac{1}{5}(2 - 2,\ 4 - 4) = (0, 0). The projection formula is from the dot product chapter; the new step here is only to apply it to e1e_1 and e2e_2 and stand the results up as columns.

b) On the figure P(e1)P(e_1) is the MIDPOINT of the segment from e1e_1 to F(e1)F(e_1), since the mirror image is on the perpendicular, at the same distance on the other side. The midpoint of vv and F(v)F(v) is 12(v+F(v))\frac{1}{2}(v + F(v)), so P(v)=12(v+F(v))P(v) = \frac{1}{2}(v + F(v)), that is F(v)=2P(v)−vF(v) = 2P(v) - v. In matrices, F=2P−I=15(2448)−15(5005)=15(−3443)F = 2P - I = \frac{1}{5}\begin{pmatrix} 2 & 4 \\ 4 & 8 \end{pmatrix} - \frac{1}{5}\begin{pmatrix} 5 & 0 \\ 0 & 5 \end{pmatrix} = \frac{1}{5}\begin{pmatrix} -3 & 4 \\ 4 & 3 \end{pmatrix}. So F(e1)=(−3/5,4/5)F(e_1) = (-3/5, 4/5), the orange arrow: it has length 11, as a reflection of a unit vector must.

c) With d=(1,m)d = (1, m) and d⋅d=1+m2d \cdot d = 1 + m^2: P(e1)=11+m2(1,m)P(e_1) = \frac{1}{1+m^2}(1, m) and P(e2)=m1+m2(1,m)P(e_2) = \frac{m}{1+m^2}(1, m), so P=11+m2(1mmm2)P = \frac{1}{1+m^2}\begin{pmatrix} 1 & m \\ m & m^2 \end{pmatrix}. Then F=2P−IF = 2P - I has entries 2−(1+m2)1+m2=1−m21+m2\frac{2 - (1 + m^2)}{1+m^2} = \frac{1 - m^2}{1+m^2}, 2m1+m2\frac{2m}{1+m^2} twice, and 2m2−(1+m2)1+m2=m2−11+m2\frac{2m^2 - (1 + m^2)}{1+m^2} = \frac{m^2 - 1}{1+m^2}, which is the formula. For m=0m = 0, the xx-axis: (100−1)\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, which keeps xx and flips yy. For m=1m = 1, the line y=xy = x: (0110)\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, which swaps the coordinates. Forgetting the factor 11+m2\frac{1}{1+m^2} is the classic loss: the columns then have length greater than 11 and the map stretches the plane, which no mirror does.

d) F(5,0)=15(−15,20)=(−3,4)F(5, 0) = \frac{1}{5}(-15, 20) = (-3, 4). First check: a reflection preserves lengths, and ∣(5,0)∣=5=9+16=∣(−3,4)∣|(5, 0)| = 5 = \sqrt{9 + 16} = |(-3, 4)|. Second check: the midpoint of (5,0)(5, 0) and (−3,4)(-3, 4) is (1,2)(1, 2), which lies on LL since 2=2×12 = 2 \times 1, and equals P(5,0)=15(5,10)=(1,2)P(5, 0) = \frac{1}{5}(5, 10) = (1, 2). Both facts come from the figure, not from the formula, which is what makes them real checks. On an exam, one such line catches a sign error that would otherwise cost the whole part.

e) Read the images directly. The reflection across the yy-axis sends e1e_1 to (−1,0)(-1, 0) and leaves e2e_2 in place: (−1001)\begin{pmatrix} -1 & 0 \\ 0 & 1 \end{pmatrix}. The projection onto the yy-axis crushes e1e_1 to 00 and keeps e2e_2: (0001)\begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix}. The general formula agrees in the limit: as m→∞m \to \infty, 1−m21+m2→−1\frac{1 - m^2}{1 + m^2} \to -1, 2m1+m2→0\frac{2m}{1 + m^2} \to 0 and m2−11+m2→1\frac{m^2 - 1}{1 + m^2} \to 1. The lesson is that a formula is a convenience; the images of e1e_1 and e2e_2 are the method, and they never fail on a vertical line.

Exercise 5: When the data are not the images of e1 and e2

An exam often gives a linear map through the images of vectors that are NOT the standard basis. The columns of the matrix are still T(e1),…,T(en)T(e_1), \dots, T(e_n), so the job is to recover those images first, by writing each eie_i as a combination of the given vectors.

The figure shows v1=(1,1)v_1 = (1, 1), v2=(1,−1)v_2 = (1, -1) and why e1e_1 is reachable from them.

v1 = (1, 1)v2 = (1, -1)v1 + v2e1
  • a) T:R2→R2T : \mathbb{R}^2 \to \mathbb{R}^2 is linear with T(1,1)=(3,1)T(1, 1) = (3, 1) and T(1,−1)=(1,5)T(1, -1) = (1, 5). Find T(e1)T(e_1), T(e2)T(e_2) and the standard matrix AA.
  • b) Redo a) in one line of matrices: explain why A=WV−1A = WV^{-1}, where VV has columns v1,v2v_1, v_2 and WW has columns T(v1),T(v2)T(v_1), T(v_2).
  • c) S:R2→R3S : \mathbb{R}^2 \to \mathbb{R}^3 is linear with S(1,2)=(1,0,3)S(1, 2) = (1, 0, 3) and S(3,5)=(2,1,4)S(3, 5) = (2, 1, 4). Find its standard matrix.
  • d) Is there a linear TT with T(1,2)=(1,1)T(1, 2) = (1, 1) and T(2,4)=(3,0)T(2, 4) = (3, 0)? Justify.
  • e) Only T(1,2)=(4,−1)T(1, 2) = (4, -1) is given. Show that TT is not determined by giving two different standard matrices that fit.
Show the solution

Answers

  • a) T(e1)=(2,3)T(e_1) = (2, 3), T(e2)=(1,−2)T(e_2) = (1, -2), A=(213−2)A = \begin{pmatrix} 2 & 1 \\ 3 & -2 \end{pmatrix}
  • b) AV=WAV = W and VV is invertible, so A=WV−1A = WV^{-1}; same matrix.
  • c) (−112−1−75)\begin{pmatrix} -1 & 1 \\ 2 & -1 \\ -7 & 5 \end{pmatrix}
  • d) No: (2,4)=2(1,2)(2, 4) = 2(1, 2) forces T(2,4)=(2,2)≠(3,0)T(2, 4) = (2, 2) \neq (3, 0).
  • e) For instance (40−10)\begin{pmatrix} 4 & 0 \\ -1 & 0 \end{pmatrix} and (020−1/2)\begin{pmatrix} 0 & 2 \\ 0 & -1/2 \end{pmatrix}.

a) The figure shows v1+v2=(2,0)=2e1v_1 + v_2 = (2, 0) = 2e_1, so e1=12(v1+v2)e_1 = \frac{1}{2}(v_1 + v_2); similarly v1−v2=(0,2)v_1 - v_2 = (0, 2) gives e2=12(v1−v2)e_2 = \frac{1}{2}(v_1 - v_2). By linearity, T(e1)=12((3,1)+(1,5))=(2,3)T(e_1) = \frac{1}{2}\big((3, 1) + (1, 5)\big) = (2, 3) and T(e2)=12((3,1)−(1,5))=(1,−2)T(e_2) = \frac{1}{2}\big((3, 1) - (1, 5)\big) = (1, -2). So A=(213−2)A = \begin{pmatrix} 2 & 1 \\ 3 & -2 \end{pmatrix}. Check: A(1,1)=(3,1)A(1, 1) = (3, 1) and A(1,−1)=(1,5)A(1, -1) = (1, 5). The trap of the exercise is to write (3115)\begin{pmatrix} 3 & 1 \\ 1 & 5 \end{pmatrix}, the given images used as columns: that matrix sends e1e_1 to (3,1)(3, 1), not v1v_1, and it fails the check at once. The columns are ALWAYS the images of e1e_1 and e2e_2, whatever vectors the statement happens to use.

b) Av1=T(v1)Av_1 = T(v_1) and Av2=T(v2)Av_2 = T(v_2) say, column by column, that AV=WAV = W. The columns of VV are independent, so VV is invertible and A=WV−1A = WV^{-1}. Here V=(111−1)V = \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix} has det⁡V=−2\det V = -2 and V−1=12(111−1)V^{-1} = \frac{1}{2}\begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}, so WV−1=12(3115)(111−1)=12(426−4)WV^{-1} = \frac{1}{2}\begin{pmatrix} 3 & 1 \\ 1 & 5 \end{pmatrix}\begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix} = \frac{1}{2}\begin{pmatrix} 4 & 2 \\ 6 & -4 \end{pmatrix}, which is AA. The order is forced: V−1V^{-1} on the RIGHT, because VV multiplies AA on the right. V−1WV^{-1}W is a different matrix and a wrong answer.

c) Write e1e_1 and e2e_2 in terms of u1=(1,2)u_1 = (1, 2) and u2=(3,5)u_2 = (3, 5). With U=(1325)U = \begin{pmatrix} 1 & 3 \\ 2 & 5 \end{pmatrix}, det⁡U=5−6=−1\det U = 5 - 6 = -1 and U−1=(−532−1)U^{-1} = \begin{pmatrix} -5 & 3 \\ 2 & -1 \end{pmatrix}, whose columns give e1=−5u1+2u2e_1 = -5u_1 + 2u_2 and e2=3u1−u2e_2 = 3u_1 - u_2. Check: −5(1,2)+2(3,5)=(1,0)-5(1, 2) + 2(3, 5) = (1, 0) and 3(1,2)−(3,5)=(0,1)3(1, 2) - (3, 5) = (0, 1). Then S(e1)=−5(1,0,3)+2(2,1,4)=(−1,2,−7)S(e_1) = -5(1, 0, 3) + 2(2, 1, 4) = (-1, 2, -7) and S(e2)=3(1,0,3)−(2,1,4)=(1,−1,5)S(e_2) = 3(1, 0, 3) - (2, 1, 4) = (1, -1, 5), so the matrix is (−112−1−75)\begin{pmatrix} -1 & 1 \\ 2 & -1 \\ -7 & 5 \end{pmatrix}, of size 3×23 \times 2. Final check: it sends (1,2)(1, 2) to (−1+2,2−2,−7+10)=(1,0,3)(-1 + 2, 2 - 2, -7 + 10) = (1, 0, 3) and (3,5)(3, 5) to (−3+5,6−5,−21+25)=(2,1,4)(-3 + 5, 6 - 5, -21 + 25) = (2, 1, 4).

d) No. (2,4)=2(1,2)(2, 4) = 2(1, 2), so linearity forces T(2,4)=2T(1,2)=(2,2)T(2, 4) = 2T(1, 2) = (2, 2), and the statement asks for (3,0)(3, 0). The data contradict the scaling rule, so no linear map fits. This is the reason the method always starts from vectors that form a basis: data given on DEPENDENT vectors are either redundant or contradictory, and here they are contradictory.

e) One vector does not form a basis of R2\mathbb{R}^2, so TT is free along any direction independent of (1,2)(1, 2). Since T(1,2)=T(e1)+2T(e2)T(1, 2) = T(e_1) + 2T(e_2), any choice of T(e2)T(e_2) works with T(e1)=(4,−1)−2T(e2)T(e_1) = (4, -1) - 2T(e_2). Choosing T(e2)=0T(e_2) = 0 gives (40−10)\begin{pmatrix} 4 & 0 \\ -1 & 0 \end{pmatrix}; choosing T(e1)=0T(e_1) = 0 gives T(e2)=(2,−1/2)T(e_2) = (2, -1/2) and (020−1/2)\begin{pmatrix} 0 & 2 \\ 0 & -1/2 \end{pmatrix}. Both send (1,2)(1, 2) to (4,−1)(4, -1) and they differ, for instance on e1e_1. To pin down a linear map on Rn\mathbb{R}^n you need its values on nn independent vectors, no fewer and no dependent ones.

Part B: problems and reasoning (/50)

Exercise 6: Composition: the matrix applied first sits next to x

Let TT be the rotation by π/2\pi/2 counterclockwise and SS the reflection across the xx-axis. The composition S∘TS \circ T means: apply TT first, then SS. Since (S∘T)(x)=S(T(x))=AS(ATx)(S \circ T)(x) = S(T(x)) = A_S(A_T x), its matrix is the PRODUCT ASATA_S A_T, written in the opposite order to the one in which the maps act.

The figure shows a flag and its images under S∘TS \circ T and under T∘ST \circ S, in an order you must work out.

-3-2-1123-2-1123flagimage 1image 2
  • a) Write the matrices of TT and SS, then the matrices of S∘TS \circ T and T∘ST \circ S.
  • b) Identify each composition as a single geometric transformation, and say which of image 1 and image 2 is S∘TS \circ T.
  • c) Show that RαRβ=Rα+βR_\alpha R_\beta = R_{\alpha + \beta} and read off the addition formulas for cos⁡(α+β)\cos(\alpha + \beta) and sin⁡(α+β)\sin(\alpha + \beta).
  • d) Reflect across the xx-axis, then across the line y=xy = x. Show that the result is a rotation and give its angle. What changes if the order is reversed?
  • e) T1:R3→R2T_1 : \mathbb{R}^3 \to \mathbb{R}^2 and T2:R2→R4T_2 : \mathbb{R}^2 \to \mathbb{R}^4 are linear. Which of T2∘T1T_2 \circ T_1 and T1∘T2T_1 \circ T_2 exists, and what is the size of its matrix?
Show the solution

Answers

  • a) AT=(0−110)A_T = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}, AS=(100−1)A_S = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}; S∘TS \circ T: (0−1−10)\begin{pmatrix} 0 & -1 \\ -1 & 0 \end{pmatrix}, T∘ST \circ S: (0110)\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}.
  • b) S∘TS \circ T is the reflection across y=−xy = -x (image 2); T∘ST \circ S the reflection across y=xy = x (image 1).
  • c) cos⁡(α+β)=cos⁡αcos⁡β−sin⁡αsin⁡β\cos(\alpha+\beta) = \cos\alpha\cos\beta - \sin\alpha\sin\beta, sin⁡(α+β)=sin⁡αcos⁡β+cos⁡αsin⁡β\sin(\alpha+\beta) = \sin\alpha\cos\beta + \cos\alpha\sin\beta.
  • d) Rotation by π/2\pi/2 (twice the π/4\pi/4 between the mirrors); reversed order gives the rotation by −π/2-\pi/2.
  • e) Only T2∘T1T_2 \circ T_1, with a 4×34 \times 3 matrix.

a) TT sends e1e_1 to e2e_2 and e2e_2 to −e1-e_1: AT=(0−110)A_T = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}. SS keeps e1e_1 and sends e2e_2 to −e2-e_2: AS=(100−1)A_S = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}. Then S∘TS \circ T has matrix ASAT=(0−1−10)A_S A_T = \begin{pmatrix} 0 & -1 \\ -1 & 0 \end{pmatrix} and T∘ST \circ S has matrix ATAS=(0110)A_T A_S = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}. Test the first column by hand, which takes five seconds and catches every order error: T(e1)=e2T(e_1) = e_2, then S(e2)=−e2=(0,−1)S(e_2) = -e_2 = (0, -1), which is indeed the first column of ASATA_S A_T. Writing ATASA_T A_S for S∘TS \circ T, because TT is read first, is the most expensive slip of the chapter: the answer is a different transformation, and nothing in the arithmetic warns you.

b) (0−1−10)\begin{pmatrix} 0 & -1 \\ -1 & 0 \end{pmatrix} sends (x,y)(x, y) to (−y,−x)(-y, -x): it is the formula of exercise 4 with m=−1m = -1, the reflection across y=−xy = -x. (0110)\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} sends (x,y)(x, y) to (y,x)(y, x): the reflection across y=xy = x. On the figure the pole of the flag runs from (0.5,0.5)(0.5, 0.5) to (0.5,2.5)(0.5, 2.5). Under (x,y)↦(y,x)(x, y) \mapsto (y, x) it goes to the segment from (0.5,0.5)(0.5, 0.5) to (2.5,0.5)(2.5, 0.5), in the first quadrant: image 1 is T∘ST \circ S. Under (x,y)↦(−y,−x)(x, y) \mapsto (-y, -x) it lands in the third quadrant: image 2 is S∘TS \circ T. Two maps, two orders, two different mirrors.

c) RαRβ=(cos⁡αcos⁡β−sin⁡αsin⁡β−(cos⁡αsin⁡β+sin⁡αcos⁡β)sin⁡αcos⁡β+cos⁡αsin⁡βcos⁡αcos⁡β−sin⁡αsin⁡β)R_\alpha R_\beta = \begin{pmatrix} \cos\alpha\cos\beta - \sin\alpha\sin\beta & -(\cos\alpha\sin\beta + \sin\alpha\cos\beta) \\ \sin\alpha\cos\beta + \cos\alpha\sin\beta & \cos\alpha\cos\beta - \sin\alpha\sin\beta \end{pmatrix}. Geometrically, turning by β\beta then by α\alpha is turning by α+β\alpha + \beta, so this matrix must equal Rα+βR_{\alpha+\beta}. Comparing the first column gives cos⁡(α+β)=cos⁡αcos⁡β−sin⁡αsin⁡β\cos(\alpha + \beta) = \cos\alpha\cos\beta - \sin\alpha\sin\beta and sin⁡(α+β)=sin⁡αcos⁡β+cos⁡αsin⁡β\sin(\alpha + \beta) = \sin\alpha\cos\beta + \cos\alpha\sin\beta: the addition formulas fall out of the chapter for free. Note that RαRβ=RβRαR_\alpha R_\beta = R_\beta R_\alpha: two rotations about the SAME point commute. That is the exception, and part a) shows the rule.

d) The reflection across the xx-axis comes first, so it sits on the right: (0110)(100−1)=(0−110)=Rπ/2\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix} = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix} = R_{\pi/2}. Two mirrors at an angle of π/4\pi/4 compose to a rotation by TWICE that angle, π/2\pi/2. The determinant agrees: each reflection has determinant −1-1, and (−1)(−1)=1(-1)(-1) = 1, the determinant of a rotation. In the other order, (100−1)(0110)=(01−10)=R−π/2\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} = \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix} = R_{-\pi/2}: same angle, opposite direction.

e) T2∘T1T_2 \circ T_1 applies T1T_1 first, from R3\mathbb{R}^3 to R2\mathbb{R}^2, then T2T_2 from R2\mathbb{R}^2 to R4\mathbb{R}^4: it exists, from R3\mathbb{R}^3 to R4\mathbb{R}^4, with matrix A2A1A_2 A_1 of size (4×2)(2×3)=4×3(4 \times 2)(2 \times 3) = 4 \times 3. T1∘T2T_1 \circ T_2 would feed a vector of R4\mathbb{R}^4 into T1T_1, which only accepts R3\mathbb{R}^3: it does not exist, and A1A2A_1 A_2, a (2×3)(4×2)(2 \times 3)(4 \times 2) product, is not defined either. The sizes check the order: the inner dimensions must match, exactly as the output of the first map must fit the input of the second.

Exercise 7: Undoing a transformation, and the area it multiplies

A linear operator TT of R2\mathbb{R}^2 has an inverse exactly when its matrix does, and then the matrix of T−1T^{-1} is A−1A^{-1}. Geometry usually gives the inverse faster than algebra: undo a turn by turning back, undo a mirror by the same mirror. A map that loses information cannot be undone at all.

The same unit square also measures how TT changes areas: every region is multiplied by the area of T(square)T(\text{square}), which is ∣det⁡A∣|\det A|. The figure shows the unit square and its image under an operator TT. Parts b) and c) use the matrices FF and PP of exercise 4.

123123T(e1)T(e2)T(square)
  • a) Show that the inverse of the rotation RθR_\theta is R−θR_{-\theta}, and compare R−θR_{-\theta} with the transpose of RθR_\theta.
  • b) Show that the reflection F=15(−3443)F = \frac{1}{5}\begin{pmatrix} -3 & 4 \\ 4 & 3 \end{pmatrix} is its own inverse, by computation and by a sentence.
  • c) Show that the projection P=15(1224)P = \frac{1}{5}\begin{pmatrix} 1 & 2 \\ 2 & 4 \end{pmatrix} has no inverse, with two points and with the unit square.
  • d) Read the matrix AA of TT off the figure. By what factor does TT multiply areas? Give the area of the image of a disc of radius 22.
  • e) Find A−1A^{-1}, check it on the figure, and say by what factor T−1T^{-1} multiplies areas.
Show the solution

Answers

  • a) RθR−θ=R0=IR_\theta R_{-\theta} = R_0 = I, and R−θ=RθTR_{-\theta} = R_\theta^{T}.
  • b) F2=IF^2 = I: reflecting twice puts every point back.
  • c) P(5,0)=P(1,2)=(1,2)P(5, 0) = P(1, 2) = (1, 2), det⁡P=0\det P = 0, the square is crushed onto a segment.
  • d) A=(2112)A = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}, factor ∣det⁡A∣=3|\det A| = 3, image of the disc: 12π12\pi.
  • e) A−1=13(2−1−12)A^{-1} = \frac{1}{3}\begin{pmatrix} 2 & -1 \\ -1 & 2 \end{pmatrix}, factor 1/31/3.

a) Turning by θ\theta and then by −θ-\theta leaves every vector where it was, so R−θRθ=R0=IR_{-\theta}R_\theta = R_0 = I, and in matrices, with cos⁡(−θ)=cos⁡θ\cos(-\theta) = \cos\theta and sin⁡(−θ)=−sin⁡θ\sin(-\theta) = -\sin\theta: R−θ=(cos⁡θsin⁡θ−sin⁡θcos⁡θ)R_{-\theta} = \begin{pmatrix} \cos\theta & \sin\theta \\ -\sin\theta & \cos\theta \end{pmatrix}. The product RθR−θR_\theta R_{-\theta} has diagonal entries cos⁡2θ+sin⁡2θ=1\cos^2\theta + \sin^2\theta = 1 and off-diagonal entries cos⁡θsin⁡θ−sin⁡θcos⁡θ=0\cos\theta\sin\theta - \sin\theta\cos\theta = 0: it is II. And R−θR_{-\theta} is exactly the TRANSPOSE of RθR_\theta, which makes a rotation the rare matrix whose inverse costs nothing to write. No 1det⁡\frac{1}{\det} appears because det⁡Rθ=1\det R_\theta = 1.

b) F2=125(−3443)(−3443)=125(9+16−12+12−12+1216+9)=IF^2 = \frac{1}{25}\begin{pmatrix} -3 & 4 \\ 4 & 3 \end{pmatrix}\begin{pmatrix} -3 & 4 \\ 4 & 3 \end{pmatrix} = \frac{1}{25}\begin{pmatrix} 9 + 16 & -12 + 12 \\ -12 + 12 & 16 + 9 \end{pmatrix} = I, so F−1=FF^{-1} = F. In a sentence: the mirror image of the mirror image of a point is the point itself. The same sentence works for every reflection, in any line, in the plane or in space, which is why no computation is needed on an exam once the map is recognized as a reflection. Note det⁡F=125(−9−16)=−1\det F = \frac{1}{25}(-9 - 16) = -1: a reflection keeps areas and reverses orientation.

c) P(5,0)=15(5,10)=(1,2)P(5, 0) = \frac{1}{5}(5, 10) = (1, 2) and P(1,2)=15(5,10)=(1,2)P(1, 2) = \frac{1}{5}(5, 10) = (1, 2). Two different points have the same image, so no map can send (1,2)(1, 2) back to BOTH of them: PP has no inverse. In matrices, det⁡P=125(4−4)=0\det P = \frac{1}{25}(4 - 4) = 0. On the unit square, P(e1)=(1/5,2/5)P(e_1) = (1/5, 2/5) and P(e2)=(2/5,4/5)P(e_2) = (2/5, 4/5) are both on LL, so the whole square is crushed onto a segment of LL, of area 00: every region of the plane loses its area, and no linear map can blow a segment back up into a square. A projection throws information away, namely the distance to the line, and that is the geometric content of det⁡=0\det = 0.

d) The figure shows T(e1)=(2,1)T(e_1) = (2, 1) and T(e2)=(1,2)T(e_2) = (1, 2), so A=(2112)A = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}: reading a matrix off a picture is the chapter's gesture once more. The unit square has area 11 and its image has area ∣det⁡A∣=∣4−1∣=3|\det A| = |4 - 1| = 3. Since any region can be filled with tiny squares, each of which is multiplied by the same factor, TT multiplies EVERY area by 33. The disc of radius 22 has area 4π4\pi, so its image, an ellipse, has area 12π12\pi, although nobody asked you to find the ellipse. That is the use of the area factor: it answers without drawing the image.

e) det⁡A=3\det A = 3, so A−1=13(2−1−12)A^{-1} = \frac{1}{3}\begin{pmatrix} 2 & -1 \\ -1 & 2 \end{pmatrix}. Check against the figure: A−1(2,1)=13(4−1, −2+2)=(1,0)A^{-1}(2, 1) = \frac{1}{3}(4 - 1,\ -2 + 2) = (1, 0) and A−1(1,2)=13(2−2, −1+4)=(0,1)A^{-1}(1, 2) = \frac{1}{3}(2 - 2,\ -1 + 4) = (0, 1): the inverse sends the corners of the image back to e1e_1 and e2e_2. T−1T^{-1} multiplies areas by ∣det⁡A−1∣=1/3|\det A^{-1}| = 1/3, since det⁡A⋅det⁡A−1=det⁡I=1\det A \cdot \det A^{-1} = \det I = 1. The orange parallelogram of area 33 is carried back onto the square of area 11, as it must be.

Exercise 8: Five statements to correct

Each statement below was written by a student in a MATH 133 tutorial. Each is false as written. Say what is wrong, give the correct statement, and give the smallest counterexample that settles it.

  • a) “T(x,y)=(x+1,2y)T(x, y) = (x + 1, 2y) is linear, since each coordinate is a linear expression in xx and yy.”
  • b) “The first row of the standard matrix of TT is T(e1)T(e_1).”
  • c) “If v1,v2v_1, v_2 are independent, then T(v1),T(v2)T(v_1), T(v_2) are independent too.”
  • d) “A linear map of the plane sends the unit square to a region of area det⁡A\det A.”
  • e) “A one-to-one linear map from R3\mathbb{R}^3 to R3\mathbb{R}^3 need not be onto.”
Show the solution

Answers

  • a) False: T(0,0)=(1,0)T(0, 0) = (1, 0); the map is affine, not linear.
  • b) False: T(e1)T(e_1) is the first COLUMN.
  • c) False: the projection onto the xx-axis sends e1,e2e_1, e_2 to (1,0),(0,0)(1, 0), (0, 0). True when TT is one-to-one.
  • d) False: the area is ∣det⁡A∣|\det A|; the reflection across the xx-axis has det⁡=−1\det = -1 and area 11.
  • e) False: for Rn→Rn\mathbb{R}^n \to \mathbb{R}^n, one-to-one means rank nn, which means onto.

a) FALSE. “Linear expression” in the high-school sense allows a constant term, and a constant term is exactly what linearity forbids. Here T(0,0)=(1,0)≠(0,0)T(0, 0) = (1, 0) \neq (0, 0), and additivity fails as well: T(1,0)+T(0,1)=(2,0)+(1,2)=(3,2)T(1, 0) + T(0, 1) = (2, 0) + (1, 2) = (3, 2) while T(1,1)=(2,2)T(1, 1) = (2, 2). Correct statement: TT is linear when each coordinate is a linear combination of xx and yy with NO constant term; this TT is a linear map, (x,y)↦(x,2y)(x, y) \mapsto (x, 2y), followed by a translation by (1,0)(1, 0), which makes it affine.

b) FALSE, and it is the most frequent error of the chapter. T(e1)=Ae1T(e_1) = Ae_1 is the first COLUMN of AA, because multiplying by e1e_1 picks out the first column. Counterexample: T(x,y)=(x+2y,3y)T(x, y) = (x + 2y, 3y) has T(e1)=(1,0)T(e_1) = (1, 0), T(e2)=(2,3)T(e_2) = (2, 3) and A=(1203)A = \begin{pmatrix} 1 & 2 \\ 0 & 3 \end{pmatrix}, whose first row is (1,2)(1, 2), not T(e1)T(e_1). Writing the images as rows gives the transpose (1023)\begin{pmatrix} 1 & 0 \\ 2 & 3 \end{pmatrix}, which sends e2e_2 to (0,3)(0, 3) instead of (2,3)(2, 3). Correct statement: the jj-th column of the standard matrix is T(ej)T(e_j); the ii-th row lists the coefficients of the ii-th output coordinate.

c) FALSE. A linear map can crush independent vectors together. The projection onto the xx-axis, (1000)\begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}, sends the independent pair e1,e2e_1, e_2 to (1,0)(1, 0) and (0,0)(0, 0), and any family containing 00 is dependent. Correct statement: if TT is ONE-TO-ONE, it sends independent vectors to independent vectors. Proof in one line: if c1T(v1)+c2T(v2)=0c_1T(v_1) + c_2T(v_2) = 0 then T(c1v1+c2v2)=0T(c_1v_1 + c_2v_2) = 0, so c1v1+c2v2c_1v_1 + c_2v_2 is in the kernel, which is {0}\{0\}, so c1=c2=0c_1 = c_2 = 0.

d) FALSE by a sign. An area is never negative, and det⁡A\det A can be. The reflection across the xx-axis, (100−1)\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, has det⁡=−1\det = -1 and sends the unit square to the square [0,1]×[−1,0][0, 1] \times [-1, 0], of area 11. Correct statement: the image of the unit square, and of every region, has its area multiplied by ∣det⁡A∣|\det A|; the SIGN of det⁡A\det A carries separate information, whether the map keeps the orientation (det⁡>0\det > 0) or reverses it (det⁡<0\det < 0), as a mirror does.

e) FALSE for a square matrix. One-to-one means ker⁡T={0}\ker T = \{0\}, so the nullity is 00 and the rank is 3−0=33 - 0 = 3, which equals the dimension of the codomain: TT is onto. For an operator of Rn\mathbb{R}^n, one-to-one, onto and invertible are the same statement. What the student had in mind is true only between DIFFERENT dimensions: (x,y)↦(x,y,0)(x, y) \mapsto (x, y, 0), from R2\mathbb{R}^2 to R3\mathbb{R}^3, is one-to-one and not onto, since nothing reaches (0,0,1)(0, 0, 1).

Exercise 9: A 3D graphics pipeline: rotations, projections and a mirror

A graphics engine stores every operation on a scene as a 3×33 \times 3 matrix and applies it to each vertex (x,y,z)(x, y, z). The operations are the linear operators of R3\mathbb{R}^3 met in this chapter: rotations about a coordinate axis, counterclockwise when seen from the positive end of the axis; the shadow cast on the floor z=0z = 0 by a light straight overhead, which is the projection onto the xyxy-plane; and a mirror or a screen along a plane through the origin.

The tilted screen of the scene is the plane Π:x+y+z=0\Pi : x + y + z = 0, with normal n=(1,1,1)n = (1, 1, 1).

  • a) Find the matrix of the rotation about the zz-axis by θ\theta, and the image of the vertex (1,2,3)(1, 2, 3) for θ=π/2\theta = \pi/2.
  • b) Find the matrices of the rotations by π/2\pi/2 about the xx-axis and about the yy-axis. Check each one on a single basis vector.
  • c) Find the matrix of the projection onto Π\Pi, using P(v)=v−v⋅nn⋅n nP(v) = v - \frac{v \cdot n}{n \cdot n}\,n.
  • d) Find the matrix of the reflection through Π\Pi, and check it on (3,0,0)(3, 0, 0).
  • e) The vertex (1,2,3)(1, 2, 3) is rotated by π/2\pi/2 about the xx-axis and then its shadow is cast on the floor. Give the matrix of the whole step and the final point, then compare with the opposite order.
Show the solution

Answers

  • a) Rz=(cos⁡θ−sin⁡θ0sin⁡θcos⁡θ0001)R_z = \begin{pmatrix} \cos\theta & -\sin\theta & 0 \\ \sin\theta & \cos\theta & 0 \\ 0 & 0 & 1 \end{pmatrix}; (1,2,3)↦(−2,1,3)(1, 2, 3) \mapsto (-2, 1, 3).
  • b) Rx=(10000−1010)R_x = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 0 & -1 \\ 0 & 1 & 0 \end{pmatrix}, Ry=(001010−100)R_y = \begin{pmatrix} 0 & 0 & 1 \\ 0 & 1 & 0 \\ -1 & 0 & 0 \end{pmatrix}
  • c) P=13(2−1−1−12−1−1−12)P = \frac{1}{3}\begin{pmatrix} 2 & -1 & -1 \\ -1 & 2 & -1 \\ -1 & -1 & 2 \end{pmatrix}
  • d) Q=2P−I=13(1−2−2−21−2−2−21)Q = 2P - I = \frac{1}{3}\begin{pmatrix} 1 & -2 & -2 \\ -2 & 1 & -2 \\ -2 & -2 & 1 \end{pmatrix}; Q(3,0,0)=(1,−2,−2)Q(3, 0, 0) = (1, -2, -2).
  • e) DRx=(10000−1000)DR_x = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 0 & -1 \\ 0 & 0 & 0 \end{pmatrix}, point (1,−3,0)(1, -3, 0); opposite order gives (1,0,2)(1, 0, 2).

a) A rotation about the zz-axis leaves e3e_3 fixed and turns the xyxy-plane exactly as in the plane: e1↦(cos⁡θ,sin⁡θ,0)e_1 \mapsto (\cos\theta, \sin\theta, 0), e2↦(−sin⁡θ,cos⁡θ,0)e_2 \mapsto (-\sin\theta, \cos\theta, 0), e3↦e3e_3 \mapsto e_3. Columns: Rz=(cos⁡θ−sin⁡θ0sin⁡θcos⁡θ0001)R_z = \begin{pmatrix} \cos\theta & -\sin\theta & 0 \\ \sin\theta & \cos\theta & 0 \\ 0 & 0 & 1 \end{pmatrix}, the 2×22 \times 2 rotation with a 11 added for the axis. For θ=π/2\theta = \pi/2, (1,2,3)↦(−2,1,3)(1, 2, 3) \mapsto (-2, 1, 3): the height 33 does not change, and the shadow of the point on the floor turned by a quarter turn, from (1,2)(1, 2) to (−2,1)(-2, 1).

b) About the xx-axis by π/2\pi/2: e1e_1 stays, e2e_2 goes to e3e_3 and e3e_3 goes to −e2-e_2, so Rx=(10000−1010)R_x = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 0 & -1 \\ 0 & 1 & 0 \end{pmatrix}. About the yy-axis, seen from the positive yy end the turn goes from zz towards xx: e3↦e1e_3 \mapsto e_1 and e1↦−e3e_1 \mapsto -e_3, with e2e_2 fixed, so Ry=(001010−100)R_y = \begin{pmatrix} 0 & 0 & 1 \\ 0 & 1 & 0 \\ -1 & 0 & 0 \end{pmatrix}. In general Ry(θ)=(cos⁡θ0sin⁡θ010−sin⁡θ0cos⁡θ)R_y(\theta) = \begin{pmatrix} \cos\theta & 0 & \sin\theta \\ 0 & 1 & 0 \\ -\sin\theta & 0 & \cos\theta \end{pmatrix}, with the minus sign in the BOTTOM row, the opposite of RxR_x and RzR_z. That is the trap of the question: the cyclic order is x→y→z→xx \to y \to z \to x, so for the yy-axis the plane turns from zz to xx, not from xx to zz. Checking the column of one basis vector, here Rye3=e1R_y e_3 = e_1, settles the sign without any memorization.

c) n⋅n=3n \cdot n = 3. P(e1)=(1,0,0)−13(1,1,1)=13(2,−1,−1)P(e_1) = (1, 0, 0) - \frac{1}{3}(1, 1, 1) = \frac{1}{3}(2, -1, -1), and by symmetry P(e2)=13(−1,2,−1)P(e_2) = \frac{1}{3}(-1, 2, -1), P(e3)=13(−1,−1,2)P(e_3) = \frac{1}{3}(-1, -1, 2). So P=13(2−1−1−12−1−1−12)P = \frac{1}{3}\begin{pmatrix} 2 & -1 & -1 \\ -1 & 2 & -1 \\ -1 & -1 & 2 \end{pmatrix}. Two checks. Each column must lie in Π\Pi, and the entries of each column do add to 00. The normal must be crushed: P(1,1,1)=13(0,0,0)=0P(1, 1, 1) = \frac{1}{3}(0, 0, 0) = 0. Same gesture as in the plane, with three basis vectors instead of two.

d) As for a line, the projection is the midpoint of a point and its mirror image, so Q=2P−I=13(4−3−2−2−24−3−2−2−24−3)=13(1−2−2−21−2−2−21)Q = 2P - I = \frac{1}{3}\begin{pmatrix} 4 - 3 & -2 & -2 \\ -2 & 4 - 3 & -2 \\ -2 & -2 & 4 - 3 \end{pmatrix} = \frac{1}{3}\begin{pmatrix} 1 & -2 & -2 \\ -2 & 1 & -2 \\ -2 & -2 & 1 \end{pmatrix}. Then Q(3,0,0)=(1,−2,−2)Q(3, 0, 0) = (1, -2, -2). Check: its length is 1+4+4=3\sqrt{1 + 4 + 4} = 3, like (3,0,0)(3, 0, 0); the midpoint (2,−1,−1)(2, -1, -1) satisfies 2−1−1=02 - 1 - 1 = 0, so it lies in Π\Pi, and it equals P(3,0,0)P(3, 0, 0). A reflection through a plane is its own inverse, like every reflection: Q2=IQ^2 = I.

e) The rotation acts first, so its matrix is on the right. The shadow on the floor is D=(100010000)D = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 0 \end{pmatrix}, and DRx=(10000−1000)DR_x = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 0 & -1 \\ 0 & 0 & 0 \end{pmatrix}. The vertex goes to Rx(1,2,3)=(1,−3,2)R_x(1, 2, 3) = (1, -3, 2), then to (1,−3,0)(1, -3, 0). In the opposite order, RxD=(100000010)R_xD = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 0 & 0 \\ 0 & 1 & 0 \end{pmatrix}: the shadow (1,2,0)(1, 2, 0) is taken first, then turned up to (1,0,2)(1, 0, 2), which is no longer on the floor at all. An engine that multiplies its matrices in reading order draws the shadow standing up on a wall, which is exactly the bug the order rule prevents.

Exercise 10: A colour sensor: kernel, image, and two lights that look the same

A spectrometer measures the intensity of a light in four wavelength bands, giving a vector x=(x1,x2,x3,x4)x = (x_1, x_2, x_3, x_4). A cheap camera sensor has only three channels, and each channel adds two neighbouring bands: T(x)=(x1+x2, x2+x3, x3+x4)T(x) = (x_1 + x_2,\ x_2 + x_3,\ x_3 + x_4).

The kernel of TT is the set of xx with T(x)=0T(x) = 0; its image is the set of all readings T(x)T(x). This is a typical final exam problem: every question is answered by one row reduction and a count of pivots.

  • a) Write the standard matrix AA of TT and compute the reading of the light x=(1,2,0,1)x = (1, 2, 0, 1).
  • b) Find a basis of ker⁡T\ker T, naming each row operation. Use it to produce a DIFFERENT light with the same reading as in a).
  • c) Is TT onto? Find a light with non-negative intensities whose reading is (2,1,3)(2, 1, 3).
  • d) Is TT one-to-one? Prove that T(x)=T(y)T(x) = T(y) if and only if x−y∈ker⁡Tx - y \in \ker T.
  • e) A two-channel sensor reads S(x)=(x1+x2, x3+x4)S(x) = (x_1 + x_2,\ x_3 + x_4). Decide whether SS is one-to-one and whether it is onto, and give the dimension of its kernel. Then state the general rule for T:Rn→RmT : \mathbb{R}^n \to \mathbb{R}^m.
Show the solution

Answers

  • a) A=(110001100011)A = \begin{pmatrix} 1 & 1 & 0 & 0 \\ 0 & 1 & 1 & 0 \\ 0 & 0 & 1 & 1 \end{pmatrix}; reading (3,2,1)(3, 2, 1).
  • b) ker⁡T=span{(−1,1,−1,1)}\ker T = \text{span}\{(-1, 1, -1, 1)\}; (2,1,1,0)(2, 1, 1, 0) also reads (3,2,1)(3, 2, 1).
  • c) Onto (rank 33); for example x=(2,0,1,2)x = (2, 0, 1, 2).
  • d) Not one-to-one (rank 3<43 < 4); T(x)−T(y)=T(x−y)T(x) - T(y) = T(x - y).
  • e) SS is onto, not one-to-one, kernel of dimension 22. Rule: one-to-one iff rank =n= n, onto iff rank =m= m.

a) T(e1)=(1,0,0)T(e_1) = (1, 0, 0), T(e2)=(1,1,0)T(e_2) = (1, 1, 0), T(e3)=(0,1,1)T(e_3) = (0, 1, 1), T(e4)=(0,0,1)T(e_4) = (0, 0, 1). Columns: A=(110001100011)A = \begin{pmatrix} 1 & 1 & 0 & 0 \\ 0 & 1 & 1 & 0 \\ 0 & 0 & 1 & 1 \end{pmatrix}, a 3×43 \times 4 matrix since TT goes from R4\mathbb{R}^4 to R3\mathbb{R}^3. The reading of (1,2,0,1)(1, 2, 0, 1) is (1+2, 2+0, 0+1)=(3,2,1)(1 + 2,\ 2 + 0,\ 0 + 1) = (3, 2, 1).

b) AA is already in echelon form. R2→R2−R3R_2 \to R_2 - R_3 gives (0,1,0,−1)(0, 1, 0, -1), then R1→R1−R2R_1 \to R_1 - R_2 gives (1,0,0,1)(1, 0, 0, 1): the reduced form is (1001010−10011)\begin{pmatrix} 1 & 0 & 0 & 1 \\ 0 & 1 & 0 & -1 \\ 0 & 0 & 1 & 1 \end{pmatrix}. Pivots in columns 11, 22, 33; x4=tx_4 = t is free, and x1=−tx_1 = -t, x2=tx_2 = t, x3=−tx_3 = -t. So ker⁡T=span{(−1,1,−1,1)}\ker T = \text{span}\{(-1, 1, -1, 1)\}, a line. Adding −1-1 times this vector to (1,2,0,1)(1, 2, 0, 1) gives (2,1,1,0)(2, 1, 1, 0), and indeed T(2,1,1,0)=(3,2,1)T(2, 1, 1, 0) = (3, 2, 1). Two physically different lights, the same reading: this is what colour scientists call METAMERS, and the kernel is exactly the set of spectral differences the sensor is blind to.

c) The rank is 33, the number of pivots, which equals the dimension m=3m = 3 of the codomain. The image of TT is the span of the columns of AA, which is then all of R3\mathbb{R}^3: TT is onto. To hit (2,1,3)(2, 1, 3) solve with x4=tx_4 = t: x3=3−tx_3 = 3 - t, x2=1−x3=t−2x_2 = 1 - x_3 = t - 2, x1=2−x2=4−tx_1 = 2 - x_2 = 4 - t. Non-negative intensities need t≥2t \ge 2 and t≤3t \le 3; t=2t = 2 gives x=(2,0,1,2)x = (2, 0, 1, 2), and T(2,0,1,2)=(2,1,3)T(2, 0, 1, 2) = (2, 1, 3). The algebra guarantees a solution; the physics then selects the part of the solution line that makes sense.

d) No: the kernel contains the non-zero vector (−1,1,−1,1)(-1, 1, -1, 1), and part b) exhibited two different lights with the same image. The rank 33 is less than n=4n = 4, the dimension of the domain, so the nullity 4−3=14 - 3 = 1 is not zero. The proof of the criterion: by linearity T(x)−T(y)=T(x−y)T(x) - T(y) = T(x - y), so T(x)=T(y)T(x) = T(y) exactly when x−y∈ker⁡Tx - y \in \ker T. Hence TT is one-to-one if and only if ker⁡T={0}\ker T = \{0\}, and a single non-zero kernel vector is enough to destroy injectivity everywhere, not only at the origin.

e) SS has matrix (11000011)\begin{pmatrix} 1 & 1 & 0 & 0 \\ 0 & 0 & 1 & 1 \end{pmatrix}, with pivots in columns 11 and 33: rank 2=m2 = m, so SS is onto; nullity 4−2=24 - 2 = 2, so SS is not one-to-one and ker⁡S=span{(−1,1,0,0),(0,0,−1,1)}\ker S = \text{span}\{(-1, 1, 0, 0), (0, 0, -1, 1)\}: two independent directions of blindness instead of one. The general rule for T:Rn→RmT : \mathbb{R}^n \to \mathbb{R}^m of rank rr: TT is one-to-one iff r=nr = n, and onto iff r=mr = m. Since r≤min⁡(m,n)r \le \min(m, n), a map from a bigger space into a smaller one, like both sensors, can NEVER be one-to-one, and a map into a bigger space can never be onto. Only when m=nm = n can a linear map be both, and then it is invertible.

See also

Struggling with MATH 133?

I tutor first-year linear algebra at McGill and Concordia, in English or in French, in Montreal or online. Get in touch for a first session.

Site by Studio Squalli