Scientia sine finibus

Linear Algebra / Unit 4, Vector Spaces / Topic 4.2

Units and Topics

Unit 4. Vector Spaces

4.2 Linear Independence

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.

1. Vectors That Add Nothing New

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₃ = 0

This form does not single out one of the vectors, and it leads to the definition.

2. The Definition

The vectors v₁, v₂, …, vk are linearly independent when the equation

c₁v₁ + c₂v₂ + … + ckvk = 0

is 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.

3. The Test

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.

  • If each column has a pivot, there are no free variables, and the vectors are independent.
  • If a column has no pivot, there is a free variable, and the vectors are dependent.

An example of dependent vectors

Test v₁ = (1, 2, 3), v₂ = (4, 5, 6), and v₃ = (7, 8, 9).

147258369 reduces to 10−1012000

Column 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 0

An example of independent vectors

Test (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.

111011001

Try 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.

4. Facts That Save Work

  • Two vectors are dependent exactly when one is a multiple of the other.
  • A set that contains the zero vector is dependent. Give the zero vector the coefficient 1 and all of the other vectors the coefficient 0.
  • A set of more than n vectors in ℝⁿ is dependent. The matrix has n rows, so it has at most n pivots, and with more than n columns some column has no pivot. Three vectors in the plane are always dependent, and so are four vectors in space.
  • A set of exactly n vectors in ℝⁿ is independent exactly when the determinant of the matrix with these columns is not 0. This follows from the list in Part 6 of Topic 3.4.

5. The Picture

VectorsIndependentDependent
Two vectorsThey point along different lines, and their span is a planeThey 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.

6. Independent Functions

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.

  • The functions 1, x, and x² are independent. If a + bx + cx² = 0 for all x, then x = 0 gives a = 0. Then bx + cx² = 0 for all x, and the values x = 1 and x = −1 give b + c = 0 and −b + c = 0, so b = 0 and c = 0.
  • The functions sin x and cos x are independent. If a sin x + b cos x = 0 for all x, then x = 0 gives b = 0, and x = π/2 gives a = 0.
  • The functions cos² x, sin² x, and 1 are dependent, because cos² x + sin² x − 1 = 0 for all x.

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.

Common Mistakes

  • Concluding that vectors are independent because none is a multiple of another. That test works only for two vectors. The vectors (1, 2, 3), (4, 5, 6), and (7, 8, 9) are dependent, although no two of them are parallel.
  • Writing the vectors as the rows of the matrix and then reading the dependence coefficients from the columns. Put the vectors in the columns.
  • Saying that a dependent set means each vector is a combination of the others. Only at least one vector must be.
  • Forgetting that the trivial combination always gives the zero vector. Independence means that it is the only one.
  • Testing functions at one value of x. The combination must be 0 for all x.

Summary

TermMeaning
Linearly independentThe only combination that gives the zero vector has all coefficients equal to 0
Linearly dependentSome combination with coefficients that are not all 0 gives the zero vector
TestPut 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

Practice

Work each problem on paper first. Then open the answer to check your work.

1. Are (2, −1) and (−6, 3) independent?

No. The second vector is −3 times the first vector.

2. Are (1, 1, 0), (0, 1, 1), and (1, 0, 1) independent?

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.

3. Are (1, 1, 0), (0, 1, 1), and (1, 2, 1) independent? If not, find a combination that gives the zero vector.

The third vector is the sum of the first two.

So v₁ + v₂ − v₃ = 0, and the vectors are dependent.

4. Without any calculation, explain why (1, 2), (3, 4), (5, 6), and (7, 8) are dependent.

They are four vectors in ℝ². A set of more than 2 vectors in ℝ² is always dependent.

5. For which value of k are (1, 2) and (3, k) 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.

6. Are the functions 1 + x, 1 − x, and 1 independent?

No. (1 + x) + (1 − x) − 2(1) = 0 for all x.

Python Practice

Step 1. Test independence with the rank

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.

Step 2. Check a combination that gives the zero vector

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

Step 3. Use the determinant

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.

Step 4. Make a dependent set 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

Step 5. More vectors than components

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.

Quiz

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?

2. For which value of k are the vectors (2, 5) and (4, k) dependent?

3. Which of these sets of vectors must be dependent?

4. Find the coefficients a and b so that (2, 3, 5) = a(1, 0, 1) + b(0, 1, 1).

5. The matrix with the columns u and v has the determinant 2. What does this show about u and v?

Next: Topic 4.3, Basis and Dimension