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
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 sends
so its matrix is
A stretch by factor 3 in the positive -direction sends
so its matrix is
Because the reflection happens first and the stretch happens second, the combined matrix is
So the required transformation matrix is
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 -coordinate, not both coordinates.
What if the problem changes? If the stretch were instead in the direction of the positive -axis by factor 3, the stretch matrix would be
and the combined matrix would become
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.