Unit 9 · Topic 4.13 · Optional
Matrices as Functions
Move fluently among a linear transformation rule, its matrix, its action on basis vectors, compositions of transformations, and inverse transformations.
Learning Goals
- Construct a transformation matrix from coordinate rules or basis-vector images.
- Use the general rotation matrix to rotate vectors through any angle.
- Interpret the determinant as an area-dilation factor.
- Represent a composition with matrix multiplication in the correct order.
- Explain why transformation composition is generally not commutative.
- Construct and verify an inverse linear transformation.
1. A Matrix Represents a Function
Every \(2\times2\) matrix A defines a linear function from \(\mathbb R^2\) to \(\mathbb R^2\):
The same transformation can be represented verbally, with coordinate rules, as a matrix, or by showing how it moves geometric objects. These representations must produce the same output for every input vector.
2. Translate a Coordinate Rule into a Matrix
The rule
corresponds to
Coefficients in the first output form row 1; coefficients in the second output form row 2.
3. The Columns Are Basis-Vector Images
Because \(\mathbf i=\langle1,0\rangle\) and \(\mathbf j=\langle0,1\rangle\),
The first column is \(L(\mathbf i)\), and the second is \(L(\mathbf j)\). Since every vector is \(x\mathbf i+y\mathbf j\), these two images determine the entire linear transformation.
4. Basis Vectors Determine the Plane
5. Build a Matrix from Two Images
Suppose
Place these vectors as columns:
Then \(L(4,2)=4L(\mathbf i)+2L(\mathbf j)=\langle6,10\rangle\), matching \(A\begin{bmatrix}4\\2\end{bmatrix}\).
6. Rotation through Any Angle
A counterclockwise rotation through angle \(\theta\) about the origin is represented by
Its columns are the rotated images of \(\mathbf i\) and \(\mathbf j\). Because \(\det(R_\theta)=\cos^2\theta+\sin^2\theta=1\), rotation preserves area and orientation.
7. Rotation Example
At \(\theta=\pi/2\),
The vector turns \(90^\circ\) counterclockwise and keeps magnitude \(\sqrt{13}\).
8. Determinant as a Region-Dilation Factor
| Value | Area effect | Orientation |
|---|---|---|
| \(\det A>0\) | Scale by \(|\det A|\) | Preserved |
| \(\det A<0\) | Scale by \(|\det A|\) | Reversed |
| \(\det A=0\) | Collapse to zero area | Transformation is not invertible |
If a region initially has area S, its image has area \(|\det A|S\).
9. Composition Becomes Matrix Multiplication
Let \(L_A(\mathbf v)=A\mathbf v\) and \(L_B(\mathbf v)=B\mathbf v\). Applying A first and B second gives
The matrix nearest the input acts first. Function-composition order and matrix-product order both read from right to left.
10. Worked Composition Example
First reflect across the x-axis with \(F=\begin{bmatrix}1&0\\0&-1\end{bmatrix}\), then apply the horizontal shear \(S=\begin{bmatrix}1&2\\0&1\end{bmatrix}\). The composite matrix is
For \(\mathbf v=\langle3,1\rangle\), reflection gives \(\langle3,-1\rangle\), then shearing gives \(\langle1,-1\rangle\). The product matrix gives the same result directly.
11. Reversing the Order Changes the Function
Shearing first and reflecting second produces
Now \(\langle3,1\rangle\mapsto\langle5,-1\rangle\), not \(\langle1,-1\rangle\). Thus \(L_S\circ L_F\ne L_F\circ L_S\), just as \(SF\ne FS\).
12. Composition and Area Factors
Therefore, area dilation factors multiply under composition. A scale by 2 followed by a scale by 3 changes area by a factor of 6. If either determinant is 0, the composite also collapses area and cannot be inverted.
13. Inverse Transformations
Two transformations are inverses when both compositions return every vector unchanged:
If \(L(\mathbf v)=A\mathbf v\) and \(\det A\ne0\), then
A transformation with determinant 0 has merged distinct directions or points, so the lost information cannot be uniquely recovered.
14. Verify an Inverse Function
For
the input \(\mathbf v=\langle4,3\rangle\) maps to
Matrix multiplication also verifies \(AA^{-1}=A^{-1}A=I\).
15. AP Workflow and Common Errors
- Translate coordinate coefficients into matrix rows.
- Alternatively, place \(L(\mathbf i)\) and \(L(\mathbf j)\) as matrix columns.
- For rotation, substitute the angle into the standard matrix.
- For a composition, write the matrix acting first nearest the vector.
- Multiply matrices before applying the composite to inputs.
- Use \(|\det A|\) for area dilation and the determinant sign for orientation.
- Use \(A^{-1}\) only when \(\det A\ne0\), then verify both compositions.
- Do not place basis-vector images as rows.
- Do not reverse the matrix order in a composition.
- Do not interchange the two sine signs in the rotation matrix.
- Do not use a negative determinant as a negative area.
- Do not assume transformations commute.
- Do not claim an inverse exists when the determinant is 0.
Key Takeaways
- View matrix multiplication as a function and connect matrix products with composition order.
- Core relationship: \(T_A(\mathbf x)=A\mathbf x,\quad(T_B\circ T_A)(\mathbf x)=BA\mathbf x\)
- Error check: Do not reverse the matrix product when translating a composition.
- Write the matrix associated with \(L(x,y)=(3x-2y,5x+y)\).
- Construct A when \(L(\mathbf i)=\langle1,4\rangle\) and \(L(\mathbf j)=\langle-2,3\rangle\), then find \(L(2,-1)\).
- Use \(R_{\pi/3}\) to rotate \(\langle2,0\rangle\) counterclockwise.
- A reflection across the y-axis is followed by a \(90^\circ\) counterclockwise rotation. Find the composite matrix and apply it to \(\langle3,-1\rangle\).
- Find the inverse transformation associated with \(\begin{bmatrix}3&1\\2&1\end{bmatrix}\) and verify it on one nonzero vector.