Linear Algebra / Unit 4, Vector Spaces / Topic 4.2
Unit 4. Vector Spaces
This topic defines linear independence. A set of vectors is independent when none of them can be made from the others, so that each vector adds something new to the span.
You need Topics 1.1, 2.3, 3.4, and 4.1 for this topic.
Take the vectors v₁ = (1, 2), v₂ = (0, 1), and v₃ = (2, 5) in the plane. The third vector is a linear combination of the first two: v₃ = 2v₁ + v₂. Any vector that can be made from all three can already be made from the first two, so v₃ adds nothing to the span. The set is called linearly dependent.
The equation v₃ = 2v₁ + v₂ can be written with all of the vectors on one side:
2v₁ + v₂ − v₃ = 0This form does not single out one of the vectors, and it leads to the definition.
The vectors v₁, v₂, …, vk are linearly independent when the equation
c₁v₁ + c₂v₂ + … + ckvk = 0is true only for c₁ = c₂ = … = ck = 0. If the equation is also true for some coefficients that are not all 0, the vectors are linearly dependent.
The choice of all coefficients equal to 0 always gives the zero vector. It is called the trivial combination. Independent vectors have no other way to combine to the zero vector.
If a set of vectors is dependent, then at least one of the vectors is a linear combination of the others. Take a combination that gives the zero vector, choose a vector whose coefficient is not 0, and solve for it. The reverse is also true: if one vector is a combination of the others, the set is dependent.
The equation in the definition is a homogeneous system for the unknown coefficients. Write the vectors as the columns of a matrix A. Then c₁v₁ + … + ckvk is the product Ac, and the question is whether Ac = 0 has a solution other than c = 0. Topic 2.3 answered this question: reduce the matrix and look for free variables.
Test v₁ = (1, 2, 3), v₂ = (4, 5, 6), and v₃ = (7, 8, 9).
147258369 reduces to 10−1012000Column 3 has no pivot, so the vectors are dependent. Let c₃ = t. The rows give c₁ = t and c₂ = −2t. With t = 1,
v₁ − 2v₂ + v₃ = (1 − 8 + 7, 2 − 10 + 8, 3 − 12 + 9)one component at a timev₁ − 2v₂ + v₃ = (0, 0, 0)the zero vector, with coefficients that are not all 0Test (1, 0, 0), (1, 1, 0), and (1, 1, 1). The matrix with these columns is upper triangular, with three pivots on the diagonal. There are no free variables, so the vectors are independent.
111011001Try it: test three vectors
The columns of the matrix are the vectors v₁, v₂, and v₃. Type numbers into the matrix, or choose an example. The readout shows the reduced row echelon form and states whether the vectors are independent. If they are dependent, it shows a combination that gives the zero vector.
| Vectors | Independent | Dependent |
|---|---|---|
| Two vectors | They point along different lines, and their span is a plane | They are on one line through the origin |
| Three vectors in ℝ³ | They do not lie in one plane, and their span is all of ℝ³ | They lie in one plane through the origin |
Each independent vector adds one dimension to the span. A dependent vector adds none.
The definition works in any vector space. For functions, the zero vector is the function that is 0 for all x, and a combination must be 0 for all x to count.
In quantum mechanics, the possible states of a system are combinations of independent states. Independence guarantees that the coefficients of such a combination are determined without ambiguity, as Topic 4.3 shows.
| Term | Meaning |
|---|---|
| Linearly independent | The only combination that gives the zero vector has all coefficients equal to 0 |
| Linearly dependent | Some combination with coefficients that are not all 0 gives the zero vector |
| Test | Put the vectors in the columns of a matrix. They are independent when each column has a pivot |
| n vectors in ℝⁿ | Independent exactly when the determinant is not 0 |
| More than n vectors in ℝⁿ | Always dependent |
Work each problem on paper first. Then open the answer to check your work.
No. The second vector is −3 times the first vector.
det 101110011 = 1(1 − 0) − 0 + 1(1 − 0)expand along the first row= 2
The determinant is not 0, so the vectors are independent.
The third vector is the sum of the first two.
So v₁ + v₂ − v₃ = 0, and the vectors are dependent.
They are four vectors in ℝ². A set of more than 2 vectors in ℝ² is always dependent.
Two vectors are dependent when one is a multiple of the other. (3, k) = 3(1, 2) requires k = 6.
The determinant gives the same answer: k − 6 = 0.
No. (1 + x) + (1 − x) − 2(1) = 0 for all x.
From Topic 2.3, the rank of a matrix is its number of pivots, and np.linalg.matrix_rank calculates it. Vectors are independent when the matrix that has them as columns has a pivot in each column, so the rank must be equal to the number of vectors.
The instruction np.column_stack builds a matrix whose columns are the vectors that it is given. The vectors go inside a second pair of parentheses.
Python
The rank is 2, and there are 3 vectors. The vectors are dependent, as in Part 3 of this topic.
Part 3 found the combination v₁ − 2v₂ + v₃. The code below calculates it.
Python
The result is [0 0 0].
The three vectors in the next box are the ones from Practice Problem 3. Change the values of a, b, and c so that the combination is the zero vector. Do not set all three to 0.
Python
For n vectors in ℝⁿ, the determinant gives the same answer as the rank. The vectors are independent when the determinant is not 0. The code below tests the vectors of Practice Problem 2.
Python
The determinant is 2 and the rank is 3, so these vectors are independent.
The vectors in the next box are dependent. Change v₃ so that the three vectors are independent. Do not change v₁ or v₂.
Python
The code below builds a matrix from four vectors in ℝ³. The matrix has 3 rows and 4 columns.
Python
The rank is 3, and it cannot be larger, because the matrix has only 3 rows. There are 4 vectors, so they are dependent. Change the components to any other numbers and run the code again. The rank is never 4.
This quiz has 5 questions on this topic. A question asks you either to choose one answer or to type numbers. The page grades your answers and explains each one. A number can be typed as a whole number, a decimal, a fraction such as 1/3, or a calculation such as sqrt(18)/2 or arccos(1/2). The page shows the value of a calculation next to the box. Angles in a calculation are in degrees. The Calculator button under each question opens a calculator. Your answers are saved in your browser, so they are still on the page when you come back to it.
Choose how your answers are checked
1. Are the vectors (1, 2) and (3, 6) dependent or independent?
Two vectors are dependent exactly when one of them is a multiple of the other. Here 3(1, 2) − (3, 6) is the zero vector.
2. For which value of k are the vectors (2, 5) and (4, k) dependent?
The vector (4, k) must be a multiple of (2, 5).4 = 2(2)the first components give the multiple 2k = 2(5) = 10the second components, with the same multipleThe determinant 2k − 20 is then 0.
3. Which of these sets of vectors must be dependent?
A set of more than n vectors in ℝⁿ is always dependent. Three vectors in the plane are more than two. The other sets can be independent.
4. Find the coefficients a and b so that (2, 3, 5) = a(1, 0, 1) + b(0, 1, 1).
The first components give a = 2, and the second components give b = 3. The third components agree: 2 + 3 = 5. So the three vectors are dependent.
5. The matrix with the columns u and v has the determinant 2. What does this show about u and v?
A set of exactly n vectors in ℝⁿ is independent exactly when the determinant of the matrix with these columns is not 0.