Linear Algebra · Undergraduate
Linear Combinations and Span
Quick answer
A linear combination of vectors v₁ through v_k is any sum c₁v₁ + ⋯ + c_kv_k with real coefficients. The set of all such combinations is the span of those vectors. The span of one nonzero vector is a line through the origin; the span of two vectors that are not multiples of each other is a plane through the origin. Asking whether a vector b is in a span is the same as asking whether a system of linear equations has a solution, which is how spans get computed.
What you'll learn
- Write and evaluate linear combinations of vectors
- Describe the span of one, two or more vectors geometrically
- Turn the question is b in the span into a system of equations
- Recognize when a vector adds nothing to a span
Building from a few vectors
Given some vectors, the two operations available are scaling and adding. Using both together on produces a linear combination:
The numbers are any real numbers, positive, negative or zero. For and ,
so is one of the vectors reachable from and . The set of all vectors reachable this way is the span:
Taking every coefficient gives , so every span contains the origin.
What a span looks like
- One nonzero vector. Every multiple lies on the line through the origin in the direction of , and the span is that whole line.
- Two vectors, neither a multiple of the other. Their combinations sweep out a plane through the origin. In ℝ² that plane is all of ℝ²; in ℝ³ it is a flat sheet through the origin.
- Two vectors on the same line. The second one adds nothing, and the span is still a line.
- the span of (2, 1)
Why a span question is a system of equations
Asking whether is in means asking whether some coefficients make
Both sides are vectors, and two vectors are equal exactly when every component matches. One component gives one equation, so this single vector equation is a system of linear equations with the coefficients as unknowns. A span question is a solvability question: lies in the span exactly when that system has at least one solution. Counting components shows the size of the system: vectors in ℝⁿ give equations in unknowns.
Worked examples
Common mistakes
Practice problems
-
Compute .
Answer
Full solution
.
-
Is in ?
Answer
Yes:
Full solution
Matching components gives and . Solving, and .
-
Is in ?
Answer
Yes, with coefficient
Full solution
, so it lies on the line spanned by .
-
Is in ?
Answer
No
Full solution
needs and at once.
-
Describe .
Answer
The origin alone
Full solution
Every multiple of the zero vector is the zero vector, so the span is the single point .
-
Is in ?
Answer
No
Full solution
The first two components force and , and then the third component would have to be , not .
-
Describe .
Answer
The -plane: every vector with second component
Full solution
Combinations are , which is a plane through the origin containing the - and -axes.
-
Compare with .
Answer
They are the same line.
Full solution
, so the second vector is already in the first span and adds nothing.
-
How many equations and unknowns does the question “is in ” produce, for vectors in ℝ⁵?
Answer
Five equations in three unknowns
Full solution
Each of the five components gives one equation, and the unknowns are the three coefficients.
-
A student says is all of ℝ², since three vectors is more than enough for a plane. What went wrong?
Hint
Compare the three vectors.
Answer
All three lie on one line, so the span is that line, not ℝ².
Full solution
and , so every combination is a multiple of . What fills a plane is two directions, not a count of vectors.
Frequently asked questions
What is a linear combination?
A sum of scalar multiples: c₁v₁ + c₂v₂ + ⋯ + c_kv_k, where the coefficients c are any real numbers.
What is the span of a set of vectors?
The set of every linear combination of them. It is written Span{v₁, …, v_k} and always contains the zero vector.
What does a span look like?
The span of one nonzero vector is a line through the origin. The span of two vectors that are not multiples is a plane through the origin. In ℝⁿ larger sets can fill more.
How do you check whether b is in a span?
Set up c₁v₁ + ⋯ + c_kv_k = b. That is a system of linear equations in the coefficients, and b is in the span exactly when the system has a solution.
Why does every span contain the origin?
Taking every coefficient to be 0 gives the zero vector, so it belongs to every span.