Álgebra LinealLinear Transformations

Rotations, Reflections, Shears and Projections

Read and build matrices for common plane maps.

Sin empezar Ir a la práctica

Esta lección aún no está traducida. Por ahora se muestra en inglés; la versión en español está en camino.

In precalculus you saw matrices move shapes. With the standard matrix rule ("columns are where $\mathbf{e}_1$ and $\mathbf{e}_2$ go"), you can build the matrix of any linear map of the plane yourself instead of memorizing a table.

Rotation by θ

Rotating $\mathbf{e}_1 = (1, 0)$ counterclockwise by $\theta$ lands on $(\cos\theta, \sin\theta)$, the point on the unit circle. Rotating $\mathbf{e}_2 = (0, 1)$, which starts a quarter-turn ahead, lands on $(\cos(\theta + 90^\circ), \sin(\theta + 90^\circ))$ $= (-\sin\theta, \cos\theta)$. So $$R_\theta = \begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix}.$$

Try each preset and read the columns: they are the images of $\hat{\imath}$ and $\hat{\jmath}$. The little F shows whether the map flips the plane.
Common maps. You can rebuild each row from the last column.
Map of the planeMatrixWhere e₁, e₂ go
Reflect across the $x$-axis$\begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix}$$(1, 0)$, $(0, -1)$
Reflect across $y = x$$\begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}$$(0, 1)$, $(1, 0)$
Reflect across $y = -x$$\begin{bmatrix} 0 & -1 \\ -1 & 0 \end{bmatrix}$$(0, -1)$, $(-1, 0)$
Horizontal shear by $k$$\begin{bmatrix} 1 & k \\ 0 & 1 \end{bmatrix}$$(1, 0)$, $(k, 1)$
Project onto the $x$-axis$\begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix}$$(1, 0)$, $(0, 0)$
Stretch by $a$ and $b$$\begin{bmatrix} a & 0 \\ 0 & b \end{bmatrix}$$(a, 0)$, $(0, b)$

Ejemplo resuelto: A 30° rotation

Find the matrix of the counterclockwise rotation by $30^\circ$ and rotate the point $(2, 0)$.
  1. $\cos 30^\circ = \frac{\sqrt{3}}{2}$ and $\sin 30^\circ = \frac{1}{2}$, so $R = \begin{bmatrix} \frac{\sqrt{3}}{2} & -\frac{1}{2} \\ \frac{1}{2} & \frac{\sqrt{3}}{2} \end{bmatrix}$.
  2. $R\begin{bmatrix} 2 \\ 0 \end{bmatrix}$ $= 2\cdot(\text{column 1})$ $= \begin{bmatrix} \sqrt{3} \\ 1 \end{bmatrix}$.
  3. Check: the length is $\sqrt{3 + 1} = 2$, as a rotation must keep it.

Respuesta: $(\sqrt{3}, 1)$

Ejemplo resuelto: Projection onto a line

Find the matrix of the orthogonal projection onto the line $y = 2x$.
  1. The line has direction $\mathbf{u} = (1, 2)$, and projection onto it is $\mathbf{x} \mapsto \dfrac{\mathbf{x}\cdot\mathbf{u}}{\mathbf{u}\cdot\mathbf{u}}\mathbf{u}$ (from vector projections).
  2. $\mathbf{e}_1 \mapsto \frac{1}{5}(1, 2)$ and $\mathbf{e}_2 \mapsto \frac{2}{5}(1, 2)$.
  3. So $P$ $= \frac{1}{5}\begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix}$ $= \begin{bmatrix} \frac{1}{5} & \frac{2}{5} \\ \frac{2}{5} & \frac{4}{5} \end{bmatrix}$.
  4. Check: $P\begin{bmatrix} 1 \\ 2 \end{bmatrix} = \begin{bmatrix} 1 \\ 2 \end{bmatrix}$ (points on the line stay put) and $P\begin{bmatrix} -2 \\ 1 \end{bmatrix} = \mathbf{0}$ (perpendicular vectors vanish).

Respuesta: $\frac{1}{5}\begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix}$

Por qué funciona

Why do all these maps have matrices at all? Each one is linear: rotating, reflecting, shearing or projecting a sum of arrows gives the sum of the rotated (reflected, …) arrows, because the parallelogram that builds the sum is carried along as a whole. Linear maps are determined by $T(\mathbf{e}_1)$ and $T(\mathbf{e}_2)$, so two pictures are all you need.

Each family has a fingerprint you can check. Rotations and reflections keep lengths and angles: their columns are perpendicular unit vectors. Rotations keep the F reading the same way; reflections flip it. A projection does nothing new the second time ($P^{2} = P$), and a shear keeps one direction fixed while sliding the other.

Ejemplo resuelto: Reading a matrix

What does $\begin{bmatrix} 0 & -1 \\ -1 & 0 \end{bmatrix}$ do to the plane?
  1. $\mathbf{e}_1 \mapsto (0, -1)$ and $\mathbf{e}_2 \mapsto (-1, 0)$.
  2. The vector $(1, -1)$ stays put and $(1, 1)$ goes to $(-1, -1)$: the line $y = -x$ is fixed and the perpendicular direction flips.

Respuesta: Reflection across the line $y = -x$.

Idea clave

To find the matrix of a plane map, ask where $\mathbf{e}_1$ and $\mathbf{e}_2$ go and use those as columns. Rotation by $\theta$: $\begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix}$.

Práctica

Apruebas con 3 respuestas correctas, las 2 últimas seguidas. Cada respuesta correcta da 2 XP.

Cargando la práctica…

Se apoya en

Lleva a

Fuentes y lecturas

  • Margalit and Rabinoff, Interactive Linear Algebra (Georgia Tech), §3.1 Matrix Transformations and §3.3 Linear Transformations
  • MIT OpenCourseWare 18.06 Linear Algebra (Gilbert Strang, Spring 2010), Lecture 30: Linear Transformations and Their Matrices