Given a list of vectors, which vectors can be obtained by adding scalar multiples of its members? Linear combinations describe individual outputs, and span collects all such outputs.
Linear combinations are the basic building blocks
Definition
Linear combination
Let be vectors in a vector space , and let . Then
is called a linear combination of .
Throughout this section, is a real vector space and the generating list is finite, with . A coefficient belongs to , whereas a generator belongs to : these are different kinds of objects. The generators remain fixed while the coefficients vary. For example, finding coefficients for one target does not require the same coefficients to work for every other target.
“Finite” means that every expression uses only finitely many additions and scalar multiplications. No infinite series or limiting operation is part of this definition. Repetitions and zero vectors are allowed in a generating list; whether they contribute anything new is a separate question.
The coefficients may be any real numbers: positive, negative, fractional, irrational, or zero.
Span collects all possible outputs
Definition
Span
Let be vectors in a vector space . The span of these vectors is the set of all linear combinations of them:
So the span is not one vector. It is the whole collection of vectors that can be built from the given list.
This is why span is often read as "the subspace generated by" or "the set spanned by" the given vectors.
Worked example
Examples of linear combinations
For a list with , the following are linear combinations:
and
There is also a closure fact: if and are themselves linear combinations of , then any expression is again a linear combination of .
So linear combinations are stable under the very operations that created them in the first place.
More generally, suppose for . Substituting these finite sums gives
Each bracket is a real coefficient. Thus repeatedly forming linear combinations cannot escape the collection of combinations of the original generators. The two indices distinguish the original generators from the intermediate vectors; the number of intermediate vectors need not equal the number of generators.
Membership in a span is a solvability question
In practice, the question "Is a linear combination of ?" is not answered by inspection. It is answered by solving a linear system.
Theorem
Linear combinations and linear systems
Let and be vectors in , and let
Then can be expressed as a linear combination of if and only if the linear system
has a solution.
A generation question is therefore equivalent to a consistency question for a matrix equation.
Worked example
Testing whether a vector is a linear combination
Let
Consider the vector
To ask whether is a linear combination of and is to ask whether there exist scalars such that
Equivalently,
Apply and , then :
The last row imposes no extra restriction. Back substitution gives
Hence
So belongs to the span of and .
For comparison, replace only the target by . The same operations now give the last augmented row , which asserts . The first two equations still force , but that candidate fails the third equation. Matching some coordinates is insufficient: one coefficient vector must satisfy every coordinate equation simultaneously.
The same method can also prove non-membership: if the system is inconsistent, then the target vector is not in the span.
A systematic membership algorithm
The theorem above gives a practical routine. Given vectors and a target vector , do the following.
- Form the matrix
-
Row-reduce the augmented matrix .
-
If the reduced system has a contradiction, then is not in .
-
If the system is consistent, read off one solution and write
The matrix-vector product
is exactly
Therefore is solvable exactly when is a linear combination of the columns of . Row reduction decides whether such a coefficient vector exists.
Here has size , , and . A column of represents one available generator, while a row represents one coordinate equation. Consequently, a free variable is a choice of coefficient, not a new coordinate of the target. Consistency must be checked before assigning values to free variables. If the system is consistent, setting all free variables to zero gives one representation; retaining parameters describes all representations.
Worked example
Using inconsistency to prove non-membership
Let
The augmented matrix for is
Since the second row is twice the first on the coefficient side but not on the augmented side, row reduction produces a contradiction. Hence is inconsistent, and
The operation gives , so the second equation becomes .
One generator or two: geometric cases
The following sequence compares the sets generated by one nonzero vector and by two independent vectors. Membership means that at least one choice of coefficients reaches the target. A zero generator gives only , because every scalar multiple of zero is zero.
Standard geometric examples
Worked example
What span looks like in
Let
Then every vector in has the form
So
is exactly the -plane in .
If we include as well, then every vector in can be written as
so
Why the span is always a subspace
The span of a set of vectors is not just some arbitrary subset. It is the smallest natural vector-space object generated by those vectors.
Theorem
The span of any set of vectors is a subspace
If are vectors in a vector space , then
is a subspace of .
Moreover, this span is the smallest subspace of containing every generator: if is a subspace and for every , then .
Proof
Why the span is a subspace
The span is nonempty because it contains the zero vector:
Now take two vectors and in the span. Then there exist scalars and such that
Then
which is again a linear combination of the same vectors. So the span is closed under addition.
If , then
which is also a linear combination of the same vectors. So the span is closed under scalar multiplication.
Therefore the span is a subspace of .
For the minimality assertion, each belongs to the span by choosing its coefficient to be one and all others zero. Now let be any subspace containing the generators. Scalar closure puts every in , and repeated addition puts their finite sum in . Every vector in the span therefore lies in , proving the required inclusion. This argument uses finiteness: no closure under infinite sums has been assumed.
“Smallest” refers to inclusion of sets, not to the number of vectors written in the generating list. Any subspace containing the generators must contain all the outputs that their linear combinations force. For example, the -plane is the smallest subspace containing , even though the larger space also contains them. This is also a useful proof method: to show that a span lies in a known subspace, check its generators rather than an unspecified vector with many coefficients.
Different coefficients can represent the same vector
Worked example
A redundant generator and a free coefficient
Consider a new list and target:
For , first use and . Then divide the second row by seven, subtract six times that row from the third, and add four times it to the first:
The system is consistent. Its equations are and , so all coefficient vectors are described by
In particular, and give
Both expressions evaluate to . We have not found two target vectors: we have found two ways to obtain the one prescribed target. Every real value of works, because it satisfies the complete reduced system.
Concept lensAlgebraic
Coefficient vectors and output vectors
The expression has an input and an output in . Span asks which outputs occur at least once. It does not ask whether each output has a unique input. In the example, , so increasing by while decreasing by leaves the output unchanged.
More precisely, if , then another coefficient vector gives the same target exactly when . Conversely, every satisfying produces another representation . This follows by distributivity and explains the free parameter without confusing the fixed target with its variable representations. Here records a cancellation among the generators.
The extra generator is redundant for every target, not just the one calculated above. Indeed,
Thus every combination of the three generators is a combination of the first two. Conversely, a combination of the first two is a combination of all three with third coefficient zero. Removing preserves the span. This is a local application of the generator-comparison method in 4.2 Set language and solution sets.
Appending a generator already in the span therefore changes the available representations without enlarging the set of outputs. If the appended vector lies outside the old span, the span strictly enlarges: the old combinations remain available by assigning the new coefficient zero, and the new vector itself is an additional output. Neither conclusion follows merely from counting the listed vectors.
Predict what the coefficients can reach
Before changing the controls, predict whether two generators will sweep out a line or a plane. Then vary one coefficient at a time. If the generators are dependent, identify two coefficient pairs that reach the same target; if they are independent, explain why that cannot happen.
Common mistakes
Common mistake
Span is not the set of positive multiples only
The coefficients in a linear combination may be any real numbers. Negative and zero coefficients are just as legitimate as positive ones.
Common mistake
To prove membership in a span, prove that suitable coefficients exist
It is not enough to say that a target vector "looks similar." You must prove that suitable coefficients exist, either by producing them explicitly or by showing that the associated linear system is consistent.
Quick checks
Checkpoint
Is the zero vector always in the span of any finite list of vectors?
Use the definition of linear combination directly.
Solution · Answer
Yes. Set every coefficient equal to . The resulting linear combination is the zero vector, so the span always contains .
Checkpoint
Why does in contain ?
Write the vector as a combination of and .
Solution · Answer
Because
So the vector is a linear combination of and .
Exercises
Checkpoint
Explain why every vector in a generating list automatically lies in .
Use coefficients.
Solution · Guided solution
To isolate , choose coefficient for and coefficient for every other vector. Then
so is a linear combination of the full list and therefore belongs to its span.
Checkpoint
Why does the theorem if and only if is solvable matter so much in practice?
Answer in terms of what it lets you do computationally.
Solution · Guided solution
It turns a generation question into a linear-system question. Instead of guessing coefficients by inspection, you form the matrix with columns and row-reduce the augmented system . Consistency then tells you exactly whether lies in the span.
Checkpoint
In the redundant-generator example, find a representation of the target using only the second and third generators.
Choose the parameter so that the first coefficient vanishes.
Solution · Guided solution
Since , choose . Then and . The first generator may be omitted for this target; the preceding identity also shows that this pair generates the entire same span.
Checkpoint
A subspace contains two vectors. Must it contain every linear combination of them? Must it equal their span?
Distinguish containment from equality.
Solution · Guided solution
It must contain their span by scalar and additive closure. Equality need not hold: contains and all their combinations, but also contains , which is outside their span because its third coordinate is one. Equality needs the additional inclusion of the subspace in the span.
Related notes
Read 6.2 Subspaces for the subspace tests used here, and then continue to 6.4 Linear dependence and independence, where span is paired with the question of redundancy in a generating list.