← Back to Math 010

4.2 Subspaces: Class Notes

Definition

A subset W of a vector space V is called a subspace of V if W is itself a vector space under the addition and scalar multiplication defined on V.

Two diagrams: W = (0, infinity) inside V = R, crossed out; a subspace W inside V

Left (crossed out): V=R drawn as a large region containing W=(0,∞), with the zero vector 0→ inside V but outside W. Because 0→∉W, this W is not a subspace. Right: a subspace W drawn as a smaller region inside V.

Theorem 4.2.1 Subspace Test

If W is a nonempty set of vectors in a vector space V, then W is a subspace of V if and only if the following conditions are satisfied.

a) If 𝐮 and 𝐯 are vectors in W, then 𝐮+𝐯 is in W.

b) If k is a scalar and 𝐮 is a vector in W, then k𝐮 is in W.

Tip: Because W must be nonempty, we sometimes see a step 0 before (a): show 0→∈W.

Since any vector w→∈W is also in V and the operations are the same throughout V, axioms 2, 3, and 7–10 are satisfied. (These are inherited.) To show W⊂V is itself a subspace, we need to confirm axioms 1, 4, 5, and 6.

If Axiom 6 is satisfied (u→∈W⇒ku→∈W for all k), then it is true for k=0 (giving Axiom 4) and k=−1 (giving Axiom 5).

Thus W⊂V is a subspace if Axioms 1 and 6 are satisfied.

#3

Use the Subspace Test to determine which of the sets are subspaces of Mnn.

Mnn is the set of n×n matrices with the standard operations of addition and scalar multiplication.

a. The set of all diagonal n×n matrices.

b. The set of all n×n matrices A such that det(A)=0.

c. The set of all n×n matrices A such that tr(A)=0.

d. The set of all symmetric n×n matrices.

Solution

a. (Optional first step) The zero matrix

0→=[0⋯0⋮⋱⋮0⋯0]

is a diagonal matrix, so the set is nonempty.

Let

U=[u10⋯00u2⋯0⋮⋮⋱⋮00⋯un],V=[v10⋯00v2⋯0⋮⋮⋱⋮00⋯vn],k∈ℝ.

U+V=[u1+v10⋯00u2+v2⋯0⋮⋮⋱⋮00⋯un+vn]

a diagonal matrix, so U+V∈W.

kU=[ku10⋯00ku2⋯0⋮⋮⋱⋮00⋯kun]

which is diagonal, so kU∈W.

Answer: a. This is a subspace.

b. Not a subspace. Let

U=[10⋯000⋯0⋮⋮⋱⋮00⋯0],V=[00⋯001⋯0⋮⋮⋱⋮00⋯1]

Then det(U)=0=det(V). But U+V=I, so det(U+V)=1≠0.

Answer: b. Not a subspace.

c. Let U=[aij] and V=[bij]∈W (so tr(U)=0=tr(V)):

tr(U)=∑i=1naii=0=∑i=1nbii=tr(V)

tr(U+V)=∑i=1n(aii+bii)=∑i=1naii+∑i=1nbii=0+0=0

so U+V is in the set. Let k∈ℝ:

tr(kU)=∑i=1nkaii=k∑i=1naii=k(0)=0

so kU is in the set.

Answer: c. This is a subspace.

d. For you.

#6

Use the Subspace Test to determine which of the sets are subspaces of P3.

P3 is the set of polynomials of degree ≤3.

a. All polynomials of the form a0+a1x+a2x2+a3x3 in which a0, a1, a2, and a3 are rational numbers.

b. All polynomials of the form a0+a1x in which a0 and a1 are real numbers.

Solution

a. Not a subspace. If k=π, then kp→∉ the set (for example, π·1=π has an irrational coefficient).

Answer: a. Not a subspace.

b. Let p→=p0+p1x and q→=q0+q1x, where p0,p1,q0,q1∈ℝ, and let k∈ℝ.

p→+q→=p0+q0+(p1+q1)x,

which has the form a0+a1x with a0,a1∈ℝ.

kp→=kp0+kp1x,

where kp0,kp1∈ℝ.

Answer: b. This is a subspace.

#11

Use the Subspace Test to determine which of the sets are subspaces of M22.

a. All matrices of the form [a0b0].

b. All matrices of the form [a1b1].

c. All 2×2 matrices A such that A[1−1]=[20].

Solution

b. Not a subspace:

[x11x21]+[y11y21]=[x1+y12x2+y22]

is not of the form [a1b1], because 1+1=2.

Answer: b. Not a subspace.

c. Let A and B be in the set. Then A[1−1]=[20] and B[1−1]=[20], and

(A+B)[1−1]=A[1−1]+B[1−1]=[20]+[20]=[40]≠[20]

Answer: c. Not a subspace.

#14

Use the Subspace Test to determine which of the sets are subspaces of R4.

a. All vectors 𝐱 in R4 such that A𝐱=[01], where A=[0−102−1101]

b. All vectors 𝐱 in R4 such that A𝐱=[00], where A is as in part (a).

Solution

a. Not a subspace. Consider k=5:

A(5x→)=5Ax→=5[01]=[05]≠[01].

Or: let x→,y→∈R4 with Ax→=[01] and Ay→=[01]. Then

A(x→+y→)=Ax→+Ay→=[01]+[01]≠[01].

Answer: a. Not a subspace.

b. A0→=0→ for every A, so 0→∈ the set.

Let x→,y→ be in the set, so Ax→=[00]=Ay→. Then

A(x→+y→)=Ax→+Ay→=[00]+[00]=[00]

⇒ x→+y→ is in the set.

Let k∈ℝ. Then A(kx→)=kAx→=k[00]=[00], so kx→ is in the set.

Answer: b. The set is a subspace.

Theorem 4.2.3

The solution set of a homogeneous system A𝐱=𝟎 of m equations in n unknowns is a subspace of Rn.

This is proved by generalizing #14(b).

Definition

The solution set of a homogeneous system in n unknowns is a subspace of Rn, called the solution space of the system.

Definition

Let TA:Rn→Rm be multiplication by the coefficient matrix A. The solution space of A𝐱=𝟎 is the set of vectors in Rn that TA maps into the zero vector in Rm. This set is called the kernel of the transformation.

Theorem 4.2.4

If A is an m×n matrix, then the kernel of the matrix transformation TA:Rn→Rm is a subspace of Rn.

Theorem 4.2.2

If W1, W2,…, Wr are subspaces of a vector space V, then the intersection of these subspaces is also a subspace of V.

Proof

Let u→,v→∈W1∩W2∩⋯∩Wr.

Work on this.

Examples of Subspaces

{𝟎} is a subspace of every vector space V
Any vector space V is a subspace of itself

Subspace of R2
Lines through the origin

Subspaces of R3
Lines through the origin
Planes through the origin

The solution space of a homogeneous system in n unknowns is a subspace of Rn

Subspaces of Mnn
Symmetric matrices
Triangular matrices
Diagonal matrices

Subspaces of F(−∞,∞) (The following is actually a sequence of nested subspaces)
C(−∞,∞), the set of functions continuous on R
C1(−∞,∞), the set of functions with continuous first-order derivatives on R
Cn(−∞,∞), the set of functions with continuous nth-order derivatives on R
C∞(−∞,∞), the set of functions with derivatives of all orders on R
P∞, the set of polynomials
Pn, polynomials of degree ≤n

Nested ovals: F contains C, which contains C1, Cn, C infinity, P infinity, and Pn

Nested regions, from outside in: F(−∞,∞), C(−∞,∞), C1(−∞,∞), Cn(−∞,∞), C∞(−∞,∞), P∞, Pn. Each set is a subspace of every set that contains it.