Affine space

From HandWiki
Short description: Euclidean space without distance and angles

In [math]\displaystyle{ \mathbb{R}^3, }[/math] the upper plane (in blue)[math]\displaystyle{ P_2 }[/math] is not a vector subspace, since [math]\displaystyle{ \mathbf{0} \notin P_2 }[/math] and [math]\displaystyle{ \mathbf{a} + \mathbf{b} \notin P_2; }[/math] it is an affine subspace. Its direction (the linear subspace associated with this affine subspace) is the lower (green) plane [math]\displaystyle{ P_1, }[/math] which is a vector subspace. Although [math]\displaystyle{ \mathbf{a} }[/math] and [math]\displaystyle{ \mathbf{b} }[/math] are in [math]\displaystyle{ P_2, }[/math] their difference is a displacement vector, which does not belong to [math]\displaystyle{ P_2, }[/math] but belongs to vector space [math]\displaystyle{ P_1. }[/math]

In mathematics, an affine space is a geometric structure that generalizes some of the properties of Euclidean spaces in such a way that these are independent of the concepts of distance and measure of angles, keeping only the properties related to parallelism and ratio of lengths for parallel line segments. Affine space is the setting for affine geometry.

As in Euclidean space, the fundamental objects in an affine space are called points, which can be thought of as locations in the space without any size or shape: zero-dimensional. Through any pair of points an infinite straight line can be drawn, a one-dimensional set of points; through any three points which are not collinear, a two-dimensional plane can be drawn; and in general through k + 1 points in general position a k-dimensional flat or affine subspace can be drawn. Affine space is characterized by a notion of pairs of parallel lines which lie within the same plane but never meet each-other (non-parallel lines within the same plane intersect in a point). Given any line, a line parallel to it can be drawn through any point in the space, and the equivalence class of parallel lines are said to share a direction.

Unlike for vectors in a vector space, in an affine space there is no distinguished point that serves as an origin. There is no predefined concept of adding or multiplying points together, or multiplying a point by a scalar number. However, for any affine space, an associated vector space can be constructed from the differences between start and end points, which are called displacement vectors, translation vectors or simply translations.[1] Likewise, it makes sense to add a displacement vector to a point of an affine space, resulting in a new point translated from the starting point by that vector. While points cannot be arbitrarily added together, it is meaningful to take affine combinations of points: weighted sums with numerical coefficients summing to 1, resulting in another point. These coefficients define a barycentric coordinate system for the flat through the points.

Any vector space may be viewed as an affine space; this amounts to "forgetting" the special role played by the zero vector. In this case, elements of the vector space may be viewed either as points of the affine space or as displacement vectors or translations. When considered as a point, the zero vector is called the origin. Adding a fixed vector to the elements of a linear subspace (vector subspace) of a vector space produces an affine subspace of the vector space. One commonly says that this affine subspace has been obtained by translating (away from the origin) the linear subspace by the translation vector (the vector added to all the elements of the linear space). In finite dimensions, such an affine subspace is the solution set of an inhomogeneous linear system. The displacement vectors for that affine space are the solutions of the corresponding homogeneous linear system, which is a linear subspace. Linear subspaces, in contrast, always contain the origin of the vector space.

The dimension of an affine space is defined as the dimension of the vector space of its translations. An affine space of dimension one is an affine line. An affine space of dimension 2 is an affine plane. An affine subspace of dimension n – 1 in an affine space or a vector space of dimension n is an affine hyperplane.

Informal description

Origins from Alice's and Bob's perspectives. Vector computation from Alice's perspective is in red, whereas that from Bob's is in blue.

The following characterization may be easier to understand than the usual formal definition: an affine space is what is left of a vector space after one has forgotten which point is the origin (or, in the words of the French mathematician Marcel Berger, "An affine space is nothing more than a vector space whose origin we try to forget about, by adding translations to the linear maps"[2]). Imagine that Alice knows that a certain point is the actual origin, but Bob believes that another point—call it p—is the origin. Two vectors, a and b, are to be added. Bob draws an arrow from point p to point a and another arrow from point p to point b, and completes the parallelogram to find what Bob thinks is a + b, but Alice knows that he has actually computed

p + (ap) + (bp).

Similarly, Alice and Bob may evaluate any linear combination of a and b, or of any finite set of vectors, and will generally get different answers. However, if the sum of the coefficients in a linear combination is 1, then Alice and Bob will arrive at the same answer.

If Alice travels to

λa + (1 − λ)b

then Bob can similarly travel to

p + λ(ap) + (1 − λ)(bp) = λa + (1 − λ)b.

Under this condition, for all coefficients λ + (1 − λ) = 1, Alice and Bob describe the same point with the same linear combination, despite using different origins.

While only Alice knows the "linear structure", both Alice and Bob know the "affine structure"—i.e. the values of affine combinations, defined as linear combinations in which the sum of the coefficients is 1. A set with an affine structure is an affine space.


While affine space can be defined axiomatically (see § Axioms below), analogously to the definition of Euclidean space implied by Euclid's Elements, for convenience most modern sources define affine spaces in terms of the well developed vector space theory.

An affine space is a set A together with a vector space [math]\displaystyle{ \overrightarrow{A} }[/math], and a transitive and free action of the additive group of [math]\displaystyle{ \overrightarrow{A} }[/math] on the set A.[3] The elements of the affine space A are called points. The vector space [math]\displaystyle{ \overrightarrow{A} }[/math] is said to be associated to the affine space, and its elements are called vectors, translations, or sometimes free vectors.

Explicitly, the definition above means that the action is a mapping, generally denoted as an addition,

[math]\displaystyle{ \begin{align} A \times \overrightarrow{A} &\to A \\ (a,v)\; &\mapsto a + v, \end{align} }[/math]

that has the following properties.[4][5][6]

  1. Right identity:
    [math]\displaystyle{ \forall a \in A,\; a+0 = a }[/math], where 0 is the zero vector in [math]\displaystyle{ \overrightarrow{A} }[/math]
  2. Associativity:
    [math]\displaystyle{ \forall v,w \in \overrightarrow{A}, \forall a \in A,\; (a + v) + w = a + (v + w) }[/math] (here the last + is the addition in [math]\displaystyle{ \overrightarrow{A} }[/math])
  3. Free and transitive action:
    For every [math]\displaystyle{ a \in A }[/math], the mapping [math]\displaystyle{ \overrightarrow A \to A \colon v \mapsto a + v }[/math] is a bijection.

The first two properties are simply defining properties of a (right) group action. The third property characterizes free and transitive actions, the onto character coming from transitivity, and then the injective character follows from the action being free. There is a fourth property that follows from 1, 2 above:

  1. Existence of one-to-one translations
  2. For all [math]\displaystyle{ v \in \overrightarrow A }[/math], the mapping [math]\displaystyle{ A \to A \colon a \mapsto a + v }[/math] is a bijection.

Property 3 is often used in the following equivalent form (the 5th property).

  1. Subtraction:
  2. For every a, b in A, there exists a unique [math]\displaystyle{ v\in\overrightarrow A }[/math], denoted ba, such that [math]\displaystyle{ b = a + v }[/math].

Another way to express the definition is that an affine space is a principal homogeneous space for the action of the additive group of a vector space. Homogeneous spaces are by definition endowed with a transitive group action, and for a principal homogeneous space such a transitive action is by definition free.

Subtraction and Weyl's axioms

The properties of the group action allows for the definition of subtraction for any given ordered pair (b, a) of points in A, producing a vector of [math]\displaystyle{ \overrightarrow{A} }[/math]. This vector, denoted [math]\displaystyle{ b - a }[/math] or [math]\displaystyle{ \overrightarrow{ab} }[/math], is defined to be the unique vector in [math]\displaystyle{ \overrightarrow{A} }[/math] such that

[math]\displaystyle{ a + (b - a) = b. }[/math]

Existence follows from the transitivity of the action, and uniqueness follows because the action is free.

This subtraction has the two following properties, called Weyl's axioms:[7]

  1. [math]\displaystyle{ \forall a \in A,\; \forall v\in \overrightarrow{A} }[/math], there is a unique point [math]\displaystyle{ b \in A }[/math] such that [math]\displaystyle{ b - a = v. }[/math]
  2. [math]\displaystyle{ \forall a,b,c \in A,\; (c - b) + (b - a) = c - a. }[/math]

The parallelogram property is satisfied in affine spaces, where it is expressed as: given four points [math]\displaystyle{ a,b,c,d, }[/math] the equalities [math]\displaystyle{ b-a = d-c }[/math] and [math]\displaystyle{ c-a=d-b }[/math] are equivalent. This results from the second Weyl's axiom, since [math]\displaystyle{ d-a=(d-b)+(b-a)=(d-c)+(c-a). }[/math]

Affine spaces can be equivalently defined as a point set A, together with a vector space [math]\displaystyle{ \overrightarrow{A} }[/math], and a subtraction satisfying Weyl's axioms. In this case, the addition of a vector to a point is defined from the first of Weyl's axioms.

Affine subspaces and parallelism

An affine subspace (also called, in some contexts, a linear variety, a flat, or, over the real numbers, a linear manifold) B of an affine space A is a subset of A such that, given a point [math]\displaystyle{ a \in B }[/math], the set of vectors [math]\displaystyle{ \overrightarrow{B} = \{b - a \mid b \in B\} }[/math] is a linear subspace of [math]\displaystyle{ \overrightarrow{A} }[/math]. This property, which does not depend on the choice of a, implies that B is an affine space, which has [math]\displaystyle{ \overrightarrow{B} }[/math] as its associated vector space.

The affine subspaces of A are the subsets of A of the form

[math]\displaystyle{ a + V = \{a + w: w \in V\}, }[/math]

where a is a point of A, and V a linear subspace of [math]\displaystyle{ \overrightarrow{A} }[/math].

The linear subspace associated with an affine subspace is often called its direction, and two subspaces that share the same direction are said to be parallel.

This implies the following generalization of Playfair's axiom: Given a direction V, for any point a of A there is one and only one affine subspace of direction V, which passes through a, namely the subspace a + V.

Every translation [math]\displaystyle{ A \to A: a \mapsto a + v }[/math] maps any affine subspace to a parallel subspace.

The term parallel is also used for two affine subspaces such that the direction of one is included in the direction of the other.

Affine map

Given two affine spaces A and B whose associated vector spaces are [math]\displaystyle{ \overrightarrow{A} }[/math] and [math]\displaystyle{ \overrightarrow{B} }[/math], an affine map or affine homomorphism from A to B is a map

[math]\displaystyle{ f: A \to B }[/math]

such that

[math]\displaystyle{ \begin{align} \overrightarrow{f}: \overrightarrow{A} &\to \overrightarrow{B}\\ b - a &\mapsto f(b) - f(a) \end{align} }[/math]

is a well defined linear map. By [math]\displaystyle{ f }[/math] being well defined is meant that ba = dc implies f(b) – f(a) = f(d) – f(c).

This implies that, for a point [math]\displaystyle{ a \in A }[/math] and a vector [math]\displaystyle{ v \in \overrightarrow{A} }[/math], one has

[math]\displaystyle{ f(a + v) = f(a) + \overrightarrow{f}(v). }[/math]

Therefore, since for any given b in A, b = a + v for a unique v, f is completely defined by its value on a single point and the associated linear map [math]\displaystyle{ \overrightarrow{f} }[/math].


Main pages: Affine transformation and Affine group

An affine transformation or endomorphism of an affine space [math]\displaystyle{ A }[/math] is an affine map from that space to itself. One important family of examples is the translations: given a vector [math]\displaystyle{ \overrightarrow{v} }[/math], the translation map [math]\displaystyle{ T_{\overrightarrow{v}}: A\rightarrow A }[/math] that sends [math]\displaystyle{ a\mapsto a + \overrightarrow{v} }[/math] for every [math]\displaystyle{ a }[/math] in [math]\displaystyle{ A }[/math] is an affine map. Another important family of examples are the linear maps centred at an origin: given a point [math]\displaystyle{ b }[/math] and a linear map [math]\displaystyle{ M }[/math], one may define an affine map [math]\displaystyle{ L_{M,b}:A\rightarrow A }[/math] by [math]\displaystyle{ L_{M,b}(a) = b + M(a-b) }[/math] for every [math]\displaystyle{ a }[/math] in [math]\displaystyle{ A }[/math].

After making a choice of origin [math]\displaystyle{ b }[/math], any affine map may be written uniquely as a combination of a translation and a linear map centred at [math]\displaystyle{ b }[/math].

Vector spaces as affine spaces

Every vector space V may be considered as an affine space over itself. This means that every element of V may be considered either as a point or as a vector. This affine space is sometimes denoted (V, V) for emphasizing the double role of the elements of V. When considered as a point, the zero vector is commonly denoted o (or O, when upper-case letters are used for points) and called the origin.

If A is another affine space over the same vector space (that is [math]\displaystyle{ V = \overrightarrow{A} }[/math]) the choice of any point a in A defines a unique affine isomorphism, which is the identity of V and maps a to o. In other words, the choice of an origin a in A allows us to identify A and (V, V) up to a canonical isomorphism. The counterpart of this property is that the affine space A may be identified with the vector space V in which "the place of the origin has been forgotten".

Relation to Euclidean spaces

Definition of Euclidean spaces

Euclidean spaces (including the one-dimensional line, two-dimensional plane, and three-dimensional space commonly studied in elementary geometry, as well as higher-dimensional analogues) are affine spaces.

Indeed, in most modern definitions, a Euclidean space is defined to be an affine space, such that the associated vector space is a real inner product space of finite dimension, that is a vector space over the reals with a positive-definite quadratic form q(x). The inner product of two vectors x and y is the value of the symmetric bilinear form

[math]\displaystyle{ x \cdot y = \frac 12 (q(x + y) - q(x) - q(y)). }[/math]

The usual Euclidean distance between two points A and B is

[math]\displaystyle{ d(A, B) = \sqrt{q(B - A)}. }[/math]

In older definition of Euclidean spaces through synthetic geometry, vectors are defined as equivalence classes of ordered pairs of points under equipollence (the pairs (A, B) and (C, D) are equipollent if the points A, B, D, C (in this order) form a parallelogram). It is straightforward to verify that the vectors form a vector space, the square of the Euclidean distance is a quadratic form on the space of vectors, and the two definitions of Euclidean spaces are equivalent.

Affine properties

In Euclidean geometry, the common phrase "affine property" refers to a property that can be proved in affine spaces, that is, it can be proved without using the quadratic form and its associated inner product. In other words, an affine property is a property that does not involve lengths and angles. Typical examples are parallelism, and the definition of a tangent. A non-example is the definition of a normal.

Equivalently, an affine property is a property that is invariant under affine transformations of the Euclidean space.

Affine combinations and barycenter

Let a1, ..., an be a collection of n points in an affine space, and [math]\displaystyle{ \lambda_1, \dots, \lambda_n }[/math] be n elements of the ground field.

Suppose that [math]\displaystyle{ \lambda_1 + \dots + \lambda_n = 0 }[/math]. For any two points o and o' one has

[math]\displaystyle{ \lambda_1 \overrightarrow{oa_1} + \dots + \lambda_n \overrightarrow{oa_n} = \lambda_1 \overrightarrow{o'a_1} + \dots + \lambda_n \overrightarrow{o'a_n}. }[/math]

Thus, this sum is independent of the choice of the origin, and the resulting vector may be denoted

[math]\displaystyle{ \lambda_1 a_1 + \dots + \lambda_n a_n . }[/math]

When [math]\displaystyle{ n = 2, \lambda_1 = 1, \lambda_2 = -1 }[/math], one retrieves the definition of the subtraction of points.

Now suppose instead that the field elements satisfy [math]\displaystyle{ \lambda_1 + \dots + \lambda_n = 1 }[/math]. For some choice of an origin o, denote by [math]\displaystyle{ g }[/math] the unique point such that

[math]\displaystyle{ \lambda_1 \overrightarrow{oa_1} + \dots + \lambda_n \overrightarrow{oa_n} = \overrightarrow{og}. }[/math]

One can show that [math]\displaystyle{ g }[/math] is independent from the choice of o. Therefore, if

[math]\displaystyle{ \lambda_1 + \dots + \lambda_n = 1, }[/math]

one may write

[math]\displaystyle{ g = \lambda_1 a_1 + \dots + \lambda_n a_n. }[/math]

The point [math]\displaystyle{ g }[/math] is called the barycenter of the [math]\displaystyle{ a_i }[/math] for the weights [math]\displaystyle{ \lambda_i }[/math]. One says also that [math]\displaystyle{ g }[/math] is an affine combination of the [math]\displaystyle{ a_i }[/math] with coefficients [math]\displaystyle{ \lambda_i }[/math].


  • When children find the answers to sums such as 4 + 3 or 4 − 2 by counting right or left on a number line, they are treating the number line as a one-dimensional affine space.
  • The space of energies is an affine space for [math]\displaystyle{ \mathbb{R} }[/math], since it is often not meaningful to talk about absolute energy, but it is meaningful to talk about energy differences. The vacuum energy when it is defined picks out a canonical origin.
  • Physical space is often modelled as an affine space for [math]\displaystyle{ \mathbb{R}^3 }[/math] in non-relativistic settings and [math]\displaystyle{ \mathbb{R}^{1,3} }[/math] in the relativistic setting. To distinguish them from the vector space these are sometimes called Euclidean spaces [math]\displaystyle{ \text{E}(3) }[/math] and [math]\displaystyle{ \text{E}(1,3) }[/math].
  • Any coset of a subspace V of a vector space is an affine space over that subspace.
  • If T is a matrix and b lies in its column space, the set of solutions of the equation Tx = b is an affine space over the subspace of solutions of Tx = 0.
  • The solutions of an inhomogeneous linear differential equation form an affine space over the solutions of the corresponding homogeneous linear equation.
  • Generalizing all of the above, if T : VW is a linear map and y lies in its image, the set of solutions xV to the equation Tx = y is a coset of the kernel of T , and is therefore an affine space over Ker T.
  • The space of (linear) complementary subspaces of a vector subspace V in a vector space W is an affine space, over Hom(W/V, V). That is, if 0 → VWX → 0 is a short exact sequence of vector spaces, then the space of all splittings of the exact sequence naturally carries the structure of an affine space over Hom(X, V).
  • The space of connections (viewed from the vector bundle [math]\displaystyle{ E\xrightarrow{\pi}M }[/math], where [math]\displaystyle{ M }[/math] is a smooth manifold) is an affine space for the vector space of [math]\displaystyle{ \text{End}(E) }[/math] valued 1-forms. The space of connections (viewed from the principal bundle [math]\displaystyle{ P\xrightarrow{\pi}M }[/math]) is an affine space for the vector space of [math]\displaystyle{ \text{ad}(P) }[/math]-valued 1-forms, where [math]\displaystyle{ \text{ad}(P) }[/math] is the associated adjoint bundle.

Affine span and bases

For any non-empty subset X of an affine space A, there is a smallest affine subspace that contains it, called the affine span of X. It is the intersection of all affine subspaces containing X, and its direction is the intersection of the directions of the affine subspaces that contain X.

The affine span of X is the set of all (finite) affine combinations of points of X, and its direction is the linear span of the xy for x and y in X. If one chooses a particular point x0, the direction of the affine span of X is also the linear span of the xx0 for x in X.

One says also that the affine span of X is generated by X and that X is a generating set of its affine span.

A set X of points of an affine space is said to be affinely independent or, simply, independent, if the affine span of any strict subset of X is a strict subset of the affine span of X. An affine basis or barycentric frame (see § Barycentric coordinates, below) of an affine space is a generating set that is also independent (that is a minimal generating set).

Recall that the dimension of an affine space is the dimension of its associated vector space. The bases of an affine space of finite dimension n are the independent subsets of n + 1 elements, or, equivalently, the generating subsets of n + 1 elements. Equivalently, {x0, ..., xn} is an affine basis of an affine space if and only if {x1x0, ..., xnx0} is a linear basis of the associated vector space.


There are two strongly related kinds of coordinate systems that may be defined on affine spaces.

Barycentric coordinates

Let A be an affine space of dimension n over a field k, and [math]\displaystyle{ \{x_0, \dots, x_n\} }[/math] be an affine basis of A. The properties of an affine basis imply that for every x in A there is a unique (n + 1)-tuple [math]\displaystyle{ (\lambda_0, \dots, \lambda_n) }[/math] of elements of k such that

[math]\displaystyle{ \lambda_0 + \dots + \lambda_n = 1 }[/math]


[math]\displaystyle{ x = \lambda_0 x_0 + \dots + \lambda_n x_n. }[/math]

The [math]\displaystyle{ \lambda_i }[/math] are called the barycentric coordinates of x over the affine basis [math]\displaystyle{ \{x_0, \dots, x_n\} }[/math]. If the xi are viewed as bodies that have weights (or masses) [math]\displaystyle{ \lambda_i }[/math], the point x is thus the barycenter of the xi, and this explains the origin of the term barycentric coordinates.

The barycentric coordinates define an affine isomorphism between the affine space A and the affine subspace of kn + 1 defined by the equation [math]\displaystyle{ \lambda_0 + \dots + \lambda_n = 1 }[/math].

For affine spaces of infinite dimension, the same definition applies, using only finite sums. This means that for each point, only a finite number of coordinates are non-zero.

Affine coordinates

An affine frame of an affine space consists of a point, called the origin, and a linear basis of the associated vector space. More precisely, for an affine space A with associated vector space [math]\displaystyle{ \overrightarrow{A} }[/math], the origin o belongs to A, and the linear basis is a basis (v1, ..., vn) of [math]\displaystyle{ \overrightarrow{A} }[/math] (for simplicity of the notation, we consider only the case of finite dimension, the general case is similar).

For each point p of A, there is a unique sequence [math]\displaystyle{ \lambda_1, \dots, \lambda_n }[/math] of elements of the ground field such that

[math]\displaystyle{ p = o + \lambda_1 v_1 + \dots + \lambda_n v_n, }[/math]

or equivalently

[math]\displaystyle{ \overrightarrow{op} = \lambda_1 v_1 + \dots + \lambda_n v_n. }[/math]

The [math]\displaystyle{ \lambda_i }[/math] are called the affine coordinates of p over the affine frame (o, v1, ..., vn).

Example: In Euclidean geometry, Cartesian coordinates are affine coordinates relative to an orthonormal frame, that is an affine frame (o, v1, ..., vn) such that (v1, ..., vn) is an orthonormal basis.

Relationship between barycentric and affine coordinates

Barycentric coordinates and affine coordinates are strongly related, and may be considered as equivalent.

In fact, given a barycentric frame

[math]\displaystyle{ (x_0, \dots, x_n), }[/math]

one deduces immediately the affine frame

[math]\displaystyle{ (x_0, \overrightarrow{x_0 x_1}, \dots, \overrightarrow{x_0 x_n}) = \left(x_0, x_1 - x_0, \dots, x_n - x_0\right), }[/math]

and, if

[math]\displaystyle{ \left(\lambda_0, \lambda_1, \dots, \lambda_n\right) }[/math]

are the barycentric coordinates of a point over the barycentric frame, then the affine coordinates of the same point over the affine frame are

[math]\displaystyle{ \left(\lambda_1, \dots, \lambda_n\right). }[/math]

Conversely, if

[math]\displaystyle{ \left(o, v_1, \dots, v_n\right) }[/math]

is an affine frame, then

[math]\displaystyle{ \left(o, o + v_1, \dots, o + v_n\right) }[/math]

is a barycentric frame. If

[math]\displaystyle{ \left(\lambda_1, \dots, \lambda_n\right) }[/math]

are the affine coordinates of a point over the affine frame, then its barycentric coordinates over the barycentric frame are

[math]\displaystyle{ \left(1 - \lambda_1 - \dots - \lambda_n, \lambda_1, \dots, \lambda_n\right). }[/math]

Therefore, barycentric and affine coordinates are almost equivalent. In most applications, affine coordinates are preferred, as involving less coordinates that are independent. However, in the situations where the important points of the studied problem are affinely independent, barycentric coordinates may lead to simpler computation, as in the following example.

Example of the triangle

The vertices of a non-flat triangle form an affine basis of the Euclidean plane. The barycentric coordinates allows easy characterization of the elements of the triangle that do not involve angles or distances:

The vertices are the points of barycentric coordinates (1, 0, 0), (0, 1, 0) and (0, 0, 1). The lines supporting the edges are the points that have a zero coordinate. The edges themselves are the points that have one zero coordinate and two nonnegative coordinates. The interior of the triangle are the points whose coordinates are all positive. The medians are the points that have two equal coordinates, and the centroid is the point of coordinates (1/3, 1/3, 1/3).

Change of coordinates

Case of barycentric coordinates

Barycentric coordinates are readily changed from one basis to another. Let [math]\displaystyle{ \{x_0, \dots, x_n\} }[/math] and [math]\displaystyle{ \{x'_0, \dots, x'_n\} }[/math] be affine bases of A. For every x in A there is some tuple [math]\displaystyle{ \{\lambda_0, \dots,\lambda_n\} }[/math] for which

[math]\displaystyle{ x = \lambda_0 x_0 + \dots + \lambda_n x_n. }[/math]

Similarly, for every [math]\displaystyle{ x_i \in\{x_0, \dots, x_n\} }[/math] from the first basis, we now have in the second basis

[math]\displaystyle{ x_i = \lambda_{i,0} x'_0 + \dots + \lambda_{i,j} x'_j + \dots + \lambda_{i,n} x'_n }[/math]

for some tuple [math]\displaystyle{ \{\lambda_{i,0}, \dots , \lambda_{i,n}\} }[/math]. Now we can rewrite our expression in the first basis as one in the second with

[math]\displaystyle{ \,x = \sum_{i=0}^n \lambda_i x_i = \sum_{i=0}^n \lambda_i \sum_{j=0}^n \lambda_{i,j} x'_j = \sum_{j=0}^n \biggl( \sum_{i=0}^n \lambda_i \lambda_{i,j}\biggr) x'_j \,, }[/math]

giving us coordinates in the second basis as the tuple [math]\displaystyle{ \bigl\{\sum_i \lambda_i \lambda_{i,0},\, \dots,\,{} }[/math][math]\displaystyle{ \sum_i \lambda_i \lambda_{i,n} \bigr\} }[/math].

Case of affine coordinates

Affine coordinates are also readily changed from one basis to another. Let [math]\displaystyle{ o }[/math], [math]\displaystyle{ \{v_1, \dots, v_n\} }[/math] and [math]\displaystyle{ o' }[/math], [math]\displaystyle{ \{v'_1, \dots, v'_n\} }[/math] be affine frames of A. For each point p of A, there is a unique sequence [math]\displaystyle{ \lambda_1, \dots, \lambda_n }[/math] of elements of the ground field such that

[math]\displaystyle{ p = o + \lambda_1 v_1 + \dots + \lambda_n v_n, }[/math]

and similarly, for every [math]\displaystyle{ v_i \in\{v_1, \dots, v_n\} }[/math] from the first basis, we now have in the second basis

[math]\displaystyle{ o = o' + \lambda_{o,1} v'_1 + \dots + \lambda_{o,j} v'_j + \dots + \lambda_{o,n} v'_n \, }[/math]
[math]\displaystyle{ v_i = \lambda_{i,1} v'_1 + \dots + \lambda_{i,j} v'_j + \dots + \lambda_{i,n} v'_n }[/math]

for tuple [math]\displaystyle{ \{\lambda_{o,1}, \dots , \lambda_{o,n}\} }[/math] and tuples [math]\displaystyle{ \{\lambda_{i,1}, \dots , \lambda_{i,n}\} }[/math]. Now we can rewrite our expression in the first basis as one in the second with

[math]\displaystyle{ \begin{align} \,p &= o + \sum_{i=1}^n \lambda_i v_i = \biggl(o' + \sum_{j=1}^n \lambda_{o,j} v'_j \biggr) + \sum_{i=1}^n \lambda_i \sum_{j=1}^n \lambda_{i,j} v'_j \\ &= o' + \sum_{j=1}^n \biggl( \lambda_{o,j} + \sum_{i=1}^n \lambda_i \lambda_{i,j}\biggr) v'_j \,, \end{align} }[/math]

giving us coordinates in the second basis as the tuple [math]\displaystyle{ \bigl\{\lambda_{o,1}+\sum_i \lambda_i \lambda_{i,1},\, \dots,\,{} }[/math][math]\displaystyle{ \lambda_{o,n}+\sum_i \lambda_i \lambda_{i,n} \bigr\} }[/math].

Properties of affine homomorphisms

Matrix representation

Image and fibers


[math]\displaystyle{ f \colon E \to F }[/math]

be an affine homomorphism, with

[math]\displaystyle{ \overrightarrow {f} \colon \overrightarrow{E} \to \overrightarrow{F} }[/math]

its associated linear map. The image of f is the affine subspace [math]\displaystyle{ f(E) = \{ f(a) \mid a \in E\} }[/math] of F, which has [math]\displaystyle{ \overrightarrow{f}(\overrightarrow{E}) }[/math] as associated vector space. As an affine space does not have a zero element, an affine homomorphism does not have a kernel. However, the linear map [math]\displaystyle{ \overrightarrow{f} }[/math] does, and if we denote by [math]\displaystyle{ K = \{v \in \overrightarrow{E} \mid \overrightarrow{f}(v) = 0\} }[/math] its kernel, then for any point x of [math]\displaystyle{ f(E) }[/math], the inverse image [math]\displaystyle{ f^{-1}(x) }[/math] of x is an affine subspace of E whose direction is [math]\displaystyle{ K }[/math]. This affine subspace is called the fiber of x.


An important example is the projection parallel to some direction onto an affine subspace. The importance of this example lies in the fact that Euclidean spaces are affine spaces, and that these kinds of projections are fundamental in Euclidean geometry.

More precisely, given an affine space E with associated vector space [math]\displaystyle{ \overrightarrow{E} }[/math], let F be an affine subspace of direction [math]\displaystyle{ \overrightarrow{F} }[/math], and D be a complementary subspace of [math]\displaystyle{ \overrightarrow{F} }[/math] in [math]\displaystyle{ \overrightarrow{E} }[/math] (this means that every vector of [math]\displaystyle{ \overrightarrow{E} }[/math] may be decomposed in a unique way as the sum of an element of [math]\displaystyle{ \overrightarrow{F} }[/math] and an element of D). For every point x of E, its projection to F parallel to D is the unique point p(x) in F such that

[math]\displaystyle{ p(x) - x \in D. }[/math]

This is an affine homomorphism whose associated linear map [math]\displaystyle{ \overrightarrow{p} }[/math] is defined by

[math]\displaystyle{ \overrightarrow{p}(x - y) = p(x) - p(y), }[/math]

for x and y in E.

The image of this projection is F, and its fibers are the subspaces of direction D.

Quotient space

Although kernels are not defined for affine spaces, quotient spaces are defined. This results from the fact that "belonging to the same fiber of an affine homomorphism" is an equivalence relation.

Let E be an affine space, and D be a linear subspace of the associated vector space [math]\displaystyle{ \overrightarrow{E} }[/math]. The quotient E/D of E by D is the quotient of E by the equivalence relation such that x and y are equivalent if

[math]\displaystyle{ x - y \in D. }[/math]

This quotient is an affine space, which has [math]\displaystyle{ \overrightarrow{E}/D }[/math] as associated vector space.

For every affine homomorphism [math]\displaystyle{ E \to F }[/math], the image is isomorphic to the quotient of E by the kernel of the associated linear map. This is the first isomorphism theorem for affine spaces.


Affine spaces are usually studied by analytic geometry using coordinates, or equivalently vector spaces. They can also be studied as synthetic geometry by writing down axioms, though this approach is much less common. There are several different systems of axioms for affine space.

(Coxeter 1969) axiomatizes the special case of affine geometry over the reals as ordered geometry together with an affine form of Desargues's theorem and an axiom stating that in a plane there is at most one line through a given point not meeting a given line.

Affine planes satisfy the following axioms (Cameron 1991): (in which two lines are called parallel if they are equal or disjoint):

  • Any two distinct points lie on a unique line.
  • Given a point and line there is a unique line which contains the point and is parallel to the line
  • There exist three non-collinear points.

As well as affine planes over fields (or division rings), there are also many non-Desarguesian planes satisfying these axioms. (Cameron 1991) gives axioms for higher-dimensional affine spaces.

Purely axiomatic affine geometry is more general than affine spaces and is treated in a separate article.

Relation to projective spaces

An affine space is a subspace of a projective space, which is in turn the quotient of a vector space by an equivalence relation (not by a linear subspace)

Affine spaces are contained in projective spaces. For example, an affine plane can be obtained from any projective plane by removing one line and all the points on it, and conversely any affine plane can be used to construct a projective plane as a closure by adding a line at infinity whose points correspond to equivalence classes of parallel lines. Similar constructions hold in higher dimensions.

Further, transformations of projective space that preserve affine space (equivalently, that leave the hyperplane at infinity invariant as a set) yield transformations of affine space. Conversely, any affine linear transformation extends uniquely to a projective linear transformation, so the affine group is a subgroup of the projective group. For instance, Möbius transformations (transformations of the complex projective line, or Riemann sphere) are affine (transformations of the complex plane) if and only if they fix the point at infinity.

Affine algebraic geometry

In algebraic geometry, an affine variety (or, more generally, an affine algebraic set) is defined as the subset of an affine space that is the set of the common zeros of a set of so-called polynomial functions over the affine space. For defining a polynomial function over the affine space, one has to choose an affine frame. Then, a polynomial function is a function such that the image of any point is the value of some multivariate polynomial function of the coordinates of the point. As a change of affine coordinates may be expressed by linear functions (more precisely affine functions) of the coordinates, this definition is independent of a particular choice of coordinates.

The choice of a system of affine coordinates for an affine space [math]\displaystyle{ \mathbb{A}_k^n }[/math] of dimension n over a field k induces an affine isomorphism between [math]\displaystyle{ \mathbb{A}_k^n }[/math] and the affine coordinate space kn. This explains why, for simplification, many textbooks write [math]\displaystyle{ \mathbb{A}_k^n = k^n }[/math], and introduce affine algebraic varieties as the common zeros of polynomial functions over kn.[8]

As the whole affine space is the set of the common zeros of the zero polynomial, affine spaces are affine algebraic varieties.

Ring of polynomial functions

By the definition above, the choice of an affine frame of an affine space [math]\displaystyle{ \mathbb{A}_k^n }[/math] allows one to identify the polynomial functions on [math]\displaystyle{ \mathbb{A}_k^n }[/math] with polynomials in n variables, the ith variable representing the function that maps a point to its ith coordinate. It follows that the set of polynomial functions over [math]\displaystyle{ \mathbb{A}_k^n }[/math] is a k-algebra, denoted [math]\displaystyle{ k\left[\mathbb{A}_k^n\right] }[/math], which is isomorphic to the polynomial ring [math]\displaystyle{ k\left[X_1, \dots, X_n\right] }[/math].

When one changes coordinates, the isomorphism between [math]\displaystyle{ k\left[\mathbb{A}_k^n\right] }[/math] and [math]\displaystyle{ k[X_1, \dots, X_n] }[/math] changes accordingly, and this induces an automorphism of [math]\displaystyle{ k\left[X_1, \dots, X_n\right] }[/math], which maps each indeterminate to a polynomial of degree one. It follows that the total degree defines a filtration of [math]\displaystyle{ k\left[\mathbb A_k^n\right] }[/math], which is independent from the choice of coordinates. The total degree defines also a graduation, but it depends on the choice of coordinates, as a change of affine coordinates may map indeterminates on non-homogeneous polynomials.

Zariski topology

Affine spaces over topological fields, such as the real or the complex numbers, have a natural topology. The Zariski topology, which is defined for affine spaces over any field, allows use of topological methods in any case. Zariski topology is the unique topology on an affine space whose closed sets are affine algebraic sets (that is sets of the common zeros of polynomial functions over the affine set). As, over a topological field, polynomial functions are continuous, every Zariski closed set is closed for the usual topology, if any. In other words, over a topological field, Zariski topology is coarser than the natural topology.

There is a natural injective function from an affine space into the set of prime ideals (that is the spectrum) of its ring of polynomial functions. When affine coordinates have been chosen, this function maps the point of coordinates [math]\displaystyle{ \left(a_1, \dots, a_n\right) }[/math] to the maximal ideal [math]\displaystyle{ \left\langle X_1 - a_1, \dots, X_n - a_n\right\rangle }[/math]. This function is a homeomorphism (for the Zariski topology of the affine space and of the spectrum of the ring of polynomial functions) of the affine space onto the image of the function.

The case of an algebraically closed ground field is especially important in algebraic geometry, because, in this case, the homeomorphism above is a map between the affine space and the set of all maximal ideals of the ring of functions (this is Hilbert's Nullstellensatz).

This is the starting idea of scheme theory of Grothendieck, which consists, for studying algebraic varieties, of considering as "points", not only the points of the affine space, but also all the prime ideals of the spectrum. This allows gluing together algebraic varieties in a similar way as, for manifolds, charts are glued together for building a manifold.


Like all affine varieties, local data on an affine space can always be patched together globally: the cohomology of affine space is trivial. More precisely, [math]\displaystyle{ H^i\left(\mathbb{A}_k^n,\mathbf{F}\right) = 0 }[/math] for all coherent sheaves F, and integers [math]\displaystyle{ i \gt 0 }[/math]. This property is also enjoyed by all other affine varieties. But also all of the étale cohomology groups on affine space are trivial. In particular, every line bundle is trivial. More generally, the Quillen–Suslin theorem implies that every algebraic vector bundle over an affine space is trivial.

See also


  1. The word translation is generally preferred to displacement vector, which may be confusing, as displacements include also rotations.
  2. Berger 1987, p. 32
  3. Berger, Marcel (1984), "Affine spaces", Problems in Geometry, Springer, p. 11, ISBN 9780387909714, 
  4. Berger 1987, p. 33
  5. Snapper, Ernst; Troyer, Robert J. (1989), Metric Affine Geometry, p. 6 
  6. Tarrida, Agusti R. (2011), "Affine spaces", Affine Maps, Euclidean Motions and Quadrics, Springer, pp. 1–2, ISBN 9780857297105, 
  7. Nomizu & Sasaki 1994, p. 7
  8. Hartshorne 1977, Ch. I, § 1.