Linear Transformations: Definition & Properties
1861 words
9 min read
Visual companion
Python
Type and operator map
Python Week 1: the first filter for runtime behavior
View
Revision summary
What this note is really saying
Short form
# Linear Transformations: Definition & Properties ## 🎯 Learning Objectives After this topic you will be able to: - State the two defining properties of a linear transformation - Determine whether a given map is linear - Identify the standard matrix of a linear transformation from $\mathbb{R}^n$ to $\mathbb{R}^m$ -...

Linear Transformations: Definition & Properties
🎯 Learning Objectives
After this topic you will be able to:
- State the two defining properties of a linear transformation
- Determine whether a given map is linear
- Identify the standard matrix of a linear transformation from Rn to Rm
- Describe geometric transformations (rotation, reflection, scaling, shear) as linear maps
- Prove basic properties of linear transformations
📋 Prerequisites
- Vector Spaces (Week 3) — the domain and codomain are vector spaces
- Matrix Multiplication (Week 1) — the computational representation of linear maps
- Linear transformations are the functions of linear algebra — they move vectors between spaces while preserving structure
1. Intuition: Structure-Preserving Maps
1.1 What Makes a Map "Linear"?
Imagine a function f(x)=2x. It has two nice properties:
- f(x+y)=2(x+y)=2x+2y=f(x)+f(y)
- f(cx)=2(cx)=c(2x)=cf(x) These two properties — additivity and homogeneity — capture what it means to be linear. A linear transformation is a function between vector spaces that respects addition and scalar multiplication. It's the natural notion of "function" in the world of vector spaces. (Diagram)
1.2 Why This Matters
Linear transformations are simple yet powerful. Because they preserve the vector space structure, we can:
- Understand them completely by examining a few vectors (basis vectors)
- Represent them as matrices (once we choose bases)
- Classify them by their kernel and image
2. Definition
Definition (Linear Transformation). A function T:V→W between two vector spaces V and W (over R) is a linear transformation if:
- Additivity: T(u+v)=T(u)+T(v) for all u,v∈V
- Homogeneity: T(cv)=cT(v) for all c∈R, v∈V
Equivalently: T(cu+dv)=cT(u)+dT(v) for all scalars c,d.
2.1 Terminology
| Term | Meaning |
|---|---|
| Linear map | Synonym for linear transformation |
| Linear operator | T:V→V (domain = codomain) |
| Homomorphism | Another synonym (from Greek "same shape") |
| Isomorphism | Bijective linear transformation |
| Endomorphism | Linear operator (same space) |
| Automorphism | Invertible linear operator |
2.2 Immediate Consequences
From the definition, every linear transformation satisfies:
- T(0V)=0W (prove: T(0⋅v)=0⋅T(v)=0)
- T(−v)=−T(v)
- T(∑i=1kcivi)=∑i=1kciT(vi) (linearity extends to any finite combination)
3. Examples
3.1 The Zero Transformation
T:V→W defined by T(v)=0 for all v. This is linear (trivially).
3.2 The Identity Transformation
I:V→V defined by I(v)=v. This is linear.
3.3 Scaling (Dilation)
T:V→V, T(v)=cv for a fixed scalar c. Linear:
- T(u+v)=c(u+v)=cu+cv=T(u)+T(v)
- T(dv)=c(dv)=d(cv)=dT(v)
3.4 Rotation in R2
T:R2→R2 rotates every vector by angle θ counterclockwise:
This is linear because it can be represented as matrix multiplication:
>T(x,y)=(−y,x)>Example 1: Rotation by 90∘θ=90∘=π/2: cosθ=0, sinθ=1.
Check linearity: T((x1,y1)+(x2,y2))=(−(y1+y2),x1+x2)=(−y1,x1)+(−y2,x2)=T(x1,y1)+T(x2,y2) ✓
3.5 Reflection Across x-axis
T:R2→R2, T(x,y)=(x,−y). Matrix:
.
3.6 Projection onto x-axis
T:R2→R2, T(x,y)=(x,0). Matrix:
.
3.7 Differentiation
T:P2→P1, T(p)=p′ (derivative). Linear because (p+q)′=p′+q′ and (cp)′=cp′.
Example 2: Differentiation as a linear transformationT(2+3x−x2)=3−2x. T(1+x2)=2x. T((2+3x−x2)+(1+x2))=T(3+3x)=3=(3−2x)+2x=T(2+3x−x2)+T(1+x2) ✓
3.8 Integration
T:C[0,1]→R, T(f)=∫01f(x)dx. Linear because the integral is linear.
4. Non-Examples
4.1 T(x)=x2 (from R to R)
T(x+y)=(x+y)2=x2+2xy+y2=x2+y2=T(x)+T(y) in general. Not linear.
4.2 T(x)=x+1 (affine, not linear)
T(0)=1=0. Failed the zero test.
4.3 T(x,y)=(∣x∣,y)
T(−1,0)=(1,0)=−(1,0)=−T(1,0). Fails homogeneity.
5. Matrix Representation
5.1 Standard Matrix
If T:Rn→Rm is linear, there exists a unique m×n matrix A such that:
The columns of A are:
where ei are the standard basis vectors.
>A=[21−1301]>Example 3: Finding the standard matrixT:R3→R2, T(x,y,z)=(2x−y,x+3y+z).T(e1)=T(1,0,0)=(2,1) T(e2)=T(0,1,0)=(−1,3) T(e3)=T(0,0,1)=(0,1)
>Axyz=[2x−yx+3y+z]>Check:
✓
5.2 Composition as Matrix Multiplication
If T:Rn→Rm has matrix A and S:Rm→Rp has matrix B, then:
So composition of linear transformations corresponds to matrix multiplication.
6. Types of Linear Transformations
| Type | Definition | Matrix Condition |
|---|---|---|
| Injective (one-to-one) | T(u)=T(v)⇒u=v | ker(T)={0} |
| Surjective (onto) | For every w∈W , ∃v with T(v)=w | im(T)=W |
| Bijective (isomorphism) | Both injective and surjective | Invertible matrix |
7. Edge Cases & Gotchas
| Situation | What Happens |
|---|---|
| ** T(0)=0 ** | T cannot be linear |
| **Domain = {0} ** | Only one possible linear transformation (to zero) |
| **Codomain = {0} ** | Only the zero transformation |
| ** T defined on basis only** | Linearity determines T on all vectors uniquely |
8. Common Pitfalls
❌ Pitfall 1: Checking only additivity
Both additivity and homogeneity are required. Some maps satisfy one but not the other.
❌ Pitfall 2: Thinking all functions are linear
Most functions are not linear. f(x)=x2, f(x)=sinx, f(x)=ex are all non-linear.
❌ Pitfall 3: Forgetting to check domain/codomain are vector spaces
If V or W isn't a vector space, the definition doesn't apply.
9. Formula Summary Table
| Concept | Rule |
|---|---|
| Additivity | T(u+v)=T(u)+T(v) |
| Homogeneity | T(cv)=cT(v) |
| Combined | T(cu+dv)=cT(u)+dT(v) |
| Zero | T(0)=0 |
| Standard matrix | A=[T(e1)…T(en)] |
| Composition | (S∘T)(x)=BAx |
10. 📝 Practice Questions
>A=[21−34]>Q1: Is it linear?Is T:R2→R2, T(x,y)=(x+1,y+2) linear?Solution: T(0,0)=(1,2)=(0,0). Not linear. Q2: Is it linear?Is T:R3→R, T(x,y,z)=2x−3y+z linear?Solution: Check additivity: T((x1,y1,z1)+(x2,y2,z2))=2(x1+x2)−3(y1+y2)+(z1+z2) =(2x1−3y1+z1)+(2x2−3y2+z2)=T(x1,y1,z1)+T(x2,y2,z2) ✓Check homogeneity: T(cx,cy,cz)=2cx−3cy+cz=c(2x−3y+z)=cT(x,y,z) ✓Yes, it is linear. Q3: Find the standard matrixFind the matrix of T:R2→R2, T(x,y)=(2x−3y,x+4y).Solution: T(e1)=T(1,0)=(2,1) T(e2)=T(0,1)=(−3,4)
>A=[2123−2321]>. Q4: Rotation matrixFind the matrix for rotation by 60∘ (π/3).Solution: cos60∘=21, sin60∘=23.
>A=[01−10]>.Check: rotates (1,0) to (21,23), which is (1,0) rotated 60∘ ✓ Q5: CompositionT:R2→R2 rotates by 90∘, S:R2→R2 reflects across x-axis. Find the matrix of S∘T.Solution: T matrix:
>B=[100−1]>S matrix:
>BA=[100−1][01−10]=[0−1−10]>S∘T matrix:
>BA(1,0)T=[0−1−10][10]=[0−1]>.Check: (S∘T)(1,0)=S(0,1)=(0,−1).
✓ Q6: Proving linearityShow that T:P1→P2, T(p)(x)=∫0xp(t)dt is linear.Solution: Let p,q∈P1, c∈R. T(p+q)(x)=∫0x(p+q)(t)dt=∫0x(p(t)+q(t))dt=∫0xp(t)dt+∫0xq(t)dt=T(p)(x)+T(q)(x) ✓ T(cp)(x)=∫0xcp(t)dt=c∫0xp(t)dt=cT(p)(x) ✓So T is linear. Q7: Determining injectivityIs T:R2→R2, T(x,y)=(x,0) injective?Solution: T(1,2)=(1,0) and T(1,3)=(1,0). Different inputs give same output, so not injective. ker(T)={(0,y)∣y∈R}={0}. Q8: Determining surjectivityIs T:R2→R2, T(x,y)=(x,0) surjective?Solution: C(A)=span{(1,0)}=R2. For example, (0,1) has no preimage. Not surjective. Q9: Non-linear transformationShow T:R2→R, T(x,y)=x2+y2 is not linear.Solution: T(1,0)=1, T(2,0)=4, but T(2,0)=T(2(1,0))=4=2T(1,0)=2. Fails homogeneity.Alternatively: T((1,0)+(1,0))=T(2,0)=4=1+1=T(1,0)+T(1,0). Fails additivity. Q10: Finding T from basis imagesIf T:R2→R2 is linear, T(1,0)=(2,1), T(0,1)=(3,4), find T(−1,5).Solution: (−1,5)=−1(1,0)+5(0,1). T(−1,5)=−1T(1,0)+5T(0,1)=−1(2,1)+5(3,4)=(−2,−1)+(15,20)=(13,19).
🔗 Cross-References
- Next topic: Kernel & Image
- Week 6 (Matrix Representation): How to represent T as a matrix relative to any basis
- Week 7 (Similarity): Two matrices represent the same T in different bases
- BSMA1001 (Maths 1): Functions, composition
- BSCS3004 (Deep Learning): Layers of a neural network are compositions of linear transformations + non-linear activations Join Discord Previous5.1 Null Space & Column SpaceNext6.1 Kernel & Image