Hello! Welcome back to our course.
In our last lesson, we mastered the Subspace Test, a powerful three-step method for verifying if a subset of a vector space is a subspace. We saw that subspaces are defined by possessing certain properties (closure). Today, we will explore an equally important, constructive way to think about them.
This lesson introduces the concept of span, which allows us to build a subspace from a given set of vectors. We will define what a span is, explore its geometric meaning, and, most importantly, learn the computational procedure for working with it. This bridges the gap between the abstract definition of a subspace and a concrete method for generating one.
By the end of this lesson, you will be able to formally define the span of a set of vectors and, for a given vector, compute whether it lies within the span of that set.
Defining Span through Linear Combinations
The fundamental building block for the concept of span is the linear combination. You have likely encountered this idea before, but we will formalize it here.
A vector is a linear combination of a set of vectors if it can be expressed as a sum of scalar multiples of those vectors:
where are scalars.
The span is simply the set of all possible linear combinations of a set of vectors.
The following text from Runestone Academy provides the formal definition of the span of a set of column vectors. It also highlights a crucial point: do not confuse the finite set of vectors S with the (usually infinite) set that is their span.
Please read the first few paragraphs, up to and including 'Definition SSCV. Span of a Set of Column Vectors'.
As defined in the text, for a set of vectors , their span is:
The Span of a Set is Always a Subspace
In the previous lesson, we used the Subspace Test to verify if a set defined by certain rules (e.g., solutions to ) formed a subspace. The concept of span gives us a direct way to construct a subspace.
Theorem: For any non-empty set of vectors in a vector space , the span of is a subspace of .
This is a fundamental result. It guarantees that any set we generate by taking all possible linear combinations of some starting vectors will automatically satisfy the three conditions of the Subspace Test.
[PDF] The Span of a Set of Vectors
This PDF provides a concise and elegant proof of this theorem. Since you are focused on building a proof-based understanding, working through this is essential. Notice how it directly applies the three-step Subspace Test you learned in the previous lesson.
Read the section starting with 'Theorem. If S is a subset of a vector space V, the span ⟨S⟩ of S is a subspace of V which contains S.' and study its proof. It's a classic demonstration of how the definition of a linear combination ensures closure.
The proof confirms that is a subspace by showing:
- Contains : The zero vector can be formed by choosing all scalars to be zero.
- Closure under Addition: The sum of any two linear combinations is itself a linear combination.
- Closure under Scalar Multiplication: A scalar multiple of a linear combination is also a linear combination.
The Geometry of Span
Visualizing the span can build powerful intuition. In or , the span of a set of vectors represents a geometric object that always passes through the origin.
Spanning Sets in Vector Spaces | Linear Algebra
Let's watch a short video that illustrates this geometric interpretation. It clearly shows how spanning works for one and two vectors in R³.
Watch the segment from 4:24 to 6:01. Pay attention to the geometric objects formed by the span of one and two vectors.
To summarize the geometric view in :
- The span of a single non-zero vector is the set of all scalar multiples . This is the line passing through the origin and the point defined by .
- The span of two non-collinear vectors and is the set of all combinations . This forms the plane passing through the origin and the points defined by and .
- If we have three vectors that do not all lie in the same plane, their span can encompass all of .
This animation from Dr. Trefor Bazett provides another excellent visualization of a plane being generated by the span of two vectors.
The Span is a Subspace | Proof + Visualization
This short clip beautifully animates how linear combinations of two vectors sweep out an entire plane.
Watch the first 1 minute and 41 seconds to see the visualization.
How to Compute the Span
The most important practical skill related to span is determining whether a given vector belongs to the span of a set of vectors .
Based on the definition, this question is equivalent to asking:
"Do there exist scalars such that ?"
This vector equation can be rewritten as a system of linear equations. Let's see how.
If we are in , we can write the vectors and as columns. The vector equation becomes a matrix equation , where the columns of matrix are the vectors , is the vector of unknown scalars, and is the target vector.
The question of whether is in the span of is now a question of whether the system has a solution.
Spanning Sets in Vector Spaces | Linear Algebra
This video provides a clear, step-by-step guide to answering this question. It demonstrates how to set up the system of equations, form the augmented matrix, and use Gaussian elimination to find the answer.
Watch the segment from 7:18 to 10:11. It covers both a case where the vector is in the span (a consistent system) and a case where it is not (an inconsistent system).
The process is purely algorithmic:
- Construct an augmented matrix , where the columns of are the vectors in your set and is the vector you are testing.
- Perform row reduction to bring the matrix into row echelon form.
- Check for consistency.
- If the system is consistent (has at least one solution), then is in the span of . A solution provides the specific scalars for the linear combination.
- If the system is inconsistent (e.g., a row like ), then is not in the span of .
Practice Problem
Let's walk through an example from the exercises in the Runestone text.
Problem:
Suppose that S=\set{\colvector{2\\-1\\3\\4},\,\colvector{3\\2\\-2\\1}}. Let . Is the vector in ?
Solution:
We are looking for scalars and such that:
This corresponds to the augmented matrix:
Row reducing this matrix yields:
This system is consistent and gives a unique solution: and . Since a solution exists, yes, is in the span of . We can verify this:
Now, try this one yourself. Using the same set , is the vector in ? (You can find the detailed solution in Exercise C41 in the "SS Spanning Sets" resource LINK).
A Deeper Look at Span (Optional)
There is a more abstract, "top-down" way to define span that you may find interesting. Instead of building it from the "bottom-up" with linear combinations, we can define it as the intersection of all subspaces that contain the set .
[PDF] The Span of a Set of Vectors
This final section of the PDF on span introduces this alternative definition and proves its equivalence to the linear combination definition. This provides a beautiful insight into why the span is considered the 'smallest' subspace containing a set of vectors.
Read the subsection 'Another definition of the span of a set'.
This perspective is powerful in more abstract proofs and highlights the robust, fundamental nature of the span in linear algebra.
Conclusion
This lesson introduced a core constructive tool in linear algebra. You now have two primary ways of thinking about subspaces: as sets that satisfy the three-part Subspace Test, and as sets that can be generated as the span of a collection of vectors.
Key Takeaways:
- A linear combination is a sum of scaled vectors.
- The span of a set of vectors is the set of all possible linear combinations of vectors from .
- The span of any set of vectors is always a subspace.
- To determine if a vector is in , you set up a vector equation that becomes a system of linear equations. If the system is consistent, the vector is in the span.
- Given your background in computer science, it's worth noting that checking for membership in a span is a purely algorithmic process. We will explore the implementation of algorithms like Gaussian elimination later in the course.
Preview of the next lesson:
We now know how to generate a subspace using a set of vectors. A natural question follows: are all the vectors in our spanning set necessary? For example, the span of is just the x-axis, the same as the span of just . The second vector was redundant. This idea of redundancy, or lack thereof, leads directly to our next topic: linear independence.