Skip to content

Linear transformations and their matrices

5 min read

Short answer

A map TT is linear if T(u+v)=T(u)+T(v)T(\mathbf u+\mathbf v)=T(\mathbf u)+T(\mathbf v) and T(cv)=cT(v)T(c\mathbf v)=cT(\mathbf v). Every linear map from Rn\mathbb R^n to Rm\mathbb R^m is multiplication by a matrix whose columns are T(e1),…,T(en)T(\mathbf e_1),\dots,T(\mathbf e_n), the images of the standard basis vectors.

Diagrame1e2T(e1)T(e2)
For a 90° counterclockwise rotation, e1 lands on (0, 1) and e2 lands on (−1, 0). Those two images are the columns of the matrix.

Why the columns tell you everything

Any vector is x=x1e1+⋯+xnen\mathbf x=x_1\mathbf e_1+\dots+x_n\mathbf e_n. By linearity, T(x)=x1T(e1)+⋯+xnT(en)T(\mathbf x)=x_1T(\mathbf e_1)+\dots+x_nT(\mathbf e_n), which is a combination of the columns. That is precisely what matrix-vector multiplication does. So knowing what TT does to the basis fixes it everywhere.

Common matrices to recognize

Rotation by θ\theta: (cos⁡θ−sin⁡θsin⁡θcos⁡θ)\begin{pmatrix}\cos\theta&-\sin\theta\\\sin\theta&\cos\theta\end{pmatrix}. Reflection across the xx-axis: (100−1)\begin{pmatrix}1&0\\0&-1\end{pmatrix}. Scaling by kk: kIkI. Horizontal shear: (1s01)\begin{pmatrix}1&s\\0&1\end{pmatrix}. Composition of maps corresponds to multiplying matrices, with the first map on the right.

Worked example

Find the matrix of T(x,y)=(2x+y, x−3y)T(x,y)=(2x+y,\ x-3y) and compute T(1,2)T(1,2).

T(1,0)=(2,1)T(1,0)=(2,1) and T(0,1)=(1,−3)T(0,1)=(1,-3), so the matrix is [T]=(211−3).[T]=\begin{pmatrix}2&1\\1&-3\end{pmatrix}. Then T(1,2)=(211−3)(12)=(4, −5)T(1,2)=\begin{pmatrix}2&1\\1&-3\end{pmatrix}\begin{pmatrix}1\\2\end{pmatrix}=(4,\,-5). Directly: (2+2, 1−6)=(4,−5)(2+2,\ 1-6)=(4,-5). ✓

Try it yourself

Write the matrix of the shear T(x,y)=(x+y, y)T(x,y)=(x+y,\ y).

Show the answer

T(1,0)=(1,0)T(1,0)=(1,0) and T(0,1)=(1,1)T(0,1)=(1,1), so the matrix is (1101)\begin{pmatrix}1&1\\0&1\end{pmatrix}.

Keep going with practice

Vidi's Linear Algebra & Probability course visualizes how matrices transform the plane, using the vector playground.