Linear Transformations and Their Properties

April 13, 2026

Problem

Consider T(x, y) = (2x + y, x − y). Show it is linear, and visualize how it deforms the unit square.

Explanation

What is a linear transformation?

A function T:VWT : V \to W between vector spaces is linear if for all u,vV\mathbf{u}, \mathbf{v} \in V and scalars cc:

  1. Additivity: T(u+v)=T(u)+T(v)T(\mathbf{u} + \mathbf{v}) = T(\mathbf{u}) + T(\mathbf{v}).
  2. Homogeneity: T(cv)=cT(v)T(c \mathbf{v}) = c \, T(\mathbf{v}).

Equivalently: T(au+bv)=aT(u)+bT(v)T(a \mathbf{u} + b \mathbf{v}) = a \, T(\mathbf{u}) + b \, T(\mathbf{v}) (preserves linear combinations).

A consequence of these axioms: T(0)=0T(\mathbf{0}) = \mathbf{0}. Any map that doesn't send zero to zero is not linear (quick disqualifier).

Step-by-step — is T(x,y)=(2x+y,xy)T(x, y) = (2x + y, x - y) linear?

Let u=(x1,y1)\mathbf{u} = (x_1, y_1) and v=(x2,y2)\mathbf{v} = (x_2, y_2), cRc \in \mathbb{R}.

Additivity check: T(u+v)=T(x1+x2,y1+y2)=(2(x1+x2)+(y1+y2),(x1+x2)(y1+y2))T(\mathbf{u} + \mathbf{v}) = T(x_1 + x_2, y_1 + y_2) = (2(x_1 + x_2) + (y_1 + y_2), (x_1 + x_2) - (y_1 + y_2)) =(2x1+y1,x1y1)+(2x2+y2,x2y2)=T(u)+T(v)= (2 x_1 + y_1, x_1 - y_1) + (2 x_2 + y_2, x_2 - y_2) = T(\mathbf{u}) + T(\mathbf{v}) ✓

Homogeneity check: T(cu)=T(cx1,cy1)=(2cx1+cy1,cx1cy1)=c(2x1+y1,x1y1)=cT(u)T(c \mathbf{u}) = T(c x_1, c y_1) = (2 c x_1 + c y_1, c x_1 - c y_1) = c (2 x_1 + y_1, x_1 - y_1) = c \, T(\mathbf{u}) ✓

Both axioms hold: TT is linear.

Matrix representation

Any linear T:RnRmT : \mathbb{R}^n \to \mathbb{R}^m is given by matrix multiplication: T(x)=AxT(\mathbf{x}) = A \mathbf{x}. The matrix is built column by column: A=[T(e1),T(e2),,T(en)]A = [T(\mathbf{e}_1), T(\mathbf{e}_2), \ldots, T(\mathbf{e}_n)]

where ej\mathbf{e}_j is the jj-th standard basis vector.

For our TT:

  • T(e1)=T(1,0)=(21+0,10)=(2,1)T(\mathbf{e}_1) = T(1, 0) = (2 \cdot 1 + 0, 1 - 0) = (2, 1).
  • T(e2)=T(0,1)=(0+1,01)=(1,1)T(\mathbf{e}_2) = T(0, 1) = (0 + 1, 0 - 1) = (1, -1).

A=(2111)A = \begin{pmatrix} 2 & 1 \\ 1 & -1 \end{pmatrix}

Check: T(x,y)=A(x,y)T=(2x+y,xy)T(x, y) = A (x, y)^T = (2x + y, x - y) ✓.

What the matrix does geometrically

AA takes:

  • (1,0)(1, 0) to (2,1)(2, 1) — the x-axis tilts up-right.
  • (0,1)(0, 1) to (1,1)(1, -1) — the y-axis tilts down-right.
  • (1,1)(1, 1) to (3,0)(3, 0) — the square's diagonal corner stretches horizontally.

The unit square with corners 0,(1,0),(1,1),(0,1)\mathbf{0}, (1, 0), (1, 1), (0, 1) maps to a parallelogram with corners 0,(2,1),(3,0),(1,1)\mathbf{0}, (2, 1), (3, 0), (1, -1).

Area scaling: detA=2(1)11=3|\det A| = |2(-1) - 1 \cdot 1| = 3. So the parallelogram has 3 times the area of the unit square.

Orientation: detA=3<0\det A = -3 < 0, so TT flips orientation (reflects).

Common types of linear transformations on R2\mathbb{R}^2

  • Rotation by θ\theta: (cosθsinθsinθcosθ)\begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}, det=1\det = 1.
  • Scaling by kk in both directions: kIkI, det=k2\det = k^2.
  • Reflection across the x-axis: (1001)\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, det=1\det = -1.
  • Shear along x by factor kk: (1k01)\begin{pmatrix} 1 & k \\ 0 & 1 \end{pmatrix}, det=1\det = 1 (preserves area).
  • Projection onto x-axis: (1000)\begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}, det=0\det = 0 (collapses to a line).

Properties that linear transformations preserve

  • The origin: T(0)=0T(\mathbf{0}) = \mathbf{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 TT is a rotation/reflection).
  • Angles (unless TT is orthogonal).
  • Areas (unless det=1|\det| = 1).

Common mistakes

  • Assuming T(x)=mx+bT(x) = mx + b is linear. It's only linear if b=0b = 0; otherwise it's affine.
  • Missing the T(0)=0T(\mathbf{0}) = \mathbf{0} check. It's a quick disqualifier for many candidate maps.
  • Confusing functions of one variable with linear maps. T(x)=x2T(x) = x^2 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.

Interactive Visualization

Parameters

2.00
1.00
1.00
-1.00
Custom
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Linear Transformations and Their Properties | MathSpin