What is a linear transformation?
A function T:V→W between vector spaces is linear if for all u,v∈V and scalars c:
- Additivity: T(u+v)=T(u)+T(v).
- Homogeneity: T(cv)=cT(v).
Equivalently: T(au+bv)=aT(u)+bT(v) (preserves linear combinations).
A consequence of these axioms: T(0)=0. Any map that doesn't send zero to zero is not linear (quick disqualifier).
Step-by-step — is T(x,y)=(2x+y,x−y) linear?
Let u=(x1,y1) and v=(x2,y2), c∈R.
Additivity check:
T(u+v)=T(x1+x2,y1+y2)=(2(x1+x2)+(y1+y2),(x1+x2)−(y1+y2))
=(2x1+y1,x1−y1)+(2x2+y2,x2−y2)=T(u)+T(v)✓
Homogeneity check:
T(cu)=T(cx1,cy1)=(2cx1+cy1,cx1−cy1)=c(2x1+y1,x1−y1)=cT(u)✓
Both axioms hold: T is linear.
Matrix representation
Any linear T:Rn→Rm is given by matrix multiplication: T(x)=Ax. The matrix is built column by column:
A=[T(e1),T(e2),…,T(en)]
where ej is the j-th standard basis vector.
For our T:
- T(e1)=T(1,0)=(2⋅1+0,1−0)=(2,1).
- T(e2)=T(0,1)=(0+1,0−1)=(1,−1).
A=(211−1)
Check: T(x,y)=A(x,y)T=(2x+y,x−y) ✓.
What the matrix does geometrically
A takes:
- (1,0) to (2,1) — the x-axis tilts up-right.
- (0,1) to (1,−1) — the y-axis tilts down-right.
- (1,1) to (3,0) — the square's diagonal corner stretches horizontally.
The unit square with corners 0,(1,0),(1,1),(0,1) maps to a parallelogram with corners 0,(2,1),(3,0),(1,−1).
Area scaling: ∣detA∣=∣2(−1)−1⋅1∣=3. So the parallelogram has 3 times the area of the unit square.
Orientation: detA=−3<0, so T flips orientation (reflects).
Common types of linear transformations on R2
- Rotation by θ: (cosθsinθ−sinθcosθ), det=1.
- Scaling by k in both directions: kI, det=k2.
- Reflection across the x-axis: (100−1), det=−1.
- Shear along x by factor k: (10k1), det=1 (preserves area).
- Projection onto x-axis: (1000), det=0 (collapses to a line).
Properties that linear transformations preserve
- The origin: T(0)=0.
- Straight lines: lines go to lines (possibly degenerate to points).
- The origin being on a line: lines through origin map to lines through origin.
- Parallel lines: parallel stays parallel.
- Ratios of lengths on a line.
Properties they generally don't preserve
- Lengths (unless T is a rotation/reflection).
- Angles (unless T is orthogonal).
- Areas (unless ∣det∣=1).
Common mistakes
- Assuming T(x)=mx+b is linear. It's only linear if b=0; otherwise it's affine.
- Missing the T(0)=0 check. It's a quick disqualifier for many candidate maps.
- Confusing functions of one variable with linear maps. T(x)=x2 is not linear.
Try it in the visualization
Drag the two columns of the transformation matrix. A unit square (and a few sample vectors inside) deforms live. Determinant badge shows the area scale factor.