Span and linear independence
A very important concept linear algebra is that of linear independence. In this blog post we present the definition for the span of a set of vectors. Then, we use this definition to discuss the definition for linear independence. Finally, we discuss some intuition into this fundamental idea.
Introduction
A very important concept in the study of vector spaces is that of linear independence. At a high level, a set of vectors are said to be linearly independent if you cannot form any vector in the set using any combination of the other vectors in the set. If a set of vectors does not have this quality – that is, a vector in the set can be formed from some combination of others – then the set is said to be linearly dependent.
In this post, we will first present a more fundamental concept, the span of a set of vectors, and then move on to the definition for linear independence. Finally, we will discuss high-level intuition for why the concept of linear independence is so important.
Span
Given a set of vectors, the span of these vectors is the set of the vectors that can be “generated” by taking linear combinations of these vectors. More rigorously,
Definition 1 (span): Given a vector space, and a set of vectors , the span of , denoted is the set of all vectors that can be formed by taking a linear combination of vectors in . That is,
Intuitively, you can think of as a set of “building blocks” and the as the set of all vectors that can be “constructed” from these building blocks. To illustrate this point, we illustrate two vectors, and (left), and two examples of vectors in their span (right):

In this example we see that we can construct ANY two dimensional vector from and . Thus, the span of these two vectors is all of ! This is not always the case. In the figure below, we show an example of two vectors in with a different span:

Here, and don’t span all of , but rather, only the line on which and lie.
Linear dependence and independence
Given a vector space, , and a set of vectors , the vectors are said to be linearly independent if each vector lies outside the span of the remaining vectors. Otherwise, the vectors are said to be linearly dependent. More rigorously,
Definition 2 (linear independence): Given a vector space, and a set of vectors , is called linearly independent if for each vector , it holds that .
Definition 2 (linear dependence): Given a vector space, and a set of vectors , is called linearly dependent if there exists a vector , such that .
Said differently, a set of vectors are linearly independent if you cannot form any of the vectors in the set using a linear combination of any of the other vectors. Below we demonstrate a set of linearly independent vectors (left) and a set of linearly dependent vectors (right):

Why is the set on the right linearly dependent? As you can see below, we can use any of the two vectors to construct the third:

Linear dependence/independence among a set of vectors implies another key property about these vectors stated in the following theorems (proven in the Appendix to this post):
Theorem 1 (forming the zero vector from linearly dependent vectors): Given a vector space, and a set of vectors , is linearly dependent if and only if there exists a set of coefficients for which and at least one coefficient is non-zero.
Corollary: is linearly independent if and only if the only assignment of values to coefficients for which is the assignment for which all are zero.
These theorems essentially says that if a set of vectors are linearly dependent, then one can construct the zero vector using a linear combination of the remaining vectors that isn’t the “trivial” linear combination of setting all of the coefficients to zero. This is illustrated below:

In contrast, Theorem 2 says that the only way to construct the zero vector from a set of linearly independent vectors is by setting all of the coefficients to zero.
Intuition for linear independence
There are two ways I think about linear independence: in terms of information content and in terms of intrinsic dimensionality. Let me explain.
First, if a set of vectors is linearly dependent, then in a sense there is “reduntant information” within these vectors. What do I mean by “redundant information”? In a linear dependent set, there exists a vector in that set for which if we removed that vector, the span of the set would remain the same! On the other hand, for a linearly independent set of vectors, each vector is vital for defining the span of the set’s vectors. If you remove even one vector, the span of the vectors will change (it will become smaller)!
One can also think about the concept of linear dependence/indepence in terms of intrinsic dimensionality . That is, a set of linearly independent vectors spans a space with an intrinsic dimensionality of because in order to specify any vector in the span of these vectors, one must specify the coefficients to construct from the vectors in . That is,
However, if is linearly dependent, then we can throw away “redundant” vectors in . In fact, we see that the intrinsic dimensionality of a linearly dependent set is the maximum sized subset of that is linearly independent!
Appendix
Theorem 1 (forming the zero vector from linearly dependent vectors): Given a vector space, and a set of vectors , is linearly dependent if and only if there exists an assignment of values to coefficients for which and at least one coefficient is non-zero.
Proof:
We must prove both directions of the “if and only if”. Let’s start by proving that if there exists an assignment of coefficients that are not all zero for which , then is linearly dependent.
Let’s assume that we have a set of coefficients such that
and that not all of the coefficients are zero and let be the set of indices of the coefficients that are not zero. Then, we can write
There are now two scenarios to consider: is of size 1 and is of size greater than 1. Let’s first assume is of size 1 and let’s let be the index of the one and only coefficient that is non-zero. Then
We see that must be the zero vector (because is nonzero). This implies that the zero vector is in . The zero vector is in the span of the remaining vectors in (since we can form a linear combination of the remaining vectors to form by simply setting their coefficients to zero). This implies that is linearly dependent.
Let’s assume that is of size greater than one. Then for any , we can write:
Thus we see that is in the span of the remaining vectors and thus is linearly dependent.
Now we will prove the other direction of the “if and only if”: if is linearly dependent then there exists an assignment of coefficients that are not all zero for which .
If is linearly dependent then there exists a vector that we can form using a linear combination of the remaining vectors in . Let be these remaining vectors. There are now two scenarios to consider: is the zero vector or is not the zero vector.
If is the zero vector, then we see that we can assign zero to the coefficients and any non-zero value to and the following will hold:
Thus there exists an assignment of coefficients that are not all zero for which .
Now let’s say that is not the zero vector. Then,
Here, the cofficient for is -1, which is non-zero. Thus there exists an assignment of coefficients that are not all zero for which .