Dependent and independent vectors
Before you start: you need the rank of a matrix and how to solve a homogeneous system.
A linear combination of vectors \(X_1, X_2, \dots, X_r\) is any sum \(k_1X_1 + k_2X_2 + \dots + k_rX_r\), where the \(k_i\) are numbers. The question in this lesson is simple: can some combination add up to the zero vector without every \(k_i\) being zero?
\(X_1, X_2, \dots, X_r\) are linearly dependent if there are numbers \(k_1, k_2, \dots, k_r\), not all zero, with \[k_1X_1 + k_2X_2 + \dots + k_rX_r = 0\]
They are linearly independent if this equation forces \(k_1 = k_2 = \dots = k_r = 0\).
If the vectors are dependent and, say, \(k_1 \ne 0\), you can divide by \(k_1\) and write \(X_1\) as a combination of the others. So "dependent" means at least one vector is redundant: it adds no new direction.
The picture helps. Two vectors in a plane are dependent exactly when they lie on one line through the origin. Three vectors in space are dependent exactly when they lie in one plane through the origin.
The rank test
Write the \(r\) vectors as the rows of a matrix \(A\).
- \(\rho(A) = r\): the vectors are independent.
- \(\rho(A) < r\): the vectors are dependent.
Shortcuts
\(n\) vectors in \(\mathbb{R}^n\) (so \(A\) is square): dependent \(\iff |A| = 0\).
More than \(n\) vectors in \(\mathbb{R}^n\) are always dependent, because \(\rho(A) \le n\).
Any set containing the zero vector is dependent.
Why rank? Row operations build combinations of the rows. A row that reduces to zero is a combination of the others, which is precisely a dependence relation.
Finding the relation
- Write \(k_1X_1 + k_2X_2 + \dots + k_rX_r = 0\) component by component. This is a homogeneous system in \(k_1, \dots, k_r\).
- Solve it by row reduction. The coefficient matrix has the vectors as its columns.
- Pick a convenient value for the free parameter and write the relation.
A faster way, once you are comfortable: keep track of the row operations. If \(R_3 + 2R_2 - 3R_1\) comes out as zero, then \(X_3 + 2X_2 - 3X_1 = 0\). Example 6 does this.
Solved examples
Example 1: Two vectors
EasyAre \(X_1 = (2, -1, 3)\) and \(X_2 = (-4, 2, -6)\) dependent?
- Compare components: each one of \(X_2\) is \(-2\) times the matching one of \(X_1\).
- So \(X_2 = -2X_1\), that is \(2X_1 + X_2 = 0\), with coefficients that are not both zero.
AnswerDependent: \(2X_1 + X_2 = 0\).
Example 2: Three vectors in R³, by determinant
EasyTest \(X_1 = (1, 2, 3)\), \(X_2 = (0, 1, 4)\), \(X_3 = (5, 6, 0)\).
- Three vectors in \(\mathbb{R}^3\): use the determinant. \[\begin{vmatrix} 1 & 2 & 3 \\ 0 & 1 & 4 \\ 5 & 6 & 0 \end{vmatrix} = -24 + 40 - 15 = 1\]
- The determinant is not zero.
AnswerIndependent.
Example 3: Finding the relation
MediumShow that \(X_1 = (1, 2, 3)\), \(X_2 = (2, 3, 4)\), \(X_3 = (3, 4, 5)\) are dependent and find the relation.
- \(\begin{vmatrix} 1 & 2 & 3 \\ 2 & 3 & 4 \\ 3 & 4 & 5 \end{vmatrix} = -1 + 4 - 3 = 0\), so they are dependent.
- Let \(k_1X_1 + k_2X_2 + k_3X_3 = 0\): \(k_1 + 2k_2 + 3k_3 = 0\), \(2k_1 + 3k_2 + 4k_3 = 0\), \(3k_1 + 4k_2 + 5k_3 = 0\).
- Row-reduce the coefficient matrix: \[\begin{bmatrix} 1 & 2 & 3 \\ 2 & 3 & 4 \\ 3 & 4 & 5 \end{bmatrix} \sim \begin{bmatrix} 1 & 2 & 3 \\ 0 & -1 & -2 \\ 0 & 0 & 0 \end{bmatrix}\]
- Let \(k_3 = t\). Then \(k_2 = -2t\) and \(k_1 = -2k_2 - 3k_3 = t\). Take \(t = 1\).
Answer\(X_1 - 2X_2 + X_3 = 0\)
Example 4: A parameter
MediumFor what \(k\) are \((1, 1, 1)\), \((1, 2, 3)\), \((2, 3, k)\) linearly dependent?
- \(\begin{vmatrix} 1 & 1 & 1 \\ 1 & 2 & 3 \\ 2 & 3 & k \end{vmatrix} = (2k - 9) - (k - 6) + (3 - 4) = k - 4\).
- Dependent \(\iff k - 4 = 0\).
- With \(k = 4\) the relation is easy to spot: \((1, 1, 1) + (1, 2, 3) = (2, 3, 4)\).
Answer\(k = 4\), and then \(X_1 + X_2 - X_3 = 0\).
Example 5: Four vectors in R³
MediumShow that \(X_1 = (1, 0, 1)\), \(X_2 = (0, 1, 1)\), \(X_3 = (1, 1, 0)\), \(X_4 = (1, 1, 1)\) are dependent and find a relation.
- Four vectors in \(\mathbb{R}^3\): the 4×3 matrix has rank at most 3, which is less than 4. Dependent, with no calculation.
- For the relation, try to write \(X_4 = aX_1 + bX_2 + cX_3\): \(a + c = 1\), \(b + c = 1\), \(a + b = 1\).
- Adding all three: \(2(a + b + c) = 3\), so \(a + b + c = \tfrac{3}{2}\) and \(a = b = c = \tfrac{1}{2}\).
Answer\(X_1 + X_2 + X_3 - 2X_4 = 0\)
Example 6: Three vectors in R⁴
Exam levelTest \(X_1 = (1, 2, -1, 3)\), \(X_2 = (2, 1, 1, 1)\), \(X_3 = (-1, 4, -5, 7)\) for dependence. If dependent, find the relation.
- There is no determinant for a 3×4 matrix, so use rank. \[A = \begin{bmatrix} 1 & 2 & -1 & 3 \\ 2 & 1 & 1 & 1 \\ -1 & 4 & -5 & 7 \end{bmatrix}\]
- \(R_2 \to R_2 - 2R_1\), \(R_3 \to R_3 + R_1\): \[A \sim \begin{bmatrix} 1 & 2 & -1 & 3 \\ 0 & -3 & 3 & -5 \\ 0 & 6 & -6 & 10 \end{bmatrix}\]
- \(R_3 \to R_3 + 2R_2\) gives a zero row, so \(\rho(A) = 2 < 3\): dependent.
- Track what the zero row is: \((X_3 + X_1) + 2(X_2 - 2X_1) = X_3 + 2X_2 - 3X_1 = 0\).
AnswerDependent: \(3X_1 - 2X_2 - X_3 = 0\).
Example 7: Four vectors in R⁴
Exam levelAre \(X_1 = (1, 1, 0, 0)\), \(X_2 = (0, 1, 1, 0)\), \(X_3 = (0, 0, 1, 1)\), \(X_4 = (1, 0, 0, 1)\) independent?
- \(A = \begin{bmatrix} 1 & 1 & 0 & 0 \\ 0 & 1 & 1 & 0 \\ 0 & 0 & 1 & 1 \\ 1 & 0 & 0 & 1 \end{bmatrix}\). \(R_4 \to R_4 - R_1\) gives \((0, -1, 0, 1)\).
- \(R_4 \to R_4 + R_2\) gives \((0, 0, 1, 1)\), and \(R_4 \to R_4 - R_3\) gives \((0, 0, 0, 0)\). So \(|A| = 0\) and \(\rho(A) = 3\).
- Track it: \(X_4 - X_1 + X_2 - X_3 = 0\).
AnswerNo, they are dependent: \(X_1 - X_2 + X_3 - X_4 = 0\).
After you find a relation, always add it up component by component. In Example 6: \(3(1) - 2(2) - (-1) = 0\), \(3(2) - 2(1) - 4 = 0\), and so on. It takes thirty seconds and catches nearly every sign slip.
Common mistakes
1. "No vector is a multiple of another, so they are independent"
Wrong for three or more vectors. In Example 3 no vector is a multiple of another, yet \(X_1 - 2X_2 + X_3 = 0\). Use the rank or the determinant.
2. Taking a determinant of a non-square matrix
Three vectors in \(\mathbb{R}^4\) give a 3×4 matrix, which has no determinant. Row-reduce and find the rank instead.
3. Writing a "relation" with all coefficients zero
\(0X_1 + 0X_2 + 0X_3 = 0\) is true for every set of vectors and proves nothing. Dependence needs at least one coefficient that is not zero.
Practice questions
Try each one on paper before you open the answer.
Q1Are \((2, -1)\) and \((-6, 3)\) dependent?
Yes: \((-6, 3) = -3(2, -1)\), so \(3X_1 + X_2 = 0\).
Q2Test \((1, 1, 0)\), \((1, 0, 1)\), \((0, 1, 1)\).
The determinant is \(1(0 - 1) - 1(1 - 0) + 0 = -2 \ne 0\). Independent.
Q3Show that \((1, 2, 4)\), \((2, -1, 3)\), \((4, 3, 11)\) are dependent and find the relation.
The determinant is 0. Solving gives \(2X_1 + X_2 - X_3 = 0\). Check: \(2 + 2 - 4 = 0\), \(4 - 1 - 3 = 0\), \(8 + 3 - 11 = 0\).
Q4Find a relation between \((1, 2, 3)\), \((4, 5, 6)\), \((7, 8, 9)\).
\(X_1 - 2X_2 + X_3 = 0\), because the middle vector is the average of the other two.
Q5For which \(k\) are \((k, 1, 1)\), \((1, k, 1)\), \((1, 1, k)\) dependent?
The determinant is \(k^3 - 3k + 2 = (k - 1)^2(k + 2)\). Dependent for \(k = 1\) or \(k = -2\).
Q6Find the rank of \((1, 0, 2, 1)\), \((0, 1, 1, 2)\), \((1, 1, 3, 3)\) and a relation if one exists.
\(R_3 - R_1 - R_2 = 0\), so the rank is 2 and \(X_1 + X_2 - X_3 = 0\).
Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.
Frequently asked questions
What does linearly dependent mean?
Some combination \(k_1X_1 + \dots + k_rX_r\) equals the zero vector with at least one \(k_i \ne 0\). Equivalently, at least one of the vectors can be written using the others.
How do you check linear independence with a matrix?
Put the vectors in the rows of a matrix and find its rank. If the rank equals the number of vectors, they are independent; if it is smaller, they are dependent. For \(n\) vectors in \(\mathbb{R}^n\) you can just check whether the determinant is non-zero.
Can 4 vectors in R³ be independent?
No. Any \(n + 1\) or more vectors in \(\mathbb{R}^n\) are dependent, because the rank of the matrix can't exceed \(n\).
Why does this matter for eigenvectors?
A matrix can be diagonalised only when it has enough independent eigenvectors. You will use this test in eigenvalues and eigenvectors and in diagonalisation.