Affine Subspaces & Affine Mappings
1336 words
7 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
# Affine Subspaces & Affine Mappings ## ๐ฏ Learning Objectives After this topic you will be able to: - Define affine subspaces as translates of linear subspaces - Determine whether a set is an affine subspace - Parametrise lines and planes in parametric and implicit forms - Distinguish between linear, affine, and co...

Affine Subspaces & Affine Mappings
๐ฏ Learning Objectives
After this topic you will be able to:
- Define affine subspaces as translates of linear subspaces
- Determine whether a set is an affine subspace
- Parametrise lines and planes in parametric and implicit forms
- Distinguish between linear, affine, and convex combinations
- Identify affine mappings
๐ Prerequisites
- Subspaces (Week 3) โ subspaces must contain the origin
- Linear Transformations (Week 5) โ linear maps preserve the origin
1. Intuition: Moving Away from the Origin
A subspace must contain 0. But what about a line that doesn't pass through the origin, or a plane shifted upward? These are affine subspaces โ they are "parallel" to a linear subspace but translated by a fixed vector.
(Diagram)
Every affine subspace can be written as:
where V is a linear subspace and p is a fixed vector.
2. Definition and Examples
2.1 Definition
>A=p+V={p+vโฃvโV}>Definition (Affine Subspace). A subset AโRn is an affine subspace if it can be written as:
where V is a linear subspace of Rn and pโRn. The dimension of an affine subspace is dim(V). Example 1: Lines in โยฒ
- Linear subspace: y=2x (through origin, dimension 1)
- Affine subspace: y=2x+3 (parallel to y=2x, shifted up by 3)
y=2x+3 can be written as (0,3)+span{(1,2)}. Example 2: Planes in โยณ2x+3yโz=5 is an affine plane. Direction space: 2x+3yโz=0 (through origin) โ a linear subspace. Particular point: (1,1,0) works (2+3โ0=5). So plane = (1,1,0)+V where V={(x,y,z)โฃ2x+3yโz=0}.
2.2 Parametric Form
An affine line through p in direction v:
An affine plane through p spanned by v1โ,v2โ:
3. Affine Combinations
Definition (Affine Combination). A linear combination โi=1kโciโviโ is an affine combination if โi=1kโciโ=1. Contrast:
- Linear combination: No restriction on coefficients
- Affine combination: Coefficients sum to 1
- Convex combination: Coefficients sum to 1 and ciโโฅ0
Example 3: Affine combinations(1,2)=31โ(3,0)+32โ(0,3) is an affine combination (31โ+32โ=1).It is also a convex combination (coefficients are non-negative).(1,2)=2(3,0)+(โ1)(0,3) is not an affine combination (2+(โ1)=1, so it is! Wait โ 2+(โ1)=1, so it IS an affine combination. But it's not convex since โ1<0.) Theorem: A set A is an affine subspace iff it is closed under affine combinations.
4. Affine Mappings
>F(x)=Ax+b>Definition (Affine Mapping). A function F:RnโRm is affine if:
where A is an mรn matrix and bโRm. Every affine map is a linear transformation followed by a translation. Example 4: Affine vs. linearF(x,y)=(2x+3y+1,xโ4yโ2) is affine. T(x,y)=(2x+3y,xโ4y) is linear (the linear part). The translation vector is b=(1,โ2). Properties:
- F(0)๎ =0 generally (unlike linear maps)
- F preserves affine combinations: F(โciโviโ)=โciโF(viโ) when โciโ=1
- Affine maps map affine subspaces to affine subspaces
5. Edge Cases & Gotchas
| Situation | What Happens |
|---|---|
| ** pโV ** | Then A=V (a linear subspace is also affine) |
| Zero translation | A=V (linear subspace) |
| Single point | {p}=p+{0} , dimension 0 |
| Empty set | Not an affine subspace |
6. Common Pitfalls
โ Pitfall 1: Thinking affine subspaces are linear subspaces
Affine subspaces are not closed under scalar multiplication: if A=p+V, then 2p is not in A (unless pโV).
โ Pitfall 2: Confusing affine and convex combinations
All convex combinations are affine, but not vice versa. Convex requires ciโโฅ0.
7. Formula Summary Table
| Concept | Definition |
|---|---|
| Affine subspace | p+V , V linear subspace |
| Affine combination | โciโviโ , โciโ=1 |
| Affine mapping | F(x)=Ax+b |
| Linear subspace | Special case: p=0 |
8. ๐ Practice Questions
Q1: Affine line in โยฒParametrise the line y=3x+1 as an affine subspace.Solution: Direction vector: (1,3). Point on line: (0,1). x(t)=(0,1)+t(1,3)=(t,1+3t). Q2: Is it affine?Is A={(x,y,z)โฃx+y+z=2} an affine subspace?Solution: Direction space V={(x,y,z)โฃx+y+z=0} (a plane through origin). Point: (2,0,0)โA. So A=(2,0,0)+V. Yes, it's affine. Q3: Affine combinationExpress (3,4) as an affine combination of (1,2) and (5,6).Solution: (3,4)=c(1,2)+(1โc)(5,6). c+5(1โc)=3โc+5โ5c=3โโ4c=โ2โc=1/2. Check: 2c+6(1โc)=2(1/2)+6(1/2)=1+3=4 โ. So (3,4)=21โ(1,2)+21โ(5,6). Q4: Affine mappingF(x,y)=(x+2y+1,3xโ4y+2). Find F(0,0) and F(1,1).Solution: F(0,0)=(1,2). F(1,1)=(1+2+1,3โ4+2)=(4,1). Q5: Affine image of a lineFind the image of the line x(t)=(t,2t) under F(x,y)=(x+y+1,xโ2y).Solution: F(t,2t)=(t+2t+1,tโ4t)=(3t+1,โ3t). This is y(t)=(1,0)+t(3,โ3)=(1,0)+3t(1,โ1), an affine line through (1,0) with direction (1,โ1). Q6: Is it affine?Is A={(x,y)โฃx2+y2=1} affine?Solution: No. The circle is not an affine subspace (it's not a translate of a linear subspace; it fails closure under affine combinations). Q7: Dimension of affine subspaceWhat's the dimension of the affine plane 2xโy+3z=4?Solution: The direction space is 2xโy+3z=0, which is a 2-dimensional subspace. So the affine plane has dimension 2. Q8: Affine combination in โยณExpress (2,3,4) as an affine combination of (1,0,1), (0,1,0), and (0,0,1).Solution: Need c1โ+c2โ+c3โ=1 and: c1โ(1,0,1)+c2โ(0,1,0)+c3โ(0,0,1)=(c1โ,c2โ,c1โ+c3โ)=(2,3,4). c1โ=2, c2โ=3, c1โ+c3โ=4โc3โ=2. Check sum: 2+3+2=7๎ =1. Not an affine combination. Q9: Affine vs linear mappingIs F(x)=3x+1 (from R to R) linear?Solution: No. F(0)=1๎ =0 and F(x+y)=3(x+y)+1=3x+3y+1๎ =F(x)+F(y)=3x+1+3y+1=3x+3y+2. It is affine. Q10: Intersection of affine subspacesFind the intersection of the affine lines: L1โ:(t,2t+1) and L2โ:(s+1,s+3).Solution: Set (t,2t+1)=(s+1,s+3): t=s+1, 2t+1=s+3. Substitute: 2(s+1)+1=s+3โ2s+2+1=s+3โs=0, t=1. Intersection point: (1,3).
๐ Cross-References
- Next topic: Inner Products & Norms
- BSMA1001 (Maths 1): Equation of a line y=mx+c
- Week 10 (Tangent Planes): Tangent planes are affine subspaces Join Discord Previous7.1 Equivalent & Similar MatricesNext7.3 Inner Products & Norms