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=1kโciโviโ)=โi=1kโciโT(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)=โซ01โf(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โโ13โ01โ]>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)
>Aโxyzโโ=[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=[21โ23โโโโ23โโ21โโ]>. 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=[10โ0โ1โ]>S matrix:
>BA=[10โ0โ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)=โซ0xโp(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=โซ0xโp(t)dt+โซ0xโq(t)dt=T(p)(x)+T(q)(x) โ T(cp)(x)=โซ0xโcp(t)dt=cโซ0xโp(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