Affine Sets and Transformations
Contents
4.14. Affine Sets and Transformations#
Primary references for this section are [9, 17, 67].
In this section 
Some results in this section are applicable for
normed linear spaces or inner product spaces.
We shall assume that 
Note
The notion of lines in a complex vector space may sound
very confusing as a complex line is topologically
equivalent to a real plane, not a real line.
If you are getting lost while reading this section,
just think of 
A key property of 
4.14.1. Lines#
Definition 4.158 (Line)
Let 
form a line passing through 
at
 we have .at
 we have .
We can also rewrite 
In this definition:
 is called the base point for this line. defines the direction of the line. is the sum of the base point and the direction scaled by the parameter .As
 goes from to , moves from to .
Remark 4.29
An alternative notation for the line as a set is 
4.14.2. Affine Sets#
Definition 4.159 (Affine set)
A set 
In other words, for any 
Another way to write this is:
Different authors use other names for affine sets like “affine manifold”, “affine variety”, “linear variety” or “flat”.
Example 4.29
The empty set 
Example 4.30
For any 
In fact:
Example 4.31
Any line in 
Example 4.32
Any vector space 
Theorem 4.164 (Linear subspaces are affine)
The linear subspaces of a vector space 
Proof. Let 
Then
 contains .Let
 .Then, by linearity, any
 .In particular, for some
 , holds too.Thus,
 is affine.
For the converse, let 
For any
 and ,since
 is affine. Thus, is closed under scalar multiplication.Let
 . Since is affine, henceBut then,
 holds too since is closed under scalar multiplication.Thus,
 is closed under vector addition.Since
 is closed under scalar multiplication and vector addition, hence must be a subspace.
4.14.3. Affine Combinations#
If we denote 
Definition 4.160 (Affine combination)
A point of the form 
Note that the definition only considers finite number of terms in the affine combination.
It can be shown easily that an affine set 
Theorem 4.165 (Affine set contains affine combinations)
If 
Proof. We shall call 
Our proof strategy is as follows:
We show that an affine set contains all its 2 term affine combinations.
We then show that if an affine set contains all its
 term affine combinations then it must contain all its term affine combinations.Thus, by principle of mathematical induction, it contains all its affine combinations.
An affine combination of two points is of the form 
Now, assume that 
Consider points
 .Let
 such that .Without loss of generality, assume that
 . Thus, .Note that
 .Thus,
 .We can then write:
Note that the term
 is an affine combination of terms.Thus, by inductive hypothesis,
 .We are left with
This is a two term affine combination. Since
 , hence .Thus, we established that if
 contains its term affine combinations, it contains its term affine combinations too.
Theorem 4.166
An affine combination of affine combinations is an affine combination.
Proof. Let 
We claim that 
Notice that:
Thus, 
We can use the mathematical induction to show that arbitrary affine combinations of affine combinations are affine combinations.
4.14.4. Connection with Linear Subspaces#
Theorem 4.167 (affine - point = linear)
Let 
is a linear subspace of 
To show that 
Proof. Let 
Thus
But since 
Hence 
Thus, any linear combination of elements in 
Observation 4.9 (affine = linear + point)
With the previous result, we can use the following notation:
where 
We need to justify this notation by establishing that there is one and only linear subspace associated with an affine set. This is done in the next result.
Theorem 4.168 (Uniqueness of associated subspace)
Let 
Proof. We show that 
Let
 .There exists
 such that .Then,
 .Let
 . Note that and is an affine combination of .Thus,
 .We can now write
 .Thus,
 as .Thus,
 .An identical reasoning starting with some
 gives us .Thus,
 .
Thus the subspace 
Corollary 4.30
If an affine set contains 
We have already shown this in Theorem 4.164. This is an alternative proof.
Proof. The linear subspace associated with an affine set 
In particular, if 
Thus, 
4.14.5. Affine Subspaces and Dimension#
Definition 4.161 (Affine subspace)
A nonempty affine set is called an affine subspace. An affine subspace is a linear subspace with an offset.
Another way to express this is as follows. 
Definition 4.162 (Affine proper subspace)
An affine subspace 
In other words, 
Definition 4.163 (Affine dimension)
We define the affine dimension of an affine subspace 
The dimension of 
The definition is consistent since 
Example 4.33 (Singletons as affine subspaces)
For any 
Its corresponding linear subspace is 
Thus, the singleton set has an affine dimension of 0.
Remark 4.30 (Points, lines, planes, flats)
The affine sets of dimension 0, 1 and 2 are called points, lines and planes respectively.
An affine set of dimension 
Example 4.34 (More affine sets)
The euclidean space
 is affine.Any line is affine. The associated linear subspace is a line parallel to it which passes through origin.
Any plane is affine. If it passes through origin, it is a linear subspace. The associated linear subspace is the plane parallel to it which passes through origin.
Theorem 4.169
An affine subspace is closed under affine combinations.
Proof. This is from the definition of affine sets and Theorem 4.165.
Observation 4.10 (Affine - affine = Linear)
Let 
Thus, following the notation in
Definition 4.25,
we can write 
One way to think of affine sets as collections of points in an arbitrary space and the associated linear subspace as the collection of difference vectors between points.
4.14.6. Affine Hull#
Definition 4.164 (Affine hull)
The set of all affine combinations of points in some arbitrary nonempty set
Theorem 4.170
An affine hull is an affine subspace.
Proof. Let 
where 
Then, as shown in Theorem 4.166,
is an affine combination of points 
Thus, 
Theorem 4.171 (Smallest containing affine subspace)
The affine hull of a nonempty set 
Proof. Let 
From Theorem 4.169,
 is closed under affine combinations.Thus,
 contains all affine combinations of points of .Thus,
 .We established in Theorem 4.170 that
 is an affine subspace.Thus, it is the smallest affine subspace containing
 .
Corollary 4.31 (Affine hull as intersection)
The affine hull of a set is the intersection of all affine subspaces containing it.
Theorem 4.172 (Affine hull of a finite set)
Let 
Consequently, the dimension of 
Proof. Since 
Now, let 
But then
Thus, 
Combining:
Since 
Theorem 4.173 (Containment)
If 
Proof. We proceed as follows:
By definition,
 contains all affine combinations of points in .Thus, it contains all affine combinations of points in
 since .But that is
 .Thus,
 .
Theorem 4.174 (Tight containment)
If 
Proof. We proceed as follows:
Note that
 is an affine set containing .But
 is the smallest affine set containing , hence .But
 implies that .Thus,
 .
4.14.7. Affine Independence#
Definition 4.165 (Affine independence)
A set of vectors 
If the associated subspace has dimension 
Definition 4.166 (Affine dependence)
A set of vectors 
Theorem 4.175 (Basis for the linear subspace associated with affine independent set)
Let 
Let 
Then, 
Proof. By definition of affine independence,
Since, they are linearly independent and span 
Theorem 4.176 (Affine independence and dimension)
A set of vectors 
Proof. Assume 
Then, by Definition 4.165,
 are linearly independent.Let
 .- 
since
 is a span of linearly independent vectors. 
Now, assume 
By Theorem 4.172, the linear subspace associated with
 is given by .Thus,
 is dimensional since .But,
 is a span of vectors.Hence, the
 vectors must be linearly independent.
[67] defines 
Theorem 4.177 (Affine independent points in an affine subspace)
Let 
Proof. Let 
We have
 .Choose a basis
 of .Let
 .Then, the set of
 points are affine independent since are linearly independent.For less than
 points, we can choose less than vectors from the basis and construct accordingly.
We now show that any set of 
Let
 be an arbitrary set of points in .Then,
 is a set of points in .Since
 , hence any set of points in is linearly dependent.Thus,
 cannot be affine independent.
Theorem 4.178 (Affine set as an affine hull)
Let 
Proof. Let 
Since 
We now show that 
Let
 .Then,
 .By Theorem 4.175,
 form a basis for .Thus,
But then,
which is an affine combination of
 .Thus,
 .Thus,
 .
Theorem 4.179 (Extending an affine independent set of points)
Let 
Proof. Let 
Let
 .Let
 be the linear subspace associated with .Let
 .The set
 forms a basis for .Extend
 to to form a basis for .Compute the points
 for .Then, the set of points
 is an affine independent set since the are linearly independent.
4.14.8. Barycentric Coordinate System#
Theorem 4.180 (Unique representation from affine independent points)
Let 
Let 
Then, every point in 
such that 
Proof. By definition of affine hull, any point in the hull 
Let 
Let 
Then, there is a unique representation of 
Then,
Letting 
We now claim that this representation is unique. Suppose, there was another representation
such that 
Then, we would have:
But, the set 
Hence, 
Thus, 
Thus, 
This unique representation can be used to define a coordinate system in an affine set.
Definition 4.167 (Barycentric coordinate system)
Let 
Let 
Then, every point in 
such that 
If 
4.14.9. Translations#
Definition 4.168 (Translation operator)
Let 
where 
It can be easily seen that 
Definition 4.169 (Translate)
Let 
Observation 4.11 (Translating the vector space)
Translating the whole vector space doesn’t change it.
This follows from the definition of the set vector addition.
The translate of the trivial subspace is a singleton set.
Theorem 4.181 (Affine translate)
A translate of an affine set is affine.
Proof. Let 
Let
 .Then,
 and for some .Then for some
 ,But
 since is affine.Hence,
 .Thus,
 is affine.
Definition 4.170 (Parallel affine sets)
Two affine sets 
for some 
Clearly, every affine set is parallel to its associated linear subspace.
This definition of parallelism is more restrictive as it allows comparing only those affine sets which have the same dimension. Thus, we cannot compare a line with a plane.
Every point is parallel to every other point.
Theorem 4.182 (Parallelism equivalence relation)
Consider the class of all affine subsets of a vector space 
Proof. [Reflexivity]
 .Hence
 .
[Symmetry]
Let
 .Then, there exists
 such that .But then,
 .Thus,
 .
[Transitivity]
Let
 and .Then,
 and for some .But then,
 .Thus,
 .
Theorem 4.183 (Existence and uniqueness of a parallel linear subspace)
Every affine subspace (nonempty affine set) 
This result is a restatement of Observation 4.10.
Proof. From Theorem 4.168, there
is a unique linear subspace 
Since 
Two linear subspaces are parallel to each other
only if they are identical. Thus, 
Now, notice that:
But 
Thus,
Thus, the unique linear subspace parallel to 
4.14.10. Affinity Preserving Operations#
We discuss some operations which preserve the affine character of its inputs
4.14.10.1. Intersection#
Theorem 4.184 (Intersection of affine sets)
If 
Proof. Let 
Since 
Similarly
Thus
Thus, 
We can generalize it further.
Theorem 4.185 (Intersection of arbitrary collection of affine sets)
Let 
Proof. Let 
Hence 
4.14.11. Hyper Planes#
Recall from Definition 4.87 that a set of the form:
where 
Theorem 4.186
Every hyperplane is affine.
Proof. We proceed as follows:
Let
 .Then,
 and .Consider any
 and let .Then, due to linearity of
 ,Thus,
 .Thus,
 is an affine set.
Theorem 4.187 (Linear subspace parallel to a hyperplane)
Let 
where 
Then, the linear subspace parallel to 
Proof. Let 
Then, any
 can be written as for some .But then,
Thus,
 and hence .
For the converse, we proceed as follows.
Let
 and .Let
 .Then,
 .Thus,
 .Thus,
 where .Thus,
 .Thus,
 .
Combining, 
Theorem 4.188 (Dimension of a hyperplane)
Let 
where 
If 
Proof. From Theorem 4.187,
the linear subspace parallel to 
From Theorem 4.99, the dimension of the kernel of a linear functional in a finite dimensional vector space is given by:
From Definition 4.163,
Theorem 4.189 (Hyperplanes in inner product spaces)
If 
where 
Moreover, every hyperplane of 
Proof. By Theorem 4.102,
the mapping  
is a linear functional.
Thus, 
By Theorem 4.104,
every linear functional can be identified as an
inner product with a vector 
This representation is not unique since the set
is identical to 
Theorem 4.190 (Affine = Intersection of hyperplanes)
Let 
Proof. If 
Let 
Let
 be the linear subspace parallel to .Then
 for some fixed .Let
 and .Since
 is a proper subspace of hence .Let
 be a basis for .Then, every
 can be written as:We can extend this basis to construct a basis
 for .We can construct a dual basis for the dual space
 . For each , define a linear functional by setting:Let
 .Consider a family of hyperplanes defined as:
where
 .Consider their intersection
We claim that
 .
We shall first show that 
Let
 .Then,
 .Then,
 for .Thus,
 for every .Thus,
 .Thus,
 .
We now show that 
Let
 .Hence,
 such that .We can write
 in terms of the basis asThen
 (by definition of ).But, for any
since
 .Thus,
 for every .Thus,
Thus,
 since is a basis for .Thus,
 .Thus,
 .
Combining these observations, we have 
We are now left with the case of singleton sets
Choose any basis
 for .Construct a dual basis
 for as before.Let
 for .Consider a family of hyperplanes defined as:
where
 .Consider their intersection
Now, it is straightforward to show that
 .
Corollary 4.32 (Affine sets in inner product space)
Let 
Then, there exist 
Specifically,
Proof. It follows from Theorem 4.190
that 
Since 
where 
Procedure to select the hyperplane parameters.
Pick a vector
 .Identify the linear subspace
 .Pick an orthonormal basis for
 : .Extend the orthonormal basis to
 .Pick the basis vectors for
 : with .Compute
 .
4.14.12. Linear Equations#
Example 4.35 (Solution set of linear equations)
We show that the solution set of linear equations forms an affine set.
Let 
Let 
Let 
Thus
Thus, 
The subspace associated with 
Every affine set of 
Theorem 4.191  (Affine set = system of linear equations in 
Let 
Then, 
Moreover, every affine set in 
Proof. If 
If the system of equations has a unique solution, then
We now consider the case that the system of equations has more than one solutions.
Let 
Consider 
This means that 
We next show that every affine set of 
Let 
If
 , we can pick any infeasible system of linear equations as a representation of .If
 is a singleton, we can pick the system where is an identity matrix in .If
 , we can choose to be any zero matrix and . Then, the solution set of is all of .We shall now consider the case of affine
 with more than one elements and (proper subset).Let
 be the subspace parallel to (Theorem 4.183).Let
 be the orthogonal complement of .Let
 be a basis for (where ).Since
 is finite dimensional, hence (Theorem 4.88).Thus, due to Theorem 4.84,
Thus,
where
 is the matrix whose rows are .Since
 is parallel to , there exists an such thatwhere
 .
4.14.13. Affine Transformations#
Definition 4.171 (Affine transformation)
Let 
An affine transformation is also known as an affine function or an affine operator.
An affine transformation preserves affine combinations. An affine combination in input leads to an identical affine combination in output.
4.14.13.1. Relation with Linear Transformations#
We next show that a linear transformation followed by a translation is affine.
Theorem 4.192  (Linear + Translation 
Let 
Then, 
Proof. Let 
Thus, 
We now prove a stronger result that every affine function is a linear transformation followed by a translation.
Theorem 4.193 (Affine = Linear + Translation)
Let 
In other words, an affine transformation can be written as a linear transformation followed by a translation and vice-versa.
Proof. Define:
Notice that 
We need to show that
We shall show it in two steps.
Show that if
 is affine, then must be linear.Show that if
 is linear, then must be affine.
Assume 
Let 
[Scalar multiplication]
[Vector addition]
Thus, 
Now, assume 
Let 
Thus, 
4.14.13.2. Affine Combinations and Hulls#
We show that affine functions distribute over arbitrary affine combinations.
Theorem 4.194 (Affine functions on affine combinations)
Let 
Let 
Proof. Define:
We know that 
Now,
Theorem 4.195 (Preservation of affine hulls)
Let 
i.e., the affine hull of 
Proof. We first show that 
Let
 .Then, there exist
 and such that andBut then,
 for some for every since .Then, due to Theorem 4.194
since
 preserves affine combinations.But,
 since and is their affine combination.Thus,
 where .Thus,
 .Thus,
 .
We now show that 
Let
 .Then, there exists
 such that .Then, there exist
 and such that andThen, due to Theorem 4.194
since
 preserves affine combinations.Let
 for .Since
 , hence .Then,
But then,
 is an affine combination of points in .Thus,
 .Thus,
 .
Combining these results:
4.14.13.3. Invertible Affine Transformations#
Theorem 4.196 (Affine invertible = linear invertible)
An affine map is invertible if and only if its corresponding linear map as described in Theorem 4.193 is invertible.
The translation map is invertible. Composition of invertible maps is invertible. Since affine is composition of linear with translation hence affine is invertible if linear is invertible. Similarly, linear is also a composition of affine with translation. Hence, linear is invertible if affine is invertible.
Proof. Formally, let 
Let 
Define a parameterized translation map 
Note that the inverse of the translation operator is given by:
which is another translation operator. Thus, all translation operators are invertible.
Then,
Clearly, if 
Theorem 4.197 (Inverse of affine map is affine)
Let 
Proof. We are given that 
Since 
Let
 and .Then, there exist
 such thatand
 .Since
 , hence and .Let
 and .Then
since
 is affine.Thus,
 .Consequently,
 .But then,
We have shown that for any 
Therefore, 
4.14.13.4. Affine Mapping between Affine Sets#
Theorem 4.198 (Affine mapping between affine independent sets)
Let 
Proof. If 
where 
By Theorem 4.179, we can
extend 
Both of these sets span the entire 
The sets 
Then, there exists a unique linear transformation 
Now, consider the affine map given by
where 
Then,
Thus, 
If 
Corollary 4.33 (Affine mapping between affine sets)
Let 
Proof. If both 
where 
For 
as per Theorem 4.178.
Then, by Theorem 4.198,
an affine mapping 
4.14.13.5. Graph#
Theorem 4.199 (Graph of an affine map is affine)
Let 
Let 
Then, 
In other words, graph of an affine map is affine.
Proof. If 
Now, let 
 such that . such that .Let
 .Then,
Since
 is affine, henceThus,
 .Thus,
 is closed under affine combinations.Thus,
 is affine.
As an implication, we can see that the graph of a linear
map must be an affine set too since every linear map
is an affine map. But a linear map maps 
4.14.14. Topology in Normed Spaces#
We next consider the special case of a vector space 
Readers are encouraged to review the material in Normed Linear Spaces before proceeding further as the results presented here develop on the material presented in that section.
Our discussions are restricted to finite dimensional normed linear spaces as linear subspaces are closed (Theorem 4.64) and linear transformations are continuous (Theorem 4.63) in the finite dimensional spaces.
4.14.14.1. Affine Sets#
Theorem 4.200 (Affine sets are closed)
Every affine subset of a finite dimensional
normed linear space 
Proof. 
All other affine sets are translations of a linear subspace.
By Theorem 4.64, linear subspaces are closed in a finite dimensional normed linear space.
By Theorem 4.46, translations preserve closed sets.
Hence, affine sets of dimension greater than zero which are translates of the linear subspaces are also closed.
Theorem 4.201
Every proper affine subspace of a normed linear space 
Proof. We proceed as follows:
By Corollary 4.10, every proper linear subspace of
 has an empty interior.A proper affine subspace is a translate of a proper linear subspace.
By Theorem 4.46, if a set has an empty interior, then so does its translate.
Theorem 4.202 (Affine hull and closure)
Let 
Proof. Since 
Let
 .By Theorem 4.200,
 is closed.By definition
 is the smallest closed set that contains .By Proposition 3.6, any closed set that contains
 also contains .Thus,
 .Now,
 is an affine set.By definition, the affine hull is the smallest affine set that contains a set.
Hence,
 .
Together, we have:
4.14.14.2. Affine Transformations#
Theorem 4.203 (Affine transformations from finite dimensional spaces are continuous)
Let 
If 
Proof. We can write 
By Theorem 4.63, the linear transformation is continuous since
 is finite dimensional.By Theorem 4.45, translations are continuous.
By Theorem 3.46, composition of continuous functions is continuous.
Hence,
 is continuous.
Theorem 4.204 (Affine transformation and closure)
Let 
Assume that 
Recall from Definition 3.64 that a real valued function is closed if every sublevel set is closed.
Theorem 4.205 (Real valued affine functions are closed)
Let 
Proof. 1. By Theorem 4.203,
Let
 .The sublevel set for
 is given by .This is nothing but
 .The set
 is a closed set.Since
 is continuous, hence is also closed.Thus,
 is closed for every .Thus,
 is closed.
4.14.14.3. Affine Homeomorphisms#
Theorem 4.206
Let 
Proof. We proceed as follows:
By Theorem 4.203,
 is continuous.Since
 is bijective, hence, exists.By Theorem 4.197,
 is affine.Again, by Theorem 4.203,
 is continuous.Thus,
 is a homeomorphism.
Theorem 4.207
Let 
In other words, for any 
Proof. By Theorem 4.206,
By Theorem 3.51, homeomorphisms preserve closures.
Thus, for any 
Theorem 4.208
Let 
In other words, for any 
Proof. By Theorem 4.206,
By Theorem 3.52, homeomorphisms preserve interiors.
Thus, for any 
4.14.15. Real Valued Affine Functions#
In this subsection, we look at affine functions from
a vector space 
Theorem 4.209 (Level sets of real valued affine functions)
Let 
Proof. We are given that 
Let
 .If
 is empty, then it is affine and there is nothing to prove. So assume that it is nonempty.Let
 .Thus,
 .Let
 .Let
 .Then, by affine nature of
Thus,
 .Thus, for any
 and , .Thus,
 is an affine set.