Linear Combinations and Span
Problem
Express the vector [7, 4] as a linear combination of [1, 2] and [3, -1]. Find the scalar coefficients.
Explanation
Linear combination
A linear combination of vectors is any vector of the form
with scalars (called coefficients). Zero coefficients are allowed.
Span
The span of is the set of all linear combinations:
The span is always a subspace of the ambient vector space (closed under addition and scalar multiplication, and contains via the zero coefficients).
In :
- Span of a single non-zero vector: a line through origin.
- Span of two non-parallel vectors: the whole plane .
Step-by-step — express [7, 4] via [1, 2] and [3, −1]
We want with
This is equivalent to the linear system
Step 1 — Solve. Multiply the first equation by 2:
Subtract the second equation:
Step 2 — Back substitute.
Solution: .
Verification
✓
Geometric intuition
Linear combinations are about scaling and adding:
- : stretch by factor .
- : translate the tip of by .
In this example, we're reaching by walking steps in the direction, then steps in the direction.
When span is everything
Two vectors in span if and only if they are not parallel. For and : are they parallel? Ratio check: , so non-parallel. Their span is the entire plane — which is why we could represent any target vector, including , as a linear combination.
If instead we tried and (parallel), their span would be just the line , and only points on that line would be reachable.
Common mistakes
- Assuming the combination is always unique. If the vectors span but are redundant (e.g. three vectors in ), the coefficients are not unique — there are infinitely many.
- Forgetting the span must contain the zero vector. It does, using all coefficients equal to zero.
- Treating "linear combination" as just adding vectors. It's scaling then adding — the scalars matter.
Try it in the visualization
Sliders for build up the linear combination step by step. The tip traces out the span as you sweep through values, revealing a line (one vector) or plane (two non-parallel vectors).
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.