Question

Matrix for a reflection in y=x followed by a vertical stretch

Original question: 6 (a) Find the matrix which transforms the $x-y$ plane by a reflection in the line $y=x$ followed by a stretch with a factor of 3 in the direction of positive $y$ axis. $[4]$ $$ \begin{pmatrix} 0 & 3 \\ 3 & 0 \end{pmatrix} \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} = \begin{pmatrix} 0 & 3 \\ 3 & 0 \end{pmatrix} $$

Expert Verified Solution

thumb_up100%(1 rated)

Key takeaway: For composite transformations, order matters. First identify the matrix for the reflection, then the matrix for the stretch, and multiply them in the correct order so the second transformation acts on the result of the first.

A reflection in the line y=xy=x sends

(xy)(yx),\begin{pmatrix}x\\y\end{pmatrix} \mapsto \begin{pmatrix}y\\x\end{pmatrix},

so its matrix is

R=(0110).R=\begin{pmatrix}0&1\\1&0\end{pmatrix}.

A stretch by factor 3 in the positive yy-direction sends

(xy)(x3y),\begin{pmatrix}x\\y\end{pmatrix} \mapsto \begin{pmatrix}x\\3y\end{pmatrix},

so its matrix is

S=(1003).S=\begin{pmatrix}1&0\\0&3\end{pmatrix}.

Because the reflection happens first and the stretch happens second, the combined matrix is

SR=(1003)(0110)=(0130).SR=\begin{pmatrix}1&0\\0&3\end{pmatrix} \begin{pmatrix}0&1\\1&0\end{pmatrix} = \begin{pmatrix}0&1\\3&0\end{pmatrix}.

So the required transformation matrix is

(0130).\boxed{\begin{pmatrix}0&1\\3&0\end{pmatrix}}.

Pitfalls the pros know 👇 The biggest trap is reversing the order of multiplication. If you multiply the matrices the other way around, you describe a different transformation. Also, the vertical stretch only changes the yy-coordinate, not both coordinates.

What if the problem changes? If the stretch were instead in the direction of the positive xx-axis by factor 3, the stretch matrix would be

(3001),\begin{pmatrix}3&0\\0&1\end{pmatrix},

and the combined matrix would become

(3001)(0110)=(0310).\begin{pmatrix}3&0\\0&1\end{pmatrix} \begin{pmatrix}0&1\\1&0\end{pmatrix} = \begin{pmatrix}0&3\\1&0\end{pmatrix}.

Tags: linear transformation, reflection matrix, matrix multiplication order

FAQ

What matrix represents a reflection in the line y=x?

The reflection in y=x swaps coordinates, so its matrix is [[0,1],[1,0]].

Why does the order of matrices matter in a composite transformation?

Matrix multiplication is not commutative. If one transformation happens first and another second, the second matrix must multiply on the left.

chat