Linear Dependence and Independence
A set of vectors is linearly dependent if one or more vectors in the set can be expressed as a linear combination of the others. If this is not possible, the vectors are said to be linearly independent.
The formal definition says that a set of vectors is linearly independent if the only solution to
is
The idea is βcan we combine the vectors to cancel each other out?β.
In this lesson I would like to build some intuition for this concept, as I think that - in general, but especially in this case - itβs the most important step to help you link this idea to other important concepts in linear algebra.
We first start with numerical examples and then move on to a more visual way to think of linear dependence.
Numerical Examples
First Example
Take the vectors
Now, the vectors are linearly dependent, because
As you can see, can be expressed as a linear combination of and .
Second Example
There is an even simpler case. Take the vectors
A βlinear combinationβ of is just multiplied by some scalar. But itβs still a trivial case of a linear combination.
And as you can see, you can rewrite as :
That means that is linearly dependent on .
Third Example
Letβs now look at an example where the vectors are linearly independent.
Take the vectors
To check whether these vectors are independent or not, we use the definition of linear dependence:
If we can find a solution which is not setting all coefficients to , the vectors are dependent. If the only solution is
then the vectors are linearly independent.
So, letβs proceed:
We can rewrite this as a system of equations:
You can solve this however you want, I will assume that youβre able to solve a linear system of equations. You will find that the only solution to the system is
Therefore, the vectors , , and are linearly independent.
Visual Intuition
The idea that I discuss in this section is extremely important, as we will build upon it a lot in later lessons.
Take the vectors
As you might have already noticed, these vectors are unit vectors which point in the same direction as the axes in a two-dimensional coordinate system: points in the direction of the -axis, and points in the same direction as the -axis.
With these two vectors, you can reach any point on the -plane. When you have some point in a coordinate system, say , you are saying that to reach that point you have to βmove in the positive direction by units and move in the positive direction by unitsβ. You can express that same idea with the and vectors defined above. To reach the vector
you can use
And just like with the point , you can reach any point on this plane. Therefore, the linear combination of and describes the -plane.
The thing is, you donβt really need the vectors to point in the same direction as the axes to reach any point on the plane. Take the vectors
To reach the point , you can use
Just like before, with some linear combination of and , it is possible to reach any point on the -plane.
But now consider the pair of vectors
In this case, we are not able to reach every point on the -plane. But why? What makes this pair of vectors different from the other two?
The answer is that these two vectors are linearly dependent, because .
But what does this mean visually? Well, in this simple case itβs easy: the two vectors point in the same direction. In fact, is the definition of a parallel vector.
The second vector does not βunlockβ any new territory. Before, the second vector allowed us to go in a different direction compared to the first vector, but now both vectors point in the same direction. By summing up scaled versions of these vectors (aka linear combination) we can only move along a line. Most of the two-dimensional space cannot be reached.
This idea extends to higher dimensions. Take the vectors
These are three-dimensional vectors. The vectors and together allow us to move along a plane in three-dimensional space. That is, their linear combination allows us to reach all the points on a plane in this space.
Okay, so now we need a vector to move away from this plane and reach the rest of the three-dimensional space. Letβs look at . But wait, is inside the plane formed by the linear combinations of and . That is because
Theyβre linearly dependent. The vector does not give us any βnew informationβ. You cannot reach spots of the 3D space that you werenβt able to reach by combining only and .
Basically, each independent vector adds one new dimension. If a vector can be built from the others, it does not add new information.
If this concept is not entirely clear yet, donβt worry. We will cover this extensively in future lessons.