Zum Inhalt springen

Span

Aus Wikibooks

In linear algebra, the span of a subset M of a vector space V over a field K is the set of all linear combinations with vectors from M and scalars from K. The span is often called the linear hull of M or the span of M.

The span forms a subspace of the vector space V, namely the smallest subspace that contains M.

Derivation of the span

[Bearbeiten]

Generating vectors of the xy-plane

[Bearbeiten]

We consider the vector space ℝ3 and restrict to the xy-plane. I.e., the set of all vectors of the form (a,b,0)T with a,b∈ℝ:

The xy-plane in three-dimensional space
The xy-plane in three-dimensional space

Each vector of this plane can be written as a linear combination of the vectors (1,0,0)T and (0,1,0)T:

(ab0)=a⋅(100)+b⋅(010)

With the set of these linear combinations, every point of the xy-plane can be reached. In particular, the two vectors (1,0,0)T and (0,1,0)T lie in the xy-plane. Furthermore, all linear combinations of the two vectors (1,0,0)T and (0,1,0)T lie in the xy-plane. This is because the z component of the two vectors under consideration is 0 and thus the third component of the linear combination of the vectors must also be 0.

In summary, we can state: Every vector of the xy-plane is a linear combination of (1,0,0)T and (0,1,0)T. Every linear combination of these two vectors is also an element of this plane. So the vectors (1,0,0)T and (0,1,0)T generate the xy-plane. Or as a mathematician would say, they span the xy-plane (like two rods spanning a side of a tent).

The xy-plane is a subspace of the vector space ℝ3. We call this subspace U. Our two vectors span the subspace (=plane) U. So we write

U=span⁡{(100),(010)}.

We say that "U is substpace generated by the two vectors (1,0,0)T and (0,1,0)T" or that "U is the linear hull of the two vectors (1,0,0)T and (0,1,0)T or even better: U is the span of the two vectors (1,0,0)T and (0,1,0)T.

Are these generating vectors unique? The answer is no, because the plane U can also be spanned by two vectors like (1,0,0)T and (1,1,0)T:

(ab0)=(a−b)⋅(100)+b⋅(110).

There is hence also

U=span⁡{(100),(110)}.

Thus, the two vectors spanning a plane are not necessarily unique.

Intuitively, we can think of the span of vectors as the set of all possible linear combinations that can be built from these vectors. In our example this means

span⁡{(100),(010)}={a⋅(100)+b⋅(010)|a,b∈ℝ}.

Another intuition is the following: The span of a set M describes the vector space where all combinations of directions represented by elements from M are merged.

The span of even monomials

[Bearbeiten]

We now examine a slightly more complicated example: Consider the vector space V of polynomials over ℝ. Let M={xn|n∈ℕ0 is even}⊂V. The elements from M are the monomials 1, x2, x4, x6 ans so on. In other words, all monomials that have an even exponent. For odd exponents, however x,x3,x5,...∉M. We consider span⁡(M), the set of all linear combinations with vectors of M. For example 2x2+5x4+9x8+7x12 is an element in span⁡(M). In particualr, span⁡(M) is a subspace of V since it contains polynomials.

Further, the set span⁡(M) is not empty, since it contains for instance x2∈M.

Let us now consider two polynomials p,q∈span⁡(M). By construction of span⁡(M), p and q consist exclusively of monomials with an even exponent. Thus, of addition of p and q also results in a polynomial with exclusively even exponents. The set span⁡(M) is therefore closed with respect to addition.

The same argument gives us completeness with respect to scalar multiplication. Thus the set span⁡(M) is a subspace of the vector space of all polynomials. As we will see later, it is even the smallest subspace that contains M.

Definition of the span

[Bearbeiten]

Above, we found out that the span of a set M is the set of all linear combinations with vectors from M. Intuitively, the span is the subspace resulting from the union of all directions given by vectors from M. Now, we make this intuition mathematically precise.

Definition (Span of a set)

Let V be a vector space over the field K. Let M⊆V be a non-empty set. We define the span of M as the set of all vectors from V which can be represented as a finite linear combination of vectors from M and denote it as span⁡(M):

span⁡(M)={∑i=1nλi⋅mi| n∈ℕ,λ1,…,λn∈K,m1,…,mn∈M}

For the empty set we define:

span⁡(∅︀)={0}

Alternatively, one can call the span of a set the generated subspace or linear hull.

Hint

The sum always has only finitely many summands, even if M is infinite.

Hint

Occasionally, the notation ⟨M⟩K is also used for the span. The advantage of this notation is that it is clear which field defines the vector space. It makes a difference which field we use as a basis. For the example for M:={1} we have that π⋅1∈⟨M⟩ℝ, but π⋅1∉⟨M⟩ℚ. It can be shown that ⟨M⟩ℚ=ℚ and ⟨M⟩ℝ=ℝ.

Example

[Bearbeiten]

Example (Line through the origin is a certain span)

Let x=(1,2)T∈ℝ2. We consider the set {x} as a subset of the vector space ℝ2. The span span⁡({x}) is the straight line through the origin pointing in the direction of the vector (1,2)T.

span⁡({x})=span⁡({(12)})={ρ⋅(12)|ρ∈ℝ}

Example (plane through the origin as a span)

Let (5,0,0)T and (0,3,0)T be two vectors from ℝ3. The span of these two vectors is the xy-plane. The following transformation shows

span⁡({(500),(030)})={λ⋅(500)+μ⋅(030)| λ,μ∈ℝ}={5⋅λ⋅(100)+3⋅μ⋅(010)| λ,μ∈ℝ} ↓set λ~=5⋅λ, μ~=3⋅μ  bzw.  λ=15⋅λ~, μ=13⋅μ~={λ~⋅(100)+⋅μ~⋅(010)| λ~,μ~∈ℝ}={(λ~μ~0)| λ~,μ~∈ℝ}

Overview: Properties of the span

[Bearbeiten]

Let V be a K-vector space, M, N⊆V subsets of V and W⊆V a subspace of V. Then, we have

  • For a vector v∈V we have span⁡({v})={λ⋅v|λ∈K}
  • If N⊆M, then span⁡(N)⊆span⁡(M)
  • From span⁡(N)=span⁡(M) one can usually not conclude N=M
  • M⊆span⁡(M)
  • span⁡(M) is a subspace of V
  • For a subspace W we have span⁡(W)=W
  • span⁡(M) is the smallest subspace of V including M
  • N⊆span⁡(M)⟺span⁡(M)=span⁡(M∪N)
  • span⁡(span⁡(M))=span⁡(M)


Properties of the span

[Bearbeiten]

The span of a vector v in V

[Bearbeiten]

For a vector v∈V we have that span⁡({v})={λ⋅v| λ∈K}. For the zero vector v=0 the span again consists only of the zero vector, so span⁡({0})={0}. If v≠0 holds, then span⁡({v}) is exactly the set of elements that lie on the line through the origin im direction of the vector v.

Span preserves subsets

[Bearbeiten]

Theorem (Span preserves subsets)

Let V be a K-vector space and let M,N⊆V. If N⊆M, then also span⁡(N)⊆span⁡(M).

Proof (Span preserves subsets)

Since span⁡(∅︀)={0} and 0 is an element in the span of every set, we have span⁡(∅︀)={0}⊆M.

Thus we can assume without loss of generality that ∅︀≠N⊆M. We consider any element v∈span⁡(N). By the definition of the span, vectors v1,...,vn∈N and λ1,...,λn∈K exist such that v=∑i=1nλivi. Because of N⊆M we have for all vi with 1≤i≤n that vi∈M. Hence also v∈span⁡(M). Consequently, span⁡(N)⊆span⁡(M).

Hint

The converse of the above theorem does not hold true in general! By this we mean: From span⁡(N)⊆span⁡(M) we cannot conclude N⊆M.

A possible counterexample is:

N={(10),(20)} and M={(10)}

Here,

span⁡(N)={λ1⋅(10)+λ2⋅(20)| λ1,λ2∈K}={(λ1+2λ2)⋅(10)| λ1,λ2∈K}span⁡(M)={μ⋅(10)| μ∈K}

Thus span⁡(N)=span⁡(M), since in both cases we get exactly the multiples of the vector (1,0)T. Since the two subsets are equal, we have in particular span⁡(N)⊆span⁡(M), but N⊈M. Therefore, the converse of the theorem cannot hold true in general.

The set M is contained in its span

[Bearbeiten]

Theorem (M is contained in its span)

Let V ein K-vector space and M⊆V. Then, there is M⊆span⁡(M).

Proof (M is contained in its span)

If M=∅︀, then span⁡(M)={0} , and the assertion is true.

Otherwise, let m∈M be arbitrary. Then m can be represented by m=1⋅m. In particular, m=1⋅m is a linear combination with a summand of M. Thus there is m∈span⁡(M), since span⁡(M) contains all linear combinations of elements from M.

This establishes the assertion M⊆span⁡(M).

The span of M is a subspace of V

[Bearbeiten]

Theorem (The span of M is a subspace of V)

span⁡(M) is a subspace of V

Proof (The span of M is a subspace of V)

If M is the empty set, then by definition span⁡(M)={0}, and that is a subspace of V. From now on we may therefore assume that M is not empty.

First, it is clear that span⁡(M)⊆V. But this is obvious according to the definition of vector space and span.

We still have to show span⁡(M) is subspace of V. In other words,we have to show that

  • span⁡(M)≠∅︀
  • for two elements u,v∈span⁡(M) we have also u+v∈span⁡(M) (completeness of addition)
  • ρ⋅u∈span⁡(M) (completeness of scalar multiplication)

Proof step: span⁡(M)≠∅︀

Since span⁡M is not empty, there exists at least one u∈M. Then u can be written as u=1⋅u, and therefore u itself is in span⁡M. So this condition is fulfilled.

Proof step: Completeness of addition

We show the completeness concerning the vector addition. Let u,v∈span⁡(M). Then there are vectors m1,…,mn∈M and n1,…,nk∈M, so that u=∑i=1nλi⋅mi and v=∑i=1kμi⋅ni. So

u+v=∑i=1nλi⋅mi+∑i=1kμi⋅ni∈span⁡(M)

Hence, span⁡(M) is complete with respect to addition.

Proof step: Completeness of scalar multiplication

Establish completeness of scalar multiplication is done easily:

ρ⋅u=ρ⋅∑i=1nλi⋅mi=∑i=1n(ρ⋅λi)⋅mi∈span⁡(M)

Thus we have proved that span⁡(M) is a subspace of the vector space V.

The span of a subspace W is again W

[Bearbeiten]

Theorem (The span of M is the smallest subspace von V)

The span of a subspace W is again W

Proof (The span of M is the smallest subspace von V)

Since W is a subspace, for some vectors m1,…,mn∈W also all linear combinations of the m1,…,mn are contained in W. Therefore span⁡(W)⊆W. Together with W⊆span⁡(W) our assertion follows.


The span of M is the smallest subspace of V, containing M

[Bearbeiten]

Theorem (The span of M is the smallest subspace of V)

Let V be a K-vector space and let M⊆V.

Then, span⁡(M) is the smallest subspace of V including M.

Proof (The span of M is the smallest subspace of V)

We already know that span⁡(M) is a subspace. Now we show that span⁡(M) is the smallest subspace containing M.

If M=∅︀, the assertion is obviously true, since then span⁡(M)={0}.

Let W be a subspace of V containing M. Our goal is to show that span⁡(M)⊆isW. Since this would imply that the subspace span⁡(M) is smaller or equal to every other subspace W containing M.

Now if u∈span⁡(M), then there are some m1,...,mn∈M and λ1,…,λn∈K such that u=∑i=1nλimi (by definition of the span).

Since W is a subspace and m1,…,mn∈W, all linear combinations of m1,…,mn are also contained in W. This implies our assertion span⁡(M)⊆W.

Idempotency of the span

[Bearbeiten]

Theorem (Idempotency of the span)

Let V be a K-vector space and M⊆V. Then we have span⁡(span⁡(M))=span⁡(M). This property of the span is called idempotency.

Proof (Idempotency of the span)

For M=∅︀ we have span⁡(∅︀)={0} and span⁡(span⁡(∅︀))=span⁡({0})={0}.

Therefore, we can now assume that M is not empty.

We already know that span⁡(M)⊆span⁡(span⁡(M)). So it only remains to show that span⁡(span⁡(M))⊆span⁡(M).

Let v∈span⁡(span⁡(M)). Then v can be written as

v=λ1⋅u1+...+λn⋅un

with λ1,...,λn∈K and u1,...,un∈span⁡(M). Since ui∈span⁡(M) for all 1≤i≤n, every ui can be written as a linear combination of elements in M:

ui=μ1⋅wi,1+...+μmi⋅wi,mi

where μ1,...,μmi∈K and wi,1,...,wi,mi∈M. We now write the ui within vas a linear combination of the wi,j:

v=∑i=1nλiui↓ ui=μ1⋅wi,1+...+μmi⋅wi,mi=∑i=1nλi(∑j=1miμjwi,j)=∑i=1n∑j=1mi(λiμj)wi,j

For all 1≤i≤n, the sum ∑j=1miλiμj is an element of the field K. So we obtain v∈span⁡(M), which was to be shown.

Alternative proof (Idempotency of the span)

We know that span⁡(M) is a subspace of V, and that the span span⁡(W) of a subspace W is W again.

Therefore, span⁡(span⁡(M)) is again span⁡(M).

Adding elements of the span doesn't change the span

[Bearbeiten]

Theorem (Adding elements of the span doesn't change the span)

Let V be a K-vector space and M, N⊆V. Then, we have

N⊆span⁡(M)⟺span⁡(M)=span⁡(M∪N)

Proof (Adding elements of the span doesn't change the span)

We will establish the two implications ⟹ and ⟸:

Proof step: N⊆span⁡(M)⟹span⁡(M)=span⁡(M∪N)

The statement span⁡(M)⊆span⁡(M∪N) does always hold, since M⊆M∪N. So all that remains is to show that span⁡(M∪N)⊆span⁡(M) holds. In order to do this, we consider an element u∈span⁡(M∪N). We can write it as

u=∑i=0nλivi+∑i=0mμiwi,

with v1,...,vn∈M, w1,...,wm∈N, λ1,...,λn∈K and μ1,...,μm∈K. Since N⊆span⁡(M), one can write wi for all 1≤i≤m as a linear combination of elements from M:

wi=ρ1⋅v̂1+...+ρmi⋅v̂mi

where ρ1,...,ρmi∈K and v̂1,...,v̂mi∈M. Now, we plug this expression for wi into the formula above:

u=∑i=0nλivi+∑i=0mμi(∑j=1miρjv̂j)=∑i=0nλivi+∑i=1m∑j=1mi(μiρj)v̂j

We have thus represented u as a linear combination of vectors from M and hence span⁡(M)=span⁡(M∪N).

Proof step: N⊆span⁡(M)⟸span⁡(M)=span⁡(M∪N)

We show this statement using a proof by contradiction. We assume that there is some w∈N but w∉span⁡(M). We now define an element u:=∑i=0nλivi+w, with v1,...,vn∈M and λ1,...,λn∈K.

Now u is a linear combination of vectors from M∪N. Thus u∈span⁡(M∪N), since w∈N. However, we also have u∉span⁡(M), since w∉span⁡(M). But this contradicts the assumption span⁡(M)=span⁡(M∪N).

Hence our assumption is false and N⊆span⁡(M) must hold.

Alternative proof (First proof step)

One can also argue as follows: we have M,N⊆span⁡(M). So also M∪N⊆span⁡(M).

We have already proved that then span⁡(M∪N)⊆span⁡(span⁡(M)). This set is the same as span⁡(M) because of the idempotency of the span, so span⁡(M∪N)=span⁡(M).

Check whether vectors are inside the span

[Bearbeiten]

After we have learned some properties of the span, we will show in this section how we can check whether a vector of V lies within the span of M⊆V or not. We will see that in order to answer this question we have to solve a linear system of equations.

Example (Plane and line through the origin)

Let's start with a simple example from the ℝ2. We consider the line through the origin span⁡(M) with the one-element subset M={(4,3)T} of the plane ℝ2. The question now is whether the vector (12,9)T lies in the span of M. One can immediately see that

(129)=3⋅(43)

holds. In other words

(129)∈span⁡(M)

Mathematically, we have to solve a system of equations. In our simple example, the exercise is to find a λ∈K such that

(129)=λ⋅(43)

From this equation we obtain the linear system of equations

12=λ⋅49=λ⋅3

with the obvious solution λ=3.

Example (Polynomials)

Let us now examine an example whose solution is not obvious at first sight. For this we consider the subset of the monomials N={x3,x1,x0} and the polynomial p(x)=(x−2)3+3(x−2)2. We want to show that the polynomial is not in the span of N. To do this, it suffices to prove that p(x) cannot be represented as a linear combination of the monomials of N. We can see this by transforming the polynomial:

(x−2)3+3(x−2)2=(x3+12x−6x2−8)+(3x2−12x+12)=x3−3x2+4

We see that a summand contains the monomial x2, but this monomial is not contained in N. Thus the polynomial is not in the span of the set N.

Example (Vectors from ℝ4)

We consider the subset M={(1,−2,3,2)T,(3,0,2,1)T,(0,−2,1,−3)T,(1,1,−2,2)T} of ℝ4 and want to prove that the vector (2,−9,2,−3)T∈span⁡(M). For this we have to show that there are coefficients λ1,λ2,λ3,λ4∈ℝ such that

(2−92−3)=λ1⋅(1−232)+λ2⋅(3021)+λ3⋅(0−21−3)+λ4⋅(11−22)

From this representation we get the linear system of equations

I:2=1⋅λ1+3⋅λ2+0⋅λ3+1⋅λ4II:−9=−2⋅λ1+0⋅λ2−2⋅λ3+1⋅λ4III:2=3⋅λ1+2⋅λ2+1⋅λ3−2⋅λ4IV:−3=2⋅λ1+1⋅λ2−3⋅λ3+2⋅λ4

with solution λ1=2, λ2=−1, λ3=4, λ4=3. Hence, we have that

(2−92−3)=2⋅(1−232)−1⋅(3021)+4⋅(0−21−3)+3⋅(11−22)

and therefore (2,−9,2,−3)T∈span⁡(M).