# Linear span

__: In linear algebra, generated subspace__

**Short description**In mathematics, the **linear span** (also called the **linear hull**^{[1]} or just **span**) of a set S of vectors (from a vector space), denoted span(*S*),^{[2]} is defined as the set of all linear combinations of the vectors in S.^{[3]}
For example, two linearly independent vectors span a plane.
The linear span can be characterized either as the intersection of all linear subspaces that contain S, or as the smallest subspace containing S. The linear span of a set of vectors is therefore a vector space itself. Spans can be generalized to matroids and modules.

To express that a vector space V is a linear span of a subset S, one commonly uses the following phrases—either: S spans V, S is a **spanning set** of V, V is spanned/generated by S, or S is a generator or generator set of V.

## Definition

Given a vector space V over a field K, the span of a set S of vectors (not necessarily finite) is defined to be the intersection W of all subspaces of V that contain S. W is referred to as the subspace *spanned by* S, or by the vectors in S. Conversely, S is called a *spanning set* of W, and we say that S *spans* W.

Alternatively, the span of S may be defined as the set of all finite linear combinations of elements (vectors) of S, which follows from the above definition.^{[4]}^{[5]}^{[6]}^{[7]}

[math]\displaystyle{ \operatorname{span}(S) = \left \{ {\left.\sum_{i=1}^k \lambda_i \mathbf v_i \;\right|\; k \in \N, \mathbf v_i \in S, \lambda _i \in K} \right \}. }[/math]

In the case of infinite S, infinite linear combinations (i.e. where a combination may involve an infinite sum, assuming that such sums are defined somehow as in, say, a Banach space) are excluded by the definition; a generalization that allows these is not equivalent.

## Examples

The real vector space [math]\displaystyle{ \mathbb R^3 }[/math] has {(−1, 0, 0), (0, 1, 0), (0, 0, 1)} as a spanning set. This particular spanning set is also a basis. If (−1, 0, 0) were replaced by (1, 0, 0), it would also form the canonical basis of [math]\displaystyle{ \mathbb R^3 }[/math].

Another spanning set for the same space is given by {(1, 2, 3), (0, 1, 2), (−1, ^{1}⁄_{2}, 3), (1, 1, 1)}, but this set is not a basis, because it is linearly dependent.

The set {(1, 0, 0), (0, 1, 0), (1, 1, 0)} is not a spanning set of [math]\displaystyle{ \mathbb R^3 }[/math], since its span is the space of all vectors in [math]\displaystyle{ \mathbb R^3 }[/math] whose last component is zero. That space is also spanned by the set {(1, 0, 0), (0, 1, 0)}, as (1, 1, 0) is a linear combination of (1, 0, 0) and (0, 1, 0). Thus, the spanned space is not [math]\displaystyle{ \mathbb R^3. }[/math] It can be identified with [math]\displaystyle{ \mathbb R^2 }[/math] by removing the third components equal to zero.

The empty set is a spanning set of {(0, 0, 0)}, since the empty set is a subset of all possible vector spaces in [math]\displaystyle{ \mathbb R^3 }[/math], and {(0, 0, 0)} is the intersection of all of these vector spaces.

The set of monomials x^{n}, where n is a non-negative integer, spans the space of polynomials.

## Theorems

### Equivalence of definitions

The set of all linear combinations of a subset S of V, a vector space over K, is the smallest linear subspace of V containing S.

*Proof.*We first prove that span*S*is a subspace of V. Since S is a subset of V, we only need to prove the existence of a zero vector**0**in span*S*, that span*S*is closed under addition, and that span*S*is closed under scalar multiplication. Letting [math]\displaystyle{ S = \{ \mathbf v_1, \mathbf v_2, \ldots, \mathbf v_n \} }[/math], it is trivial that the zero vector of V exists in span*S*, since [math]\displaystyle{ \mathbf 0 = 0 \mathbf v_1 + 0 \mathbf v_2 + \cdots + 0 \mathbf v_n }[/math]. Adding together two linear combinations of S also produces a linear combination of S: [math]\displaystyle{ (\lambda_1 \mathbf v_1 + \cdots + \lambda_n \mathbf v_n) + (\mu_1 \mathbf v_1 + \cdots + \mu_n \mathbf v_n) = (\lambda_1 + \mu_1) \mathbf v_1 + \cdots + (\lambda_n + \mu_n) \mathbf v_n }[/math], where all [math]\displaystyle{ \lambda_i, \mu_i \in K }[/math], and multiplying a linear combination of S by a scalar [math]\displaystyle{ c \in K }[/math] will produce another linear combination of S: [math]\displaystyle{ c(\lambda_1 \mathbf v_1 + \cdots + \lambda_n \mathbf v_n) = c\lambda_1 \mathbf v_1 + \cdots + c\lambda_n \mathbf v_n }[/math]. Thus span*S*is a subspace of V.

- Suppose that W is a linear subspace of V containing S. It follows that [math]\displaystyle{ S \subseteq \operatorname{span} S }[/math], since every
**v**_{i}is a linear combination of S (trivially). Since W is closed under addition and scalar multiplication, then every linear combination [math]\displaystyle{ \lambda_1 \mathbf v_1 + \cdots + \lambda_n \mathbf v_n }[/math] must be contained in W. Thus, span*S*is contained in every subspace of V containing S, and the intersection of all such subspaces, or the smallest such subspace, is equal to the set of all linear combinations of S.

### Size of spanning set is at least size of linearly independent set

Every spanning set S of a vector space V must contain at least as many elements as any linearly independent set of vectors from V.

*Proof.*Let [math]\displaystyle{ S = \{ \mathbf v_1, \ldots, \mathbf v_m \} }[/math] be a spanning set and [math]\displaystyle{ W = \{ \mathbf w_1, \ldots, \mathbf w_n \} }[/math] be a linearly independent set of vectors from V. We want to show that [math]\displaystyle{ m \geq n }[/math].

- Since S spans V, then [math]\displaystyle{ S \cup \{ \mathbf w_1 \} }[/math] must also span V, and [math]\displaystyle{ \mathbf w_1 }[/math] must be a linear combination of S. Thus [math]\displaystyle{ S \cup \{ \mathbf w_1 \} }[/math] is linearly dependent, and we can remove one vector from S that is a linear combination of the other elements. This vector cannot be any of the
**w**_{i}, since W is linearly independent. The resulting set is [math]\displaystyle{ \{ \mathbf w_1, \mathbf v_1, \ldots, \mathbf v_{i-1}, \mathbf v_{i+1}, \ldots, \mathbf v_m \} }[/math], which is a spanning set of V. We repeat this step n times, where the resulting set after the pth step is the union of [math]\displaystyle{ \{ \mathbf w_1, \ldots, \mathbf w_p \} }[/math] and m - p vectors of S.

- It is ensured until the nth step that there will always be some
**v**_{i}to remove out of S for every adjoint of**v**, and thus there are at least as many**v**_{i}'s as there are**w**_{i}'s—i.e. [math]\displaystyle{ m \geq n }[/math]. To verify this, we assume by way of contradiction that [math]\displaystyle{ m \lt n }[/math]. Then, at the mth step, we have the set [math]\displaystyle{ \{ \mathbf w_1, \ldots, \mathbf w_m \} }[/math] and we can adjoin another vector [math]\displaystyle{ \mathbf w_{m+1} }[/math]. But, since [math]\displaystyle{ \{ \mathbf w_1, \ldots, \mathbf w_m \} }[/math] is a spanning set of V, [math]\displaystyle{ \mathbf w_{m+1} }[/math] is a linear combination of [math]\displaystyle{ \{ \mathbf w_1, \ldots, \mathbf w_m \} }[/math]. This is a contradiction, since W is linearly independent.

### Spanning set can be reduced to a basis

Let V be a finite-dimensional vector space. Any set of vectors that spans V can be reduced to a basis for V, by discarding vectors if necessary (i.e. if there are linearly dependent vectors in the set). If the axiom of choice holds, this is true without the assumption that V has finite dimension. This also indicates that a basis is a minimal spanning set when V is finite-dimensional.

## Generalizations

Generalizing the definition of the span of points in space, a subset X of the ground set of a matroid is called a spanning set if the rank of X equals the rank of the entire ground set^{[citation needed]}.

The vector space definition can also be generalized to modules.^{[8]}^{[9]} Given an R-module A and a collection of elements *a*_{1}, ..., *a _{n}* of A, the submodule of A spanned by

*a*

_{1}, ...,

*a*is the sum of cyclic modules [math]\displaystyle{ Ra_1 + \cdots + Ra_n = \left\{ \sum_{k=1}^n r_k a_k \bigg| r_k \in R \right\} }[/math] consisting of all

_{n}*R*-linear combinations of the elements

*a*. As with the case of vector spaces, the submodule of

_{i}*A*spanned by any subset of

*A*is the intersection of all submodules containing that subset.

## Closed linear span (functional analysis)

In functional analysis, a closed linear span of a set of vectors is the minimal closed set which contains the linear span of that set.

Suppose that X is a normed vector space and let E be any non-empty subset of X. The **closed linear span** of E, denoted by [math]\displaystyle{ \overline{\operatorname{Sp}}(E) }[/math] or [math]\displaystyle{ \overline{\operatorname{Span}}(E) }[/math], is the intersection of all the closed linear subspaces of X which contain E.

One mathematical formulation of this is

- [math]\displaystyle{ \overline{\operatorname{Sp}}(E) = \{u\in X | \forall\varepsilon \gt 0\,\exists x\in\operatorname{Sp}(E) : \|x - u\|\lt \varepsilon\}. }[/math]

The closed linear span of the set of functions *x ^{n}* on the interval [0, 1], where

*n*is a non-negative integer, depends on the norm used. If the

*L*

^{2}norm is used, then the closed linear span is the Hilbert space of square-integrable functions on the interval. But if the maximum norm is used, the closed linear span will be the space of continuous functions on the interval. In either case, the closed linear span contains functions that are not polynomials, and so are not in the linear span itself. However, the cardinality of the set of functions in the closed linear span is the cardinality of the continuum, which is the same cardinality as for the set of polynomials.

### Notes

The linear span of a set is dense in the closed linear span. Moreover, as stated in the lemma below, the closed linear span is indeed the closure of the linear span.

Closed linear spans are important when dealing with closed linear subspaces (which are themselves highly important, see Riesz's lemma).

### A useful lemma

Let X be a normed space and let E be any non-empty subset of X. Then

- [math]\displaystyle{ \overline{\operatorname{Sp}}(E) }[/math] is a closed linear subspace of
*X*which contains*E*, - [math]\displaystyle{ \overline{\operatorname{Sp}}(E) = \overline{\operatorname{Sp}(E)} }[/math], viz. [math]\displaystyle{ \overline{\operatorname{Sp}}(E) }[/math] is the closure of [math]\displaystyle{ \operatorname{Sp}(E) }[/math],
- [math]\displaystyle{ E^\perp = (\operatorname{Sp}(E))^\perp = \left(\overline{\operatorname{Sp}(E)}\right)^\perp. }[/math]

(So the usual way to find the closed linear span is to find the linear span first, and then the closure of that linear span.)

## See also

## Citations

- ↑ (Encyclopedia of Mathematics 2020). Linear Hull.
- ↑ (Axler 2015) pp. 29-30, §§ 2.5, 2.8
- ↑ (Axler 2015) p. 29, § 2.7
- ↑ (Hefferon 2020) p. 100, ch. 2, Definition 2.13
- ↑ (Axler 2015) pp. 29-30, §§ 2.5, 2.8
- ↑ (Roman 2005) pp. 41-42
- ↑ (MathWorld 2021) Vector Space Span.
- ↑ (Roman 2005) p. 96, ch. 4
- ↑ (Lane Birkhoff) p. 193, ch. 6

## Sources

### Textbooks

- Axler, Sheldon Jay (2015).
*Linear Algebra Done Right*(3rd ed.). Springer. ISBN 978-3-319-11079-0. - Hefferon, Jim (2020).
*Linear Algebra*(4th ed.). Orthogonal Publishing. ISBN 978-1-944325-11-4. - Lane, Saunders Mac; Birkhoff, Garrett (1999).
*Algebra*(3rd ed.). AMS Chelsea Publishing. ISBN 978-0821816462. - Roman, Steven (2005).
*Advanced Linear Algebra*(2nd ed.). Springer. ISBN 0-387-24766-1. - Rynne, Brian P.; Youngson, Martin A. (2008).
*Linear Functional Analysis*. Springer. ISBN 978-1848000049. - Lay, David C. (2021)
*Linear Algebra and Its Applications (6th Edition)*. Pearson.

### Web

- Lankham, Isaiah; Nachtergaele, Bruno; Schilling, Anne (13 February 2010). "Linear Algebra - As an Introduction to Abstract Mathematics". University of California, Davis. https://www.math.ucdavis.edu/~anne/linear_algebra/mat67_course_notes.pdf.
- Weisstein, Eric Wolfgang. "Vector Space Span". https://mathworld.wolfram.com/VectorSpaceSpan.html.
- "Linear hull". 5 April 2020. https://encyclopediaofmath.org/wiki/Linear_hull.

## External links

- Linear Combinations and Span: Understanding linear combinations and spans of vectors, khanacademy.org.

Original source: https://en.wikipedia.org/wiki/Linear span.
Read more |