A subspace is a smaller collection of vectors inside a vector space where adding and scaling vectors never takes you out of the collection.
1
What Makes a Subspace Geometrically
We want to find which shapes inside 2D or 3D space stay completely self-contained whenever we add two vectors in the shape or multiply a vector by any real number.
What Makes a Subspace Geometrically
For a line in 2D, adding or scaling vectors stays on the line only when the line goes through (0,0). If the line misses the origin, sums and scaled copies land off the line.
Adding and scaling vectors on a line keeps their tips on the line only when the line goes through the origin.
y=2x
y=2x+1
x≥0,y≥0
2
Proving a Subspace with the Closure Test
When a set is given by an algebra rule or sits in higher dimensions where we cannot sketch it, we check whether vector operations keep us inside the set by running three checks called the Closure Test:
Zero Check:(0,0,…) is in the setClosed under Addition:u+v is in the setClosed under Scaling:cv is in the set
Let's use the Closure Test to determine whether the set of all 3D vectors xyz satisfying z=x+y is a subspace.
Proving a Subspace with the Closure Test
xyz with z=x+y
subspace?
Text solution
Build the rule into the vectorReplace z with x+y so any vector in the set automatically has its bottom slot equal to its top slot plus its middle slot.
xyz=xyx+y
Zero CheckPlug 0 into each slot to verify that the zero vector obeys the rule.
0=0+0,so000 is in the set
Closed under AdditionAdd two general vectors in the set and regroup the bottom slot so it matches the new top slot plus the new middle slot.
Closed under ScalingMultiply a general vector in the set by any number c and distribute in the bottom slot so it still equals the top slot plus the middle slot.
cxyx+y=cxcyc(x+y)=cxcycx+cy
Since all three checks pass, the set is closed and forms a subspace: geometrically, it is the flat plane z=x+y passing through the origin in 3D space.
seen edge-on
3
Disproving a Subspace with a Counterexample
To prove a set is not a subspace, we do not need general letters: we only need to show that it misses the zero vector, or find one specific example: two vectors in the set whose sum leaves it, or one vector in the set whose scaled copy leaves it. Let's test two sets of 2D vectors [xy]: one defined by y=3x+4, and another defined by x⋅y=0.
Disproving a Subspace with a Counterexample
y=3x+4x⋅y=0subspace?subspace?
Text solution
Test y=3x+4 with the Zero CheckPlug [00] into the rule first to see if we can stop right away.
0=3(0)+4⟹0=4(false)
Because [00] is not in the set, y=3x+4 fails the Zero Check and is not a subspace.
Test x⋅y=0 with the Zero CheckCheck the origin first. Passing only means the set is not ruled out yet, so we still must check addition and scaling.
0⋅0=0,so[00] is in the set
Break Closed under Addition with one vector on each axisPick one vector on the x-axis and one vector on the y-axis, each satisfying x⋅y=0, and add them together.
[10]+[01]=[11],and1⋅1=1=0
Because [10] and [01] are in the set but their sum [11] lands off the axes, the set fails Closed under Addition and is not a subspace.
Two vectors on the same axis add to stay on the axes, but adding one vector from the x-axis and one from the y-axis lands out in the open quadrant:
When a set is just the x- and y-axes together, adding two vectors stays on the axes only when both are on the same axis, while putting one on each axis pulls their sum off the axes into the open plane.
4
Free Parameters and the Span Shortcut
Instead of giving an equation, a problem will often describe a set using a vector template filled with free parameters like s and t, such as all 3D vectors of the form s+2ts3t−s. Because a span already contains every possible sum and scaled copy of its vectors, we can settle these problems right away by checking whether the template splits cleanly into a span.
Free Parameters and the Span Shortcut
s+2ts3t−s,s,t∈R
subspace?
Text solution
Separate the parameters and factor out s and tSplit the template into a vector of s terms plus a vector of t terms, then pull s and t out in front of fixed vectors.
s+2ts3t−s=ss−s+2t03t=s11−1+t203
Because this set is all linear combinations of 11−1 and 203, it is the span of those two vectors and is automatically a subspace.
Geometrically, varying s and t sweeps out a flat plane through the origin:
Scaling two fixed vectors and adding them tip-to-tail sweeps out a single flat plane through the origin.
Now watch what changes when an added constant +1 sits inside the template, as in s+2t+1s3t−s:
Separate the parameters from the constant: Pull apart the s terms, the t terms, and the constant term that has no parameter attached.
s+2t+1s3t−s=s11−1+t203+100
Check if the template can produce 000: Setting the middle and bottom slots to 0 forces s=0 and 3t−0=0⟹t=0, which leaves 0+2(0)+1=1=0 in the top slot.
Because the extra constant vector 100 shifts the plane away from the origin, the zero vector is not in the set and it is not a subspace.
5
Subspaces of Matrices
A vector space does not have to be made of arrows; the collection of all 2×2 matrices is also a vector space because matrices can be added and scaled. We cannot draw the space of all 2×2 matrices, but the Closure Test and the Span Shortcut work the exact same way. Let's test whether the set of symmetric 2×2 matrices, where the top-right entry equals the bottom-left entry, is a subspace of all 2×2 matrices.
Subspaces of Matrices
[abbc]
top-right=bottom-left
subspace?
Text solution
Zero Check with the zero matrixIn the space of 2×2 matrices, the origin is the zero matrix, whose top-right and bottom-left entries both equal 0.
[0000]has 0=0
Closed under AdditionWrite two general matrices with matching top-right and bottom-left entries, and add them entry by entry.
[abbc]+[xyyz]=[a+xb+yb+yc+z]
Closed under ScalingMultiply a general symmetric matrix by any scalar k so the top-right and bottom-left entries both become kb.
k[abbc]=[kakbkbkc]
Or factor out the parameters (Span Shortcut)Separate a,b, and c to write the general matrix directly as the span of three fixed 2×2 matrices.
[abbc]=a[1000]+b[0110]+c[0001]
By either method, the symmetric 2×2 matrices form a subspace. On the other hand, fixing a non-zero number in a slot, like [a01b], shifts the set away from [0000] and fails the Zero Check right away.
6
Spotting a Subspace at a Glance
Before writing out any algebra, we can tell whether a rule defines a subspace by checking whether the algebra keeps the set flat and lets it pass through zero.
Spotting a Subspace at a Glance
y=x2y=2xx+y=5x≥0
subspace? (at a glance)
Key concepts
You can almost always tell in two seconds whether a set is a subspace by glancing at its rule, though you still need to write out the proof or counterexample that matches what you spot:
Added constants or fixed non-zero entries fail the Zero Check
Rules like x+y=5,[s+1s], or [a01b] shift the set off the origin. Plug in all zeros ([00] or [0000]) and show it fails the rule (for a template, show that no values of the parameters make every slot zero), and stop there.
Inequalities fail Closed under Scaling
Rules like x≥0 or y>x create a boundary. Even when [00] and addition stay inside, multiplying a vector in the set by −1 flips it across the boundary and takes it out of the set.
Exponents, products, or absolute values fail Addition or Scaling
Rules like y=x2,xy=0, or ∣x∣ curve or bend the set. When [00] passes, pick specific vectors in the set, like [10]+[01]=[11] for xy=0, to show their sum or scaled copy leaves the set.
Plain linear equations equal to zero and clean parameter templates are always subspaces
When a set is already written with free parameters and no added constants, like s+2ts3t−s or [abbc], you don't need to run the three checks of the Closure Test. Instead, factor out the parameters into s11−1+t203 and use the Span Shortcut.
When a set is given by a linear equation equal to zero, like 3x−2y+5z=0 or z=x+y, build the rule into the slots of a general vector xyx+y using letters and check the Zero Check, Closed under Addition (u+v), and Closed under Scaling (cv).
7
Practice
1
Is the set of all vectors xyz in 3D space satisfying 2x−y+3z=6 a subspace? Explain why or why not.
Zero Check first: what happens when you plug 000 into 2x−y+3z=6?
Start with the Zero Check by plugging in 000:
2(0)−0+3(0)=0=6
(Watch out for assuming this set is a subspace just because 2x−y+3z has no exponents or products. The constant 6 shifts the flat plane away from the origin.) Because 000 is not in the set, it fails the Zero Check and is not a subspace.
2
Is the set of all vectors [xy] in 2D space satisfying x≥0 a subspace? If not, give a counterexample.
[00] and addition both keep x≥0. What kind of scalar c flips a vector across the boundary x=0?
The origin [00] is in the set since 0≥0, and adding two vectors with x≥0 keeps x≥0. Now test Closed under Scaling. (Do not test only positive numbers like c=2 and conclude that scaling works; scaling must hold for negative numbers too.) Pick [10], which is in the set because 1≥0, and scale it by c=−1:
−1[10]=[−10]
This new vector has x=−1<0, which leaves the set. Because it fails Closed under Scaling, the set is not a subspace.
3
Use the Closure Test to prove that the set of all vectors xyz in 3D space satisfying x−2y+z=0 is a subspace.
Solve the equation for z first: how can you rewrite xyz so the rule is built into the third slot?
Rewrite x−2y+z=0 as z=2y−x, so every vector in the set has the form xy2y−x. (Be sure to use general letters rather than specific numbers, since two numeric vectors passing addition does not prove it for the whole set.)
Zero CheckSetting x=0 and y=0 gives 002(0)−0=000, which is in the set.
Closed under AdditionAdd two general vectors in the set:
(Keep parentheses around (x+a) when factoring out the minus sign so −x−a does not turn into −(x−a).) The bottom slot equals twice the middle slot minus the top slot, so the sum is in the set.
Closed under ScalingMultiply by any scalar c:
cxy2y−x=cxcyc(2y−x)=cxcy2(cy)−(cx)
This also matches the rule. Since all three checks pass, the set is a subspace.
4
Determine whether the set of all 4D vectors of the form 3s−ts2ts+4t, where s and t are any real numbers, is a subspace.
Free parameters s and t with no added constants: what do you get when you split the s terms from the t terms?
Separate the s terms and t terms and factor out each parameter:
(When a parameter is missing from a slot, like s in the third slot or t in the second slot, make sure its entry in that vector is 0, not 1.) Because this set is the span of the two fixed vectors 3101 and −1024,yes, it is a subspace.
5
Consider the set of all vectors [xy] in 2D space satisfying ∣x∣=∣y∣. Does this set pass the Zero Check and Closed under Scaling? Is it a subspace?
For scaling, remember ∣cx∣=∣c∣∣x∣. For addition, ∣x∣=∣y∣ forms two diagonal lines y=x and y=−x. What happens if you add one vector from each line?
Zero Check∣0∣=∣0∣, so [00] is in the set and the Zero Check passes.
Closed under ScalingIf ∣x∣=∣y∣, then for any number c,∣cx∣=∣c∣∣x∣=∣c∣∣y∣=∣cy∣, so Closed under Scaling passes.
Closed under Addition(Avoid picking two vectors on the same diagonal line like [11] and [22], whose sum [33] stays on y=x and makes the set look closed.) Instead, pick [11] and [1−1], which are both in the set since ∣1∣=∣1∣ and ∣1∣=∣−1∣:
[11]+[1−1]=[20],and∣2∣=∣0∣
Because their sum leaves the set, it fails Closed under Addition and is not a subspace.
6
Prove that the set of all 2×2 matrices [acbd] whose diagonal entries add to zero (a+d=0) is a subspace of all 2×2 matrices, both by using the Closure Test and by writing it as a span.
Rewrite a+d=0 as d=−a and plug it into [acbd]. How many free parameters are left?
Using d=−a, every matrix in the set has the form [acb−a].
By the Closure Test
Zero CheckThe zero matrix [0000] has 0+0=0, so it is in the set.
Closed under Addition
[acb−a]+[wyx−w]=[a+wc+yb+x−(a+w)]
whose diagonal entries still add to zero.
Closed under Scaling
k[acb−a]=[kakckb−ka]
whose diagonal entries also add to zero.
By the Span ShortcutSplit the general matrix by its free parameters a,b, and c:
[acb−a]=a[100−1]+b[0010]+c[0100]
(Do not drop b and c just because the equation a+d=0 does not mention them. Since b and c can be any numbers, they are free parameters that give two more matrices in the span.) Because the set is the span of those three fixed 2×2 matrices, it is a subspace.
7
For what value(s) of the constant k is the set of all vectors of the form s+2ts+k−34t−s, where s and t are any real numbers, a subspace of 3D space?
Pull the s terms and t terms out front: what extra constant vector remains at the end, and when does it become zero?
Separate the free parameters s and t from the constant terms:
s+2ts+k−34t−s=s11−1+t204+0k−30
(Do not set the middle slot s+k−3=0 and answer k=3−s;k is a fixed constant, whereas s and t vary over all real numbers.) To contain 000, the first and third slots require s+2t=0 and 4t−s=0, which forces s=0 and t=0. Plugging s=0 into the middle slot leaves k−3, which equals 0 only when k−3=0. When k=3, the extra constant vector becomes zero and the set is the span of two vectors, so it is a subspace only for k=3.