Content deleted Content added
RProgrammer (talk | contribs) m I don't know why but, as a new learner to this, I was so confused..but this would have cleared it up :) |
No edit summary |
||
(95 intermediate revisions by 47 users not shown) | |||
Line 1:
{{Short description|In linear algebra, generated subspace}}
[[File:Basis for a plane.svg|thumb|280px|right|The cross-hatched plane is the linear span of '''u''' and '''v''' in both '''R'''<sup>2</sup> and '''R'''<sup>3</sup>, here shown in [[Perspective (graphical)|perspective]].]]
In [[mathematics]], the '''linear span''' (also called the '''linear hull'''<ref>{{Harvard citation text|Encyclopedia of Mathematics|2020}}. Linear Hull.</ref> or just '''span''') of a [[Set (mathematics)|set]] <math>S</math> of elements of a [[vector space]] <math>V</math> is the smallest [[linear subspace]] of <math>V</math> that contains <math>S.</math> It is the set of all finite [[linear combination]]s of the elements of {{mvar|S}},<ref>{{Harvard citation text|Axler|2015}} p. 29, § 2.7</ref> and the intersection of all linear subspaces that contain <math>S.</math> It is often denoted {{math|span(''S'')}}<ref name=":0">{{Harvard citation text|Axler|2015}} pp. 29-30, §§ 2.5, 2.8</ref> or <math>\langle S \rangle.</math>
For example, in [[geometry]], two [[linearly independent]] [[vector (geometry)|vectors]] span a [[plane (geometry)|plane]].
To express that a vector space {{mvar|V}} is a linear span of a subset {{mvar|S}}, one commonly uses one of the following phrases: {{mvar|S}} spans {{mvar|V}}; {{mvar|S}} is a '''spanning set''' of {{mvar|V}}; {{mvar|V}} is spanned or [[generator (mathematics)|generated]] by {{mvar|S}}; {{mvar|S}} is a generator set or a generating set of {{mvar|V}}.
Spans can be generalized to many [[mathematical structure]]s, in which case, the smallest substructure containing <math>S</math> is generally called the substructure ''generated'' by <math>S.</math>
== Definition ==
Given a [[vector space]] {{mvar|V}} over a [[field (mathematics)|field]] {{mvar|K}}, the span of a [[Set (mathematics)|set]] {{mvar|S}} of vectors (not necessarily finite) is defined to be the intersection {{mvar|W}} of all [[linear subspace|subspaces]] of {{mvar|V}} that contain {{mvar|S}}. It is thus the smallest (for [[set inclusion]]) subspace containing {{mvar|S}}. It is referred to as the subspace ''spanned by'' {{mvar|S}}, or by the vectors in {{mvar|S}}. Conversely, {{mvar|S}} is called a ''spanning set'' of {{mvar|W}}, and we say that {{mvar|S}} ''spans'' {{mvar|W}}.
It follows from this definition that the span of {{mvar|S}} is the set of all finite [[linear combinations]] of elements (vectors) of {{mvar|S}}, and can be defined as such.<ref>{{Harvard citation text|Hefferon|2020}} p. 100, ch. 2, Definition 2.13</ref><ref name=":02">{{Harvard citation text|Axler|2015}} pp. 29-30, §§ 2.5, 2.8</ref><ref>{{Harvard citation text|Roman|2005}} pp. 41-42</ref> That is, <math display="block"> \operatorname{span}(S) = \biggl \{ \lambda_1 \mathbf v_1 + \lambda_2 \mathbf v_2 + \cdots + \lambda_n \mathbf v_n \mid n \in \N,\; \mathbf v_1,...\mathbf v_n \in S, \; \lambda_1,...\lambda_n \in K \biggr \}</math>
When {{mvar|S}} is [[empty set|empty]], the only possibility is {{math|1=''n'' = 0}}, and the previous expression for <math>\operatorname{span}(S)</math> reduces to the [[empty sum]].{{efn| This is logically valid as when {{math|1= ''n'' = 0}}, the conditions for the vectors and constants are empty, and therefore [[vacuously]] satisfied.}} The standard convention for the empty sum implies thus <math>\text{span}(\empty) = \{\mathbf 0\}, </math> a property that is immediate with the other definitions. However, many introductory textbooks simply include this fact as part of the definition.
When <math>S=\{\mathbf v_1,\ldots, \mathbf v_n\}</math> is [[finite set|finite]], one has
<math display="block"> \operatorname{span}(S) = \{ \lambda_1 \mathbf v_1 + \lambda_2 \mathbf v_2 + \cdots + \lambda_n \mathbf v_n \mid \lambda_1,...\lambda_n \in K \}</math>
== Examples ==
The [[real number|real]] vector space <math>\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 (linear algebra)|basis]]. If (−1, 0, 0) were replaced by (1, 0, 0), it would also form the [[standard basis|canonical basis]] of <math>\mathbb R^3</math>.
Another spanning set for the same space is given by {(1, 2, 3), (0, 1, 2), (−1, {{frac|1|2}}, 3), (1, 1, 1)}, but this set is not a basis, because it is [[Linear dependency|linearly dependent]].
The set {{math|{(1, 0, 0), (0, 1, 0), (1, 1, 0)}}} is not a spanning set of <math>\mathbb R^3</math>, since its span is the space of all vectors in <math>\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>\mathbb R^3.</math> It can be identified with <math>\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>\mathbb R^3</math>, and {(0, 0, 0)} is the intersection of all of these vector spaces.
The set of
== Theorems ==
=== Equivalence of definitions ===
The set of all linear combinations of a subset {{mvar|S}} of {{mvar|V}}, a vector space over {{mvar|K}}, is the smallest linear subspace of {{mvar|V}} containing {{mvar|S}}.
:''Proof.'' We first prove that {{math|span ''S''}} is a subspace of {{mvar|V}}. Since {{mvar|S}} is a subset of {{mvar|V}}, we only need to prove the existence of a zero vector {{math|'''0'''}} in {{math|span ''S''}}, that {{math|span ''S''}} is closed under addition, and that {{math|span ''S''}} is closed under scalar multiplication. Letting <math>S = \{ \mathbf v_1, \mathbf v_2, \ldots, \mathbf v_n \}</math>, it is trivial that the zero vector of {{mvar|V}} exists in {{math|span ''S''}}, since <math>\mathbf 0 = 0 \mathbf v_1 + 0 \mathbf v_2 + \cdots + 0 \mathbf v_n</math>. Adding together two linear combinations of {{mvar|S}} also produces a linear combination of {{mvar|S}}: <math>(\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>\lambda_i, \mu_i \in K</math>, and multiplying a linear combination of {{mvar|S}} by a scalar <math>c \in K</math> will produce another linear combination of {{mvar|S}}: <math>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 {{math|span ''S''}} is a subspace of {{mvar|V}}.
:It follows that <math>S \subseteq \operatorname{span} S</math>, since every {{math|'''v'''<sub>''i''</sub>}} is a linear combination of {{mvar|S}} (trivially). Suppose that {{mvar|W}} is a linear subspace of {{mvar|V}} containing {{mvar|S}}. Since {{mvar|W}} is closed under addition and scalar multiplication, then every linear combination <math>\lambda_1 \mathbf v_1 + \cdots + \lambda_n \mathbf v_n</math> must be contained in {{mvar|W}}. Thus, {{math|span ''S''}} is contained in every subspace of {{mvar|V}} containing {{mvar|S}}, and the intersection of all such subspaces, or the smallest such subspace, is equal to the set of all linear combinations of {{mvar|S}}.
Every spanning set {{mvar|S}} of a vector space {{mvar|V}} must contain at least as many elements as any [[Linear independence|linearly independent]] set of vectors from {{mvar|V}}.
:''Proof.'' Let <math>S = \{ \mathbf v_1, \ldots, \mathbf v_m \}</math> be a spanning set and <math>W = \{ \mathbf w_1, \ldots, \mathbf w_n \}</math> be a linearly independent set of vectors from {{mvar|V}}. We want to show that <math>m \geq n</math>.
:Since {{mvar|S}} spans {{mvar|V}}, then <math>S \cup \{ \mathbf w_1 \}</math> must also span {{mvar|V}}, and <math>\mathbf w_1</math> must be a linear combination of {{mvar|S}}. Thus <math>S \cup \{ \mathbf w_1 \}</math> is linearly dependent, and we can remove one vector from {{mvar|S}} that is a linear combination of the other elements. This vector cannot be any of the {{math|'''w'''<sub>''i''</sub>}}, since {{mvar|W}} is linearly independent. The resulting set is <math>\{ \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 {{mvar|V}}. We repeat this step {{mvar|n}} times, where the resulting set after the {{mvar|p}}th step is the union of <math>\{ \mathbf w_1, \ldots, \mathbf w_p \}</math> and {{mvar|m - p}} vectors of {{mvar|S}}.
:It is ensured until the {{mvar|n}}th step that there will always be some {{math|'''v'''<sub>''i''</sub>}} to remove out of {{mvar|S}} for every adjoint of {{math|'''v'''}}, and thus there are at least as many {{math|'''v'''<sub>''i''</sub>}}'s as there are {{math|'''w'''<sub>''i''</sub>}}'s—i.e. <math>m \geq n</math>. To verify this, we assume by way of contradiction that <math>m < n</math>. Then, at the {{mvar|m}}th step, we have the set <math>\{ \mathbf w_1, \ldots, \mathbf w_m \}</math> and we can adjoin another vector <math>\mathbf w_{m+1}</math>. But, since <math>\{ \mathbf w_1, \ldots, \mathbf w_m \}</math> is a spanning set of {{mvar|V}}, <math>\mathbf w_{m+1}</math> is a linear combination of <math>\{ \mathbf w_1, \ldots, \mathbf w_m \}</math>. This is a contradiction, since {{mvar|W}} is linearly independent.
=== Spanning set can be reduced to a basis ===
Let {{mvar|V}} be a finite-dimensional vector space. Any set of vectors that spans {{mvar|V}} can be reduced to a [[Basis (linear algebra)|basis]] for {{mvar|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 {{mvar|V}} has finite dimension. This also indicates that a basis is a minimal spanning set when {{mvar|V}} is finite-dimensional.
== Generalizations ==
Generalizing the definition of the span of points in space, a subset {{mvar|X}} of the ground set of a [[matroid]] is called a spanning set if the rank of {{mvar|X}} equals the rank of the entire ground set{{sfnp|Oxley|2011|p=28}}
The vector space definition can also be generalized to modules.<ref>{{Harvard citation text|Roman|2005}} p. 96, ch. 4</ref><ref>{{Harvard citation text|Mac Lane|Birkhoff|1999}} p. 193, ch. 6</ref> Given an {{mvar|R}}-module {{mvar|A}} and a collection of elements {{math|''a''<sub>1</sub>}}, ..., {{math|''a<sub>n</sub>''}} of {{mvar|A}}, the [[submodule]] of {{mvar|A}} spanned by {{math|''a''<sub>1</sub>}}, ..., {{math|''a<sub>n</sub>''}} is the sum of [[cyclic module]]s
<math display="block">Ra_1 + \cdots + Ra_n = \left\{ \sum_{k=1}^n r_k a_k \bigg| r_k \in R \right\}</math>
consisting of all ''R''-linear combinations of the elements {{math|''a<sub>i</sub>''}}. As with the case of vector spaces, the submodule of ''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 (mathematics)|set]] of [[vector space|vectors]] is the minimal closed set which contains the linear span of that set.
Suppose that {{mvar|X}} is a normed vector space and let {{mvar|E}} be any non-empty subset of {{mvar|X}}. The '''closed linear span''' of {{mvar|E}}, denoted by <math>\overline{\operatorname{Sp}}(E)</math> or <math>\overline{\operatorname{Span}}(E)</math>, is the intersection of all the closed linear subspaces of {{mvar|X}} which contain {{mvar|E}}.
One mathematical formulation of this is
:<math>\overline{\operatorname{Sp}}(E) = \{u\in X | \forall\
The closed linear span of the set of functions ''x<sup>n</sup>'' on the interval [0, 1], where ''n'' is a non-negative integer, depends on the norm used. If the [[Lp space#Lp spaces and Lebesgue integrals|''L''<sup>2</sup> norm]] is used, then the closed linear span is the [[Hilbert space]] of [[square-integrable function]]s 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 (mathematics)|closure]] of the linear span.
Closed linear spans are important when dealing with closed linear subspaces (which are themselves highly important,
=== A useful lemma ===
Let {{mvar|X}} be a normed space and let {{mvar|E}} be any non-empty subset of {{mvar|X}}. Then
{{ordered list
|list-style-type=lower-alpha
| <math>\overline{\operatorname{Sp}}(E)</math> is a closed linear subspace of ''X'' which contains ''E'',
| <math>\overline{\operatorname{Sp}}(E) = \overline{\operatorname{Sp}(E)}</math>, viz. <math>\overline{\operatorname{Sp}}(E)</math> is the closure of <math>\operatorname{Sp}(E)</math>,
| <math>E^\perp = (\operatorname{Sp}(E))^\perp = \left(\overline{\operatorname{Sp}(E)}\right)^\perp.</math>
| <math>(E^\perp)^\perp = ((\operatorname{Sp}(E))^\perp)^\perp = \overline{\operatorname{Sp}(E)}.</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 ==
* [[Affine hull]]
* [[Conical combination]]
* [[Convex hull]]
== Footnotes ==
{{notelist}}
== Citations ==
<references />
== Sources ==
=== Textbooks ===
* {{Cite book |last=Axler |first=Sheldon Jay |url=https://linear.axler.net/LADR4e.pdf#page=43 |title=Linear Algebra Done Right |publisher=[[Springer Science+Business Media | Springer]] |year=2015 |isbn=978-3-319-11079-0 |edition=3rd |author-link=Sheldon Axler}}
* {{Cite book |last=Hefferon |first=Jim |url=https://www.cs.ox.ac.uk/files/12921/book.pdf#page=110 |title=Linear Algebra |publisher=Orthogonal Publishing |year=2020 |isbn=978-1-944325-11-4 |edition=4th |author-link=Jim Hefferon}}
* {{Cite book |last1=Mac Lane |first1=Saunders |title=Algebra |last2=Birkhoff |first2=Garrett |publisher=[[American Mathematical Society|AMS Chelsea Publishing]] |year=1999 |isbn=978-0821816462 |edition=3rd |author-link=Saunders Mac Lane |author-link2=Garrett Birkhoff |orig-year=1988}}
* {{cite book
| last = Oxley | first = James G. | authorlink = James Oxley
| edition = 2nd
| isbn = 9780199202508
| publisher = Oxford University Press
| series = Oxford Graduate Texts in Mathematics
| title = Matroid Theory
| volume = 3
| year = 2011}}
* {{Cite book |last=Roman |first=Steven |url=http://matematicas.uis.edu.co/sites/default/files/paginas/archivos/Advanced%20Linear%20Algebra%20-%20Steven%20Roman.pdf#page=56 |title=Advanced Linear Algebra |publisher=[[Springer Science+Business Media|Springer]] |year=2005 |isbn=0-387-24766-1 |edition=2nd |author-link=Steven Roman}}
* {{Cite book|last1=Rynne|first1=Brian P.|title=Linear Functional Analysis|last2=Youngson|first2=Martin A.|publisher=Springer|year=2008|isbn=978-1848000049|___location=|pages=}}
* Lay, David C. (2021) ''Linear Algebra and Its Applications (6th Edition)''. Pearson.
===
* {{cite web|last1=Lankham|first1=Isaiah|last2=Nachtergaele|first2=Bruno|author2-link=Bruno Nachtergaele|last3=Schilling|first3=Anne|author3-link=Anne Schilling|date=13 February 2010|title=Linear Algebra - As an Introduction to Abstract Mathematics|url=https://www.math.ucdavis.edu/~anne/linear_algebra/mat67_course_notes.pdf|access-date=27 September 2011|publisher=University of California, Davis}}
* {{Cite web|last=Weisstein|first=Eric Wolfgang|author-link=Eric W. Weisstein|title=Vector Space Span|url=https://mathworld.wolfram.com/VectorSpaceSpan.html|access-date=16 Feb 2021|website=[[MathWorld]]|ref=CITEREFMathWorld2021}}
* {{Cite web|date=5 April 2020|title=Linear hull|url=https://encyclopediaofmath.org/wiki/Linear_hull|access-date=16 Feb 2021|website=[[Encyclopedia of Mathematics]]|ref=CITEREFEncyclopedia_of_Mathematics2020}}
== External links ==
* [https://www.khanacademy.org/math/linear-algebra/vectors_and_spaces/linear_combinations/v/linear-combinations-and-span Linear Combinations and Span: Understanding linear combinations and spans of vectors], khanacademy.org.
* {{Cite web
{{Linear algebra}}
|