LA2
Span
The span of a set of vectors is everything you can reach from using only addition and scaling. There are two ways to say this precisely:
- from below: all finite linear combinations of elements of ;
- from above: the intersection of every subspace that contains .
They always give the same subspace (Theorem LA2.5), for any : finite, infinite or empty. The word finite in the first definition is not optional, and seeing why is the main lesson of this unit.
Needs: F1 (families, intersections, support), LA1 (subspaces). Used by: linear independence, bases and dimension (next units), column spaces, least squares.
Linear combinations
Section titled “Linear combinations”Definition LA2.1Linear combination of a list#
For vectors and scalars , the vector is a linear combination of . For (the empty list) the combination is the empty sum, which by convention is .
For a finite list that is all you need. For an arbitrary set , possibly infinite, we keep every combination finite and let the coefficients be a finitely supported function on (F1.10):
Definition LA2.2Linear combination of elements of a set#
Let . A linear combination of elements of is a vector
where is finitely supported. Equivalently: a vector for some , some and some scalars . If (empty support), the combination is .
Full explanationWhy “finite” is part of the definition
The axioms of a vector space give you for two vectors. By repeating, you get any finite sum , and associativity and commutativity (VS1, VS2) guarantee the order and grouping do not matter. That is all. Nothing in the axioms says what forever means. An infinite sum is a limit of finite sums, and limits need a notion of closeness (a norm, a metric, or more generally a topology), which a bare vector space does not have.
So even when is infinite, each linear combination uses only finitely many elements of . Different combinations can use different elements, so together they can involve all of . The finitely supported function is just careful bookkeeping for this: it says which finitely many vectors are used and with which coefficients, without needing to list in any order (which may be impossible: can be uncountable).
Span, defined two ways
Section titled “Span, defined two ways”Definition LA2.3Span, from above#
For , the span of is
Compare: Hoffman & Kunze, §2.2 (this is their definition of the subspace spanned by S)
This is well defined: the family always contains , so it is never empty (F1.12). Subspaces are closed under intersection (LA1.14), so by F1.15, is the smallest subspace of containing : it contains , and it is contained in every subspace that contains .
Definition LA2.4Span, from below#
is the set of all linear combinations of elements of (in the sense of LA2.2).
Theorem LA2.5The two definitions agree#
For every subset of a vector space , finite, infinite or empty,
Compare: Hoffman & Kunze, §2.2, Theorem 3 (stated there for non-empty S)
Proofof LA2.5
Step 1: is a subspace containing . Use the subspace test (LA1.12).
- : take .
- Sums: let and , with finitely supported. Both sums can be written over the finite set , because extra terms are zero (LA1.10). Then VS1, VS2 and VS8 give , a linear combination with coefficient function , which is finitely supported.
- Scaling: by VS7 and VS5, and is finitely supported.
- : each equals (VS6), a combination whose coefficient function is at and elsewhere.
Step 2: every subspace with contains . Take with . Each because is closed under scaling. A sum of vectors of is in , by induction on using closure under addition; for the sum is . So .
Step 3: double inclusion (F1.3). By Step 1, is one of the subspaces being intersected, so (F1.14(1)). By Step 2, is contained in every one of them, so (F1.14(2)).
Example LA2.6The span of the empty set#
.
From above: is a subset of every subspace (F1.5), so we intersect all subspaces of . Each contains , and is one of them, so the intersection is . No convention needed.
From below: the only combination of elements of is the empty one, which is , by convention.
Full explanationWhich definition is better? Both, for different jobs
The intersection (top-down) definition never mentions sums, coefficients or finiteness, so it needs no conventions: the empty set takes care of itself. It hands you minimality for free (“smallest subspace containing ”), which is what you use in proofs. And it generalises with no changes: intersect closed subspaces and you get the closed span (below); intersect convex sets and you get the convex hull; intersect σ-algebras and you get the σ-algebra generated by a family of events (for example by a random variable, via its preimages). Same pattern, F1.15, every time.
The combination (bottom-up) definition tells you what is actually inside. To decide whether a vector belongs to the span, you look for coefficients, which in means solving a linear system. Computation always goes through this one.
Theorem LA2.5 is the bridge. In a proof, use whichever side is easier and cross over when needed. That is also why textbooks disagree on which to call “the” definition: Hoffman & Kunze start from the intersection; Axler works with finite lists and linear combinations throughout. Both are right because of LA2.5. (Hoffman & Kunze state their Theorem 3 for non-empty only, because their linear combinations have at least one term; allowing the empty combination, as we do, removes the exception.)
Proposition LA2.7Three working rules#
For subsets :
- if then ;
- if and only if is a subspace;
- .
Proofof LA2.7
- is a subspace containing , hence containing ; by minimality it contains .
- If is a subspace, it is one of the subspaces intersected in LA2.3, so ; and always. Conversely, is a subspace, so if it equals then is a subspace.
- is a subspace; apply 2 to it.
The finite case: span in Fⁿ
Section titled “The finite case: span in Fⁿ”Example LA2.8A plane in ℝ³, and how to test membership#
Let and . A combination is , so
a plane through the origin. Is in it? Yes: , and indeed . Is ? We would need , , and then . No.
In matrix form: put the vectors as the columns of a matrix . Then a linear combination is exactly for a coefficient vector , and
the column space of . Deciding whether is in the span is deciding whether has a solution. Systems of linear equations are therefore a question about spans, not the definition of linear algebra.
Check What is span{(1, 2)} in ℝ²? And span{(1, 0), (0, 1), (1, 1)}?
The first is the line , that is . The second is all of : already and reach everything, and adds nothing new. A span does not care about redundancy; measuring redundancy is the job of linear independence, the next unit.
The infinite case
Section titled “The infinite case”Here the word finite in LA2.2 starts to bite.
Example LA2.9Unit sequences span less than you might think#
In (all sequences), let be the sequence with in position and elsewhere. Then
In particular is not in the span, even though it looks like "".
Proofof LA2.9
A combination is zero outside the finite set , so it has finitely many non-zero terms. Conversely, a sequence with finitely many non-zero terms equals , a finite combination. The all-ones sequence has infinitely many non-zero terms, so it is not in the span.
Example LA2.10Powers of x span the polynomials, and no more#
In , let (the functions ). Then , the polynomials. The exponential is not in the span, although .
Proofof LA2.10
A linear combination of finitely many powers is a polynomial, and every polynomial is such a combination, so . Suppose for all , with a polynomial of degree at most . Differentiate both sides times. The left side stays , which is never zero. The right side becomes the zero function, because each differentiation lowers the degree by one. Contradiction.
The series is a statement about limits: its partial sums are polynomials, and they get closer and closer to . Linear algebra alone cannot express “closer”. Add a way to measure distance and a new, larger object appears.
Remark LA2.11Closed span, and Hamel versus Schauder#
In a space with a norm (a notion of length, introduced in a later unit) one defines the closed span of as the intersection of all closed subspaces containing : the same top-down pattern with a different family. It equals the closure of : everything you can approximate arbitrarily well by finite combinations. In , the continuous functions on with the maximum norm, the closed span of is all of (the Weierstrass approximation theorem). So , restricted to , is in the closed span but not in the span: the argument of LA2.10 works unchanged on .
This splits the idea of a basis in two. A Hamel basis writes every vector as a finite combination in exactly one way (the purely algebraic notion this site uses by default). A Schauder basis is a sequence such that every vector is a norm-convergent series with unique coefficients; it depends on the norm, and exists only in separable spaces.
Full explanationUniversal approximation is a statement about a closed span
A neural network with one hidden layer of units and a linear output computes
with and . Read it with this unit’s eyes: is a finite linear combination of functions from the set
So the functions all such networks can compute, over every width , form exactly .
Cybenko’s 1989 theorem says that for a continuous sigmoidal (one that tends to at and at ), these finite sums are dense in with the maximum norm. In this unit’s language: the closed span of is every continuous function on the cube. Any continuous target can be approximated as closely as you like by some finite network.
What it does not say is just as instructive: nothing about how large must be, nothing about how to find the weights, nothing about generalising from finite data. Density in a closed span is an existence statement. Training is a different problem.
Check Is every element of span S a combination of finitely many elements of S, even when S is uncountable?
Yes. That is LA2.5 combined with LA2.2: , and every element of uses a finitely supported coefficient function.
Check The function x ↦ |x| on [−1, 1]: is it in the span of {1, x, x², …}? In the closed span under the maximum norm?
Not in the span: polynomials are differentiable everywhere, and is not differentiable at . In the closed span, yes: is continuous on , and by the Weierstrass approximation theorem polynomials approximate every continuous function on a closed interval uniformly. Being in the closed span does not make a power series : the approximating polynomials change entirely as the accuracy improves.
Check If span S = V and S ⊆ T ⊆ V, what is span T?
. By LA2.7(1), .
Sources
Section titled “Sources”- Kenneth Hoffman & Ray Kunze, Linear Algebra, 2nd ed. (1971), §2.2: the subspace spanned by defined as an intersection; Theorem 3 (equality with linear combinations, for non-empty ).
- Sheldon Axler, Linear Algebra Done Right, 4th ed. (open access), §2A: linear combinations and span of a finite list.
- Wikipedia, Linear span: both definitions, finite combinations for infinite sets, closed linear span.
- nLab, basis in functional analysis: Hamel versus Schauder bases.
- George Cybenko, “Approximation by superpositions of a sigmoidal function”, Mathematics of Control, Signals, and Systems 2 (1989), 303–314, Theorem 2.