Euler Hall — free maths guides

Decide whether a vector lies in a span by solving a system

Bound the dimension of a span from the number of vectors. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

Membership is a system

"The span ofv1,…,vk\mathbf{v}_1,\dots,\mathbf{v}_k" means every combinationc1v1+⋯+ckvkc_1\mathbf{v}_1 + \cdots + c_k\mathbf{v}_k. So asking whetherb\mathbf{b} is in the span is asking whether some choice of thecc's works — and that is a linear system:

The vectors go in the columns ofAA. Then:

  • - the system has a solution  ⟺  \iffb\mathbf{b} is in the span;
  • - the solution, when it exists, is the weight list.

Two questions, one computation. That is the whole skill.

The rank test and the system are the same test

Elimination decides consistency. Reduce the augmented matrix[ A ∣ b ][\,A\ |\ \mathbf{b}\,] and look for a row of the form0=nonzero0 = \text{nonzero}. If there is one, no solution; if not, solutions exist.

That is exactly the same statement as

rank⁡(A)=rank⁡([ A ∣ b ]).\operatorname{rank}(A) = \operatorname{rank}\left([\,A\ |\ \mathbf{b}\,]\right).

Adjoining a column can raise the rank by at most one, and it does so precisely whenb\mathbf{b} is not already in the column space. So:

This is worth internalising because it turns a vague "does it work out?" into a number comparison. And when the ranks are equal, the solution of the system gives you the coefficients, so you get the weight list for free.

A worked example, in the exam's shape

Isb=(2,5,3)\mathbf{b}=(2,5,3) in the span ofv1=(1,1,0)\mathbf{v}_1=(1,1,0) andv2=(0,1,1)\mathbf{v}_2=(0,1,1)? If so, what are the weights?

Columns.A=[101101]A=\begin{bmatrix}1&0\\1&1\\0&1\end{bmatrix}.

SolveAc=bA\mathbf{c}=\mathbf{b}. The three equations are c1=2,c1+c2=5,c2=3.c_1 = 2, \qquad c_1 + c_2 = 5, \qquad c_2 = 3. The first givesc1=2c_1 = 2, the third givesc2=3c_2 = 3, and the middle one checks:2+3=52 + 3 = 5 ✓. Consistent, sob\mathbf{b} is in the span.

Weights.c1=2c_1 = 2,c2=3c_2 = 3. Confirm:

The rank check.AA has rank 2 (two independent columns). Adjoiningb\mathbf{b} keeps the rank at 2, since the third column is a combination of the first two. Equal ranks, consistent — the same conclusion from a different route.

By the end you can
  • Bound the dimension of a span from the number of vectors
  • Decide membership by comparing rank A with rank [A | b]
  • Report the weights that express a member as a combination
  • Say why counting vectors can rule membership out but never in
Test yourself

1. Is(1,1)(1,1) in the span of(1,0)(1,0) and(0,1)(0,1)? Of(1,1)(1,1) alone? 2. Three vectors inR3\mathbb{R}^3: what does their span's dimension depend on, and what values are possible? 3.b\mathbf{b} is in the span of two vectors, and the system has one free variable. How many weight lists are there?

Answers

1.(1,1)=1⋅(1,0)+1⋅(0,1)(1,1) = 1\cdot(1,0) + 1\cdot(0,1), so yes. But(1,1)(1,1) alone spans only the line through(1,1)(1,1), and(1,0)(1,0) is not on it — so no. 2. It depends on how many of the three are independent: the possible dimensions are 0, 1, 2 or 3 (0 only for the all-zero set, 1 if they are all parallel, 2 if they are coplanar but not collinear, 3 if independent). 3. Infinitely many — one for each value of the free variable. Any of them is a correct answer to "expressb\mathbf{b} as a combination", because they all produce the same vector.

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