p + λ(a − p) + (1 − λ)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 combiWhile 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.
An affine space is a set A together with a vector space
, and a transitive and free action of the additive group of
on the set A.[3] The elements of the affine space A are called points. The vector space
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,
- Right identity:
, where 0 is the zero vector in 
- Associativity:
- Existence of one-to-one translations
- For all
, the mapping
is a bijection.
Property 3 is often used in the following equivalent form.
- Subtraction:
- For every a, b in A, there exists a unique
, denoted b – a, such that
.
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
. This vector, denoted
Subtraction:
- For every a, b in A, there exists a unique
, denoted b – a, such that
.
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
. This vector, denoted 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
. This vector, denoted
or
, is defined to be the unique vector in
such that
-
f
(
a
+
v
)
=
f
(
a
)
+
f
→
(
v
)
.
{\displaystyle f(a+v)=f(a)+{\overrightarrow {f}}(v).}
This implies that, for a point
a
∈
A
{\displaystyle a\in A}
and a vector
v
∈
A
→
{\displaystyle v\in {\overrightarrow {A}}}
, one has
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
f
→
{\displaystyle {\overrightarrow {f}}}
.
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 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
If A is another affine space over the same vector space (that is
V
=
A
→
{\displaystyle V={\overrightarrow {A}}}
) 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".
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 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
The usual Euclidean distance between two points A and B is
-
d
(
A
,
B
)
=
q
(
B
−
A
)
.
{\displaystyle d(A,B)={\sqrt {q(B-A)}}.}

In older definition of Euclidean spaces through synthetic geometry, vectors are defined as equivalence classes of ordered pairs of points under 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.
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 barycenteraffine transformations of the Euclidean space.
Let a1, ..., an be a collection of n points in an affine space, and
λ
1
,
…
,
λ
n
{\displaystyle \lambda _{1},\dots ,\lambda _{n}}
be n elements of the ground field.
Suppose that
λ
1
+
⋯
+
λ
n
=
0
{\displaystyle \lambda _{1}+\dots +\lambda _{n}=0}
. For any two points o and o' one has
Thus this sum is independent of the choice of the origin, and the resulting vector may be denoted
-
λ
1
a
1
+
⋯
+
λ
n
a
n
.
{\displaystyle \lambda _{1}a_{1}+\dots +\lambda _{n}a_{n}.}

When
n
=
2
,
λ
1
=
1
,
λ
2
=
−
1
{\displaystyle n=2,\lambda _{1}=1,\lambda _{2}=-1}
, one retrieves the definition of the subtraction of points.
Now suppose instead that the field elements satisfy
λ
1
+
⋯
+
λ
n
When
n
=
2
,
λ
1
=
1
,
λ
2
=
−
1
{\displaystyle n=2,\lambda _{1}=1,\lambda _{2}=-1}
, one retrieves the definition of the subtraction of points.
Now suppose instead that the field elements satisfy
λ
1
+
⋯
+
λ
n
=
1
{\displaystyle \lambda _{1}+\dots +\lambda _{n}=1}
. For some choice of an origin o, denote by Now suppose instead that the field elements satisfy
λ
1
+
⋯
+
λ
n
=
1
{\displaystyle \lambda _{1}+\dots +\lambda _{n}=1}
. For some choice of an origin o, denote by
g
{\displaystyle g}
the unique point such that
One can show that
g
{\displaystyle g}
is independent from the choice of o. Therefore, if
-
λ
1
+
⋯
+
λ
n
=
1
,
{\displaystyle \lambda _{1}+\dots +\lambda _{n}=1,}

one may write
-
g
=
λ
1
a
1
+
⋯
+
λ
n
a
n
.
{\displaystyle g=\lambda _{1}a_{1}+\do
one may write
-
g
=
λ
1
a
1
+
⋯
+
λ
n
a
n
.
{\displaystyle g=\lambda _{1}a_{1}+\dots +\lambda _{n}a_{n}.}
g
{\displaystyle g}
is called the barycenter of the
a
i
{\displaystyle a_{i}}
for the weights
λ
i
{\displaystyle \lambda _{i}}
. One says also that
g
{\displaystyle g}
is an affine combination of the
a
i
{\displaystyle a_{i}}
with coefficients
λ
i
{\displaystyle \lambda _{i}}
.
Examples
- 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 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 : V →
For any 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 x − y 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 x – x0 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 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 {x1 − x0, ..., xn − x0} is a linear basis of the associated vector space.
Coordinates
There are two strongly related kinds of coordinate systems that may be defined on affine spaces.
BaThe 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 x − y 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 x – x0 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 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 {x1 − x0, ..., xn − x0} 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
,
x
n
}