Span in Linear Algebra
Introduction: What Does “Span” Mean?
students, imagine you have a set of building blocks and you want to know what shapes you can make with them 🧱. In linear algebra, span tells us exactly which vectors can be built from a given set of vectors using scaling and addition. This idea is one of the foundations of linear independence, basis, and dimension, so understanding span helps you understand the whole topic of vector spaces.
By the end of this lesson, you will be able to:
- explain what span means in clear mathematical language,
- determine whether a vector is in a span,
- use span to describe sets of vectors in $\mathbb{R}^2$ and $\mathbb{R}^3$,
- connect span to linear independence, basis, and dimension,
- use examples and reasoning to justify your answers.
A big idea to keep in mind is this: span is about all possible linear combinations of a set of vectors. That sounds technical, but the idea is simple and powerful.
What Is Span?
If you have vectors $\mathbf{v}_1, \mathbf{v}_2, \dots, \mathbf{v}_n$, then their span is the set of all vectors you can make in the form
$$
$\text{span}$\{$\mathbf{v}_1$, $\mathbf{v}_2$, $\dots$, $\mathbf{v}$_n\} = \{c_$1\mathbf{v}_1$ + c_$2\mathbf{v}_2$ + $\cdots$ + c_n$\mathbf{v}$_n \mid c_1, c_2, $\dots$, c_n $\in$ \mathbb{R}\}.
$$
The numbers $c_1, c_2, \dots, c_n$ are called scalars. They can stretch, shrink, or reverse a vector. Then the scaled vectors are added together to make a new vector.
Think of span as the “reachable set” of vectors. If you are allowed to use any real numbers as coefficients, then the span includes every vector that can be formed from those ingredients.
Example in $\mathbb{R}^2$
Suppose
$$
$\mathbf{v} = \begin{pmatrix}1\\2\end{pmatrix}.$
$$
Then the span of just this one vector is
$$
$\text{span}$\{$\mathbf{v}$\} = $\left\{$ c$\begin{pmatrix}1$\\$2\end{pmatrix}$ : c $\in$ \mathbb{R} $\right\}$.
$$
This is all vectors on the line through the origin in the direction of $\begin{pmatrix}1\\2\end{pmatrix}$. For example, if $c=3$, you get $\begin{pmatrix}3\\6\end{pmatrix}$. If $c=-1$, you get $\begin{pmatrix}-1\\-2\end{pmatrix}$. ✅
So a span can be a line, a plane, or even all of space, depending on the vectors.
How to Think About Linear Combinations
A linear combination is any expression like
$$
a$\mathbf{v}_1$ + b$\mathbf{v}_2$ + $\cdots$ + k$\mathbf{v}$_n,
$$
where $a,b,\dots,k$ are real numbers.
Span is not just one linear combination; it is the collection of every possible linear combination.
Example with Two Vectors
Let
$$
$\mathbf{u}$ = $\begin{pmatrix}1$\\$0\end{pmatrix}$, \qquad $\mathbf{w}$ = $\begin{pmatrix}0$\\$1\end{pmatrix}$.
$$
Any vector in $\mathbb{R}^2$ can be written as
$$
$\begin{pmatrix}$x\y$\end{pmatrix}$ = x$\begin{pmatrix}1$\\$0\end{pmatrix}$ + y$\begin{pmatrix}0$\\$1\end{pmatrix}$.
$$
So
$$
$\text{span}\{\mathbf{u},\mathbf{w}\} = \mathbb{R}^2.$
$$
These two vectors together can make every vector in the plane. That is why they are so useful.
Example of a Vector Not in a Span
If you only use
$$
$\mathbf{v} = \begin{pmatrix}2\\4\end{pmatrix},$
$$
then the span is still just a line through the origin. The vector $\begin{pmatrix}1\\1\end{pmatrix}$ is not on that line, because it is not a scalar multiple of $\begin{pmatrix}2\\4\end{pmatrix}$. So it is not in the span.
This shows a key idea: a span can be small or large, but it always depends on the vectors you start with.
Testing Whether a Vector Is in a Span
A common task in linear algebra is to determine whether a target vector is in the span of some given vectors. This is done by setting up an equation and solving for the coefficients.
Suppose we want to know whether
$$
$\mathbf{b} = \begin{pmatrix}5\\7\end{pmatrix}$
$$
is in the span of
$$
$\mathbf{v}_1$ = $\begin{pmatrix}1$\\$1\end{pmatrix}$, \qquad $\mathbf{v}_2$ = $\begin{pmatrix}2$\\$3\end{pmatrix}$.
$$
We ask whether there exist numbers $a$ and $b$ such that
$$
a$\begin{pmatrix}1$\\$1\end{pmatrix}$ + b$\begin{pmatrix}2$\\$3\end{pmatrix}$ = $\begin{pmatrix}5$\\$7\end{pmatrix}$.
$$
This gives the system
$$
$\begin{cases}$
$a + 2b = 5 \\$
$a + 3b = 7$
$\end{cases}$
$$
Subtract the first equation from the second:
$$
$b = 2.$
$$
Then
$$
a + 2(2) = 5 \implies a = 1.
$$
Since a solution exists, $\mathbf{b}$ is in the span of $\mathbf{v}_1$ and $\mathbf{v}_2$. 🎯
This procedure is very important because it turns a geometric question into an algebra problem.
Span, Linear Independence, and Why It Matters
Span is closely related to linear independence. A set of vectors is linearly independent if none of them can be written as a linear combination of the others.
Why does this matter? Because dependent vectors can be redundant. If one vector already comes from the others, it does not add anything new to the span.
Example of Dependence
Consider
$$
$\mathbf{v}_1$ = $\begin{pmatrix}1$\\$2\end{pmatrix}$, \qquad $\mathbf{v}_2$ = $\begin{pmatrix}2$\\$4\end{pmatrix}$.
$$
Notice that
$$
$\mathbf{v}_2 = 2\mathbf{v}_1.$
$$
So these vectors are linearly dependent. Their span is the same as the span of just $\mathbf{v}_1$:
$$
$\text{span}\{\mathbf{v}_1, \mathbf{v}_2\} = \text{span}\{\mathbf{v}_1\}.$
$$
Adding a vector that points in the same direction does not expand the span.
Example of Independence
Now consider
$$
$\mathbf{u}$ = $\begin{pmatrix}1$\\$0\end{pmatrix}$, \qquad $\mathbf{w}$ = $\begin{pmatrix}0$\\$1\end{pmatrix}$.
$$
Neither vector is a multiple of the other, so they are linearly independent. Together, they span $\mathbb{R}^2$.
This connection is essential: independent vectors tend to expand a span in new directions, while dependent vectors often repeat information.
Span and Basis
A basis is a set of vectors that has two important properties:
- it spans the space,
- it is linearly independent.
So a basis is the “just right” set of vectors: enough to generate everything, but with no unnecessary vectors.
Basis of $\mathbb{R}^2$
The vectors
$$
$\begin{pmatrix}1\\0\end{pmatrix}, \qquad \begin{pmatrix}0\\1\end{pmatrix}$
$$
form a basis for $\mathbb{R}^2$. They span the plane and are independent.
Not a Basis
The set
$$
$\left\{$$\begin{pmatrix}1$\\$0\end{pmatrix}$, $\begin{pmatrix}2$\\$0\end{pmatrix}$$\right\}$
$$
spans only the $x$-axis, not all of $\mathbb{R}^2$. Since they are also dependent, this set is not a basis.
A basis tells us the most efficient way to describe a vector space. Each vector in the space can be written uniquely as a linear combination of the basis vectors.
Span and Dimension
The dimension of a vector space is the number of vectors in a basis for that space.
For example:
- $\mathbb{R}^2$ has dimension $2$,
- $\mathbb{R}^3$ has dimension $3$,
- a line through the origin in $\mathbb{R}^2$ has dimension $1$.
Span helps explain dimension because the smallest number of independent vectors needed to span a space determines its dimension.
Example in $\mathbb{R}^3$
The vectors
$$
$\mathbf{e}_1 = \begin{pmatrix}1\\0\\0\end{pmatrix}, \quad$
$\mathbf{e}_2 = \begin{pmatrix}0\\1\\0\end{pmatrix}, \quad$
$\mathbf{e}_3 = \begin{pmatrix}0\\0\\1\end{pmatrix}$
$$
form a basis for $\mathbb{R}^3$. Their span is all of $\mathbb{R}^3$, and the dimension is $3$.
If you only had two non-parallel vectors in $\mathbb{R}^3$, they would usually span a plane through the origin, not all of $\mathbb{R}^3$. That plane has dimension $2$.
So span helps us classify spaces by how many independent directions they contain.
Real-World Meaning of Span
Span appears in real situations whenever we combine resources or directions to create different outcomes. For example, in graphics and animation, vectors can describe movement, color changes, or shapes. If certain direction vectors span a plane, then any movement in that plane can be created from those directions.
In engineering, forces can be combined to produce a net force. In computer science, span helps describe how data or signals can be built from simpler components. These applications all depend on the same math idea: building many outcomes from a small set of vectors.
Conclusion
Span is one of the most important ideas in linear algebra because it describes everything you can make from a set of vectors using linear combinations. students, when you understand span, you also begin to understand linear independence, basis, and dimension. A span can be a line, a plane, or an entire space, and testing membership in a span is a key algebra skill. Mastering this topic gives you a strong foundation for the rest of linear algebra. 🌟
Study Notes
- The span of vectors is the set of all their linear combinations.
- A vector is in a span if you can find coefficients that combine the given vectors to make it.
- In $\mathbb{R}^2$, one nonzero vector usually spans a line through the origin.
- Two independent vectors in $\mathbb{R}^2$ can span all of $\mathbb{R}^2$.
- Redundant vectors do not change the span if they are already linear combinations of other vectors.
- A basis is a set of vectors that is both linearly independent and spans the space.
- The dimension of a space is the number of vectors in a basis.
- Span is the starting point for understanding vector spaces, bases, and dimensions.
- To test whether a vector is in a span, set up a linear combination equation and solve for the coefficients.
- Span helps describe how complex vectors and spaces are built from simpler pieces.
