1.2  Subspaces

After defining a structure, the next step is to look at the smaller copies of it that sit inside. In the previous section we showed three times, for F[x]≤n, Q(2) and the solutions of f″+f=0, that a subset of a known vector space is itself a vector space, and each time the same few checks did the work. This section turns that pattern into a theorem, the subspace test, and makes its three checks a routine we will use for the rest of the book.

1.2.1. Spaces inside spaces

Consider the set P={(x,y,z)∈R3:x+y−z=0}, a plane through the origin in R3. It contains (1,0,1) and (0,1,1), and also their sum (1,1,2), since 1+1−2=0. Stretching a vector of P keeps it in the plane. So P, with the addition and scalar multiplication of R3, looks like a vector space in its own right.

To prove it we could check all eight axioms again. That is wasteful, and the previous section already showed why. The axioms (VS1), (VS2) and (VS5)–(VS8) are equations that hold for all vectors of R3, so they hold in particular for the vectors of P. What can go wrong is different: a sum or a multiple might leave P, and the zero vector or an additive inverse might not lie in P. The question of this section is which of these checks are really needed.

A subspace is a subset that is a vector space in its own right, using the same addition and scalar multiplication.

Definition 1.2.1 (Subspace)

Let V be a vector space over F. A subset U⊆V is a subspace of V if U is itself a vector space over F when it is given the addition and the scalar multiplication of V.

For that sentence to make sense, U must first be closed under those two operations: u+w∈Uandau∈Ufor all u,w∈U and all a∈F.

In words: take the plus and the dot that V already has, use them only on vectors of U, and ask whether U is a vector space with them. Nothing new is defined; U borrows everything from V. The displayed condition is what makes the borrowing possible, because an operation on U must land in U: if u,w∈U but u+w∉U, then addition is not an operation on U at all, and the question of the axioms never arises. Once the condition holds, the eight axioms are asked of U exactly as they were asked of V in the previous section. In particular U must contain a zero vector of its own, and every vector of U must have an additive inverse lying in U. The field does not change: a subspace of a space over F is again a space over F.

Two words of the definition carry all the weight. Itself a vector space is the whole content. The same operations is what distinguishes a subspace from a subset that merely happens to be a vector space under some other rule: R>0 with the operations of Example (Positive Reals with Exotic Operations) is a vector space and a subset of R, but it is not a subspace of R, because those are not the operations of R.

There is a question hidden in “a zero vector of its own”. Could U have a zero vector different from the zero vector of V? The proof of the subspace test below shows that it cannot.

The two extreme cases come first.

Example (Trivial Subspaces)

Let V be a vector space over F. Show that V and {0} are subspaces of V, and that the empty set ∅ is not.

Solution. For V itself, the restricted operations are the operations of V, and V is a vector space by assumption.

For {0}, the only sum is 0+0=0 by (VS3), and a0=0 for every a∈F by Theorem 1.1.6. So both operations stay in {0}, and {0} with them is the zero space, a vector space as noted in the previous section.

For ∅, axiom (VS3) demands that some element 0 exists in the set. The empty set has no elements, so (VS3) fails and ∅ is not a subspace.

The subspace {0} is the zero subspace. A subspace other than V is called proper. The zero subspace is small, but it is the answer to many questions later: the solutions of a system with only the trivial solution, or the intersection of two lines through the origin that are not equal.

1.2.2. The subspace test

The following theorem says that three checks suffice. Two of them are the closure conditions of the definition, and the third replaces all of the axioms.

Theorem 1.2.1 (Subspace Test)

Let V be a vector space over F and let U⊆V. Then U is a subspace of V if and only if the following three conditions hold.

  • (1) 0∈U, where 0 is the zero vector of V.
  • (2) U is closed under addition: u+w∈U for all u,w∈U.
  • (3) U is closed under scalar multiplication: au∈U for all a∈F and u∈U.

Idea. Sort the eight axioms into two kinds. Six of them, (VS1), (VS2) and (VS5)–(VS8), say “an equation holds for all vectors”; they are true in V, so they are automatically true for the fewer vectors in U. The other two, (VS3) and (VS4), say “there exists a vector”, and a witness must be found inside U. Condition (1) supplies the zero. For inverses, the results of the previous section give −u=(−1)u, so closure under scaling supplies them for free. For (⇒), the only non-obvious point is that the zero vector of U is the zero vector of V; cancellation in V settles it.

Proof. (⇒) Suppose U is a subspace of V. Conditions (2) and (3) are the closure condition of Definition 1.2.1. By (VS3) in U, there is z∈U with u+z=u for every u∈U; in particular z+z=z. By (VS3) in V, also z+0=z. Hence z+z=z+0, and Theorem 1.1.1 in V gives z=0. Therefore 0∈U, which is (1).

(⇐) Suppose (1), (2) and (3) hold. By (2) and (3), addition and scalar multiplication of V restrict to functions U×U→U and F×U→U. We check the axioms for U with these operations.

  • (VS1), (VS2), (VS5), (VS6), (VS7) and (VS8) state that certain equations hold for all vectors and scalars. They hold for all vectors of V, since V is a vector space, so in particular for all vectors of U.
  • (VS3): by (1), 0∈U, and u+0=u for every u∈U by (VS3) in V.
  • (VS4): let u∈U. By (3), (−1)u∈U. By Theorem 1.1.7, (−1)u=−u, so u+(−1)u=0. Thus u has an additive inverse in U.

Hence U is a vector space over F with the operations of V, that is, a subspace of V.

From now on we never check eight axioms for a subset of a known vector space. We check three things, always in the same order and with the same wording. This is the first named move of the chapter.

The three-check move. To show that a subset U of a vector space V is a subspace:

  • make sure U is a subset of V (what are its elements, and do they lie in V?);
  • (1) Zero vector. Show 0∈U by checking that 0 satisfies the condition defining U. End with “Therefore 0∈U.”
  • (2) Closed under addition. Let u,w∈U. Write down what membership in U means for each, then regroup u+w so that those conditions appear. End with “This shows that U is closed under addition.”
  • (3) Closed under scalar multiplication. Let a∈F and u∈U, and do the same for au. End with “This shows that U is closed under scalar multiplication.”
  • Conclude: “Hence U is a subspace of V by the subspace test (Theorem 1.2.1).”

To show that U is not a subspace, one failure suffices. Check (1) first, since it is the cheapest, and if it holds, look for a concrete pair of vectors or a concrete scalar that leads out of U.

Remark. Condition (1) may be replaced by “U is non-empty”. Indeed, if U contains some u, then (3) gives 0u∈U, and 0u=0 by Theorem 1.1.5. We still prefer (1): the zero vector is the easiest element to test, and when it is missing we have a refutation in one line.

Warning. The empty set is never a subspace. It is tempting to check only (2) and (3). But ∅ satisfies both, vacuously: there are no vectors in it to add or scale. It fails only (1). So whichever version of the test you use, do not skip the first condition, and remember that “0∈U” and “U is non-empty” are interchangeable only in the presence of (3).

1.2.3. Examples: the three-check move

Every example below follows the move exactly. The first is the model.

Example (A Line through the Origin)

Show that U={(x,y)∈R2:x+2y=0} is a subspace of R2.

Solution. By definition, U is a subset of R2.

(1) Zero vector. The zero vector (0,0) satisfies 0+2⋅0=0. Therefore 0∈U.

(2) Closed under addition. Let u=(x1,y1) and w=(x2,y2) be in U, so that x1+2y1=0 and x2+2y2=0. Then u+w=(x1+x2,y1+y2), and (x1+x2)+2(y1+y2)=(x1+2y1)+(x2+2y2)=0+0=0. Therefore u+w∈U. This shows that U is closed under addition.

(3) Closed under scalar multiplication. Let a∈R and u=(x,y)∈U, so that x+2y=0. Then au=(ax,ay), and ax+2(ay)=a(x+2y)=a⋅0=0. Therefore au∈U. This shows that U is closed under scalar multiplication.

Hence U is a subspace of R2 by the subspace test (Theorem 1.2.1).

Change the right-hand side from 0 to 3, and everything breaks.

Example (A Line Missing the Origin)

Show that L={(x,y)∈R2:x+2y=3} is not a subspace of R2.

Solution. Condition (1) fails: the zero vector has 0+2⋅0=0≠3, so 0∉L. By the subspace test (Theorem 1.2.1), L is not a subspace of R2.

The other two conditions fail as well, as we saw in the previous section: (3,0)+(1,1)=(4,1)∉L, and 2(3,0)=(6,0)∉L. One failure is enough, though, and (1) is the cheapest to find.

Diagram. Labels: x, y, x + 2y = 0, x + 2y = 3, mathbf 0

The solid line U passes through the origin; the dashed line L is parallel to it and misses the origin. The line L is a translate of a subspace, a kind of set we will study in Chapter 4, but it is not a subspace.

The line U is the set of solutions of one homogeneous equation. The same three checks work for any number of homogeneous equations, written as one matrix equation.

Example (Solutions of a Homogeneous System)

Let A∈Mm×n(F). Show that N={x∈Fn:Ax=0} is a subspace of Fn.

Solution. By definition, N is a subset of Fn. Recall that Fn=Mn×1(F), so Ax∈Fm is a matrix product, and we may use Theorem 0.9.4.

(1) Zero vector. By the zero rule of Theorem 0.9.4, A0=0, where the first 0 is the zero column in Fn and the second is the zero column in Fm. Therefore 0∈N.

(2) Closed under addition. Let x,y∈N, so that Ax=0 and Ay=0. By distributivity (Theorem 0.9.4), A(x+y)=Ax+Ay=0+0=0. Therefore x+y∈N. This shows that N is closed under addition.

(3) Closed under scalar multiplication. Let a∈F and x∈N. By the scalar rule of Theorem 0.9.4 and Theorem 1.1.6 in Fm, A(ax)=a(Ax)=a0=0. Therefore ax∈N. This shows that N is closed under scalar multiplication.

Hence N is a subspace of Fn by the subspace test (Theorem 1.2.1).

With A=(12) and F=R, this is Example (A Line through the Origin) again, and with A=(11−1) it is the plane P from the start of the section. The word homogeneous (right-hand side 0) is essential: Example (A Line Missing the Origin) is a system with right-hand side 3. This subspace will be called the null space of A in Chapter 3.

Next, polynomials. The pair “degree at most n” and “degree exactly n” is another minimal change. The previous section checked the first of them by hand; here it is as a three-check move.

Example (Polynomials of Bounded Degree)

Let n∈N. Show that F[x]≤n is a subspace of F[x].

Solution. By Definition 0.8.4, F[x]≤n is a subset of F[x].

(1) Zero vector. The zero polynomial has degree −∞≤n (Definition 0.8.3). Therefore 0∈F[x]≤n.

(2) Closed under addition. Let p,q∈F[x]≤n, so that deg⁡p≤n and deg⁡q≤n. By Theorem 0.8.2, deg⁡(p+q)≤max(deg⁡p,deg⁡q)≤n. Therefore p+q∈F[x]≤n. This shows that F[x]≤n is closed under addition.

(3) Closed under scalar multiplication. Let c∈F and p=a0+a1x+⋯+anxn∈F[x]≤n. Then cp=ca0+ca1x+⋯+canxn, whose coefficients of xk for k>n are all 0. So deg⁡(cp)≤n, and therefore cp∈F[x]≤n. This shows that F[x]≤n is closed under scalar multiplication.

Hence F[x]≤n is a subspace of F[x] by the subspace test (Theorem 1.2.1).

Example (Polynomials of Exact Degree)

Let n∈N. Show that F[x]=n is not a subspace of F[x].

Solution. Condition (1) fails: the zero polynomial has degree −∞≠n, so 0∉F[x]=n. By the subspace test (Theorem 1.2.1), F[x]=n is not a subspace of F[x].

Even if we added the zero polynomial by hand, condition (2) would still fail for n≥1: the polynomials xn+1 and −xn have degree exactly n, but their sum is the constant 1, of degree 0. The leading terms cancel, and nothing in “degree exactly n” prevents it.

The same move works in function spaces. Here the facts we need come from calculus.

Example (Differentiable Functions)

Let D be the set of differentiable functions R→R. Show that D is a subspace of RR.

Solution. Every element of D is a function R→R, so D⊆RR.

(1) Zero vector. The zero vector of RR is the zero function (Example (The Standard Vector Spaces)), which is constant and hence differentiable. Therefore 0∈D.

(2) Closed under addition. Let f,g∈D. By the sum rule of calculus, f+g is differentiable, with (f+g)′=f′+g′. Therefore f+g∈D. This shows that D is closed under addition.

(3) Closed under scalar multiplication. Let a∈R and f∈D. By the constant multiple rule, af is differentiable, with (af)′=af′. Therefore af∈D. This shows that D is closed under scalar multiplication.

Hence D is a subspace of RR by the subspace test (Theorem 1.2.1).

The same three checks show that the continuous functions R→R form a subspace of RR, and that D is a subspace of it. A subspace of a subspace is a subspace, since the operations are the same throughout.

Finally, two families of matrices. Each uses one rule from Chapter 0 for all three checks.

Example (Symmetric Matrices)

Show that the set S={A∈Mn(F):A⊤=A} of symmetric matrices (Definition 0.9.11) is a subspace of Mn(F).

Solution. By definition, S is a subset of Mn(F).

(1) Zero vector. Every entry of the zero matrix is 0, so (0)ji=0=(0)ij for all i,j, and the zero matrix is symmetric. Therefore 0∈S.

(2) Closed under addition. Let A,B∈S, so that A⊤=A and B⊤=B. By Theorem 0.9.5, (A+B)⊤=A⊤+B⊤=A+B. Therefore A+B∈S. This shows that S is closed under addition.

(3) Closed under scalar multiplication. Let c∈F and A∈S. By Theorem 0.9.5, (cA)⊤=cA⊤=cA. Therefore cA∈S. This shows that S is closed under scalar multiplication.

Hence S is a subspace of Mn(F) by the subspace test (Theorem 1.2.1).

Example (Trace-Free Matrices)

Show that the set T={A∈Mn(F):trA=0} of trace-free matrices is a subspace of Mn(F).

Solution. By definition, T is a subset of Mn(F).

(1) Zero vector. The zero matrix has trace 0+⋯+0=0. Therefore 0∈T.

(2) Closed under addition. Let A,B∈T, so that trA=trB=0. By Theorem 0.9.6, tr(A+B)=trA+trB=0+0=0. Therefore A+B∈T. This shows that T is closed under addition.

(3) Closed under scalar multiplication. Let c∈F and A∈T. By Theorem 0.9.6, tr(cA)=ctrA=c⋅0=0. Therefore cA∈T. This shows that T is closed under scalar multiplication.

Hence T is a subspace of Mn(F) by the subspace test (Theorem 1.2.1).

The pattern in the last two examples, and in Example (Solutions of a Homogeneous System), is the same: the condition defining the set is “some rule that respects sums and scalar multiples sends the element to zero”. Chapter 2 gives such rules a name, linear maps, and this pattern becomes a single theorem about their kernels.

1.2.4. Non-examples

Here are two more subsets of R2 that fail, each in a different way.

  • The unit circle {(x,y):x2+y2=1} fails (1), since 02+02≠1. It fails (2) and (3) as well: (1,0)+(0,1)=(1,1) and 2(1,0)=(2,0) are not on the circle.
  • The set Q={(x,y):xy≥0}, the first and third quadrants together with both axes. Here (1) holds, since 0⋅0=0≥0. Condition (3) holds too: if xy≥0 and a∈R, then (ax)(ay)=a2xy≥0. But (2) fails: (1,0) and (0,−1) lie in Q, while their sum (1,−1) has 1⋅(−1)=−1<0. So Q is not a subspace.

The set Q shows that (3) does not imply (2). The next check shows that (2) does not imply (3).

Quick check. Find a subset of R2 that contains 0 and is closed under addition, but is not a subspace. Which condition of the subspace test fails?

Solution. Take the closed first quadrant U={(x,y):x≥0 and y≥0}. It contains (0,0), and if x1,y1,x2,y2≥0, then x1+x2≥0 and y1+y2≥0, so it is closed under addition. Condition (3) fails: (1,0)∈U but (−1)(1,0)=(−1,0)∉U. Another answer is Z2: it contains 0 and is closed under addition, but 12(1,0)∉Z2.

1.2.5. Why this definition

The definition insists on the same operations. This is not a formality. The positive reals R>0 form a vector space over R (Example (Positive Reals with Exotic Operations)), and R>0 is a subset of the vector space R. But R>0 is not a subspace of R: with the operations of R, it does not contain the zero vector 0, and (−1)⋅1=−1 leaves it. Its vector space structure uses different operations, multiplication and powers, and those do not count.

The definition also keeps the field. For example, R2 is a subset of C2, and it is closed under addition and under multiplication by real scalars. But it is not a subspace of C2 over C, because i(1,0)=(i,0)∉R2. Condition (3) quantifies over every scalar of the field.

Finally, why “(1) 0∈U” rather than “U is non-empty”? The two are equivalent given (3), as the remark after the test explains. We choose the version that is quicker to check and quicker to refute.

1.2.6. Intersections of subspaces

Given several subspaces, can we build new ones? The first way is to take the vectors they have in common. Recall from Definition 0.3.9 that the intersection of a non-empty family of sets (Ui)i∈I consists of the elements lying in every Ui.

Theorem 1.2.2 (Intersection of Subspaces)

Let V be a vector space over F, and let (Ui)i∈I be a family of subspaces of V with I non-empty. Then ⋂i∈IUi is a subspace of V.

Proof. Let U=⋂i∈IUi. Each Ui is a subset of V, so U⊆V. We use the subspace test (Theorem 1.2.1) for U, and for each Ui its direction (⇒).

  1. For every i∈I, 0∈Ui, since Ui is a subspace. Therefore 0∈U.

  2. Let u,w∈U. Then u,w∈Ui for every i∈I. Since each Ui is closed under addition, u+w∈Ui for every i∈I. Therefore u+w∈U. This shows that U is closed under addition.

  3. Let a∈F and u∈U. Then u∈Ui for every i∈I, and since each Ui is closed under scalar multiplication, au∈Ui for every i∈I. Therefore au∈U. This shows that U is closed under scalar multiplication.

Hence U is a subspace of V by the subspace test (Theorem 1.2.1).

The index set may be infinite, and this matters. In the next section we will build the smallest subspace containing a given set of vectors, and one way to describe it is as the intersection of all subspaces containing that set.

For two subspaces, the theorem gives familiar pictures: two different planes through the origin in R3 meet in a line through the origin. It also explains Example (Solutions of a Homogeneous System) from a new angle. The solution set of Ax=0 is the intersection of the solution sets of its m individual equations, each of which is a subspace of Fn. An algebraic example: in M2(F), the matrices that are both symmetric and trace-free (Example (Symmetric Matrices), Example (Trace-Free Matrices)) are those of the form (abb−a), and they form a subspace.

1.2.7. Unions of subspaces

Intersections behave well. Unions do not, and the reason is visible in the simplest picture.

Example (The Union of the Two Axes)

In R2, let U={(x,0):x∈R} be the x-axis and W={(0,y):y∈R} the y-axis. Show that U and W are subspaces of R2, but U∪W is not.

Solution. The x-axis is the solution set of the homogeneous equation y=0, that is, of Ax=0 with A=(01). By Example (Solutions of a Homogeneous System), U is a subspace. In the same way W is the solution set of x=0, so it is a subspace.

For the union, condition (2) fails. We have (1,0)∈U⊆U∪W and (0,1)∈W⊆U∪W, but (1,0)+(0,1)=(1,1), which is on neither axis, since both of its entries are non-zero. So (1,1)∉U∪W, and U∪W is not a subspace of R2.

The union passes (1) and (3): it contains 0, and scaling a vector on an axis keeps it on that axis. Only addition breaks it, by mixing a vector from each axis. That observation is the whole proof of the general fact.

Proposition 1.2.3 (Union of Two Subspaces)

Let V be a vector space over F, and let U and W be subspaces of V. Then U∪W is a subspace of V if and only if U⊆W or W⊆U.

Idea. The direction (⇐) is immediate, because the union is then just the bigger of the two. For (⇒), a statement of the form “one of two inclusions holds” invites contradiction. If neither inclusion holds, there is a vector u of U outside W and a vector w of W outside U, exactly like (1,0) and (0,1) for the axes. Look at u+w. It must lie in U or in W. If it lies in U, subtracting u keeps us in U and leaves w, which is not in U.

Proof. (⇐) If U⊆W, then U∪W=W, which is a subspace. If W⊆U, then U∪W=U, which is a subspace.

(⇒) Suppose U∪W is a subspace of V, and suppose, for a contradiction, that U⊈W and W⊈U. Then there exist u∈U with u∉W, and w∈W with w∉U. Both lie in U∪W, so u+w∈U∪W by condition (2) of the subspace test (Theorem 1.2.1).

Case 1: u+w∈U. Since U is a subspace and u∈U, condition (3) gives (−1)u∈U, and (−1)u=−u by Theorem 1.1.7. By condition (2) for U, (u+w)+(−u)∈U. By (VS1), (VS2), (VS4) and (VS3), (u+w)+(−u)=w+(u+(−u))=w+0=w. So w∈U, contradicting the choice of w.

Case 2: u+w∈W. Swapping the roles of U and W, and of u and w, in Case 1 gives u∈W, contradicting the choice of u.

Both cases lead to a contradiction. Hence U⊆W or W⊆U.

Warning. Do not combine subspaces by taking their union. Apart from the case where one subspace already contains the other, the union of two subspaces is never a subspace, by Proposition 1.2.3. The two axes in R2 are the standard failing case: their union misses (1,1), and in fact misses every vector with two non-zero entries.

The right way to combine two subspaces U and W is to take all sums u+w with u∈U and w∈W. For the two axes this gives all of R2. This construction, the sum of subspaces, is the subject of a later section of this chapter; Exercise (C2: The Sum of Two Subspaces) gives a preview.

We now have a supply of vector spaces for free: every subspace of a known space is one, and every theorem of the previous section applies to it. In the next section we ask a sharper question. Given a few vectors, what is the smallest subspace that contains them? Its answer, the span, is the first step toward measuring the size of a vector space.

1.2.8. Exercises

A. Check your understanding

Exercise (A1)
  • (a) Define what it means for a subset U of a vector space V over F to be a subspace.
  • (b) State the subspace test.
  • (c) True or false: ∅ is a subspace of every vector space. Justify your answer.
  • (d) True or false: if U is a subspace of V and W is a subspace of U, then W is a subspace of V. Justify your answer.
  • (e) True or false: the union of two subspaces is never a subspace. Justify your answer.
  • (f) Which condition of the subspace test would you check first to show that {(x,y,z)∈R3:x+y+z=1} is not a subspace of R3? Carry out the check.

Solution.

  • (a) See Definition 1.2.1: U is closed under the addition and scalar multiplication of V, and with these operations it is a vector space over F.

  • (b) See Theorem 1.2.1: U⊆V is a subspace if and only if 0∈U, U is closed under addition, and U is closed under scalar multiplication.

  • (c) False. The empty set does not contain 0, so condition (1) fails (Example (Trivial Subspaces)).

  • (d) True. Since W is a subspace of U, it contains the zero vector of U, which is 0 (the proof of Theorem 1.2.1 shows the zero vector of a subspace is the zero vector of the big space). The operations of U are those of V, so closure of W under the operations of U is closure under the operations of V. By the subspace test (Theorem 1.2.1), W is a subspace of V.

  • (e) False. If U⊆W, then U∪W=W is a subspace (Proposition 1.2.3). For example, {0}∪V=V.

  • (f) Condition (1). The zero vector has 0+0+0=0≠1, so it is not in the set, and the set is not a subspace.

B. Practice

Exercise (B1: Which Are Subspaces?)

Determine which of the following are subspaces of the given vector space over R. Justify your answer.

  • (a) {(x,y,z)∈R3:x−2y+z=0} in R3.
  • (b) {(x,y,z)∈R3:x=y2} in R3.
  • (c) {A∈M2(R):A is invertible} in M2(R).
  • (d) {A∈M2(R):a12=2a21} in M2(R).
  • (e) {p∈R[x]:p(2)=0 and p′(2)=0} in R[x], where p′ is the derivative of p.
  • (f) The even functions {f∈RR:f(−t)=f(t) for all t∈R} in RR.
  • (g) {f∈RR:f(0)=1} in RR.
  • (h) The continuous functions R→R, in RR.

Solution.

  • (a) A subspace. It is {x∈R3:Ax=0} with A=(1−21), a subspace by Example (Solutions of a Homogeneous System).

  • (b) Not a subspace: (3) fails. The vector (1,1,0) lies in the set, since 1=12. But 2(1,1,0)=(2,2,0) does not, since 2≠22.

  • (c) Not a subspace: (1) fails. The zero matrix is not invertible, because 0⋅B=0≠I2 for every B∈M2(R).

  • (d) A subspace. Call the set U.

    (1) The zero matrix has a12=0=2⋅0=2a21. Therefore 0∈U.

    (2) Let A,B∈U, so a12=2a21 and b12=2b21. The (1,2)-entry of A+B is a12+b12=2a21+2b21=2(a21+b21), which is twice its (2,1)-entry. Therefore A+B∈U. This shows that U is closed under addition.

    (3) Let c∈R and A∈U. The (1,2)-entry of cA is ca12=c(2a21)=2(ca21), twice its (2,1)-entry. Therefore cA∈U. This shows that U is closed under scalar multiplication.

    Hence U is a subspace of M2(R) by the subspace test (Theorem 1.2.1).

  • (e) A subspace. Call the set U. We use Theorem 0.8.5 for values, and the sum and constant multiple rules for derivatives.

    (1) The zero polynomial has value 0 at 2, and its derivative is the zero polynomial, also with value 0 at 2. Therefore 0∈U.

    (2) Let p,q∈U. Then (p+q)(2)=p(2)+q(2)=0 and (p+q)′(2)=p′(2)+q′(2)=0. Therefore p+q∈U. This shows that U is closed under addition.

    (3) Let c∈R and p∈U. Then (cp)(2)=cp(2)=0 and (cp)′(2)=cp′(2)=0. Therefore cp∈U. This shows that U is closed under scalar multiplication.

    Hence U is a subspace of R[x] by the subspace test (Theorem 1.2.1).

  • (f) A subspace. Call the set E.

    (1) The zero function satisfies 0(−t)=0=0(t) for all t. Therefore 0∈E.

    (2) Let f,g∈E. For every t∈R, (f+g)(−t)=f(−t)+g(−t)=f(t)+g(t)=(f+g)(t). Therefore f+g∈E. This shows that E is closed under addition.

    (3) Let a∈R and f∈E. For every t∈R, (af)(−t)=af(−t)=af(t)=(af)(t). Therefore af∈E. This shows that E is closed under scalar multiplication.

    Hence E is a subspace of RR by the subspace test (Theorem 1.2.1).

  • (g) Not a subspace: (1) fails. The zero function has value 0≠1 at 0.

  • (h) A subspace. (1) The zero function is constant, hence continuous. (2) A sum of continuous functions is continuous. (3) A constant multiple of a continuous function is continuous. Hence the continuous functions form a subspace of RR by the subspace test (Theorem 1.2.1).

Exercise (B2: Matrices Commuting with a Given Matrix)

Fix B∈Mn(F), and let C(B)={A∈Mn(F):AB=BA}.

  • (a) Prove that C(B) is a subspace of Mn(F).
  • (b) Let n=2, F=R and B=(1002). Find all A∈C(B). Hence describe C(B) in words.

Solution.

  • (a) By definition, C(B)⊆Mn(F). We use Theorem 0.9.4 throughout.

    (1) By the zero rule, 0B=0=B0. Therefore 0∈C(B).

    (2) Let A1,A2∈C(B), so A1B=BA1 and A2B=BA2. By distributivity, (A1+A2)B=A1B+A2B=BA1+BA2=B(A1+A2). Therefore A1+A2∈C(B). This shows that C(B) is closed under addition.

    (3) Let c∈F and A∈C(B). By the scalar rule, (cA)B=c(AB)=c(BA)=B(cA). Therefore cA∈C(B). This shows that C(B) is closed under scalar multiplication.

    Hence C(B) is a subspace of Mn(F) by the subspace test (Theorem 1.2.1).

  • (b) Let A=(abcd). Then AB=(a2bc2d),BA=(ab2c2d). So AB=BA if and only if 2b=b and c=2c, that is, b=0 and c=0. Hence C(B) is the set of diagonal matrices (a00d) with a,d∈R.
Exercise (B3: Intersection and Union of Two Planes)

In R3, let U={(x,y,z):x+y+z=0} and W={(x,y,z):x−y=0}.

  • (a) Explain why U and W are subspaces of R3, and find U∩W.
  • (b) Find u∈U with u∉W and w∈W with w∉U. Hence show directly that U∪W is not a subspace of R3.

Solution.

  • (a) U and W are the solution sets of Ax=0 for A=(111) and A=(1−10), so they are subspaces by Example (Solutions of a Homogeneous System). A vector (x,y,z) lies in U∩W exactly when x+y+z=0 and x=y. Substituting y=x gives z=−2x. Hence U∩W={(t,t,−2t):t∈R}, a line through the origin, which is a subspace by Theorem 1.2.2.

  • (b) Take u=(1,−1,0), which lies in U since 1−1+0=0, but not in W since 1−(−1)=2≠0. Take w=(1,1,0), which lies in W, but not in U since 1+1+0=2≠0. Both lie in U∪W. Their sum is (2,0,0), which is not in U (as 2+0+0≠0) and not in W (as 2−0≠0). Hence U∪W is not closed under addition, and it is not a subspace of R3.

C. Going deeper

Exercise (C1: Covering a Space by Subspaces)
  • (a) Let V be a vector space over any field F. Prove that V is not the union of two proper subspaces.
  • (b) Show that F22 is the union of three proper subspaces.

Hint: for (a), use Proposition 1.2.3.

Solution.

  • (a) Suppose, for a contradiction, that V=U∪W with U and W proper subspaces of V. Then U∪W=V is a subspace of V, so by Proposition 1.2.3, U⊆W or W⊆U. In the first case V=U∪W=W, and in the second V=U. Either way one of the subspaces equals V, contradicting that both are proper. Hence V is not the union of two proper subspaces.

  • (b) The space F22 has the four elements (0,0),(1,0),(0,1),(1,1). Let v be one of the three non-zero elements, and let Uv={0,v}. We check that Uv is a subspace with the three-check move.

(1) 0∈Uv by construction.

(2) The possible sums are 0+0=0, 0+v=v+0=v, and v+v=(1+1)v=0v=0, using (VS8), (VS6), 1+1=0 in F2, and Theorem 1.1.5. All lie in Uv, so Uv is closed under addition.

(3) The only scalars are 0 and 1. For u∈Uv, 0u=0 by Theorem 1.1.5 and 1u=u by (VS8), both in Uv. So Uv is closed under scalar multiplication.

Hence each Uv is a subspace. Each has two elements, so it is proper. Every element of F22 is 0 or one of the three non-zero vectors, so F22=U(1,0)∪U(0,1)∪U(1,1). So three proper subspaces can cover a vector space, although (a) shows two never can.

Exercise (C2: The Sum of Two Subspaces)

Let U and W be subspaces of a vector space V over F, and let U+W={u+w:u∈U, w∈W}.

  • (a) Prove that U+W is a subspace of V containing both U and W.
  • (b) Prove that if X is a subspace of V with U∪W⊆X, then U+W⊆X.
  • (c) For the two axes U and W of Example (The Union of the Two Axes), show that U+W=R2.

Solution.

  • (a) Every u+w is a vector of V, so U+W⊆V.

    (1) Since 0∈U and 0∈W, and 0+0=0 by (VS3), we get 0∈U+W.

    (2) Let u1+w1 and u2+w2 be in U+W, with u1,u2∈U and w1,w2∈W. By (VS1) and (VS2), (u1+w1)+(u2+w2)=(u1+u2)+(w1+w2). Since U and W are closed under addition, u1+u2∈U and w1+w2∈W. Therefore the sum lies in U+W. This shows that U+W is closed under addition.

    (3) Let a∈F and u+w∈U+W. By (VS5), a(u+w)=au+aw, with au∈U and aw∈W by closure. Therefore a(u+w)∈U+W. This shows that U+W is closed under scalar multiplication.

    Hence U+W is a subspace of V. For u∈U, we have u=u+0 with 0∈W, so u∈U+W; thus U⊆U+W. Swapping the roles of U and W gives W⊆U+W, using (VS1).

  • (b) Let u+w∈U+W with u∈U and w∈W. Then u,w∈U∪W⊆X. Since X is a subspace, it is closed under addition, so u+w∈X. Hence U+W⊆X.

  • (c) By (a), U+W⊆R2. Conversely, let (x,y)∈R2. Then (x,y)=(x,0)+(0,y) with (x,0)∈U and (0,y)∈W, so (x,y)∈U+W. Hence U+W=R2, whereas U∪W is only the two axes.

Exercise (C3: A One-Line Test, and a Test over F2)

Let V be a vector space over F and U⊆V.

  • (a) Prove that U is a subspace of V if and only if U≠∅ and au+w∈U for all a∈F and u,w∈U.
  • (b) Suppose F=F2. Prove that U is a subspace of V if and only if 0∈U and U is closed under addition.
  • (c) Show by an example that the statement in (b) is false over R.

Solution.

  • (a) (⇒) Suppose U is a subspace. By the subspace test (Theorem 1.2.1), 0∈U, so U≠∅. For a∈F and u,w∈U, condition (3) gives au∈U, and then condition (2) gives au+w∈U.

    (⇐) Suppose U≠∅ and au+w∈U for all a∈F, u,w∈U. Pick u0∈U. Taking a=−1 and u=w=u0, and using Theorem 1.1.7 and (VS4), (−1)u0+u0=−u0+u0=0∈U, where −u0+u0=u0+(−u0) by (VS1). This is condition (1). For u,w∈U, taking a=1 and using (VS8) gives u+w=1u+w∈U, which is (2). For a∈F and u∈U, taking w=0∈U and using (VS3) gives au=au+0∈U, which is (3). By the subspace test (Theorem 1.2.1), U is a subspace.

  • (b) (⇒) This is part of the subspace test (Theorem 1.2.1). (⇐) Suppose 0∈U and U is closed under addition. The only scalars in F2 are 0 and 1. For u∈U, 0u=0∈U by Theorem 1.1.5, and 1u=u∈U by (VS8). So U is closed under scalar multiplication, and by the subspace test (Theorem 1.2.1) U is a subspace.

  • (c) Take V=R2 and U=Z2. Then 0∈U, and the sum of two integer vectors is an integer vector. But 12(1,0)=(12,0)∉U, so U is not a subspace. Over R there are many more scalars to test than 0 and 1.

Found a typo or a mistake? Report it, or read this page’s source

The text of this book is licensed under CC BY-NC-SA 4.0.