Zum Inhalt springen

Cosets of a subspace

Aus Wikibooks

Derivation: coset or affine subspace

[Bearbeiten]

Lines in 2

[Bearbeiten]

You probably already know the concept of a straight line. But how do we describe a line in 2 mathematically? You know from school that you can parameterise straight lines by v+tu, where v,u2,u0 are two fixed vectors and t takes all values in . That is, all points on the straight line form the set G:={v+tut}. Geometrically described, this is the (infinitely long) line running through v in the direction of u.

An affine line is described by the support vector v and the direction vector u.

In general, a line does not pass through the origin (0,0). Thus G is not a subspace of 2, since by definition every subspace contains the origin. However, the line G is a displaced version of the line U:={tut} by the vector v. Here U is a line passing through the origin. This is a subspace because it contains the origin and is closed under addition and scalar multiplication. That is, every straight line is given by the choice of a (one-dimensional) subspace U2 and a vector v2. This justifies the notation G=v+U. This notation can also be formalised:

For a subspace W consider a vector v. Let v+W be by v+W:={v+wwW}. Then the following applies for the sets G and U defined above, that G={v+tut}={v+wwU}=v+U.

Planes in 3

[Bearbeiten]

Let's increase the dimension and consider 3. We can describe a line in analogy to the set G:={v+tut} with vectors v and u3,u0. This is a displaced version of a line through the origin by a vector v. So formally again, any line is of the form v+U for a vector v3 and a one-dimensional subspace U3.

What about the planes in 3? We parameterise them by v+t1u1+t2u2, where v,u1,u23 are fixed vectors and t1,t2 pass through all values in . The vectors u1 and u2 must not be scalar multiples of each other - otherwise we would get a line. All points on the plane form the set E:={v+t1u1+t2u2t1,t2}. As in the case of lines, the plane E is generally not a subspace, since the origin need not lie in E. However, the plane is a displaced version of the subspace U:={t1u1+t2u2t1,t2} by the vector v. It is therefore analogously true that every plane is given by a two-dimensional subspace and a vector, i.e. that E=v+U.

An affine plane is described by the support vector v and the direction vectors u_1 and u_2.

Lines in (/5)2

[Bearbeiten]

We can also look at certain straight lines in a more complicated space: We consider the /5-vector space (/5)2. In the article vector space we have already seen that we can think of this vector space as regular points on a torus. Now what is a "straight line" on this torus? We have seen in the previous two sections how we can describe straight lines in the vector spaces 2 and 3: There a straight line is the same as a set G={v+tut} with a support vector v and a direction vector u. In other words, it is the set G=v+U, where U={tuu} is a one-dimensional subspace. We can transfer this construction to (/5)2, that is, we can consider a straight line as G=v+U, where U is a one-dimensional subspace of (/5)2. That is, G is of the form G={v+tut/5}. We can visualise this set on a torus:

points of an affine line in (Z/5Z)^2 on a torus
points of an affine line in (Z/5Z)^2 on a torus

The points appear to lie on a line. If we connect the points each in the shortest way, we get a closed line that feels like a straight line on the torus.

Points of an affine straight line in (Z/5Z)^2 on a torus, connected by a line
Points of an affine straight line in (Z/5Z)^2 on a torus, connected by a line

Thus, displaced one-dimensional subspaces also correspond to straight lines here.

We consider another example of a straight line in (/5)2. Consider the one-dimensional subspace U:={n(1,1)n/5}. We shift this by the vector (2,0)(/5)2. Thus we obtain the line G:=(2,0)+U. Here a line consists of only five vectors. In our case G={(2,0),(3,1),(4,2),(0,3),(1,4)}.

We have characterised geometric objects (e.g. lines and planes) as displaced subspaces in various vector spaces. Let's give them a name.

Definition: coset or affine subspace

[Bearbeiten]

Definition (Affine subspace or coset)

Let V be a K-vector space and U a subspace of V, so UV. Further let vV. Then, the set v+U:={v+uuU} is called the affine subspace or coset obtained by translating U by the vector v.

Derivation: set of cosets of a subspace

[Bearbeiten]

We have defined cosets as displaced subspaces. Consider the following example of a displaced subspace U of 2 by two different vectors v and v:

Different displacements of a subspace leading to the same affine subspace
Different displacements of a subspace leading to the same affine subspace

In the example above, we see that different displacements of a subspace can lead to the same affine subspace. So we ask ourselves the following question:

When are two shifted subspaces v+U and v+U the same?

Let us first imagine the whole thing in 2, where both shifted subspaces are lines. If they are equal, they have the same slope. This characterises the lines passing through the origin U and U. It follows that U and U must be equal.

Let us now consider the question for general vector spaces. So let V be a vector space, U,UV be subspaces of vectors, v,vV be vectors, and let v+U=v+U be sets. We would like to first conclude (as in 2) that U=U. To do this, it would be nice to get U from v+U. This is done by taking all vectors of v+U and subtracting v , which indeed gives us U . Hence, we can write U as:

U={wvwv+U} v+U=v+U={wvwv+U} wv+UuU:w=v+u={v+uvuU}=(vv)+U

Since U is a subspace, we have 0U. The above equation thus implies 0(vv)+U, i.e., there is a uU, such that (vv)+u=0, i.e., vv=u. In particular, vvU.

More generally, for each subspace W and vector wW, we have w+W=W. The reason is that each wW can be written as w=w+(ww). Since wwW , we have ww+W. Geometrically, you can also imagine the whole thing like this: If you move the subspace W in a direction in which it already lies, it is mapped onto itself.

Back to our original question: Since vvU , we know that (vv)+U=U. So all in all we get the desired U=U. On the way we have also seen that vvU=U is also a necessary criterion for v+U=v+U.

Are these criteria also sufficient? Yes: Suppose we have v,vV and U,UV with U=U and vvU=U . Then U=U=(vv)+U and hence, by adding v on both sides, we have v+U=v+U.

Let us summarise: Two shifted subspaces v+U,v+U are equal exactly if the (non-shifted) subspaces are equal, i.e. U=U, and the difference of the shifts lie in U , i.e., vvU.

Given a subspace, we can now find out whether two displacements by v or v give the same affine subspace. We can thus construct a kind of "new equality" by considering v and v to be "equal" if they produce the same affine subspace. Such new equalities behave reasonably if they are equivalence relations.

Recall the definition of an equivalence relation.

Definition (Equivalence relation)

An equivalence relation is a homogeneous binary relation on a basic set that has the following properties:

  • reflexive
  • symmetric
  • transitive

Two elements that are in relation with respect to an equivalence relation are called equivalent. If two elements x and y are equivalent to each other with respect to an equivalence relation R, one often writes xRy or simply xy.

To formally write down the "new equality" mentioned above, we define a relation given by vv:v+U=v+UvvU. Intuitively, our relation should be an equivalence relation, since it says when two shifted subspaces are equal. We now check this formally:

Theorem ( is an equivalence relation)

The relation defined by vwvwU is an equivalence relation. This means that the relation is reflexive, symmetrical and transitive.

How to get to the proof? ( is an equivalence relation)

To show the assertion, we need to verify the three axioms of an equivalence relation: reflexivity, symmetry and transitivity. For reflexivity, we have to show for all vV that vv is satisfied. By definition of we must show that vvU. Now vv=0 and U is a subspace. Therefore vv=0U and hence reflexivity holds.

For transitivity and symmetry we proceed in the same way: we insert the definition and infer the desired property from the fact that U is a subspace.

Proof ( is an equivalence relation)

Proof step: Reflexivity

Since U is a subspace, we have 0U. For an arbitrary vector vV we have 0=vvU. By definition of the relation, it follows that vv for all vV.

Proof step: Symmetry

We want to show that from vw we can infer wv . So let vw. Therefore, vwU. As U is a subspace, U must be closed under taking inverses. So (vw)U. But this is equivalent to wvU. Hence, wv.

Proof step: Transitivity

Finally, we need to show that from vw and wz we get vz. So let vw, i.e., vwU, and wz, i.e., wzU. Since U is a subspace, U must be closed under addition. So in particular (vw)+(wz)U. As vw+wz=vz we also havevzU and hence vz.

We can now consider the equivalence classes of this relation, that is, to vV we consider the set [v]:={wVvw}. So the set[v] consists of all vectors w, that displace U to the same affine subspace v+U. How else can we characterise these equivalence classes? We have

[v]={wVvw}={wVvwU}={v+uuU}=v+U

That is, the equivalence classes of our relation are precisely the coset classes.

Just as we can look at an equivalence relation and its equivalence classes, we can also construct a space in which the "new equality" of the equivalence relation becomes a real equality. This is the set of equivalence classes to which we now want to give a special name.

Definition: set of cosets of a subspace

[Bearbeiten]

Definition (Set of cosets of a subspace)

Let V be a K-verctorspace and U a subspace of V, so UV. Further, let v,wV. Define vw:vwU. Then, is an equivalence relation on V and the Equivalence class of an element vV is the set v+U. We call this the coset generated by v with respect to U.

We define

V/U:={v+UvV}

to be the set of cosets of U.


We have defined the set of cosets V/U as the set of equivalence classes according to . In the last section we saw that the equivalence class generated by vV is given exactly by the affine subspace v+U. Thus an equivalence class with respect to is the same as a displaced version of U. This provides two equivalent views of the set V/U: on the one hand, V/U is the set of equivalence classes with respect to ; on the other hand, it is the set of displaced versions of U.

Hint

Depending on which of the two interpretations of the elements of V/U one uses, one uses different names for the elements v+U of V/U. If one uses the equivalence relation to divide the elements of V into different sets, one speaks of cosets. If, on the other hand, one considers a displacement of U, one speaks of an affine subspace.

Examples for cosets

[Bearbeiten]

Example (Physics: Change of potential energy)

We consider the three-dimensional space with a gravitational field on it, with a positive gravitational constant g.As coordinates, we use x1, x2 and x3. Such a space can be, for example, the room where you are reading this article. We put our origin at some point on your table, so we define the potential energy at that point as 0. From that point, you can move an object to different points, assigning to each of those destination points the potential energy of a point particle we move there, which depends only on its height above the table. We can also take it to mean that we want to assign to each movement from the origin its change in potential energy. Let the table in our consideration be within the x1-x2- plane. The potential energy of a particle or the change of the potential energy by a movement from the origin to (x1,x2,x3)T is thus:

Epot=mgx3

We want to classify the possible rectilinear displacements from the origin based on their change in potential energy, and call two displacements equivalent if their change in the potential energy of a point particle matches. We want to group displacements into one class that change the potential energy in the same way. The mass, as well as the gravitational constant, are given for our point particle. Therefore, two displacements under consideration have the same potential energy if they have the same change in height. The displacements are therefore in the same class if their x3-value matches.

Let us now abstract our illustrative example. Our space is the -vector space 3. Mathematically, displacements from the origin are described by vectors. Displacements that cause the same change in potential energy for a point particle move it from the origin in 3 to the same plane parallel to the x1-x2 plane, since exactly the point particles on this plane have the same potential energy. For a given change in potential energy, we can choose any of the vectors causing such a change as representatives.

In the chapter on subspaces we have already seen that the x1-x2-plane is a subspace U of 3. In our physical example, we saw that planes shifted along the x3- axis were equivalence classes with respect to the change of potential energy. These classes are also called cosets.

Example (Finance: Change in the balance of two accounts)

Let us assume that each person always has exactly two bank accounts. Now we want to know how much money each person has in total. So we are interested in the sum of all the money each person has in their bank accounts. We look at the two bank accounts that Anna has. In these she has saved amounts of A1 and A2 respectively. So the total money saved by Anna is A1+A2.

Let us now consider two people, Emma and Fritz. Emma has on her accounts E=(E1,E2)T. Fritz has on his accounts F=(F1,F2)T. Emma and Fritz therefore have exactly the same amount of money if E1+E2=F1+F2. We call the pairs of accounts (E1,E2)T and (F1,F2)T equivalent if there is the same amount of money on them, i.e. if E1+E2=F1+F2.

With this definition, the following pairs of accounts are equivalent, for example:

(700300) and (900100).

The reason is 700+300=1000=900+100.

The two accounts of Emma and Fritz are therefore equivalent if E1+E2(F1+F2)=0, i.e., E1F1+E2F2=0. We define the difference of the vectors E and F as

(xy):=(E1F1E2F2).

The vectors E and F are equivalent if and only if x+y=0.

In other words, the sum of the funds from two accounts is given by the following linear map:

f(xy)=x+y

Thus the kernel of f is the set of pairs of accounts whose sum is zero. So two pairs of accounts are equivalent if they differ only by a vector of ker(f). We can further transform the kernel of f:

ker(f)={(xy)|x+y=0}={(aa)|a}=span({(11)}).

The equivalence classes with respect to the sum of the account balances are thus exactly the coset classes modulo the subspace U:=span({(1,1)T}). All cosets are of the form

(a0)+U

with a.

We can also think of it like this: We want to look at the summed balance of the two accounts. In the process of summation, information on the single accounts is lost. We still know how much money a person has in total, but no longer how the money is distributed between the two accounts.

Example (Two switches for one light source)

We consider the following scenario: A hallway has two light switches, both of which are to control the ceiling lamp. For this purpose, one can use a multiway switching. We want to model the behaviour of this circuit using vector spaces.

A light switch that points upwards.

We start with the light switches. Every light switch has two states: it points either up or down. So we can model it with 𝔽2=/2. The 0 stands for the light switch in the upper position and the 1 for the light switch in the lower position. When you flip the light switch, the state changes from 0 to 1 or from 1 to 0 – depending on the current position of the light switch. This change of state corresponds to the mathematical operation +1 within the field 𝔽2.

Now that we know how to model a light switch and the flipping of a light switch, we process all the input data of the multiway switching: these are the two light switches. We have four states, as each light switch has the state up (0) and down (1). Thus 𝔽22 is a suitable vector space for modelling the states. The state of the first light switch is given by the first component and the state of the second one by the second component. In this modelling, flipping the first light switch then corresponds to +(1,0)T and flipping the second light switch corresponds to +(0,1)T. If both light switches are in the upper position (this corresponds to (0,0)T) and we flip the first light switch, we arrive at the state (0,0)T+(1,0)T=(1,0)T.

In order to extract the information from this model as to whether the lamp is on or off, we must first understand this circumstance with the multiway switching. The toggle switch allows us freedom at this point: We can build it in such a way that both switches have to be in the same position for the lamp to be on. We can also build it such that the lamp is on when the two switches are in different positions. For this example, we consider the case where the lamp is on exactly when both switches are in different positions. Thus we identify the states (1,0)T and (0,1)T with a lamp being on. We identify the other states (0,0)T and (1,1)T with a switched-off lamp. The latter form a subspace U:={(0,0)T,(1,1)T}𝔽22. If we shift this by (1,0)T or (0,1)T, we get the states of a switched-on lamp (1,0)T+U. These are all cosets of U in 𝔽22. Thus we can summarise the alternating switch situation as follows: Given a switch state v𝔽22, we get the information whether the lamp is on by determining the coset generated by v in 𝔽22/U. If this is U, the lamp is off. If it is (1,0)T+U, the lamp is on.

With this understanding of the lamp state, we can also describe the influence that flipping a switch has. Each of the operations +(1,0)T and +(0,1)T affects the lamp states 𝔽22/U by changing the state of the lamp. If the lamp is in the off state U and the second switch is flipped with +(0,1)T, it is then in the on state (0,1)T+U=(1,0)T+U. If the first switch is now flipped, the lamp changes back to the switched-off state. Mathematically, this is represented by (1,0)T+((0,1)T+U))=(1,1)T+U=U.

Properties of equivalence classes applied to cosets

[Bearbeiten]

We have seen above that cosets of a one-dimensional subspace in 2 are parallel straight lines. We can also explain this by characterising cosets as equivalence classes: Two equivalence classes, as sets, are either equal or disjoint. For us, this means that two cosets, i.e. two straight lines, are either equal or that they have no point of intersection. The latter means that they are parallel.

Furthermore, we know about equivalence classes that they cover the whole space, i.e. the union of all equivalence classes results in the whole set. From this we conclude that the union of all cosets (in our case parallel straight lines) gives the whole 2. We can therefore decompose the vector space into the cosets - like leaves. This decomposition is also called a partition. So the cosets partition the vector space. In our example, this means that we can decompose the 2 into displaced versions of an origin line U. This is illustrated in the following picture:

V=\R ^2 is partitioned by a line
V=\R ^2 is partitioned by a line

Both points mentioned also work in general (not only in 2), since we have not used any property of 2 in any of our arguments. It is therefore true for a vector space V and a subspace U that:

V is the union of the cosets U and any two cosets are disjoint.

Outlook

[Bearbeiten]

Cosets occur when solving systems of linear equations: The solutions of the associated homogeneous system of equations U form a subvector space. If the linear system of equations has a solution, the solutions form an affine subspace with respect to U.

To-Do:

Set a link as soon as the article on solving linear systems of equations is written..