 # 14. Affine subspaces of a linear space

### Affine subspaces of a linear space

Till now we have dealt with linear spaces, in particular in all our lines, planes and other subspaces the zero vector was always included. But obviously it makes sense to study also such spaces but translated from zero by a given vector. Such subspaces (are no longer linear) are called affine subspaces of a linear space. The term hyperplane is used to describe affine subspaces of dimension one less then the whole linear space we work in.

So if is a linear subspace and is a vector, then (meaning subspace translated by ), is an affine subspace. The space will be called the tangent space (or the direction) to and denoted by (or ).

An affine subspace of a linear space can be described in the following ways:

• giving a vector and its direction, e.g.: .
• giving points it goes through (we need one point more then the dimension of considered subspace), e.g.: (sometimes denoted by ).
• giving a parametrization, e.g..: • giving a system of linear equations, e.g.: As usually we would like to be able to change the form of description.

### A vector with a the tangent space and a set of points

Given a translation vector and the tangent space, we can easily get the points, which are included in the considered affine subspace. E.g. if , it can be also defined as the only affine subspace including points: .

Reversely, if H goes through: , choose one of those points as a translation vector, and we get that .

### A translation vector with the direction and parametrization

Given a translation vector and vectors spanning the tangent space we can easily get a parametrization. E.g. if , then every vector of is of form , so .

Reversely, given we know that all the vectors of are of form , so .

### From a translation vector and the direction to a system of linear equations

The system of linear equations describing a given affine subspace differ from the system of equation describing its tangent space only by the column of free coefficients (because the difference between two points from always is in , so the difference of two solutions of the system of linear equations we are looking for is a solution of the system of linear equations describing the tangent space) — and in the second space we have an uniform system which we already know how to find. Therefore start with finding the system describing . For example, let . First find the system describing — we already know how to find such a system and so is given by: The given translation vector has to be a solution of the system we are looking for, so we have to choose the free coefficients in such a way that it will be true. So we can simply substitute the translation vector into the left sides of the equations: . Therefore, the system of equations we are looking for is the following: ### From a system of equations to a parametrization

Notice, that simply given a system of equations for , its general solution is a parametrization of !

### Projections and reflections with respect to affine subspaces

How to calculate a projection of a vector onto an affine subspace and its image under reflection with respect to such a subspace? Simply bring it to the know case of linear subspaces, calculate, and go back to the initial setting. In other words translate everything to make the considered affine subspace go through zero, calculate the projection and translate everything backwards.

E.g. let us calculate the projection of onto . First we calculate the projection of onto : And translate this projection backwards, so the final result is: .