Type a command or search the notes. Tab cycles completions. Up and down recall history when blank. Escape dismisses, then leaves the prompt.
MATH
[1251]

Spans

Linear combinations, spans and membership tested by linear systems.

The span of a set is everything its vectors produce by linear combination. This page shows that the span is the smallest subspace containing the set and turns membership of the span into a linear system.

Combining chosen vectors

[DEFINITION]

Subspace

Let VV be a vector space over FF. A subset S⊆VS\subseteq V is a subspace of VV when it is a vector space over the same field FF and uses the addition and scalar multiplication inherited from VV. A proper subspace is a subspace that is not equal to VV.

[DEFINITION]

Linear combination

Let v1,…,vnv_1,\ldots,v_n be vectors in a vector space VV over FF. A linear combination of these vectors is an expression

λ1v1+⋯+λnvn,λ1,…,λn∈F.\lambda_1v_1+\cdots+\lambda_nv_n, \qquad \lambda_1,\ldots,\lambda_n\in F.

The vectors are fixed while the scalars vary. For non-zero, non-parallel u,v∈R3u,v\in\mathbb R^3, the vectors

λ1u+λ2v,λ1,λ2∈R,\lambda_1u+\lambda_2v,\qquad \lambda_1,\lambda_2\in\mathbb R,

form the plane through the origin determined by uu and vv, with each coefficient moving along one direction.

[THEOREM]

Closure under linear combinations

Every linear combination of a finite set of vectors in a vector space VV is an element of VV.

[PROOF]

For one vector, λ1v1∈V\lambda_1v_1\in V by scalar closure. Suppose every combination of kk vectors lies in VV. If

w=λ1v1+⋯+λkvk∈V,w=\lambda_1v_1+\cdots+\lambda_kv_k\in V,

then scalar closure gives λk+1vk+1∈V\lambda_{k+1}v_{k+1}\in V and addition closure gives

w+λk+1vk+1∈V.w+\lambda_{k+1}v_{k+1}\in V.

Induction proves the claim for every finite number of vectors.

The smallest subspace containing the chosen vectors

[DEFINITION]

Span

For a subset SS (possibly infinite) in a vector space VV over FF, the span of SS is the set of all finite linear combinations of vectors in SS:

span⁡(S)={λ1v1+⋯+λkvk:k≥0, v1,…,vk∈S, λ1,…,λk∈F}.\operatorname{span}(S) = \left\{ \lambda_1v_1+\cdots+\lambda_kv_k: k\geq 0,\ v_1,\ldots,v_k\in S,\ \lambda_1,\ldots,\lambda_k\in F \right\}.

For a finite set S={v1,…,vn}S=\{v_1,\ldots,v_n\}, this is the same as allowing one coefficient for each listed vector. When k=0k=0, the sum is the empty sum 00.

The span is the subspace generated by the chosen vectors. The empty-sum convention gives span⁡(∅)={0}\operatorname{span}(\varnothing)=\{0\}, which is needed for the zero vector space.

[THEOREM]

The span is a subspace

If SS is a subset of a vector space VV, then span⁡(S)\operatorname{span}(S) is a subspace of VV. It is the smallest subspace of VV that contains SS.

  1. [1]:Span
  2. [2]:Subspace
  3. [3]:Proof
[PROOF]

The empty combination gives 0∈span⁡(S)0\in\operatorname{span}(S). If uu and ww are finite linear combinations of vectors in SS, concatenating their lists of terms expresses u+wu+w as another finite linear combination. For γ∈F\gamma\in F, multiplying every coefficient in a finite combination for uu by γ\gamma expresses γu\gamma u in the span. The subspace test therefore applies.

If WW is any subspace containing SS, then WW is closed under scalar multiplication and addition. It must therefore contain every linear combination of the vectors in SS, so span⁡(S)⊆W\operatorname{span}(S)\subseteq W. Hence the span is the smallest such subspace.

[EXAMPLE]

Lines and planes through the origin

For v=(1,0,0)∈R3v=(1,0,0)\in\mathbb R^3,

span⁡{v}={(λ,0,0):λ∈R},\operatorname{span}\{v\} = \{(\lambda,0,0):\lambda\in\mathbb R\},

which is the line y=z=0y=z=0. The coefficient can be any real number, so the whole line is obtained; restricting it to an interval would give a bounded segment, which is not closed under scalar multiplication. Any plane through the origin containing this line is a larger subspace containing vv.

[routine]

  1. [1]:Span

Spanning familiar spaces

The examples from here on are over R\mathbb R, so PnP_n means Pn(R)P_n(\mathbb R) and matrix entries are real.

[DEFINITION]

Spanning set

A subset SS in a vector space VV is a spanning set for VV when

span⁡(S)=V.\operatorname{span}(S)=V.

A spanning set may contain redundant vectors.

[EXAMPLE]

Standard spanning sets

The set

{(10),(01)}\left\{ \begin{pmatrix}1\\0\end{pmatrix}, \begin{pmatrix}0\\1\end{pmatrix} \right\}

spans R2\mathbb R^2, since every (a,b)T(a,b)^T is

a(10)+b(01).a\begin{pmatrix}1\\0\end{pmatrix} +b\begin{pmatrix}0\\1\end{pmatrix}.

The set

{1,x,…,xn}\{1,x,\ldots,x^n\}

spans PnP_n, since each polynomial of degree at most nn is a linear combination of these powers. The four matrices

E11=(1000),E12=(0100),E21=(0010),E22=(0001)E_{11}=\begin{pmatrix}1&0\\0&0\end{pmatrix},\quad E_{12}=\begin{pmatrix}0&1\\0&0\end{pmatrix},\quad E_{21}=\begin{pmatrix}0&0\\1&0\end{pmatrix},\quad E_{22}=\begin{pmatrix}0&0\\0&1\end{pmatrix}

span M2×2(R)M_{2\times2}(\mathbb R), because

(abcd)=aE11+bE12+cE21+dE22.\begin{pmatrix}a&b\\c&d\end{pmatrix} =aE_{11}+bE_{12}+cE_{21}+dE_{22}.

[routine]

  1. [1]:Spanning set
[DEFINITION]

Column space

If S={v1,…,vn}S=\{v_1,\ldots,v_n\} is a set of vectors in Rm\mathbb R^m and A=[ v1 ⋯ vn ]A=[\,v_1\ \cdots\ v_n\,], then the span of SS is the column space of AA:

col⁡(A)=span⁡(S)={Ac:c∈Rn},\operatorname{col}(A)=\operatorname{span}(S) =\{Ac:c\in\mathbb R^n\},

where cc records the coefficients of the columns. Thus multiplying AA by cc is exactly the linear combination represented by those coefficients.

Membership as a linear system

Because AcAc is a linear combination of the columns of AA, asking whether a vector lies in a span is asking whether a linear system has a solution.

[METHOD]

Test membership in a span

To decide whether u∈Rmu\in\mathbb R^m lies in span⁡{v1,…,vn}\operatorname{span}\{v_1,\ldots,v_n\}, form A=[ v1 ⋯ vn ]A=[\,v_1\ \cdots\ v_n\,] and solve

Ac=u.Ac=u.

A solution for the scalar coefficients exists if and only if uu belongs to the span, equivalently to col⁡(A)\operatorname{col}(A).

Use row reduction on the augmented matrix [A∣u][A\mid u]. A contradictory row means that uu is not in the span.

[EXAMPLE]

A vector outside a span

Let

S={(102),(21−1)}.S= \left\{ \begin{pmatrix}1\\0\\2\end{pmatrix}, \begin{pmatrix}2\\1\\-1\end{pmatrix} \right\}.

To test whether (1,2,3)T(1,2,3)^T belongs to span⁡(S)\operatorname{span}(S), row-reduce

[1210122−13]∼[10−30120011].\left[ \begin{array}{cc|c} 1&2&1\\ 0&1&2\\ 2&-1&3 \end{array} \right] \sim \left[ \begin{array}{cc|c} 1&0&-3\\ 0&1&2\\ 0&0&11 \end{array} \right].

The last row is contradictory, so the system has no solution and

(123)∉span⁡(S).\begin{pmatrix}1\\2\\3\end{pmatrix}\notin\operatorname{span}(S).
[EXAMPLE]

Three vectors spanning R3\mathbb R^3

For

A=[11220132−1],A= \begin{bmatrix} 1&1&2\\ 2&0&1\\ 3&2&-1 \end{bmatrix},

row reduction gives

A∼[100010001].A\sim \begin{bmatrix} 1&0&0\\ 0&1&0\\ 0&0&1 \end{bmatrix}.

Thus Ac=bA c=b has a solution for every b∈R3b\in\mathbb R^3. The columns

(123),(102),(21−1)\begin{pmatrix}1\\2\\3\end{pmatrix},\qquad \begin{pmatrix}1\\0\\2\end{pmatrix},\qquad \begin{pmatrix}2\\1\\-1\end{pmatrix}

span R3\mathbb R^3.

[EXAMPLE]

Membership in a polynomial span

Let

q1=x3+2x2,q2=x−2,q_1=x^3+2x^2,\qquad q_2=x-2,

and write

p=a0+a1x+a2x2+a3x3.p=a_0+a_1x+a_2x^2+a_3x^3.

Then

αq1+βq2=−2β+βx+2αx2+αx3.\alpha q_1+\beta q_2 =-2\beta+\beta x+2\alpha x^2+\alpha x^3.

The constant and linear coefficients require a0=−2βa_0=-2\beta and a1=βa_1=\beta; the quadratic and cubic coefficients require a2=2αa_2=2\alpha and a3=αa_3=\alpha. Thus p∈span⁡{q1,q2}p\in\operatorname{span}\{q_1,q_2\} exactly when

a0=−2a1anda2=2a3.a_0=-2a_1 \qquad\text{and}\qquad a_2=2a_3.
[EXAMPLE]

A set that does not span P2P_2

Consider

q1=x+2x2,q2=x−2,q3=x2+1.q_1=x+2x^2,\qquad q_2=x-2,\qquad q_3=x^2+1.

For

p=a0+a1x+a2x2,p=a_0+a_1x+a_2x^2,

the equation

αq1+βq2+γq3=p\alpha q_1+\beta q_2+\gamma q_3=p

gives

−2β+γ=a0,α+β=a1,2α+γ=a2.-2\beta+\gamma=a_0,\qquad \alpha+\beta=a_1,\qquad 2\alpha+\gamma=a_2.

The first two equations give γ=a0+2β\gamma=a_0+2\beta and α=a1−β\alpha=a_1-\beta. Substituting into the third gives the condition

a2=a0+2a1.a_2=a_0+2a_1.

Conversely, when this condition holds, those choices of α\alpha and γ\gamma solve all three equations for any β\beta. The polynomial p=x2p=x^2 fails the condition, so these three polynomials do not span P2P_2.

Linear independence asks when the coefficients in a span are unique.

On this page