Skip to content

Chapter 31. Affine Spaces

An affine space is a geometric space in which differences of points are vectors, but points themselves are not treated as vectors. It has directions, translations, lines, planes, and parallelism, but it has no distinguished zero point unless one is chosen. A vector space can be viewed as an affine space by forgetting the special role of the origin.

Affine spaces are useful because many geometric objects do not naturally pass through the origin. Lines such as

y=2x+1 y=2x+1

and solution sets of nonhomogeneous systems such as

Ax=b Ax=b

are usually not vector subspaces. They are affine subspaces.

31.1 Points and Vectors

In a vector space, the elements are vectors. They can be added and multiplied by scalars.

In an affine space, the elements are points. Points cannot be added in the same direct way. Instead, one may subtract two points to obtain a vector, or add a vector to a point to obtain another point.

If PP and QQ are points, then the displacement from PP to QQ is written

PQ. \overrightarrow{PQ}.

This is a vector.

If PP is a point and vv is a vector, then

P+v P+v

is the point obtained by translating PP by vv.

Thus affine geometry separates two ideas that are often conflated in Rn\mathbb{R}^n:

ObjectMeaning
PointA location
VectorA displacement
QPQ-P or PQ\overrightarrow{PQ}Vector from PP to QQ
P+vP+vPoint reached from PP by displacement vv

31.2 Definition

Let VV be a vector space over a field FF. An affine space modeled on VV is a set AA, whose elements are called points, together with an operation

A×VA,(P,v)P+v, A\times V\to A, \qquad (P,v)\mapsto P+v,

satisfying the following conditions.

First,

P+0=P P+0=P

for every point PAP\in A.

Second,

(P+v)+w=P+(v+w) (P+v)+w=P+(v+w)

for all PAP\in A and all v,wVv,w\in V.

Third, for every pair of points P,QAP,Q\in A, there exists a unique vector vVv\in V such that

P+v=Q. P+v=Q.

This unique vector is denoted

PQ. \overrightarrow{PQ}.

Equivalently,

Q=P+PQ. Q=P+\overrightarrow{PQ}.

This definition says that VV acts on AA by translations, and that any point can be moved to any other point by one unique translation.

31.3 Basic Identities

The displacement vectors in an affine space satisfy familiar rules.

For any points P,Q,RAP,Q,R\in A,

PP=0, \overrightarrow{PP}=0, PQ+QR=PR, \overrightarrow{PQ}+\overrightarrow{QR}=\overrightarrow{PR},

and

QP=PQ. \overrightarrow{QP}=-\overrightarrow{PQ}.

The second identity is the head-to-tail rule for displacements. Moving from PP to QQ, then from QQ to RR, gives the same total displacement as moving directly from PP to RR.

These identities follow from the translation axioms. They are the algebraic rules behind elementary geometry.

31.4 Vector Spaces as Affine Spaces

Every vector space VV can be treated as an affine space modeled on itself.

The points are the elements of VV. The translation operation is ordinary vector addition:

P+v P+v

where PVP\in V is now regarded as a point and vVv\in V as a displacement vector.

The difference between two points is

PQ=QP. \overrightarrow{PQ}=Q-P.

This is the usual subtraction of vectors.

However, when VV is viewed as an affine space, the zero vector has no intrinsic geometric privilege. It is merely one possible point chosen as origin.

This viewpoint is useful because geometry often should not depend on a chosen origin.

31.5 Choosing an Origin

An affine space becomes identified with its model vector space once an origin point is chosen.

Let OAO\in A be fixed. Define

ΦO:AV \Phi_O:A\to V

by

ΦO(P)=OP. \Phi_O(P)=\overrightarrow{OP}.

This assigns to each point PP its coordinate vector relative to the chosen origin OO.

The map ΦO\Phi_O is a bijection. Every point corresponds to a unique displacement from OO.

But the identification depends on OO. Choosing a different origin changes all coordinate vectors by a translation.

Thus an affine space has no canonical zero point. A coordinate origin is extra structure.

31.6 Affine Subspaces

An affine subspace is a translate of a linear subspace.

Let VV be a vector space, let UVU\subseteq V be a linear subspace, and let pVp\in V. The set

p+U={p+u:uU} p+U=\{p+u:u\in U\}

is an affine subspace.

If pUp\in U, then

p+U=U, p+U=U,

so the affine subspace is actually a linear subspace.

If pUp\notin U, then p+Up+U does not contain the origin and is not a vector subspace.

Affine subspaces are the natural setting for lines and planes not necessarily passing through the origin.

31.7 Lines

An affine line has the form

P+span(v), P+\operatorname{span}(v),

where PP is a point and v0v\neq 0 is a direction vector.

Equivalently,

L={P+tv:tF}. L=\{P+tv:t\in F\}.

In R2\mathbb{R}^2, if

P=[12],v=[31], P= \begin{bmatrix} 1\\ 2 \end{bmatrix}, \qquad v= \begin{bmatrix} 3\\ 1 \end{bmatrix},

then the affine line is

L={[12]+t[31]:tR}. L= \left\{ \begin{bmatrix} 1\\ 2 \end{bmatrix} + t \begin{bmatrix} 3\\ 1 \end{bmatrix} :t\in\mathbb{R} \right\}.

This line generally does not pass through the origin. It is a translate of the one-dimensional subspace span(v)\operatorname{span}(v).

31.8 Planes

An affine plane in R3\mathbb{R}^3 has the form

P+span(u,v), P+\operatorname{span}(u,v),

where uu and vv are linearly independent direction vectors.

Thus

Π={P+su+tv:s,tR}. \Pi=\{P+su+tv:s,t\in\mathbb{R}\}.

For example,

P=[102],u=[110],v=[011]. P= \begin{bmatrix} 1\\ 0\\ 2 \end{bmatrix}, \qquad u= \begin{bmatrix} 1\\ 1\\ 0 \end{bmatrix}, \qquad v= \begin{bmatrix} 0\\ 1\\ 1 \end{bmatrix}.

Then

Π={[102]+s[110]+t[011]:s,tR}. \Pi= \left\{ \begin{bmatrix} 1\\ 0\\ 2 \end{bmatrix} + s \begin{bmatrix} 1\\ 1\\ 0 \end{bmatrix} + t \begin{bmatrix} 0\\ 1\\ 1 \end{bmatrix} :s,t\in\mathbb{R} \right\}.

The direction subspace of this plane is

span(u,v). \operatorname{span}(u,v).

31.9 Direction Subspace

Every affine subspace has an associated direction subspace.

If

S=p+U, S=p+U,

where UU is a linear subspace, then UU is called the direction space of SS.

The direction space can be recovered from SS as the set of all differences of points in SS:

U={PQ:P,QS}. U=\{\overrightarrow{PQ}:P,Q\in S\}.

Thus an affine subspace consists of one base point plus all directions in a linear subspace.

The base point is not unique. If qp+Uq\in p+U, then

p+U=q+U. p+U=q+U.

The direction subspace is unique.

31.10 Affine Combinations

An affine combination of points P1,,PkP_1,\ldots,P_k is an expression

λ1P1++λkPk \lambda_1P_1+\cdots+\lambda_kP_k

where the scalars satisfy

λ1++λk=1. \lambda_1+\cdots+\lambda_k=1.

This condition makes the expression independent of the choice of origin.

For two points PP and QQ, the affine combinations are

(1t)P+tQ. (1-t)P+tQ.

As tt varies over R\mathbb{R}, these points form the affine line through PP and QQ.

When

0t1, 0\leq t\leq 1,

the points form the line segment from PP to QQ.

31.11 Why Coefficients Sum to One

The condition

λ1++λk=1 \lambda_1+\cdots+\lambda_k=1

is what makes affine combinations compatible with translations.

If every point is shifted by the same vector aa, then

λ1(P1+a)++λk(Pk+a) \lambda_1(P_1+a)+\cdots+\lambda_k(P_k+a)

equals

λ1P1++λkPk+(λ1++λk)a. \lambda_1P_1+\cdots+\lambda_kP_k + (\lambda_1+\cdots+\lambda_k)a.

If the coefficients sum to 11, this becomes

λ1P1++λkPk+a. \lambda_1P_1+\cdots+\lambda_kP_k+a.

So the affine combination shifts by the same amount as the original points. It does not depend on a hidden choice of origin.

31.12 Convex Combinations

A convex combination is an affine combination whose coefficients are nonnegative:

λi0,λ1++λk=1. \lambda_i\geq 0, \qquad \lambda_1+\cdots+\lambda_k=1.

Convex combinations describe points inside the convex hull of a set.

For two points,

(1t)P+tQ,0t1, (1-t)P+tQ, \qquad 0\leq t\leq 1,

is the line segment between PP and QQ.

For three noncollinear points in the plane, convex combinations describe the filled triangle with those vertices.

Affine combinations describe flats such as lines and planes. Convex combinations describe bounded geometric regions inside them.

31.13 Affine Span

The affine span of points P1,,PkP_1,\ldots,P_k is the set of all affine combinations of those points:

aff(P1,,Pk)={λ1P1++λkPk:λ1++λk=1}. \operatorname{aff}(P_1,\ldots,P_k) = \left\{ \lambda_1P_1+\cdots+\lambda_kP_k: \lambda_1+\cdots+\lambda_k=1 \right\}.

It is the smallest affine subspace containing the points.

For two distinct points, the affine span is the line through them.

For three noncollinear points in R3\mathbb{R}^3, the affine span is the plane through them.

For points P0,P1,,PkP_0,P_1,\ldots,P_k, the affine span can also be written as

P0+span(P0P1,,P0Pk). P_0+\operatorname{span} (\overrightarrow{P_0P_1},\ldots,\overrightarrow{P_0P_k}).

This formula reduces affine span to ordinary linear span of displacement vectors.

31.14 Affine Independence

Points

P0,P1,,Pk P_0,P_1,\ldots,P_k

are affinely independent if the displacement vectors

P0P1,,P0Pk \overrightarrow{P_0P_1},\ldots,\overrightarrow{P_0P_k}

are linearly independent.

Equivalently, no point lies in the affine span of the others.

Examples:

PointsAffine independence condition
Two pointsDistinct
Three pointsNot collinear
Four points in R3\mathbb{R}^3Not coplanar

Affine independence is the point-based analogue of linear independence.

31.15 Dimension of an Affine Subspace

The dimension of an affine subspace

S=p+U S=p+U

is defined as

dimS=dimU. \dim S=\dim U.

Thus:

Affine subspaceDimension
A point0
A line1
A plane2
A translate of a kk-dimensional subspacekk

The dimension is determined by the direction subspace, not by the chosen base point.

31.16 Nonhomogeneous Linear Systems

The solution set of a homogeneous system

Ax=0 Ax=0

is a linear subspace.

The solution set of a nonhomogeneous system

Ax=b Ax=b

is generally an affine subspace, provided it is nonempty.

If xpx_p is one particular solution of Ax=bAx=b, then every solution has the form

x=xp+z, x=x_p+z,

where

zNull(A). z\in \operatorname{Null}(A).

Therefore

{x:Ax=b}=xp+Null(A). \{x:Ax=b\}=x_p+\operatorname{Null}(A).

The direction space of the affine solution set is the null space of AA.

31.17 Example: An Affine Solution Line

Consider

x+2y=5. x+2y=5.

One particular solution is

p=[50]. p= \begin{bmatrix} 5\\ 0 \end{bmatrix}.

The associated homogeneous equation is

x+2y=0. x+2y=0.

Its solution space is

span([21]). \operatorname{span} \left( \begin{bmatrix} -2\\ 1 \end{bmatrix} \right).

Therefore the full solution set is

[50]+span([21]). \begin{bmatrix} 5\\ 0 \end{bmatrix} + \operatorname{span} \left( \begin{bmatrix} -2\\ 1 \end{bmatrix} \right).

Equivalently,

{[50]+t[21]:tR}. \left\{ \begin{bmatrix} 5\\ 0 \end{bmatrix} + t \begin{bmatrix} -2\\ 1 \end{bmatrix} :t\in\mathbb{R} \right\}.

This is a line not passing through the origin, so it is an affine subspace but not a linear subspace.

31.18 Affine Maps

An affine map is a function that preserves affine combinations.

Between vector spaces, an affine map has the form

T(x)=Ax+b, T(x)=Ax+b,

where AA is linear and bb is a fixed vector.

If b=0b=0, then TT is linear. If b0b\neq 0, then TT includes a translation.

For example,

T(x,y)=[2003][xy]+[14] T(x,y)= \begin{bmatrix} 2&0\\ 0&3 \end{bmatrix} \begin{bmatrix} x\\ y \end{bmatrix} + \begin{bmatrix} 1\\ -4 \end{bmatrix}

first scales the coordinate directions and then translates the result.

Affine maps send affine subspaces to affine subspaces.

31.19 Linear Versus Affine

The difference between linear and affine is the treatment of the origin.

A linear map satisfies

L(0)=0. L(0)=0.

An affine map need not. If

T(x)=Ax+b, T(x)=Ax+b,

then

T(0)=b. T(0)=b.

Thus affine maps preserve lines and parallelism, but they may move the origin.

ConceptLinearAffine
Basic objectsVectorsPoints
Distinguished originYesNo
Typical mapxAxx\mapsto AxxAx+bx\mapsto Ax+b
SubspacesPass through originMay be translated
CombinationsCoefficients arbitraryCoefficients sum to 11
Solution setsAx=0Ax=0Ax=bAx=b

31.20 Summary

An affine space is a space of points modeled on a vector space of displacements. It supports translation and difference of points, but it has no distinguished zero point until one is chosen.

The key ideas are:

ConceptMeaning
Affine spacePoint space modeled on a vector space
Model vector spaceSpace of displacement vectors
PQ\overrightarrow{PQ}Vector from point PP to point QQ
P+vP+vTranslation of point PP by vector vv
Affine subspaceTranslate p+Up+U of a linear subspace
Direction spaceThe linear subspace UU in p+Up+U
Affine combinationCombination with coefficients summing to 11
Affine spanSmallest affine subspace containing given points
Affine independenceLinear independence of displacement vectors
Affine mapMap of the form xAx+bx\mapsto Ax+b

Affine spaces are the natural language for geometry without a preferred origin. They explain translated lines and planes, nonhomogeneous solution sets, affine maps, barycentric coordinates, and the distinction between locations and displacements.