Skip to main content

Section 1.7 Linear Independence

Worksheet 1.7 Linear Independence

Motivating Question: What is the smallest number of vectors needed in a parametric solution to a linear system?

Definition 1.44 Linear Independence and Dependence.

A set of vectors \({\vec v_1, \ldots, \vec v_k}\) in \(\mathbb{R}^n\) is called linearly independent if the vector equation
\begin{equation*} c_1 \vec v_1 + c_2 \vec v_2 + \cdots + c_k \vec v_k = \vec 0 \end{equation*}
has only the trivial solution \(c_1 = c_2 = \cdots = c_k = 0\text{.}\) The set \({\vec v_1, \ldots, \vec v_k}\) is said to be linearly dependent if there exist weights \(c_1, c_2, \dots, c_k\text{,}\) not all zero, such that
\begin{equation*} c_1 \vec v_1 + c_2 \vec v_2 + \cdots + c_k \vec v_k = \vec 0 \end{equation*}
Let \(A = \begin{bmatrix} \vec v_1 \amp \cdots \amp \vec v_n \end{bmatrix}\text{.}\) Then some equivalent definitions of linear independence are
  • \(A\vec x = \vec 0\) only has the trivial solution.
  • \(A\) has a pivot in every column.

Example 1.45.

For each of the following sets, determine if the set is linearly independent or linearly dependent.

(a)

\(\left\{\begin{bmatrix}1 \\ 0 \\ 1\end{bmatrix}, \begin{bmatrix} 2 \\ 2 \\ 0 \end{bmatrix}, \begin{bmatrix} 0 \\ 2 \\ 1 \end{bmatrix} \right\}\)
Solution.
We will check if the matrix having these vectors as columns has a pivot in every column. Note that
\begin{equation*} A = \begin{bmatrix} 1 \amp 2 \amp 0 \\ 0 \amp 2 \amp 2 \\ 1 \amp 0 \amp 1 \end{bmatrix} \sim \begin{bmatrix} 1 \amp 2 \amp 0 \\ 0 \amp 1 \amp 1 \\ 0 \amp -2 \amp 1 \end{bmatrix} \sim \begin{bmatrix} 1 \amp 2 \amp 0 \\ 0 \amp 1 \amp 1 \\ 0 \amp 0 \amp 3 \end{bmatrix} \end{equation*}
Since \(A\) has a pivot in every column, the system \(A\vec x = \vec 0\) has only the trivial solution. Therefore, there is no nontrivial linear combination of the vectors which results in \(\vec 0\text{,}\) so the vectors are linearly independent.

(b)

\(\left\{\begin{bmatrix}1 \\ 2 \\ 1\end{bmatrix}, \begin{bmatrix} 2 \\ 4 \\ 2 \end{bmatrix}\right\}\)
Solution.
Note that
\begin{equation*} B = \begin{bmatrix} 1 \amp 2 \\ 2 \amp 4 \\ 1 \amp 2 \end{bmatrix} \sim \begin{bmatrix} 1 \amp 2 \\ 0 \amp 0 \\ 0 \amp 0 \end{bmatrix} \end{equation*}
Since \(B\) has a free column (column 2), there must be a nontrivial solution to \(A\vec x = \vec 0\text{.}\) Every one of these nontrivial solutions gives a nontrivial linear combination of the vectors which result in \(\vec 0\text{.}\) For example, we can write all solutions to \(A\vec x = \vec 0\) in parametric vector form as \(\vec x = t\begin{bmatrix} -2 \\ 1 \end{bmatrix}\text{.}\) Choosing \(t = 1\text{,}\) we see that
\begin{equation*} \begin{bmatrix} 1 \amp 2 \\ 2 \amp 4 \\ 1 \amp 2 \end{bmatrix} \begin{bmatrix} -2 \\ 1 \end{bmatrix} = \vec 0 \quad \implies \quad -2\begin{bmatrix} 1 \\ 2 \\ 1 \end{bmatrix} + 1\begin{bmatrix} 2 \\ 4 \\ 2 \end{bmatrix} = \vec 0 \end{equation*}
Therefore, the vectors are linearly dependent. Note, we can solve for either of the two vectors above and rewrite it in terms of the other. For example, we have that
\begin{equation*} \begin{bmatrix} 2 \\ 4 \\ 2\end{bmatrix} = 2\begin{bmatrix} 1 \\ 2\\ 1\end{bmatrix}\text{.} \end{equation*}
Rewriting one vector in terms of the others is always possible for any linearly dependent set. Now, for some linearly dependent set, you can rewrite any of the vectors in terms of the others, but for some sets, only certain vectors in the set can be rewritten in terms of the others. One thing that is true: You can always rewrite any vector that corresponds to a free column in terms of the other vectors.

(c)

\(\left\{\begin{bmatrix}1 \\ 0 \\ 1\end{bmatrix}, \begin{bmatrix} 2 \\ 1 \\ 3 \end{bmatrix}, \begin{bmatrix} 0 \\ 1 \\ 1 \end{bmatrix} \right\}\)
Solution.
Note that
\begin{equation*} C = \begin{bmatrix} 1 \amp 2 \amp 0 \\ 0 \amp 1 \amp 1 \\ 1 \amp 3 \amp 1 \end{bmatrix} \sim \begin{bmatrix} 1 \amp 2 \amp 0 \\ 0 \amp 1 \amp 1 \\ 0 \amp 1 \amp 1 \end{bmatrix} \sim \begin{bmatrix} 1 \amp 0 \amp -2 \\ 0 \amp 1 \amp 1 \\ 0 \amp 0 \amp 0 \end{bmatrix} \end{equation*}
Since \(C\) is missing a pivot in column 3, the vectors are linearly dependent. The solutions to \(A\vec x = \vec 0\) are
\begin{equation*} \vec x = t\begin{bmatrix} 2 \\ -1 \\ 1 \end{bmatrix}\text{.} \end{equation*}
Choosing \(t = 1\text{,}\) we see that
\begin{equation*} \begin{bmatrix} 1 \amp 2 \amp 0 \\ 0 \amp 1 \amp 1 \\ 1 \amp 3 \amp 1 \end{bmatrix} \begin{bmatrix} 2 \amp -1 \amp 1 \end{bmatrix} = \vec 0 \quad \implies \quad 2\begin{bmatrix} 1 \\ 0 \\ 1 \end{bmatrix} - 1\begin{bmatrix} 2 \\ 1 \\ 3 \end{bmatrix} + 1\begin{bmatrix} 0 \\ 1 \\ 1 \end{bmatrix} = \vec 0\text{.} \end{equation*}
We can solve this equation for any of the vectors, so let’s solve it for the second vector and show that it can be expressed as a linear combination of the other two.
\begin{equation*} \begin{bmatrix}2 \\ 1 \\ 3 \end{bmatrix} = 2\begin{bmatrix} 1 \\ 0 \\ 1 \end{bmatrix} + 1\begin{bmatrix} 0 \\ 1 \\ 1 \end{bmatrix} \end{equation*}

Example 1.48.

For what values of \(h\) are the vectors \(\begin{bmatrix} 1 \\ 1 \\ h \end{bmatrix}, \begin{bmatrix} 1 \\ h \\ 1 \end{bmatrix}, \begin{bmatrix} h \\ 1 \\ 1 \end{bmatrix}\) linearly dependent?
Solution.
Note that
\(\begin{eqnarray*} A = \begin{bmatrix} 1 \amp 1 \amp h \\ 1 \amp h \amp 1 \\ h \amp 1 \amp 1 \end{bmatrix} \amp {\Huge \sim} \amp \begin{bmatrix} 1 \amp 1 \amp h \\ 0 \amp h-1 \amp 1 - h \\ 0 \amp 1 - h \amp 1 - h^2 \end{bmatrix}\\ \amp \overset{R_3 + R_2 \rightarrow R_3}{\Huge \sim} \amp \begin{bmatrix} 1 \amp 1 \amp h \\ 0 \amp h-1 \amp 1-h \\ 0 \amp 0 \amp 2 - h - h^2 \end{bmatrix}\end{eqnarray*}\)
We see that the second column of \(A\) will correspond to a free variable if
\begin{equation*} 1 - h = 0 \quad \implies \quad h = 1 \end{equation*}
and the third column of \(A\) will corresponds to a free variable if
\begin{equation*} 2 - h - h^2 = 0 \quad \implies \quad (2+h)(1-h) = 0 \quad \implies \quad h = -2,1 \end{equation*}
Therefore, the values of \(h\) which make the vectors linear dependent are \(h = -2, 1\text{.}\)
Let’s check. If \(h = -2\text{,}\) the vectors are \(\begin{bmatrix} 1 \\ 1\\ -2 \end{bmatrix}, \begin{bmatrix} 1 \\ -2 \\ 1 \end{bmatrix}, \begin{bmatrix} -2 \\ 1 \\ 1\end{bmatrix}\) which are linearly dependent since
\begin{equation*} 1 \begin{bmatrix} 1 \\ 1\\ -2 \end{bmatrix} + 1\begin{bmatrix} 1 \\ -2 \\ 1 \end{bmatrix}+ 1 \begin{bmatrix} -2 \\ 1 \\ 1\end{bmatrix} = \vec 0 \end{equation*}
If \(h = 1\text{,}\) the vectors are \(\begin{bmatrix} 1 \\ 1 \\ 1 \end{bmatrix}, \begin{bmatrix} 1 \\ 1 \\ 1 \end{bmatrix}, \begin{bmatrix} 1 \\ 1 \\ 1 \end{bmatrix}\) which are definitely linearly dependent since they are the same vector.