Type a command or search the notes. Tab cycles completions. Up and down recall history when blank. Escape dismisses, then leaves the prompt.
MATH
[1251]

Linear independence

When linear combinations have unique coefficients and how to test for redundancy.

A set is linearly independent when the only combination giving 00 is the trivial one. This page tests independence by row reduction and shows that it is exactly the condition for coefficients to be unique.

Independence removes redundancy

[DEFINITION]

Span

For a subset SS (possibly infinite) in a vector space VV over FF, the span of SS is the set of all finite linear combinations of vectors in SS:

span⁡(S)={λ1v1+⋯+λkvk:k≥0, v1,…,vk∈S, λ1,…,λk∈F}.\operatorname{span}(S) = \left\{ \lambda_1v_1+\cdots+\lambda_kv_k: k\geq 0,\ v_1,\ldots,v_k\in S,\ \lambda_1,\ldots,\lambda_k\in F \right\}.

For a finite set S={v1,…,vn}S=\{v_1,\ldots,v_n\}, this is the same as allowing one coefficient for each listed vector. When k=0k=0, the sum is the empty sum 00.

[DEFINITION]

Linear independence

Let SS be a subset of a vector space over FF. The set SS is linearly independent if every finite list of distinct vectors u1,…,un∈Su_1,\ldots,u_n\in S has the property that, for scalars λ1,…,λn∈F\lambda_1,\ldots,\lambda_n\in F,

λ1u1+⋯+λnun=0\lambda_1u_1+\cdots+\lambda_nu_n=0

implies

λ1=⋯=λn=0.\lambda_1=\cdots=\lambda_n=0.

An equation of this form is a relation among the chosen vectors. An independent set is one in which the zero vector has no non-trivial finite representation. An independent set therefore cannot contain the zero vector itself.

[DEFINITION]

Linear dependence

A set SS is linearly dependent if some finite list of distinct vectors u1,…,un∈Su_1,\ldots,u_n\in S has scalars, not all zero, such that

λ1u1+⋯+λnun=0.\lambda_1u_1+\cdots+\lambda_nu_n=0.

Dependence is exactly the failure of linear independence.

[EXAMPLE]

A parameter decides independence

Let

u1=(11),u2=(2α).u_1=\begin{pmatrix}1\\1\end{pmatrix}, \qquad u_2=\begin{pmatrix}2\\\alpha\end{pmatrix}.

The homogeneous relation

λ1u1+λ2u2=0\lambda_1u_1+\lambda_2u_2=0

gives

λ1+2λ2=0,λ1+αλ2=0.\lambda_1+2\lambda_2=0, \qquad \lambda_1+\alpha\lambda_2=0.

If α=2\alpha=2, the two equations are the same, so non-zero solutions exist and the set is dependent. If α≠2\alpha\neq2, subtraction gives λ2=0\lambda_2=0, then λ1=0\lambda_1=0, so the set is independent.

Testing independence by row reduction

When the vectors are placed as columns of a matrix, the definition becomes a test on a homogeneous system.

[THEOREM]

The homogeneous-system test

Let S={u1,…,un}⊆RmS=\{u_1,\ldots,u_n\}\subseteq\mathbb R^m and let

A=[ u1 ⋯ un ].A=[\,u_1\ \cdots\ u_n\,].

Then SS is linearly independent if and only if the homogeneous system

Ax=0Ax=0

has only the zero solution. Equivalently, after row reduction, every column of AA contains a pivot. If a column has no pivot, the free variable in that column produces a non-trivial dependence relation among the original columns.

If m<nm<n, there cannot be a pivot in every column, so any nn vectors in Rm\mathbb R^m with m<nm<n are dependent.

When SS is dependent, the original vectors in the pivot columns form an independent subset with the same span as SS. This works because row operations left-multiply by an invertible matrix, so they preserve every linear relation among the columns. Each non-pivot column is therefore a combination of the pivot columns, not necessarily only the earlier ones.

[EXAMPLE]

Two vectors in R3\mathbb R^3

Consider

u1=(1−23),u2=(−12−4).u_1=\begin{pmatrix}1\\-2\\3\end{pmatrix}, \qquad u_2=\begin{pmatrix}-1\\2\\-4\end{pmatrix}.

The equations in

λ1u1+λ2u2=0\lambda_1u_1+\lambda_2u_2=0

include λ1−λ2=0\lambda_1-\lambda_2=0 and 3λ1−4λ2=03\lambda_1-4\lambda_2=0. Hence λ1=λ2\lambda_1=\lambda_2 and then λ1=0\lambda_1=0, so λ2=0\lambda_2=0. The two vectors are linearly independent.

[EXAMPLE]

Removing a redundant vector

Let

S={(12),(13),(14)}.S=\left\{ \begin{pmatrix}1\\2\end{pmatrix}, \begin{pmatrix}1\\3\end{pmatrix}, \begin{pmatrix}1\\4\end{pmatrix} \right\}.

The third vector is twice the second minus the first, so it adds no new direction. The first two vectors are independent because neither is a scalar multiple of the other. Therefore

{(12),(13)}\left\{ \begin{pmatrix}1\\2\end{pmatrix}, \begin{pmatrix}1\\3\end{pmatrix} \right\}

is independent and has the same span as SS.

Independence is uniqueness

[THEOREM]

Independence and uniqueness

Suppose

v=λ1u1+⋯+λnun.v=\lambda_1u_1+\cdots+\lambda_nu_n.

The coefficients λ1,…,λn\lambda_1,\ldots,\lambda_n are unique if and only if {u1,…,un}\{u_1,\ldots,u_n\} is linearly independent.

The span gives existence of a representation; independence gives its uniqueness.

[PROOF]

If the coefficients in the displayed representation of vv are unique, suppose a non-zero relation

c1u1+⋯+cnun=0c_1u_1+\cdots+c_nu_n=0

exists. Then

v=(λ1+c1)u1+⋯+(λn+cn)unv=(\lambda_1+c_1)u_1+\cdots+(\lambda_n+c_n)u_n

is another representation of vv. Since some cj≠0c_j\neq0, the two representations are different, a contradiction. Thus the set is linearly independent. Conversely, suppose

v=λ1u1+⋯+λnun=α1u1+⋯+αnun.v=\lambda_1u_1+\cdots+\lambda_nu_n =\alpha_1u_1+\cdots+\alpha_nu_n.

Subtracting gives

(λ1−α1)u1+⋯+(λn−αn)un=0.(\lambda_1-\alpha_1)u_1+\cdots+(\lambda_n-\alpha_n)u_n=0.

Independence forces λj−αj=0\lambda_j-\alpha_j=0 for every jj, so the two representations are the same.

[EXAMPLE]

Dependence gives non-unique coefficients

The set

S={(12),(13),(14)}S=\left\{ \begin{pmatrix}1\\2\end{pmatrix}, \begin{pmatrix}1\\3\end{pmatrix}, \begin{pmatrix}1\\4\end{pmatrix} \right\}

is dependent. For example,

(14)=−(12)+2(13)=−2(12)+4(13)−(14).\begin{pmatrix}1\\4\end{pmatrix} =-\begin{pmatrix}1\\2\end{pmatrix} +2\begin{pmatrix}1\\3\end{pmatrix} =-2\begin{pmatrix}1\\2\end{pmatrix} +4\begin{pmatrix}1\\3\end{pmatrix} -\begin{pmatrix}1\\4\end{pmatrix}.

The relation (1,2)T−2(1,3)T+(1,4)T=0(1,2)^T-2(1,3)^T+(1,4)^T=0 explains the two representations: adding a multiple of it changes the coefficients without changing the vector.

Locating the redundant direction

Dependence can also be read as one vector lying in the span of the others. The polynomial example below is over R\mathbb R, so P1P_1 denotes P1(R)P_1(\mathbb R).

[THEOREM]

Independence and the span of the other vectors

A finite set SS is linearly independent if and only if no vector in SS belongs to the span of the other vectors.

If uju_j is a combination of the other vectors, moving it to one side gives a non-trivial relation equal to zero. Conversely, in a non-trivial relation, choose a vector with a non-zero coefficient and solve for it in terms of the others.

[EXAMPLE]

Dependence in P1P_1

The set

{x, 1+x, 1−x}\{x,\ 1+x,\ 1-x\}

is dependent: equating coefficients in

λ1x+λ2(1+x)+λ3(1−x)=0\lambda_1x+\lambda_2(1+x)+\lambda_3(1-x)=0

gives the non-trivial choice λ1=−2\lambda_1=-2, λ2=1\lambda_2=1, λ3=−1\lambda_3=-1. The subset {x,1+x}\{x,1+x\} is independent, since the constant coefficient forces the coefficient of 1+x1+x to be zero and then the coefficient of xx forces the other coefficient to be zero.

Extending an independent set

[THEOREM]

Adding a vector to a span

For a finite set SS and a vector vv,

span⁡(S∪{v})=span⁡(S)\operatorname{span}(S\cup\{v\})=\operatorname{span}(S)

if and only if

v∈span⁡(S).v\in\operatorname{span}(S).

Since S⊆S∪{v}S\subseteq S\cup\{v\}, we always have span⁡(S)⊆span⁡(S∪{v})\operatorname{span}(S)\subseteq\operatorname{span}(S\cup\{v\}). If v∈span⁡(S)v\in\operatorname{span}(S), every combination using vv can be rewritten using only vectors in SS, so the reverse inclusion also holds. Conversely, if the spans are equal, then vv belongs to span⁡(S∪{v})\operatorname{span}(S\cup\{v\}) and hence to span⁡(S)\operatorname{span}(S).

Two consequences follow. Removing any vector from an independent set leaves an independent set with a smaller span. From a dependent set, some vector can be removed without changing the span.

[COROLLARY]

Adjoining a vector outside the span

If SS is linearly independent and v∉span⁡(S)v\notin\operatorname{span}(S), then S∪{v}S\cup\{v\} is linearly independent.

[PROOF]

Write S={u1,…,un}S=\{u_1,\ldots,u_n\}. Suppose

λ1u1+⋯+λnun+μv=0.\lambda_1u_1+\cdots+\lambda_nu_n+\mu v=0.

If μ≠0\mu\neq0, then vv is a linear combination of the vectors in SS, contradicting v∉span⁡(S)v\notin\operatorname{span}(S). Hence μ=0\mu=0 and the independence of SS forces λ1=⋯=λn=0\lambda_1=\cdots=\lambda_n=0. Therefore S∪{v}S\cup\{v\} is linearly independent.

This result is the step used to extend an independent set to a basis.

Basis and dimension combines spanning with independence and counts the vectors required.

On this page