Skip to content

Affine Subspace


Definition

Let VV be a real vector space, W⊆VW\subseteq V a subspace and v∈V\boldsymbol{v}\in V. The set

{v}+W={v+w ⁣:w∈W}\{\boldsymbol{v}\}+W=\{\boldsymbol{v}+\boldsymbol{w}\colon\boldsymbol{w}\in W\}

is an affine subspace of VV. The subspace WW is its direction space, and the dimension of the affine subspace is defined as dim⁡W\dim W. Some texts also count the empty set as affine; here an affine subspace is always nonempty.

Equivalently, a nonempty set S⊆VS\subseteq V is affine if and only if it contains every affine combination of its points: λx+(1−λ)y∈S\lambda\boldsymbol{x}+(1-\lambda)\boldsymbol{y}\in S for all x,y∈S\boldsymbol{x},\boldsymbol{y}\in S and all λ∈R\lambda\in\mathbb{R}.


Interpretation

An affine subspace is a subspace shifted away from the origin: a point, a line, a plane or a higher-dimensional flat that need not pass through 0\boldsymbol{0}. It is "flat" because the whole line through any two of its points stays inside it.

The line through (1,2)^T and (3,3)^T drawn as a copy of the dashed direction line W through the origin, shifted by v, with the point (-1,1)^T for lambda = 2 also on it.

The figure draws the line from the second example. The dashed red line is the direction space W=span⁡{(2,1)⊤}W=\operatorname{span}\{(2,1)^{\top}\} through 0\boldsymbol{0}; the blue line is {v}+W\{\boldsymbol{v}\}+W with v=(1,2)⊤\boldsymbol{v}=(1,2)^{\top}, the same line shifted off the origin. It contains (1,2)⊤(1,2)^{\top} and (3,3)⊤(3,3)^{\top}, and also the affine combination 2(1,2)⊤−(3,3)⊤=(−1,1)⊤2(1,2)^{\top}-(3,3)^{\top}=(-1,1)^{\top} with λ=2\lambda=2, which lies outside the segment between them. Since 0\boldsymbol{0} is not on the blue line, {v}+W\{\boldsymbol{v}\}+W is not a subspace.

The condition λ∈R\lambda\in\mathbb{R} matters. Requiring only λ∈[0,1]\lambda\in[0,1] gives a convex set, so a line segment is convex but not affine.

The most common source of affine subspaces is linear systems. A consistent system of linear equations Ax=bA\boldsymbol{x}=\boldsymbol{b} with b≠0\boldsymbol{b}\neq\boldsymbol{0} has a solution set that is not a subspace (it misses 0\boldsymbol{0}), yet it is one particular solution plus the kernel Null⁡(A)\operatorname{Null}(A). Affine subspaces are exactly the nonempty level sets of affine maps.


Key Results

  • The direction space is unique: W={x−y ⁣:x,y∈S}W=\{\boldsymbol{x}-\boldsymbol{y}\colon\boldsymbol{x},\boldsymbol{y}\in S\}. The base point is not unique: {v}+W={v′}+W\{\boldsymbol{v}\}+W=\{\boldsymbol{v}'\}+W if and only if v−v′∈W\boldsymbol{v}-\boldsymbol{v}'\in W.
  • An affine subspace {v}+W\{\boldsymbol{v}\}+W is a linear subspace if and only if 0∈{v}+W\boldsymbol{0}\in\{\boldsymbol{v}\}+W, that is, if and only if v∈W\boldsymbol{v}\in W.
  • If Ax=bA\boldsymbol{x}=\boldsymbol{b} is consistent and xp\boldsymbol{x}_p is any solution, its solution set is {xp}+Null⁡(A)\{\boldsymbol{x}_p\}+\operatorname{Null}(A), of dimension n−rank⁡An-\operatorname{rank}A for an m×nm\times n matrix AA.
  • A nonempty intersection of affine subspaces is affine; the image of an affine subspace under a linear map is affine.
  • In Rn\mathbb{R}^n the affine subspaces of dimension n−1n-1 are the hyperplanes {x ⁣:a⊤x=c}\{\boldsymbol{x}\colon\boldsymbol{a}^{\top}\boldsymbol{x}=c\} with a≠0\boldsymbol{a}\neq\boldsymbol{0}.

Examples

A plane in R3\mathbb{R}^3. The solution set of x1+x2+x3=1x_1+x_2+x_3=1 contains xp=(1,0,0)⊤\boldsymbol{x}_p=(1,0,0)^{\top}. The direction space is the null space of (111)\begin{pmatrix}1&1&1\end{pmatrix}, spanned by (−1,1,0)⊤(-1,1,0)^{\top} and (−1,0,1)⊤(-1,0,1)^{\top}. Hence

S={(1,0,0)⊤}+span⁡{(−1,1,0)⊤,(−1,0,1)⊤},S=\{(1,0,0)^{\top}\} +\operatorname{span}\{(-1,1,0)^{\top},(-1,0,1)^{\top}\},

an affine subspace of dimension 22. It is not a subspace, since 0+0+0≠10+0+0\neq1.

A line in R2\mathbb{R}^2. The line through (1,2)⊤(1,2)^{\top} and (3,3)⊤(3,3)^{\top} is {(1,2)⊤}+span⁡{(2,1)⊤}\{(1,2)^{\top}\}+\operatorname{span}\{(2,1)^{\top}\}. The affine combination with λ=2\lambda=2, 2(1,2)⊤−(3,3)⊤=(−1,1)⊤2(1,2)^{\top}-(3,3)^{\top}=(-1,1)^{\top}, is the point with parameter t=−1t=-1, so it lies on the line, as it must.

Non-examples. The union of two distinct lines through 0\boldsymbol{0} and the unit circle are not affine: in each case the line through two suitable points leaves the set.


Prerequisites



Sources

Aliases: affine set, flat, linear manifold, translated subspace, linear variety, affine linear subspace, translate of a subspace Keywords: {v} + W, v + W, direction space, affine combination, solution set of Ax = b, particular solution plus null space Symbols: element of, lambda, real numbers, subset

Last updated: 22 October 2026 19:04