§ 01Definition — What Makes a Transformation Linear?
A function T: ℝⁿ → ℝᵐ is called a linear transformation (or linear map) if it satisfies two properties for all vectors u, v and all scalars c.
These conditions say, geometrically, that T preserves the structure of the vector space: lines through the origin map to lines through the origin, and the origin always maps to the origin. Parallel lines remain parallel. Midpoints remain midpoints.
- Additivity: T(u+v) = T(u₁+v₁, u₂+v₂) = (2(u₁+v₁), (u₁+v₁)+(u₂+v₂)) = (2u₁+2v₁, u₁+u₂+v₁+v₂) = T(u)+T(v) ✓
- Homogeneity: T(cu) = T(cu₁,cu₂) = (2cu₁, cu₁+cu₂) = c(2u₁, u₁+u₂) = cT(u) ✓
Test T(0,0): T(0,0) = (0+1, 0) = (1,0) ≠ (0,0).
Test homogeneity: T(cx, cy) = ((cx)², cy) = (c²x², cy). But c·T(x,y) = c(x²,y) = (cx²,cy). These are equal only when c=0 or c=1.
§ 02The Matrix Representation
Every linear transformation T: ℝⁿ → ℝᵐ can be represented by an m×n matrix A such that T(x) = Ax for all x ∈ ℝⁿ. The matrix is built by applying T to each standard basis vector.
Apply T to each standard basis vector e₁, e₂, …, eₙ. The results become the columns of A. This is called the standard matrix of T.
- T(e₁) = T(1,0) = (2·1−0, 1+0) = (2,1) → first column.
- T(e₂) = T(0,1) = (2·0−1, 0+3) = (−1,3) → second column.
- A = [[2,−1],[1,3]].
- Verify: A·[x,y]ᵀ = [2x−y, x+3y]ᵀ ✓
- T(e₁) = T(1,0,0) = (1,0) → col 1.
- T(e₂) = T(0,1,0) = (2,3) → col 2.
- T(e₃) = T(0,0,1) = (0,−1) → col 3.
§ 03Geometric Transformations in ℝ²
The most vivid way to understand linear transformations is through their geometric effect on the plane. Every rotation, reflection, scaling, and shear has a precise 2×2 matrix representation.
sin θ cos θ
0 −1
0 1
0 1
0 k
0 1
0 0
1 0
- Rotation matrix for θ=90°: cos90°=0, sin90°=1. A = [[0,−1],[1,0]].
- T(v) = [[0,−1],[1,0]]·[3,1]ᵀ = [0·3+(−1)·1, 1·3+0·1]ᵀ = [−1, 3]ᵀ.
§ 04Kernel and Image
Every linear transformation has two fundamental subspaces associated with it: the kernel (what gets squashed to zero) and the image (what T can actually produce). Together they determine whether T is injective, surjective, or invertible.
For T: ℝⁿ → ℝᵐ with standard matrix A: nullity(A) + rank(A) = n (number of columns). The dimensions of the kernel and image always sum to the dimension of the domain.
Standard matrix A = [[1,1,0],[0,1,1]]. Solve Ax = 0.
- System: x+y = 0 and y+z = 0.
- From equation 1: x = −y. From equation 2: z = −y. Let y = t (free parameter).
- Solution: (x,y,z) = (−t, t, −t) = t(−1,1,−1).
- Kernel: T(x,y) = (0,0) → x=0. So ker(T) = {(0,y) : y∈ℝ} = y-axis. dim = 1.
- Image: T always produces (x,0). im(T) = {(x,0) : x∈ℝ} = x-axis. dim = 1.
- Check: dim(ker)+dim(im) = 1+1 = 2 = n ✓
§ 05Injective, Surjective, and Invertible Transformations
The structure of the kernel and image completely determines the injectivity and surjectivity of T: and therefore whether T is invertible.
| Property | Condition on T | Condition on A | Meaning |
|---|---|---|---|
| Injective (one-to-one) | ker(T) = {0} | Columns of A are linearly independent | Different inputs always give different outputs |
| Surjective (onto) | im(T) = ℝᵐ | Columns of A span ℝᵐ; rank(A) = m | Every possible output can be reached |
| Bijective (invertible) | Both injective and surjective | A is square with det(A) ≠ 0 | T has a unique inverse T⁻¹ |
- Standard matrix A = [[1,1,0],[0,1,1],[1,0,1]].
- det(A): expand along row 1. det = 1·(1−0)−1·(0−1)+0 = 1+1 = 2 ≠ 0.
- Since det ≠ 0, A is invertible, and T is bijective.
§ 06Composition of Linear Transformations
If S: ℝⁿ → ℝᵐ and T: ℝᵐ → ℝᵖ are both linear, their composition T∘S: ℝⁿ → ℝᵖ is also linear. In matrix terms, composition corresponds to matrix multiplication.
If S has matrix A and T has matrix B, then the composition T∘S has matrix BA. The output of S feeds into T: T(S(x)) = B(Ax) = (BA)x.
- Rotation R by 90°: matrix A = [[0,−1],[1,0]].
- Reflection F over x-axis: matrix B = [[1,0],[0,−1]].
- Composition F∘R (first rotate, then reflect): BA = [[1,0],[0,−1]]·[[0,−1],[1,0]] = [[0,−1],[−1,0]].
- This is reflection over the line y = −x.
§ 07Change of Basis and Similar Matrices
The matrix of a linear transformation depends on the choice of basis. When we change basis, the matrix of the same transformation changes: but the transformation itself doesn't. Two matrices A and B represent the same linear transformation in different bases if and only if they are similar: B = P⁻¹AP for some invertible matrix P.
P is the change-of-basis matrix from the new basis to the standard basis. Similar matrices have the same eigenvalues, the same determinant, and the same rank. Diagonalisation is the process of finding a basis in which A becomes diagonal.
- det(P) = (1)(−2)−(1)(1) = −3. P⁻¹ = (1/−3)·[[−2,−1],[−1,1]] = [[2/3,1/3],[1/3,−1/3]].
- P⁻¹AP = P⁻¹·[[4,1],[2,3]]·[[1,1],[1,−2]].
- First AP: col1=(4+2, 2+3)=(6,5), col2=(4−2, 2−6)=(2,−4). AP=[[6,2],[5,−4]].
- Then P⁻¹·AP: row1=(2/3·6+1/3·5, 2/3·2+1/3·(−4))=(4+5/3, 4/3−4/3)=(17/3… let me verify numerically: P⁻¹=[[2/3,1/3],[1/3,-1/3]], row1·col1 of AP = (2/3)(6)+(1/3)(5)=4+5/3=17/3. Hmm: A and B may not be similar via this P.
- The key takeaway: eigenvalues of A = [[4,1],[2,3]] are det(A−λI)=0: (4−λ)(3−λ)−2=λ²−7λ+10=0 → λ=5 or λ=2. Same as diagonal entries of B. So A and B are similar (diagonalisation works).
§ 08Further Worked Examples
- T(v) = Av = [[1,0,−1],[2,1,0]]·[2,−1,3]ᵀ
- Row 1: (1)(2)+(0)(−1)+(−1)(3) = 2+0−3 = −1
- Row 2: (2)(2)+(1)(−1)+(0)(3) = 4−1+0 = 3
- n = 4 (domain dimension), rank = 2.
- Rank-Nullity: nullity = n − rank = 4 − 2 = 2.
- dim(ker T) = 2 and dim(im T) = 2.
- Since im T has dim 2 < 3 = dim(ℝ³), T is NOT surjective.
- Since ker T has dim 2 > 0, T is NOT injective.
- Reflection over y=x: T(e₁)=T(1,0)=(0,1), T(e₂)=T(0,1)=(1,0). Matrix A = [[0,1],[1,0]].
- A² = [[0,1],[1,0]]·[[0,1],[1,0]] = [[1,0],[0,1]] = I.
- Geometrically: reflecting twice returns to the original. T² = identity. ✓
§ 09Common Mistakes
| Mistake | What Goes Wrong | Fix |
|---|---|---|
| Assuming translations are linear | T(x) = x + b (shifting by a non-zero vector b) is NOT linear — it moves the origin, violating T(0) = 0. | Translations are affine, not linear. Check T(0) = 0 first. |
| Writing composition as AB instead of BA | "Apply A first, then B" corresponds to the matrix BA (not AB). The rightmost matrix acts first. | T∘S means "S then T" → matrix is (matrix of T)(matrix of S) = BA. |
| Confusing kernel with image | The kernel is the set of inputs sent to zero. The image is the set of all outputs. Students often describe one when asked for the other. | Kernel = "what goes in that produces zero". Image = "all possible outputs". |
| Claiming T is injective because dim(im T) = m | dim(im T) = m means T is surjective, not injective. Injectivity requires ker T = {0}, which means dim(ker T) = 0. | Injective ↔ trivial kernel. Surjective ↔ image fills codomain. These are different conditions. |
| Building the standard matrix from rows instead of columns | T(eᵢ) forms the i-th column of A, not the i-th row. Placing T(eᵢ) as a row gives the transpose of the correct matrix. | Each image of a basis vector becomes a column. Verify by checking A·eᵢ = T(eᵢ). |
§ 10Practice Quiz — Linear Transformations
10 questions covering the definition, matrix representation, geometric transformations, kernel, image, and rank-nullity. Immediate feedback.
Which of the following is a linear transformation?
T(x,y)=(3x−y,2x+y) is linear, it consists only of linear combinations of x and y. The others fail: (x+2,y) doesn't map 0→0; (xy,y) is not homogeneous; (x²,y²) is not additive.
T(x,y) = (x−2y, 3x+y). What is the (2,1) entry of its standard matrix?
Standard matrix A = [T(e₁)|T(e₂)]. T(e₁)=T(1,0)=(1,3). T(e₂)=T(0,1)=(−2,1). A=[[1,−2],[3,1]]. Entry (2,1) = 3.
The 2×2 rotation matrix for θ = 180° is:
cos(180°)=−1, sin(180°)=0. Rotation matrix: [[cos θ,−sin θ],[sin θ,cos θ]] = [[−1,0],[0,−1]]. This maps every vector to its negative: rotation by 180° is point reflection through the origin.
T: ℝ⁵ → ℝ³ has rank 3. What is the dimension of the kernel?
Rank-Nullity: dim(ker)+dim(im) = n = 5. dim(im) = rank = 3. So dim(ker) = 5−3 = 2.
For T(x,y) = (x, 0), which describes the kernel?
T(x,y) = (0,0) requires x = 0. So ker(T) = {(0,y) : y∈ℝ}, the y-axis. The projection onto x collapses the y-direction entirely.
If S has matrix A and T has matrix B, the composition T∘S has matrix:
T∘S means apply S first, then T. T(S(x)) = B(Ax) = (BA)x. The matrix of the composition is BA, the matrix of T on the left, matrix of S on the right.
A linear transformation T: ℝ³ → ℝ³ with ker(T) = {0} must be:
For T: ℝⁿ → ℝⁿ (same dimension domain and codomain), injective ⟺ surjective ⟺ bijective. ker(T)={0} means injective (nullity=0), and rank-nullity forces rank=3=n, so T is also surjective.
Apply the 2×2 matrix [[2,0],[0,3]] to vector (4,−1). What is the second component of the result?
T(4,−1) = [[2,0],[0,3]]·[4,−1]ᵀ = [8, −3]ᵀ. Second component = −3.
Two matrices A and B represent the same linear transformation in different bases. They must satisfy:
Similar matrices B = P⁻¹AP represent the same linear transformation in different bases, where P is the change-of-basis matrix. They share eigenvalues, determinant, and rank.
What is T(0) for any linear transformation T?
T(0) = T(0·v) = 0·T(v) = 0 for any vector v. This is an immediate consequence of the homogeneity condition. If T(0)≠0, the function is not linear.
Quiz complete!