Welcome to the next step in our journey through linear algebra. In our previous lesson, we saw how matrix multiplication represents the composition of linear transformations. Today, we'll investigate the geometric spaces these transformations create. We'll explore the fundamental questions: what are all the possible vectors we can reach by combining a given set of vectors? And how can we tell if a vector in our set is redundant?
This leads us directly to this lesson's goal: to describe the concepts of linear independence and span. Mastering these ideas is essential for understanding the structure of data, the behavior of machine learning models, and core techniques like Principal Component Analysis (PCA). We'll build a strong visual intuition for these concepts before connecting them to their more formal algebraic definitions.
1. Building Vectors: Linear Combinations and Span
Every vector in a standard coordinate system, like , can be thought of as a recipe: "start at the origin, move 3 units along the x-axis, and -2 units along the y-axis." This is a simple linear combination of the standard basis vectors, and .
What if we used different "building block" vectors? This is the core idea behind linear combinations and span. A linear combination of a set of vectors is any vector that can be formed by scaling them by some scalars and adding them together:
The span is the set of all possible vectors you can create using this process. To build a powerful intuition for this, there's no better resource than the 3Blue1Brown video on the topic.
Linear combinations, span, and basis vectors | Chapter 2, Essence of linear algebra
This video from the "Essence of linear algebra" series provides a beautiful and intuitive visualization of linear combinations and span.
Watch the first part, which introduces linear combinations as scaled and summed vectors. Continue to the next section, which defines the span as the set of all possible linear combinations, visualizing it as a line, a plane, or an entire space.
As the video illustrates, the geometry of the span depends entirely on the vectors you start with:
- The span of a single non-zero vector is a line.
- The span of two vectors that don't lie on the same line (i.e., are not collinear) is a plane.
- In the "unlucky" case where the two vectors are collinear, their span is just a line.

2. Redundancy: Linear Dependence and Independence
The video hinted at an important question: what happens when adding a new vector doesn't expand the span? This occurs when the new vector is already reachable using the existing vectors—it's redundant. This idea is central to the concept of linear independence.
Let's continue with the 3Blue1Brown video to get the initial intuition.
Linear combinations, span, and basis vectors | Chapter 2, Essence of linear algebra
This final segment of the video connects the idea of span to linear dependence and independence.
Watch from this section to see how adding a vector that is already in the span of the others leads to the idea of linear dependence.
The video gives us these intuitive definitions:
- A set of vectors is linearly dependent if at least one vector is redundant, meaning it can be expressed as a linear combination of the others. Removing this vector doesn't shrink the span.
- A set of vectors is linearly independent if every vector adds a new dimension to the span. No vector is redundant.

The Formal Definition
While the geometric intuition is powerful, we also need a precise, algebraic way to define this. This is where the concept of the zero vector comes in.
A set of vectors is linearly dependent if there exists a set of scalars , not all of which are zero, such that:
This is called a "non-trivial" combination that results in the zero vector.
Conversely, the set is linearly independent if the only way to get the zero vector is the "trivial" solution where .
Why are these definitions equivalent? If a non-trivial combination gives the zero vector, you can solve for one of the vectors in terms of the others (assuming its coefficient is non-zero), proving it's in their span and therefore redundant.
The following reading provides a clear, formal summary of these definitions.
This blog post by Matthew N. Bernstein provides excellent, rigorous definitions to complement the visual intuition we've just built.
Read the sections titled "Span" and "Linear dependence and independence". Focus on Definition 1 (span) and the two equivalent ways of thinking about linear independence: A vector being outside the span of the others. The only way to form the zero vector is with all-zero coefficients.
3. A Glimpse of Basis and Dimension
The concepts of span and linear independence naturally lead to two of the most important ideas in linear algebra: basis and dimension.
- A basis of a vector space is a set of linearly independent vectors that spans the entire space.
- The dimension of a vector space is the number of vectors in its basis.
Think of a basis as the most efficient set of building blocks for a space. It contains the minimum number of vectors needed to "span" (reach) every point in the space, with no redundancy. For example, the standard basis for is . These two vectors are linearly independent, and they span the entire 2D plane. Therefore, the dimension of is 2.
Let's hear a quick, formal explanation from MIT's Gilbert Strang to solidify these connected ideas.
Independence, Basis, and Dimension
In this classic lecture, Professor Gilbert Strang provides concise, formal definitions of basis and dimension.
First, watch the clip defining a basis as a set of independent vectors that span a space. Then, watch the explanation of dimension as the unique number of vectors required in any basis for a given space.
We will explore these concepts more deeply in future lessons, but it's useful to see how they all fit together now.
Conclusion
In this lesson, we established a crucial vocabulary for describing vector spaces. We moved from the simple idea of scaling and adding vectors to understanding the entire space they can form.
Key Takeaways:
- A linear combination is a weighted sum of vectors: .
- The span of a set of vectors is the collection of all possible linear combinations—geometrically, a line, a plane, or a higher-dimensional space.
- A set of vectors is linearly independent if each vector adds a new direction, meaning no vector is in the span of the others. Algebraically, the only linear combination that equals the zero vector is the one where all scalars are zero.
- A set of vectors is linearly dependent if at least one vector is redundant (i.e., in the span of the others). This means a non-trivial linear combination can sum to the zero vector.
- A basis is a linearly independent set of vectors that spans a space. The number of vectors in the basis is the dimension of the space.
These concepts are the bedrock for what comes next. In our next lesson, we will apply this framework to matrices by exploring the column space and null space. You'll see that the span of a matrix's columns tells us about the possible outputs of a transformation, while linear independence helps us understand the structure of its solutions.