Linear combination of vectors
A linear combination is a way of building a new vector from a given set of vectors using only addition and multiplication.
What a linear combination is
Let V be a vector space. We know that the space is closed under vector addition, so for two vectors x, y ∈ V we always have x + y ∈ V. If we add two vectors, we get another vector from the same space. The same is true for scalar multiplication. If we have some k ∈ ℝ, then k · x ∈ V too.
We can combine both operations – take k, l ∈ ℝ, and the expression k · x + l · y gives us a new vector, which we call v, and this vector v again lies in the space V. Why? We have k · x ∈ V, and certainly l · y ∈ V as well. We are adding two vectors of the space V, so by definition we must get a vector of the space V.
We can therefore say that the vector v is a linear combination of the vectors x and y. In general: if we have vectors x1, x2, …, xn and real numbers k1, k2, …, kn, which we call coefficients, then a linear combination of these vectors is the vector v that we get as
Example: take the space ℝ2 and two vectors from it: (2, 3) and (0, 8). Now we choose the coefficients k1 = 2, k2 = 5. The linear combination of these vectors with coefficients k1, k2 gives the vector
We see that we have got the vector (4, 46), which belongs to the space ℝ2. If we chose different coefficients, we would get a different vector. For k1 = 0, k2 = −1 we have:
Linearly dependent vectors
Linearly dependent and linearly independent vectors are closely related to linear combinations. We will show this with an example: take the vector space ℝ2 and a set Q of vectors from this space:
We now want to know whether we can write any of these four vectors as a linear combination of the other three. Looking at the vectors, we can see that the vector (3, 5) is simply the sum of the first two.
So the vector (3, 5) is a linear combination of the vectors (1, 1) and (2, 4). Just for fun, let's remove this vector from the set Q. We get a new set Q1, which looks like this:
Can we find another vector in it that is a linear combination of the others? Yes, the vector (10, 18) is a linear combination of the first two vectors with k1 = 2, k2 = 4:
Again we remove this vector, and we get:
We ask again – can we get one of the vectors as a combination of the other? We cannot: no multiple of the vector (1, 1) will be equal to the vector (2, 4).
We have got a set of vectors in which none of the vectors can be written as a linear combination of the others. We call such a set a linearly independent set of vectors. If one vector can be written as a combination of the others, we say that it is a linearly dependent vector. If it cannot be written in this way, we say that it is a linearly independent vector.
The zero vector
The zero vector 0 plays an important role in linear dependence. Let's go back to the set of vectors Q1 and the space ℝ2. The set Q1 looks like this:
and we already know that the vector (10, 18) is dependent, because 2 · (1, 1) + 4 · (2, 4) = (10, 18). So what would happen if we subtracted the vector (10, 18) from the expression 2 · (1, 1) + 4 · (2, 4)? Or rather, if we added −1 times it? It would look like this:
This expression would certainly be equal to the zero vector:
From this we can deduce an interesting property. If the set of vectors x1, x2, …, xn is linearly dependent, then there exist real coefficients a1, a2, …, an such that
At least one coefficient ai must be non-zero. If we put zero in for all the coefficients, we would always get a true equation, and so every set of vectors would turn out to be linearly dependent, which is clearly nonsense. The reason for the previous equation is simple. If, for example, the vector x1 is linearly dependent, then
All we need to do is add −x1 to this equation, and we get
How to tell whether vectors are dependent
If we have vectors x1, x2, …, xn and want to find out whether they are linearly dependent or independent, it is enough to solve the equation above
that is, to find the coefficients ai. In the space ℝ3 we might have these vectors: (1, 2, 3), (2, 1, 7), (1, −4, 5). Since we want to find out whether they are dependent, we solve this equation:
We simply write this equation out using the definitions of vector addition and scalar multiplication. We have a1 · (1, 2, 3) = (a1, 2a1, 3a1) and so on. We write it out like this:
Now we write out the addition. We always add in the same position, so we add the first component a1 of the first vector, the first component 2a2 of the second vector and the first component a3 of the third vector, and all of this must equal the first component of the zero vector, that is, zero. The same goes for the second and third components. We get a system of linear equations:
We can write this system as an ordinary matrix:
Notice that the columns of this matrix are in fact the original vectors. The first column of the matrix is the original vector (1, 2, 3), the third is the vector (1, −4, 5), and so on. When calculating, you do not always have to go through all these complicated steps: you build this matrix by putting the vectors you want to test for dependence into the columns, and then adding a zero column.
We can solve the system by Gaussian elimination. We reduce the matrix to row echelon form. First we add −2 times the first row to the second row, and −3 times the first row to the third row:
Now we can add 3 times the third row to the second row:
We do not even need to go any further: we managed to get a row of zeros, which tells us that the vectors are linearly dependent. But we can finish solving the system. We choose a parameter a3 = t. Then from the equation
which is the last row of the matrix, substituting a3 = t gives the equation:
Now we substitute these values into the first equation, that is, the first row of the matrix:
So we have a1 = 3t, a2 = −2t, a3 = t. If we substitute, say, t = 3, we get one particular solution a1 = 9, a2 = −6, a3 = 3. We can substitute these coefficients into the original equation
and we get:
We simplify the left-hand side:
We see that if we choose the coefficients, for example, a1 = 9, a2 = −6, a3 = 3, we get the zero vector from the vectors (1, 2, 3), (2, 1, 7), (1, −4, 5). If the system had only one solution, the zero solution, then the vectors would be linearly independent.
Chapters: Vector spaces, Examples of vector spaces, Vector subspace, Linear combination of vectors, Span, Basis of a vector space, Dimension of a vector space, Change-of-basis matrix