Span — Definition, Formula & Examples
The span of a set of vectors is every vector you can build by scaling those vectors and adding the results. For example, the span of one nonzero vector in the plane is a line through the origin.
Let be vectors in a vector space over . Their span, written , is the set of all linear combinations with real scalars . It is the smallest subspace of that contains every . For an infinite set , the span is the set of all finite linear combinations of vectors in . By convention, .
Key Formula
Where:
- = The given vectors, all in the same vector space (for example )
- = Real scalars, called weights. Any real value is allowed, including zero and negatives.
- = The number of vectors in the set
How It Works
To decide whether a vector lies in a span, write and solve for the weights . This is a linear system whose augmented matrix is . If the system is consistent, is in the span. If it is inconsistent, is not. The vectors span all of exactly when the matrix with those vectors as columns has a pivot in every row.
Worked Example
Problem: Let and . Is in ?
Step 1: Set equal to a linear combination of the vectors. Then match components to get a system of equations.
Step 2: The first equation gives . Substitute this value into the second equation and solve for .
Step 3: Check the third equation using . It holds, so the system is consistent.
Answer: Yes. , so is in the span. Geometrically, the span is a plane through the origin in , and lies on that plane.
Another Example
Problem: Do and span all of ?
Step 1: Take an arbitrary target and set up the system .
Step 2: The coefficient matrix has a nonzero determinant. So the system has a unique solution for every .
Step 3: Solving gives explicit weights. You can substitute them back into both equations to confirm they work.
Answer: Yes. Every vector in is a linear combination of and , so .
Why It Matters
In a first college linear algebra course, span is the building block for column space, basis, and dimension. The system has a solution exactly when lies in the span of the columns of . In statistics and data science, least-squares regression finds the vector in the span of the predictor columns that is closest to the data vector.
Common Mistakes
Mistake: Assuming that more vectors always give a bigger span, or that vectors always span a -dimensional space.
Correction: Redundant vectors add nothing. The vectors and span only a line, because . Check for linear independence, or count the pivots, to find the true dimension of the span.
Mistake: Allowing only positive or whole-number weights, and so forgetting that the zero vector and negative multiples are in the span.
Correction: The weights can be any real numbers. Setting every shows that is always in the span. Negative weights mean the span of one nonzero vector is a full line through the origin, not just a ray.
