In mathematics, an affine space is a geometric structure that generalizes the affine properties of Euclidean space. In an affine space, one can subtract points to get vectors, or add a vector to a point to get another point, but one cannot add points. In particular, there is no distinguished point that serves as an origin. The solution set of an inhomogeneous linear equation is either empty or an affine subspace. In particular, a point is a zero-dimensional affine subspace.
Informal descriptions 
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 you've 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"). Imagine that Alice knows that a certain point is the true origin, and 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 p to a and another arrow from p to b, and completes the parallelogram to find what Bob thinks is a + b, but Alice knows that he has actually computed
- p + (a − p) + (b − p).
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 + λ(a − p) + (1 − λ)(b − p) = λa + (1 − λ)b.
Then, for all coefficients λ + (1 − λ) = 1, Alice and Bob describe the same point with the same linear combination, starting from different origins.
While 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. An underlying set with an affine structure is an affine space.
An affine space is a set A together with a vector space V and a faithful and transitive group action of V (with addition of vectors as group action) on A. In particular, V being an abelian group, it turns out that the only vector acting with a fixpoint is 0 (i.e., the action is simply transitive, hence both transitive and free, whence free) and there is a single orbit (the action is transitive). In other words, an affine space is a principal homogeneous space over the additive group of a vector space.
Explicitly, an affine space is a point set A together with a map
- Left identity
- is a bijection.
The vector space V is said to underlie the affine space A and is also called the difference space.
By choosing an origin, a, one can thus identify A with V, hence turn A into a vector space. Conversely, any vector space, V, is an affine space over itself. The uniqueness property ensures that subtraction of any two elements of A is well defined, producing a vector of V.
If o, a, and b are points in A and λ is a scalar, then
is independent of o. Instead of arbitrary linear combinations, only such affine combinations of points have meaning.
By noting that one can define subtraction of points of an affine space as follows:
- is the unique vector in V such that ,
one can equivalently define an affine space as a point set A, together with a vector space V, and a subtraction map with the following properties:
- there is a unique point such that and
These two properties are called Weyl's axioms.
- 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.
- 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 T x = b is an affine space over the subspace of solutions of T x = 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 : V → W is a linear mapping and y lies in its image, the set of solutions x ∈ V to the equation T x = y is a coset of the kernel of T , and is therefore an affine space over Ker T .
Affine subspaces 
An affine subspace (sometimes called a linear manifold, linear variety, or a flat) of a vector space V is a subset closed under affine combinations of vectors in the space. For example, the set
is an affine space, where is a family of vectors in V – this space is the affine span of these points. To see that this is indeed an affine space, observe that this set carries a transitive action of the vector subspace W of V
This affine subspace can be equivalently described as the coset of the W-action
where p is any element of A, or equivalently as any level set of the quotient map V → V/W. A choice of p gives a base point of A and an identification of W with A, but there is no natural choice, nor a natural identification of W with A.
A linear transformation is a function that preserves all linear combinations; an affine transformation is a function that preserves all affine combinations. A linear subspace is an affine subspace containing the origin, or, equivalently, a subspace that is closed under linear combinations.
For example, in , the origin, lines and planes through the origin and the whole space are linear subspaces, while points, lines and planes in general as well as the whole space are the affine subspaces.
Affine combinations and affine dependence 
An affine combination is a linear combination in which the sum of the coefficients is 1. Just as members of a set of vectors are linearly independent if none is a linear combination of the others, so also they are affinely independent if none is an affine combination of the others. The set of linear combinations of a set of vectors is their "linear span" and is always a linear subspace; the set of all affine combinations is their "affine span" and is always an affine subspace. For example, the affine span of a set of two points is the line that contains both; the affine span of a set of three non-collinear points is the plane that contains all three.
- v1, v2, … , vn
are linearly dependent if there exist scalars a1, a2, … , an, not all zero, for which
a1v1 + a2v2 + ⋯ + anvn = 0
Similarly they are affinely dependent if in addition the sum of coefficients is zero:
Geometric objects as points and vectors 
In an affine space, geometric objects have two different (although related) descriptions on languages of points (elements of A) and vectors (elements of V ). A vector description can specify an object only up to translations.
|A point||One point P||none (zero vector space)|
|A line (1-subspace)||Can be specified with two distinct points||A non-zero vector up to multiplication to (non-zero) scalars|
|A line segment||Two (independent) points:
|One vector P Q→, or
two dependent (mutually opposite) vectors P Q→ and Q P→
|A plane (2-subspace)||Can be specified with three points not lying on one line||A linear 2-subspace,
can be specified with two linearly-independent vectors
|A triangle||Three (independent) points:
△P Q R
|Three dependent vectors related as
P R→ = P Q→ + Q R→, or
P Q→ + Q R→ + R P→ = 0, or
just two independent vectors
|A parallelogram||Four points: ▱P Q R S
of which any three determine the fourth
|Two independent vectors:
P Q→ = S R→
P S→ = Q R→
Affine space is usually studied as analytic geometry using coordinates, or equivalently vector spaces. It 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, p. 192) axiomatizes 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, chapter 2): (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, chapter 3) gives axioms for higher dimensional affine spaces.
Relation to projective spaces 
Affine spaces are subspaces of projective spaces: an affine plane can be obtained from any projective plane by removing a 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.
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 transformations, 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.
However, one cannot take the projectivization of an affine space, so projective spaces are not naturally quotients of affine spaces: one can only take the projectivization of a vector space, since the projective space is lines through a given point, and there is no distinguished point in an affine space. If one chooses a base point (as zero), then an affine space becomes a vector space, which one may then projectivize, but this requires a choice.
See also 
- affine geometry
- affine transformation
- affine group
- affine hull
- equipollence (geometry)
- interval measurement, an affine observable in statistics
- heap (mathematics)
- Space (mathematics)
- affine variety
- Berger 1987, p. 32
- Berger, Marcel (1984). "Affine spaces". p. 11.
- Berger 1987, p. 33
- S. Lang and J. Tate (1958). "Principal Homogeneous Space Over Abelian Varieties". American Journal of Mathematics 80 (3): 659–684.
- Snapper, Ernst; Troyer, Robert J. (1989), Metric Affine Geometry, p. 6
- Berger 1987, p. 33
- Tarrida, Agusti R. (2011). "Affine spaces". pp. 1–2.
- Nomizu & Sasaki 1994, p. 7
- Berger, Marcel (1984). "Affine spaces". Problems in Geometry. Springer-Verlag. ISBN 978-0-387-90971-4.
- Berger, Marcel (1987), Geometry I, Berlin: Springer, ISBN 3-540-11658-3
- Cameron, Peter J. (1991), Projective and polar spaces, QMW Maths Notes 13, London: Queen Mary and Westfield College School of Mathematical Sciences, MR 1153019
- Coxeter, Harold Scott MacDonald (1969), Introduction to Geometry (2nd ed.), New York: John Wiley & Sons, ISBN 978-0-471-50458-0, MR 123930
- Dolgachev, I.V.; Shirokov, A.P. (2001), "A/a011100", in Hazewinkel, Michiel, Encyclopedia of Mathematics, Springer, ISBN 978-1-55608-010-4
- Snapper, Ernst; Troyer, Robert J. (1989), Metric Affine Geometry (Dover edition, first published in 1989 ed.), Dover Publications, ISBN 0-486-66108-3
- Nomizu, K.; Sasaki, S. (1994), Affine Differential Geometry (New ed.), Cambridge University Press, ISBN 978-0-521-44177-3
- Tarrida, Agusti R. (2011). "Affine spaces". Affine Maps, Euclidean Motions and Quadrics. Springer. ISBN 978-0-85729-709-9.