Euler Hall — free maths guides

Apply the subspace test

Run the three-part subspace test in the order origin, addition, scaling. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

Plain words first

A subspace is a set that you cannot leave by doing the two things vectors let you do: adding and scaling.

That gives a three-part test, and the order matters because the first part is nearly free.

  1. 1. Is0\mathbf{0} in the set? One substitution. If not, stop.
  2. 2. Is a sum of two members always a member? If you can find one pair whose sum escapes, stop.
  3. 3. Is a multiple of a member always a member? Same: one escape is enough.

Pass all three and the set is a subspace. Fail any one and it is not — and naming which one failed is the answer an exam wants, not just the verdict.

Why "one escape is enough"

The definition says a subspace must be closed — every sum, every multiple. That is a statement about all pairs and all scalars. So refuting it needs one specific pair, while proving it needs an argument covering all of them.

That is not a technicality, it is the shape of the whole subject. For a set defined by a homogeneous linear condition, the proof is one line: ifL(u)=0L(u)=0 andL(w)=0L(w)=0 andLL is linear, thenL(u+w)=L(u)+L(w)=0L(u+w)=L(u)+L(w)=0 andL(cu)=cL(u)=0L(cu)=cL(u)=0. For a set defined by almost anything else there is no such line, and a counterexample is what you find instead.

So the two halves are asymmetric on purpose. A witness settles a "not a subspace" claim. Only a reason settles a "subspace" claim.

Worked, different numbers

TestV={(x,y,z):x+2y−z=0}V=\{(x,y,z):x+2y-z=0\}.

Origin.0+0−0=00+0-0=0. ✓

Addition. Takeu=(1,0,1)u=(1,0,1) — check:1+0−1=01+0-1=0 ✓ — andw=(0,1,2)w=(0,1,2) — check:0+2−2=00+2-2=0 ✓. Their sum is(1,1,3)(1,1,3), and1+2−3=01+2-3=0 ✓. That is not a proof, only a sample. The proof is that the condition isL(v)=0L(v)=0 forLL linear, so it holds for every pair.

Scaling.c u=(c,0,c)c\,u=(c,0,c), andc+0−c=0c+0-c=0 ✓ — again for everycc, becauseL(cu)=cL(u)=0L(cu)=cL(u)=0.

SoVV is a subspace. And the honest way to write it up is: it is the nullspace of the1×31\times3 matrix(1,2,−1)(1,2,-1), and a nullspace is always a subspace.

By the end you can
  • Run the three-part subspace test in the order origin, addition, scaling
  • Report which specific test fails, with an explicit witness for a closure failure
  • Recognise that a homogeneous linear condition is a nullspace and therefore a subspace
Check yourself

For each set, name the first test that fails, or say "none".

  • -{(x,y):y=2x}\{(x,y):y=2x\}
  • -{(x,y):y=2x+1}\{(x,y):y=2x+1\}
  • -{(x,y):x2+y2≤1}\{(x,y):x^2+y^2\le1\}
  • -{(x,y):x=0 or y=0}\{(x,y):x=0\text{ or }y=0\}
Answers
  • -y=2xy=2x: none. It is a line through the origin, hence a nullspace of(2,−1)(2,-1).
  • -y=2x+1y=2x+1: origin 0≠10\ne1).
  • - The unit disc: origin passes 0≤10\le1), and it is closed under addition is false too, but scaling fails first —(1,0)(1,0) is in it and2⋅(1,0)=(2,0)2\cdot(1,0)=(2,0) is not.
  • - The two axes: addition, as above.

The disc is the interesting one: it fails at scaling and only then at addition, and the order in the test decides which you report.

Work out where to start — free, no accountAnswer six real questions — free, no account