Unit 3, lesson 14

Linear Independence

What makes a list of vectors linearly independent or dependent, how a dependence relation shows which vector is redundant, why independence makes coefficients unique, and how to test a list by elimination.

  • Video 14
  • Subspaces, Independence and Bases

Take the vectors (1,0,1)(1, 0, 1), (0,1,1)(0, 1, 1) and (1,1,2)(1, 1, 2). The weights 2,1,02, 1, 0 and the weights 1,0,11, 0, 1 build the same vector (2,1,3)(2, 1, 3), even though no two of the three vectors are parallel. Two different recipes for one result mean that some vector in the list adds nothing new. Linear independence is the condition that rules this out, and this lesson shows how to test it by elimination and why it is exactly what makes coefficients unique.

Key terms

Linearly independent list

Definition Tuples such as (1,0,1)(1, 0, 1) stand for column vectors. Let v1,…,vk\mathbf{v}_1, \dots, \mathbf{v}_k be a list of vectors in Rn\mathbb{R}^n. The combination 0v1+⋯+0vk0\mathbf{v}_1 + \cdots + 0\mathbf{v}_k, with every coefficient zero, is the trivial combination, and it always equals 0\mathbf{0}. A combination with at least one nonzero coefficient is nontrivial. The list is linearly independent if the trivial combination is the only one that equals 0\mathbf{0}, that is,

c1v1+c2v2+⋯+ckvk=0  ⟹  c1=c2=⋯=ck=0.\begin{aligned} &c_1\mathbf{v}_1 + c_2\mathbf{v}_2 + \cdots + c_k\mathbf{v}_k = \mathbf{0} \\[0.4em] &\quad \implies c_1 = c_2 = \cdots = c_k = 0. \end{aligned}

Independence is a property of the whole list. It says nothing about lengths, angles or coordinate axes, and the same definition is used in any vector space.

In plain words The only way to combine the vectors of an independent list into zero is to give every one of them the weight zero.

Example For the pair (1,0,1)(1, 0, 1) and (0,1,1)(0, 1, 1),

a(1,0,1)+b(0,1,1)=(a, b, a+b).\begin{aligned} &a(1, 0, 1) + b(0, 1, 1) \\[0.4em] &\quad = (a,\ b,\ a + b). \end{aligned}

If this equals 0\mathbf{0}, the first entry gives a=0a = 0 and the second gives b=0b = 0. Only the trivial combination gives zero, so the pair is independent. The argument covers every real aa and bb at once, which is what a proof of independence needs.

Linearly dependent list

Definition A list v1,…,vk\mathbf{v}_1, \dots, \mathbf{v}_k in Rn\mathbb{R}^n is linearly dependent if it is not linearly independent, that is, if there are scalars c1,…,ckc_1, \dots, c_k, not all zero, with

c1v1+c2v2+⋯+ckvk=0.c_1\mathbf{v}_1 + c_2\mathbf{v}_2 + \cdots + c_k\mathbf{v}_k = \mathbf{0}.

A few facts follow at once. A list that contains 0\mathbf{0} is dependent, since the coefficient 11 on 0\mathbf{0} and 00 on every other vector is nontrivial. A list in which the same vector appears twice is dependent, with coefficients 11 and −1-1 on the two copies. A single vector is independent exactly when it is not 0\mathbf{0}, and two vectors are dependent exactly when one of them is a scalar multiple of the other.

In plain words Dependent means zero can be built from the list in a nontrivial way. For two vectors that just means one is a multiple of the other, but with three or more vectors the relation can involve all of them at once.

Example Let w1=(1,0,1)\mathbf{w}_1 = (1, 0, 1), w2=(0,1,1)\mathbf{w}_2 = (0, 1, 1) and w3=(1,1,2)\mathbf{w}_3 = (1, 1, 2). No two of them are parallel, yet

w1+w2−w3=0,\mathbf{w}_1 + \mathbf{w}_2 - \mathbf{w}_3 = \mathbf{0},

so the list is dependent. Checking the vectors two at a time would miss this.

Dependence relation

Definition A dependence relation for a list v1,…,vk\mathbf{v}_1, \dots, \mathbf{v}_k is an equation c1v1+⋯+ckvk=0c_1\mathbf{v}_1 + \cdots + c_k\mathbf{v}_k = \mathbf{0} whose coefficients are not all zero. One such relation proves that the list is dependent. If a relation has cj≠0c_j \ne 0, it can be solved for vj\mathbf{v}_j,

vj=−1cj∑i≠jcivi,\mathbf{v}_j = -\frac{1}{c_j} \sum_{i \ne j} c_i \mathbf{v}_i,

so vj\mathbf{v}_j lies in the span of the other vectors, and removing vj\mathbf{v}_j from the list does not change its span. Conversely, if some vj\mathbf{v}_j is a combination of the others, moving it to the other side gives a relation with coefficient −1-1 on vj\mathbf{v}_j. So a list of two or more vectors is dependent exactly when one of its vectors is a linear combination of the others. A relation gives no permission to remove a vector whose coefficient in it is zero.

In plain words A relation points to the redundant vectors. Any one vector with a nonzero coefficient can be rebuilt from the rest and dropped without shrinking the span.

Example In R2\mathbb{R}^2 the list e1\mathbf{e}_1, 2e12\mathbf{e}_1, e2\mathbf{e}_2 satisfies

−2 e1+1 (2e1)+0 e2=0.-2\,\mathbf{e}_1 + 1\,(2\mathbf{e}_1) + 0\,\mathbf{e}_2 = \mathbf{0}.

Either horizontal vector may be removed, and the remaining pair still spans R2\mathbb{R}^2. The relation does not allow removing e2\mathbf{e}_2, whose coefficient is 00, and indeed e1\mathbf{e}_1 and 2e12\mathbf{e}_1 alone span only the xx-axis.

Uniqueness of coefficients

Definition A list v1,…,vk\mathbf{v}_1, \dots, \mathbf{v}_k in Rn\mathbb{R}^n is linearly independent if and only if every vector in span⁡{v1,…,vk}\operatorname{span}\{\mathbf{v}_1, \dots, \mathbf{v}_k\} is a linear combination of the list in exactly one way. If the list is independent and

∑i=1kaivi=∑i=1kbivi,\sum_{i=1}^{k} a_i \mathbf{v}_i = \sum_{i=1}^{k} b_i \mathbf{v}_i,

then subtracting gives

∑i=1k(ai−bi) vi=0,\sum_{i=1}^{k} (a_i - b_i)\,\mathbf{v}_i = \mathbf{0},

so every ai−bia_i - b_i is 00. Conversely, a nontrivial relation would be a second way to write 0\mathbf{0}, next to the trivial combination. The statement is about vectors inside the span. An independent list need not span all of Rn\mathbb{R}^n, and a vector outside its span has no representation at all.

In plain words Independence means no two different weight settings give the same vector. Every vector the list can reach, it reaches with exactly one set of weights.

Example For the dependent list w1,w2,w3\mathbf{w}_1, \mathbf{w}_2, \mathbf{w}_3 above, the vector (2,1,3)(2, 1, 3) has infinitely many representations,

(2−t) w1+(1−t) w2+t w3=(2,1,3)\begin{aligned} &(2 - t)\,\mathbf{w}_1 + (1 - t)\,\mathbf{w}_2 + t\,\mathbf{w}_3 \\[0.4em] &\quad = (2, 1, 3) \end{aligned}

for every real tt. These weights are 2,1,02, 1, 0 plus tt times the coefficients of the relation −w1−w2+w3=0-\mathbf{w}_1 - \mathbf{w}_2 + \mathbf{w}_3 = \mathbf{0}, and adding a multiple of that relation adds only 0\mathbf{0}. The independent pair w1,w2\mathbf{w}_1, \mathbf{w}_2 reaches (2,1,3)(2, 1, 3) only as 2w1+w22\mathbf{w}_1 + \mathbf{w}_2. It cannot reach (1,1,1)(1, 1, 1) at all, since every combination (a,b,a+b)(a, b, a + b) has third entry equal to the sum of the first two.

Independence test by elimination

Definition To test vectors v1,…,vk\mathbf{v}_1, \dots, \mathbf{v}_k in Rn\mathbb{R}^n, place them as the columns of the n×kn \times k matrix V=[v1 ⋯ vk]V = [\mathbf{v}_1 \ \cdots \ \mathbf{v}_k] and solve the homogeneous system Vc=0V\mathbf{c} = \mathbf{0} for the coefficient vector c=(c1,…,ck)\mathbf{c} = (c_1, \dots, c_k). Row reduce VV to an echelon form. The zero right-hand side stays zero, so it can be left out. The list is independent exactly when every column of the echelon form has a pivot. If some column has no pivot, its variable is free, and setting that free variable to 11 and any other free variables to 00 gives a dependence relation. An n×kn \times k matrix has at most nn pivots, so any list of more than nn vectors in Rn\mathbb{R}^n is dependent.

In plain words The unknowns are the weights. A pivot in every column forces every weight to be zero, while a free weight gives a nontrivial recipe for zero.

Example Test p=(1,1,0)\mathbf{p} = (1, 1, 0), q=(0,1,1)\mathbf{q} = (0, 1, 1) and r=(1,0,1)\mathbf{r} = (1, 0, 1).

V=[101110011]→R2→R2−R1[10101−1011]→R3→R3−R2[10101−1002]\begin{aligned} V &= \begin{bmatrix} 1 & 0 & 1 \\ 1 & 1 & 0 \\ 0 & 1 & 1 \end{bmatrix} \\[0.4em] &\xrightarrow{R_2 \to R_2 - R_1} \begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & -1 \\ 0 & 1 & 1 \end{bmatrix} \\[0.4em] &\xrightarrow{R_3 \to R_3 - R_2} \begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & -1 \\ 0 & 0 & 2 \end{bmatrix} \end{aligned}

Every column has a pivot. Back substitution gives 2c3=02c_3 = 0, then c2=c3=0c_2 = c_3 = 0, then c1=−c3=0c_1 = -c_3 = 0, so the list is independent. For w1,w2,w3\mathbf{w}_1, \mathbf{w}_2, \mathbf{w}_3 the steps R3→R3−R1R_3 \to R_3 - R_1 and R3→R3−R2R_3 \to R_3 - R_2 produce a zero row instead. The third column has no pivot, c3=tc_3 = t is free, and c1=c2=−tc_1 = c_2 = -t. With t=1t = 1 this is the relation −w1−w2+w3=0-\mathbf{w}_1 - \mathbf{w}_2 + \mathbf{w}_3 = \mathbf{0}.

Check yourself

  1. Are the vectors (2,−1)(2, -1) and (−6,3)(-6, 3) linearly independent? If not, give a dependence relation.
Show the answer

No. The second vector is −3-3 times the first, so

3 (2,−1)+1 (−6,3)=(0,0)3\,(2, -1) + 1\,(-6, 3) = (0, 0)

is a dependence relation. Two vectors are dependent exactly when one is a multiple of the other.

  1. No two of the vectors (1,2,3)(1, 2, 3), (4,5,6)(4, 5, 6) and (7,8,9)(7, 8, 9) are parallel. Use elimination to decide whether the list is independent, and give a dependence relation if it is not.
Show the answer

Put the vectors in the columns of VV and reduce.

V=[147258369]→R2→R2−2R1[1470−3−6369]→R3→R3−3R1[1470−3−60−6−12]→R3→R3−2R2[1470−3−6000]\begin{aligned} V &= \begin{bmatrix} 1 & 4 & 7 \\ 2 & 5 & 8 \\ 3 & 6 & 9 \end{bmatrix} \\[0.4em] &\xrightarrow{R_2 \to R_2 - 2R_1} \begin{bmatrix} 1 & 4 & 7 \\ 0 & -3 & -6 \\ 3 & 6 & 9 \end{bmatrix} \\[0.4em] &\xrightarrow{R_3 \to R_3 - 3R_1} \begin{bmatrix} 1 & 4 & 7 \\ 0 & -3 & -6 \\ 0 & -6 & -12 \end{bmatrix} \\[0.4em] &\xrightarrow{R_3 \to R_3 - 2R_2} \begin{bmatrix} 1 & 4 & 7 \\ 0 & -3 & -6 \\ 0 & 0 & 0 \end{bmatrix} \end{aligned}

The third column has no pivot, so the list is dependent even though no two vectors are parallel. Set c3=tc_3 = t. The second row gives −3c2−6t=0-3c_2 - 6t = 0, so c2=−2tc_2 = -2t, and the first gives c1=−4c2−7c3=tc_1 = -4c_2 - 7c_3 = t. With t=1t = 1,

(1,2,3)−2 (4,5,6)+(7,8,9)=(0,0,0).\begin{aligned} &(1, 2, 3) - 2\,(4, 5, 6) + (7, 8, 9) \\[0.4em] &\quad = (0, 0, 0). \end{aligned}
  1. For which real numbers kk is the list (1,0,1)(1, 0, 1), (0,1,1)(0, 1, 1), (1,1,k)(1, 1, k) linearly independent?
Show the answer

Reduce the matrix with these columns.

[10101111k]→R3→R3−R1[10101101k−1]→R3→R3−R2[10101100k−2]\begin{aligned} &\begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & 1 \\ 1 & 1 & k \end{bmatrix} \\[0.4em] &\xrightarrow{R_3 \to R_3 - R_1} \begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & 1 \\ 0 & 1 & k - 1 \end{bmatrix} \\[0.4em] &\xrightarrow{R_3 \to R_3 - R_2} \begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & 1 \\ 0 & 0 & k - 2 \end{bmatrix} \end{aligned}

The third column has a pivot exactly when k−2≠0k - 2 \ne 0. So the list is independent for every k≠2k \ne 2. When k=2k = 2 the third vector (1,1,2)(1, 1, 2) is the sum of the first two, and the list is dependent.

How this lesson connects