Linear Independence
In applications, knowing if vectors are interrelated is crucial. An unecessary vector can complicate analysis.
Consider \(\mathbf{i} = (1,0)\), \(\mathbf{j} = (0,1)\) in \(R^2\).
Any vector \((x,y)\) is uniquely \(x\mathbf{i} + y\mathbf{j}\).
Example: \((3,2) = 3\mathbf{i} + 2\mathbf{j}\).
Note
This is the only way to express \((3,2)\) using \(\mathbf{i}\) and \(\mathbf{j}\).
Now, add \(\mathbf{w} = \left(\frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2}}\right)\) (unit vector at \(45^\circ\)).
\((3,2)\) can be expressed in infinitely many ways:
The vector \(\mathbf{w}\) is unnecessary because: \(\mathbf{w} = \frac{1}{\sqrt{2}} \mathbf{i} + \frac{1}{\sqrt{2}} \mathbf{j}\)
DEFINITION 1:
A set \(S = \{\mathbf{v}_{1}, \mathbf{v}_{2}, \ldots , \mathbf{v}_{r}\}\) of two or more vectors in a vector space \(V\) is linearly independent if no vector in \(S\) can be expressed as a linear combination of the others.
A set that is not linearly independent is linearly dependent.
For a single vector set \(\{\mathbf{v}\}\), it is linearly independent if and only if \(\mathbf{v} \neq \mathbf{0}\).
Important
Key Theorem 4.3.1: A nonempty set \(S = \{\mathbf{v}_{1}, \mathbf{v}_{2}, \ldots , \mathbf{v}_{r}\}\) in a vector space \(V\) is linearly independent if and only if the only coefficients satisfying the vector equation: \[ k_{1} \mathbf{v}_{1} + k_{2} \mathbf{v}_{2} + \dots + k_{r} \mathbf{v}_{r} = \mathbf{0} \] are \(k_{1} = 0, k_{2} = 0, \ldots , k_{r} = 0\).
The standard unit vectors \(\mathbf{e}_{1}, \mathbf{e}_{2}, \ldots , \mathbf{e}_{n}\) are linearly independent.
For \(R^3\): \(\mathbf{i} = (1,0,0)\), \(\mathbf{j} = (0,1,0)\), \(\mathbf{k} = (0,0,1)\)
Consider the equation: \(k_{1}\mathbf{i} + k_{2}\mathbf{j} + k_{3}\mathbf{k} = \mathbf{0}\)
In component form: \(k_{1}(1,0,0) + k_{2}(0,1,0) + k_{3}(0,0,1) = (0,0,0)\) \((k_{1}, k_{2}, k_{3}) = (0, 0, 0)\)
This directly implies \(k_{1} = 0, k_{2} = 0, k_{3} = 0\). Thus, they are linearly independent.
Let’s verify this in Python.
Determine if \(\mathbf{v}_{1} = (1, -2, 3)\), \(\mathbf{v}_{2} = (5, 6, -1)\), \(\mathbf{v}_{3} = (3, 2, 1)\) are linearly independent.
We set up the equation: \(k_{1} \mathbf{v}_{1} + k_{2} \mathbf{v}_{2} + k_{3} \mathbf{v}_{3} = \mathbf{0}\)
This translates to the homogeneous system: \[ \begin{array}{r} k_{1} + 5k_{2} + 3k_{3} = 0 \\ -2k_{1} + 6k_{2} + 2k_{3} = 0 \\ 3k_{1} - k_{2} + k_{3} = 0 \end{array} \]
The coefficient matrix is: \[ A = \left[ \begin{array}{ccc} 1 & 5 & 3 \\ -2 & 6 & 2 \\ 3 & -1 & 1 \end{array} \right] \] We need to check if this system has non-trivial solutions.
Tip
For a square matrix, if \(\operatorname{det}(A) = 0\), then \(A\mathbf{x} = \mathbf{0}\) has non-trivial solutions, implying linear dependence. If \(\operatorname{det}(A) \neq 0\), only the trivial solution exists, implying linear independence.
Let’s use Python to solve the system and find the determinant.
Determine if \(\mathbf{v}_{1} = (1,2,2, -1)\), \(\mathbf{v}_{2} = (4,9,9, -4)\), \(\mathbf{v}_{3} = (5,8,9, -5)\) are linearly independent in \(R^4\).
We need to solve \(k_{1}\mathbf{v}_{1} + k_{2}\mathbf{v}_{2} + k_{3}\mathbf{v}_{3} = \mathbf{0}\). This leads to the system: \[ \begin{array}{r} k_{1} + 4k_{2} + 5k_{3} = 0 \\ 2k_{1} + 9k_{2} + 8k_{3} = 0 \\ 2k_{1} + 9k_{2} + 9k_{3} = 0 \\ -k_{1} - 4k_{2} - 5k_{3} = 0 \end{array} \]
The set of polynomials \(\{1, x, x^2, \ldots, x^n\}\) forms a linearly independent set in \(P_n\).
Consider the equation: \(a_{0}(1) + a_{1}(x) + a_{2}(x^{2}) + \dots +a_{n}(x^{n}) = \mathbf{0}\)
This means \(a_{0} + a_{1}x + a_{2}x^{2} + \dots +a_{n}x^{n} = 0\) for all \(x \in (-\infty, \infty)\).
Tip
A non-zero polynomial of degree \(n\) has at most \(n\) distinct roots. If a polynomial is zero for all \(x\), it must be the zero polynomial, meaning all its coefficients are zero. Therefore, \(a_{0} = a_{1} = a_{2} = \dots = a_{n} = 0\).
This confirms the linear independence of the set \(\{1, x, x^2, \ldots, x^n\}\).
Determine if \(\mathbf{p}_{1} = 1 - x\), \(\mathbf{p}_{2} = 5 + 3x - 2x^{2}\), \(\mathbf{p}_{3} = 1 + 3x - x^{2}\) are linearly independent in \(P_2\).
Set up the equation:
\(k_{1}\mathbf{p}_{1} + k_{2}\mathbf{p}_{2} + k_{3}\mathbf{p}_{3} = \mathbf{0}\)
Substitute the polynomials:
\(k_{1}(1 - x) + k_{2}(5 + 3x - 2x^{2}) + k_{3}(1 + 3x - x^{2}) = 0\)
Group terms by powers of \(x\):
\((k_{1} + 5k_{2} + k_{3}) + (-k_{1} + 3k_{2} + 3k_{3})x + (-2k_{2} - k_{3})x^{2} = 0\)
For this to be true for all \(x\), each coefficient must be zero: \[ \begin{array}{c} k_{1}+5k_{2}+ k_{3}=0 \\ -k_{1}+3k_{2}+3k_{3}=0 \\ -2k_{2}- k_{3}=0 \end{array} \]
Let’s solve this system using Python.
THEOREM 4.3.2:
A finite set that contains \(\mathbf{0}\) is linearly dependent.
A set with exactly one vector \(\{\mathbf{v}\}\) is linearly independent iff \(\mathbf{v} \neq \mathbf{0}\).
A set with exactly two vectors \(\{\mathbf{v}_1, \mathbf{v}_2\}\) is linearly independent iff neither vector is a scalar multiple of the other.
Note
Proof of (a):
For any vectors \(\mathbf{v}_{1},\ldots ,\mathbf{v}_{r}\), the set \(S = \{\mathbf{v}_{1},\ldots ,\mathbf{v}_{r},\mathbf{0}\}\) is linearly dependent since \(0\mathbf{v}_{1} + \dots +0\mathbf{v}_{r} + 1(\mathbf{0}) = \mathbf{0}\) uses non-zero coefficient \(1\) for \(\mathbf{0}\).
Geometric Interpretation:
Two vectors in \(R^2\) or \(R^3\) are linearly independent if and only if they do not lie on the same line (when originating from the origin).
Otherwise, one is a scalar multiple of the other.




THEOREM 4.3.3: Let \(S = \{\mathbf{v}_{1}, \mathbf{v}_{2}, \ldots , \mathbf{v}_{r}\}\) be a set of vectors in \(R^{n}\). If \(r > n\), then \(S\) is linearly dependent.
Important
This means in \(R^n\), you can have at most \(n\) linearly independent vectors.
Proof Sketch:
Determining linear independence for functions can be complex.
DEFINITION 2: The Wronskian
If \(\mathbf{f}_{1}(x),\ldots ,\mathbf{f}_{n}(x)\) are functions that are \(n-1\) times differentiable on an interval, then the determinant: \[ W(x) = \begin{vmatrix} f_{1}(x) & f_{2}(x) & \dots & f_{n}(x) \\ f_{1}^{\prime}(x) & f_{2}^{\prime}(x) & \dots & f_{n}^{\prime}(x) \\ \vdots & \vdots & & \vdots \\ f_{1}^{(n - 1)}(x) & f_{2}^{(n - 1)}(x) & \dots & f_{n}^{(n - 1)}(x) \end{vmatrix} \] is called the Wronskian of \(f_{1},f_{2},\ldots ,f_{n}\).
THEOREM 4.3.4:
If \(\mathbf{f}_{1},\ldots ,\mathbf{f}_{n}\) have \(n-1\) continuous derivatives on \((-\infty, \infty)\), and if \(W(x)\) is not identically zero on \((-\infty, \infty)\), then these functions form a linearly independent set.
Warning
WARNING: If \(W(x)\) is identically zero, no conclusion can be reached about linear independence. The functions may be linearly independent or dependent.
Show that \(\mathbf{f}_{1} = x\) and \(\mathbf{f}_{2} = \sin x\) are linearly independent using the Wronskian.
Here, \(n=2\). We need \(n-1=1\) derivative.
\(f_1(x) = x\), \(f_1'(x) = 1\)
\(f_2(x) = \sin x\), \(f_2'(x) = \cos x\)
The Wronskian is: \[ W(x) = \begin{vmatrix} x & \sin x \\ 1 & \cos x \end{vmatrix} = x \cos x - \sin x \]
This function is not identically zero. For example, \(W\left(\frac{\pi}{2}\right) = \frac{\pi}{2} \cos \left(\frac{\pi}{2}\right) - \sin \left(\frac{\pi}{2}\right) = \frac{\pi}{2}(0) - 1 = -1\).
Since \(W(x)\) is not identically zero, \(\mathbf{f}_{1}\) and \(\mathbf{f}_{2}\) are linearly independent.
Let’s visualize the Wronskian \(W(x) = x \cos x - \sin x\).
Show that \(\mathbf{f}_{1} = 1\), \(\mathbf{f}_{2} = e^{x}\), and \(\mathbf{f}_{3} = e^{2x}\) are linearly independent.
Here, \(n=3\). We need \(n-1=2\) derivatives.
\(f_1(x) = 1\), \(f_1'(x) = 0\), \(f_1''(x) = 0\)
\(f_2(x) = e^x\), \(f_2'(x) = e^x\), \(f_2''(x) = e^x\)
\(f_3(x) = e^{2x}\), \(f_3'(x) = 2e^{2x}\), \(f_3''(x) = 4e^{2x}\)
The Wronskian is: \[ W(x) = \begin{vmatrix} 1 & e^{x} & e^{2x} \\ 0 & e^{x} & 2e^{2x} \\ 0 & e^{x} & 4e^{2x} \end{vmatrix} \] Expand along the first column:
\(W(x) = 1 \cdot \begin{vmatrix} e^{x} & 2e^{2x} \\ e^{x} & 4e^{2x} \end{vmatrix} - 0 + 0\)
\(W(x) = e^{x}(4e^{2x}) - 2e^{2x}(e^{x}) = 4e^{3x} - 2e^{3x} = 2e^{3x}\)
Since \(W(x) = 2e^{3x}\) is never zero for any \(x\), these functions are linearly independent.
Let’s visualize the Wronskian \(W(x) = 2e^{3x}\).
Theorem 4.3.1: \(S = \{\mathbf{v}_{1}, \ldots , \mathbf{v}_{r}\}\) is linearly independent \(\iff\) the only solution to \(k_{1} \mathbf{v}_{1} + \dots + k_{r} \mathbf{v}_{r} = \mathbf{0}\) is \(k_1 = \dots = k_r = 0\).
Part 1: \((\implies)\) If \(S\) is linearly independent, then \(k_1 = \dots = k_r = 0\).
Part 2: \((\impliedby)\) If the only solution is \(k_1 = \dots = k_r = 0\), then \(S\) is linearly independent.