All lessons

Matrices are transformations

Day
5 of 40
Length
2:21
Textbook
Lay §1.8, 1.9
Syllabus
Groundwork before Lesson 10

A matrix moves every point of the plane, and its columns record where the two basis arrows land.

Yesterday you multiplied a matrix by one vector at a time. Today asks what a matrix does to every vector at once. Read that way, the product is a rule: feed in any x\yellow{\mathbf x} and the matrix hands back AxA\yellow{\mathbf x}, and doing that to every point at once moves the whole plane. The rest of the course leans on this picture of a matrix as a motion, starting tomorrow, when Day 6 runs two motions in a row.

Each section below opens with a problem. Try it before you open the walkthrough, even if you only get partway.

Transformations

Let A=[1101]A = \begin{bmatrix} \green{1} & \red{1} \\ \green{0} & \red{1} \end{bmatrix}. Compute AxA\yellow{\mathbf x} for x=(1,2)\yellow{\mathbf x} = (1, 2). Then compute A(0,2)A(0, 2) and A(3,0)A(3, 0). What does AA do to a point, in words?

Walk through the solution

By the row rule, A(x1,x2)=(x1+x2, x2)A(x_1, x_2) = (x_1 + x_2,\ x_2). So

A[12]=[32],A[02]=[22],A[30]=[30].A\begin{bmatrix} 1 \\ 2 \end{bmatrix} = \begin{bmatrix} 3 \\ 2 \end{bmatrix}, \qquad A\begin{bmatrix} 0 \\ 2 \end{bmatrix} = \begin{bmatrix} 2 \\ 2 \end{bmatrix}, \qquad A\begin{bmatrix} 3 \\ 0 \end{bmatrix} = \begin{bmatrix} 3 \\ 0 \end{bmatrix}.

Look at what changed. The second entry, the height, never changes. The first entry grows by the height: (1,2)(1, 2) moved 22 to the right, (0,2)(0, 2) also moved 22 to the right, and (3,0)(3, 0) sits at height 00 and did not move at all. So AA slides each point sideways by its height.

A shear. The blue grid lines lean to the right while the horizontal lines stay put. The green arrow e1 stays at (1, 0), the red arrow e2 lands on (1, 1), and the yellow arrow Ax ends at (3, 2). The matrix A has green first column (1, 0) and red second column (1, 1).

Doing that to every point moves the whole grid. This matrix is a shear: the base line stays still and the grid leans over. The grid lines stay straight, parallel and evenly spaced, and the origin stays put.

Transformation

A transformation TT from Rn\mathbb{R}^n to Rm\mathbb{R}^m is a rule that assigns to each vector x\mathbf x in Rn\mathbb{R}^n a vector T(x)T(\mathbf x) in Rm\mathbb{R}^m. We write T:Rn→RmT : \mathbb{R}^n \to \mathbb{R}^m. The set Rn\mathbb{R}^n is the domain, Rm\mathbb{R}^m is the codomain, and T(x)T(\mathbf x) is the image of x\mathbf x. The set of all images is the range of TT.

When AA is an m×nm \times n matrix, T(x)=AxT(\mathbf x) = A\mathbf x is a matrix transformation. Its domain is Rn\mathbb{R}^n because x\mathbf x needs one entry per column of AA, and its codomain is Rm\mathbb{R}^m because each column has mm entries.

Let AA be a 2×32 \times 3 matrix. The map T(x)=AxT(\mathbf x) = A\mathbf x goes

The standard matrix

Often you know a move in words, such as a quarter turn, and want its matrix. This section finds a recipe for that matrix that needs no algebra.

Turn the plane a quarter turn counterclockwise about the origin. Where do e1=(1,0)\green{\mathbf e_1} = (1, 0) and e2=(0,1)\red{\mathbf e_2} = (0, 1) land? Use that to find where (2,1)(2, 1) lands.

Walk through the solution

The arrow e1\green{\mathbf e_1} points right, and a quarter turn counterclockwise makes it point up, so it lands on (0,1)(0, 1). The arrow e2\red{\mathbf e_2} points up and turns to point left, so it lands on (−1,0)(-1, 0).

Now write (2,1)(2, 1) as a walk made of those arrows: (2,1)=2e1+1e2(2, 1) = 2\green{\mathbf e_1} + 1\red{\mathbf e_2}. The turn carries the whole walk along rigidly, so the turned point is two turned e1\green{\mathbf e_1} steps plus one turned e2\red{\mathbf e_2} step:

2[01]+1[−10]=[−12].2\begin{bmatrix} 0 \\ 1 \end{bmatrix} + 1\begin{bmatrix} -1 \\ 0 \end{bmatrix} = \begin{bmatrix} -1 \\ 2 \end{bmatrix}.

By Day 4, that combination is a matrix times (2,1)(2, 1), and the matrix has the two landing spots as its columns:

[0−110][21]=[−12].\begin{bmatrix} \green{0} & \red{-1} \\ \green{1} & \red{0} \end{bmatrix}\begin{bmatrix} 2 \\ 1 \end{bmatrix} = \begin{bmatrix} -1 \\ 2 \end{bmatrix}.
A quarter turn counterclockwise. The green arrow e1 now points up to (0, 1) and the red arrow e2 points left to (−1, 0). Their coordinates form the columns of A = [[0, −1], [1, 0]].

Every x\mathbf x in R2\mathbb{R}^2 is x1e1+x2e2x_1\green{\mathbf e_1} + x_2\red{\mathbf e_2}. So once you know where e1\green{\mathbf e_1} and e2\red{\mathbf e_2} land, you know where everything lands, and those two landing spots are the columns of the matrix.

Theorem 10

Let T:Rn→RmT : \mathbb{R}^n \to \mathbb{R}^m be a linear transformation. Then there is exactly one matrix AA with T(x)=AxT(\mathbf x) = A\mathbf x for every x\mathbf x in Rn\mathbb{R}^n, namely

A=[T(e1)⋯T(en)],A = \begin{bmatrix} T(\mathbf e_1) & \cdots & T(\mathbf e_n) \end{bmatrix},

where ej\mathbf e_j is column jj of the n×nn \times n identity matrix. This AA is the standard matrix of TT.

The word "linear" is defined precisely in the section after next. For now it means the map carries walks along the way the quarter turn did.

Drag the green and red tips to build a quarter turn clockwise. Picture where e1\mathbf e_1 and e2\mathbf e_2 should end up first.
[1001]\begin{bmatrix} \textcolor{#7BC96F}{1} & \textcolor{#F2665E}{0} \\ \textcolor{#7BC96F}{0} & \textcolor{#F2665E}{1} \end{bmatrix}

Rotation

The quarter turn was one angle. The same recipe gives a turn through any angle φ\varphi.

Rotate the plane counterclockwise through an angle φ\varphi. Where do e1\green{\mathbf e_1} and e2\red{\mathbf e_2} land? Write the matrix, and check it against Problem 2 with φ=90∘\varphi = 90^\circ.

Walk through the solution

The arrow e1\green{\mathbf e_1} has length 11 and ends up at angle φ\varphi from the positive x1x_1-axis. A point on the unit circle at angle φ\varphi is (cos⁡φ,sin⁡φ)(\cos\varphi, \sin\varphi), so that is where e1\green{\mathbf e_1} lands.

The arrow e2\red{\mathbf e_2} starts a quarter turn ahead of e1\green{\mathbf e_1}, so it ends at angle φ+90∘\varphi + 90^\circ. Turning (cos⁡φ,sin⁡φ)(\cos\varphi, \sin\varphi) by a quarter turn gives (−sin⁡φ,cos⁡φ)(-\sin\varphi, \cos\varphi), by the same move as Problem 2. The matrix is

[cos⁡φ−sin⁡φsin⁡φcos⁡φ].\begin{bmatrix} \green{\cos\varphi} & \red{-\sin\varphi} \\ \green{\sin\varphi} & \red{\cos\varphi} \end{bmatrix}.

At φ=90∘\varphi = 90^\circ, cos⁡φ=0\cos\varphi = 0 and sin⁡φ=1\sin\varphi = 1, so the matrix is [0−110]\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}, the quarter turn from Problem 2.

Find the angle that makes the F land on its dashed outline. Read the first column of the target matrix as a point on the dashed unit circle.

Slide the angle φ\varphi, in degrees, until the F covers the dashed outline. The outline is the F moved by [−0.71−0.710.71−0.71]\begin{bmatrix} \textcolor{#7BC96F}{-0.71} & \textcolor{#F2665E}{-0.71} \\ \textcolor{#7BC96F}{0.71} & \textcolor{#F2665E}{-0.71} \end{bmatrix}.
[cos⁡φ−sin⁡φsin⁡φcos⁡φ]\begin{bmatrix} \textcolor{#7BC96F}{\cos\varphi} & \textcolor{#F2665E}{-\sin\varphi} \\ \textcolor{#7BC96F}{\sin\varphi} & \textcolor{#F2665E}{\cos\varphi} \end{bmatrix}
=[1001]= \begin{bmatrix} \textcolor{#7BC96F}{1} & \textcolor{#F2665E}{0} \\ \textcolor{#7BC96F}{0} & \textcolor{#F2665E}{1} \end{bmatrix}

Linearity

Problem 2 relied on the turn carrying a walk of e1\green{\mathbf e_1} and e2\red{\mathbf e_2} steps along with it. Naming that property tells you exactly which moves a matrix can make.

A map TT carries walks along, and it sends e1\green{\mathbf e_1} to (1,2)(1, 2) and e2\red{\mathbf e_2} to (−3,1)(-3, 1). Find T(4,−1)T(4, -1) and the standard matrix of TT.

Walk through the solution

Write the input as a walk: (4,−1)=4e1−1e2(4, -1) = 4\green{\mathbf e_1} - 1\red{\mathbf e_2}. The map moves each step, and the walk follows:

T[4−1]=4 T(e1)−1 T(e2)=[48]−[−31]=[77].\begin{aligned} T\begin{bmatrix} 4 \\ -1 \end{bmatrix} &= 4\,\green{T(\mathbf e_1)} - 1\,\red{T(\mathbf e_2)} \\ &= \begin{bmatrix} 4 \\ 8 \end{bmatrix} - \begin{bmatrix} -3 \\ 1 \end{bmatrix} = \begin{bmatrix} 7 \\ 7 \end{bmatrix}. \end{aligned}

The standard matrix has the two images as columns, [1−321]\begin{bmatrix} \green{1} & \red{-3} \\ \green{2} & \red{1} \end{bmatrix}. Check with the row rule: 1⋅4+(−3)(−1)=71 \cdot 4 + (-3)(-1) = 7 and 2⋅4+1⋅(−1)=72 \cdot 4 + 1 \cdot (-1) = 7.

The grid moved by the matrix [[2, −1], [1, 1]]. Two green steps T(e1) = (2, 1) and one red step T(e2) = (−1, 1) are placed tip to tail, and the yellow arrow T(x) runs from the origin to their end at (3, 3).

The same walk picture works for any linear map. Here x=(2,1)\yellow{\mathbf x} = (2, 1) is two e1\green{\mathbf e_1} steps and one e2\red{\mathbf e_2} step, and its image is two T(e1)\green{T(\mathbf e_1)} steps and one T(e2)\red{T(\mathbf e_2)} step:

T(x)=2 T(e1)+1 T(e2)T(\yellow{\mathbf x}) = 2\,\green{T(\mathbf e_1)} + 1\,\red{T(\mathbf e_2)}

Linear transformation

A transformation TT is linear when, for all vectors u,v\mathbf u, \mathbf v in its domain and every scalar cc,

(i) T(u+v)=T(u)+T(v)T(\mathbf u + \mathbf v) = T(\mathbf u) + T(\mathbf v), and

(ii) T(c u)=c T(u)T(c\,\mathbf u) = c\,T(\mathbf u).

Every matrix transformation is linear, because A(u+v)=Au+AvA(\mathbf u + \mathbf v) = A\mathbf u + A\mathbf v and A(cu)=cAuA(c\mathbf u) = cA\mathbf u from Day 4.

What linearity guarantees

Using (i) and then (ii) gives T(c u+d v)=c T(u)+d T(v)T(c\,\mathbf u + d\,\mathbf v) = c\,T(\mathbf u) + d\,T(\mathbf v). So the images of any two vectors determine the images of all their combinations, as in Problem 4.

Taking c=0c = 0 in (ii) gives T(0)=0 T(u)=0T(\mathbf 0) = 0\,T(\mathbf u) = \mathbf 0. A linear map never moves the origin. A slide such as T(x)=x+(1,1)T(\mathbf x) = \mathbf x + (1, 1) keeps grid lines straight, but it sends 0\mathbf 0 to (1,1)(1, 1), so it is not linear and no matrix can do it. On Day 20 these same two rules define a linear map between any vector spaces, so differentiation counts too.

The vectors u\mathbf u and v\mathbf v below are not e1\green{\mathbf e_1} and e2\red{\mathbf e_2}, but the same reasoning works for them.

You only know where TT sends u\mathbf u and v\mathbf v. Drag the teal point to where T(2 u+1 v)T(2\,\mathbf u + 1\,\mathbf v) must land.
T(u)T(v)
T(u)=[21]T(\mathbf u) = \textcolor{#FFD447}{\begin{bmatrix} 2 \\ 1 \end{bmatrix}}
T(v)=[−12]T(\mathbf v) = \textcolor{#5BC0EB}{\begin{bmatrix} -1 \\ 2 \end{bmatrix}}
guess=[00]\text{guess} = \textcolor{#3DD6B5}{\begin{bmatrix} 0 \\ 0 \end{bmatrix}}

Which of these maps is linear?

The range

Going backwards asks which x\mathbf x has a given image b\mathbf b. That is Day 4's equation Ax=bA\mathbf x = \mathbf b, seen as a picture.

Let T(x)=AxT(\mathbf x) = A\mathbf x with A=[2−111]A = \begin{bmatrix} 2 & -1 \\ 1 & 1 \end{bmatrix}. Is b=(1,5)\mathbf b = (1, 5) in the range of TT? If so, find an x\mathbf x with T(x)=bT(\mathbf x) = \mathbf b.

Walk through the solution

b\mathbf b is in the range exactly when Ax=bA\mathbf x = \mathbf b has a solution, so row reduce [Ab]\begin{bmatrix} A & \mathbf b \end{bmatrix}.

  1. 1

    Swap the rows so the pivot is a 11, which avoids fractions:

    [2−11115]∼[1152−11]\begin{bmatrix} 2 & -1 & 1 \\ 1 & 1 & 5 \end{bmatrix} \sim \begin{bmatrix} 1 & 1 & 5 \\ 2 & -1 & 1 \end{bmatrix}
  2. 2
  3. 3

The moved grid is made of copies of T(e1)\green{T(\mathbf e_1)} and T(e2)\red{T(\mathbf e_2)}, so you can also count how many of each step reach b\mathbf b.

Drag x\mathbf x until its image T(x)=AxT(\mathbf x) = A\mathbf x lands on the ringed point b=(1,5)\mathbf b = (1, 5). Count steps along the blue grid.
xT(x)
[2−111][10]=[21]\begin{bmatrix} \textcolor{#7BC96F}{2} & \textcolor{#F2665E}{-1} \\ \textcolor{#7BC96F}{1} & \textcolor{#F2665E}{1} \end{bmatrix}\textcolor{#FFD447}{\begin{bmatrix} 1 \\ 0 \end{bmatrix}} = \textcolor{#3DD6B5}{\begin{bmatrix} 2 \\ 1 \end{bmatrix}}
=1[21]+0[−11]= 1\textcolor{#7BC96F}{\begin{bmatrix} 2 \\ 1 \end{bmatrix}} + 0\textcolor{#F2665E}{\begin{bmatrix} -1 \\ 1 \end{bmatrix}}

A gallery of moves

A horizontal shear keeps e1\green{\mathbf e_1} fixed and sends e2\red{\mathbf e_2} to (2,1)(2, 1). Write its matrix, and find where the corner (1,1)(1, 1) of the unit square lands.

Walk through the solution

The columns are the landing spots, so the matrix is [1201]\begin{bmatrix} \green{1} & \red{2} \\ \green{0} & \red{1} \end{bmatrix}. The corner is e1+e2\green{\mathbf e_1} + \red{\mathbf e_2}, so it lands on (1,0)+(2,1)=(3,1)(1, 0) + (2, 1) = (3, 1). The top edge of the square slid 22 to the right while the bottom edge stayed put.

Four small grids, each with the unit square outlined in gray and its image filled. A stretch doubles the square's width. A reflection flips it to the left and fills it pink. A vertical shear tilts it upward. A projection flattens the whole grid onto the horizontal axis. Each matrix is printed below its grid.

Each matrix above is [T(e1)T(e2)]\begin{bmatrix} T(\mathbf e_1) & T(\mathbf e_2) \end{bmatrix}, so you can rebuild it from the picture. From left to right they are [2001]\begin{bmatrix} 2 & 0 \\ 0 & 1 \end{bmatrix}, [−1001]\begin{bmatrix} -1 & 0 \\ 0 & 1 \end{bmatrix}, [1011]\begin{bmatrix} 1 & 0 \\ 1 & 1 \end{bmatrix} and [1000]\begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix}. A pink square means the map flipped the plane over, and on Day 25 the sign of the determinant detects exactly that flip.

The standard catalog

Reflection across the x1-axis[100−1]Reflection across the line x2=x1[0110]Horizontal shear by k[1k01]Vertical stretch by k[100k]Projection onto the x1-axis[1000]\begin{array}{ll} \textsf{Reflection across the } x_1\textsf{-axis} & \begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix} \\[10pt] \textsf{Reflection across the line } x_2 = x_1 & \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} \\[10pt] \textsf{Horizontal shear by } k & \begin{bmatrix} 1 & k \\ 0 & 1 \end{bmatrix} \\[10pt] \textsf{Vertical stretch by } k & \begin{bmatrix} 1 & 0 \\ 0 & k \end{bmatrix} \\[10pt] \textsf{Projection onto the } x_1\textsf{-axis} & \begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix} \end{array}

You never need to memorize this table. Picture where e1\green{\mathbf e_1} and e2\red{\mathbf e_2} go and write them down as columns.

Drag the green and red tips so the F lands exactly on the dashed outline.
A=[1001]A = \begin{bmatrix} \textcolor{#7BC96F}{1} & \textcolor{#F2665E}{0} \\ \textcolor{#7BC96F}{0} & \textcolor{#F2665E}{1} \end{bmatrix}

Tomorrow you run two of these moves in a row, and the matrix of the combined move turns out to be a product of matrices.

Practice

Warm-up

A 3×53 \times 5 matrix AA defines T(x)=AxT(\mathbf x) = A\mathbf x as a map T:Rn→RmT : \mathbb{R}^n \to \mathbb{R}^m. Find nn and mm. (Modeled on Lay §1.8 #21.)

Show the solution

The product AxA\mathbf x needs one entry of x\mathbf x for each of the 55 columns, so n=5n = 5. Each column has 33 entries, so AxA\mathbf x lives in R3\mathbb{R}^3 and m=3m = 3.

Let A=[2−10311]A = \begin{bmatrix} 2 & -1 \\ 0 & 3 \\ 1 & 1 \end{bmatrix} and T(x)=AxT(\mathbf x) = A\mathbf x. Find the image of u=(3,2)\mathbf u = (3, 2). (Modeled on Lay §1.8 #1.)

Show the solution

By the row rule, T(u)=(2⋅3−1⋅2, 0⋅3+3⋅2, 1⋅3+1⋅2)=(4,6,5)T(\mathbf u) = (2 \cdot 3 - 1 \cdot 2,\ 0 \cdot 3 + 3 \cdot 2,\ 1 \cdot 3 + 1 \cdot 2) = (4, 6, 5). The input lives in R2\mathbb{R}^2 and the image lives in R3\mathbb{R}^3.

Which matrix reflects the plane across the x1x_1-axis?

Core

TT first performs a vertical shear that sends e1\mathbf e_1 to e1+2e2\mathbf e_1 + 2\mathbf e_2 and keeps e2\mathbf e_2 fixed, then reflects through the line x2=x1x_2 = x_1. Find T(1,1)T(1, 1). (Modeled on Lay §1.9 #9.)

Show a hint

Follow e1\mathbf e_1 and e2\mathbf e_2 through both steps, in order. The reflection swaps the two coordinates.

Show the solution

Track each basis vector through both steps.

e1→(1,2)→(2,1),e2→(0,1)→(1,0),\begin{aligned} \green{\mathbf e_1} &\to (1, 2) \to (2, 1), \\ \red{\mathbf e_2} &\to (0, 1) \to (1, 0), \end{aligned}

so A=[2110]A = \begin{bmatrix} \green{2} & \red{1} \\ \green{1} & \red{0} \end{bmatrix} and T(1,1)=(2,1)+(1,0)=(3,1)T(1, 1) = (2, 1) + (1, 0) = (3, 1).

A linear map TT sends u=(1,1)\mathbf u = (1, 1) to (4,2)(4, 2) and v=(1,−1)\mathbf v = (1, -1) to (2,−4)(2, -4). Find T(e1)T(\mathbf e_1). (Modeled on Lay §1.8 #17.)

Show a hint

Write e1\mathbf e_1 as a combination of u\mathbf u and v\mathbf v. Adding them gives (2,0)(2, 0).

Show the solution

Since e1=12(u+v)\mathbf e_1 = \tfrac12(\mathbf u + \mathbf v), linearity gives

T(e1)=12(T(u)+T(v))=12[6−2]=[3−1].T(\mathbf e_1) = \tfrac12\bigl(T(\mathbf u) + T(\mathbf v)\bigr) = \tfrac12\begin{bmatrix} 6 \\ -2 \end{bmatrix} = \begin{bmatrix} 3 \\ -1 \end{bmatrix}.

In the same way e2=12(u−v)\mathbf e_2 = \tfrac12(\mathbf u - \mathbf v) gives T(e2)=(1,3)T(\mathbf e_2) = (1, 3), so the standard matrix is [31−13]\begin{bmatrix} 3 & 1 \\ -1 & 3 \end{bmatrix}.

Let T(x)=AxT(\mathbf x) = A\mathbf x with A=[120123]A = \begin{bmatrix} 1 & 2 \\ 0 & 1 \\ 2 & 3 \end{bmatrix}. Find x\mathbf x with T(x)=(4,1,7)T(\mathbf x) = (4, 1, 7). (Modeled on Lay §1.8 #9.)

Show a hint

Row 2 of the system says x2=1x_2 = 1 directly. Use it in row 1, and then check row 3.

Show the solution

The rows are x1+2x2=4x_1 + 2x_2 = 4,  x2=1\ x_2 = 1 and 2x1+3x2=72x_1 + 3x_2 = 7. Row 2 gives x2=1x_2 = 1, and then row 1 gives x1=2x_1 = 2. Row 3 checks: 4+3=74 + 3 = 7. So x=(2,1)\mathbf x = (2, 1). Had the third entry of b\mathbf b been anything other than 77, b\mathbf b would not be in the range.

Find the standard matrix of a quarter turn clockwise. Enter it row by row. (Modeled on Lay §1.9 #3.)

Show a hint

Clockwise sends e1\mathbf e_1 pointing down. Alternatively, use the rotation matrix with φ=−90∘\varphi = -90^\circ.

Show the solution

A clockwise quarter turn sends e1=(1,0)\mathbf e_1 = (1, 0) to (0,−1)(0, -1) and e2=(0,1)\mathbf e_2 = (0, 1) to (1,0)(1, 0). With those as columns,

A=[01−10].A = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}.

The rotation formula agrees: cos⁡(−90∘)=0\cos(-90^\circ) = 0 and sin⁡(−90∘)=−1\sin(-90^\circ) = -1.

Let T(x1,x2)=(x1+4x2, 3x1−x2)T(x_1, x_2) = (x_1 + 4x_2,\ 3x_1 - x_2). Find T(e1)T(\mathbf e_1) and T(e2)T(\mathbf e_2), write the standard matrix, and use it to find T(2,1)T(2, 1). (Modeled on Lay §1.9 #19.)

Show a hint

Put (1,0)(1, 0) into the formula to get the first column, and (0,1)(0, 1) to get the second.

Show the solution

T(1,0)=(1,3)T(1, 0) = (1, 3) and T(0,1)=(4,−1)T(0, 1) = (4, -1), so

A=[143−1],A[21]=[2+46−1]=[65].A = \begin{bmatrix} 1 & 4 \\ 3 & -1 \end{bmatrix}, \qquad A\begin{bmatrix} 2 \\ 1 \end{bmatrix} = \begin{bmatrix} 2 + 4 \\ 6 - 1 \end{bmatrix} = \begin{bmatrix} 6 \\ 5 \end{bmatrix}.

The formula gives the same thing directly: (2+4, 6−1)=(6,5)(2 + 4,\ 6 - 1) = (6, 5).

Challenge

TT first rotates the plane a quarter turn counterclockwise and then reflects it across the x1x_1-axis. Find the standard matrix of TT and enter it row by row. Which single reflection is it?

Show a hint

Track e1\mathbf e_1 and e2\mathbf e_2 through the turn first, then flip the sign of each second entry.

Show the solution

The turn sends e1→(0,1)\mathbf e_1 \to (0, 1) and e2→(−1,0)\mathbf e_2 \to (-1, 0). The reflection flips the sign of the second entry, so e1→(0,−1)\mathbf e_1 \to (0, -1) and e2→(−1,0)\mathbf e_2 \to (-1, 0):

A=[0−1−10].A = \begin{bmatrix} 0 & -1 \\ -1 & 0 \end{bmatrix}.

This matrix swaps the two coordinates and negates both, so it reflects the plane across the line x2=−x1x_2 = -x_1. Two moves in a row made a single move, which is tomorrow's topic.

A linear map TT has T(u)=(1,2)T(\mathbf u) = (1, 2). What is T(−3u)T(-3\mathbf u)?

Show that T(x)=x+(1,1)T(\mathbf x) = \mathbf x + (1, 1) is not linear. Then explain why every linear map must send 0\mathbf 0 to 0\mathbf 0.

Show a hint

Compute T(0)T(\mathbf 0). For the second part, write 0=0 u\mathbf 0 = 0\,\mathbf u for any u\mathbf u and use rule (ii).

Show the solution

T(0)=(1,1)T(\mathbf 0) = (1, 1), but a linear map sends 0\mathbf 0 to 0\mathbf 0, so TT is not linear. Rule (i) fails directly too: T(0+0)=(1,1)T(\mathbf 0 + \mathbf 0) = (1, 1), while T(0)+T(0)=(2,2)T(\mathbf 0) + T(\mathbf 0) = (2, 2).

For any linear TT and any vector u\mathbf u, 0=0 u\mathbf 0 = 0\,\mathbf u, so rule (ii) gives T(0)=T(0 u)=0 T(u)=0T(\mathbf 0) = T(0\,\mathbf u) = 0\,T(\mathbf u) = \mathbf 0.