Linear Algebra & DE · Unit 1 · Topic 03

Linear dependence: is any vector redundant?

Short answer

Vectors \(X_1, \dots, X_r\) are linearly dependent if \(k_1X_1 + \dots + k_rX_r = 0\) for some \(k_i\) not all zero. Otherwise they are independent.

Test: put the vectors in the rows of a matrix. Rank \(= r\) means independent; rank \(< r\) means dependent. For example \((1, 2, 3), (2, 3, 4), (3, 4, 5)\) are dependent, since \(X_1 - 2X_2 + X_3 = 0\).

Engineering MathsB Tech / BEBSc
01

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?

Definition

\(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.

02

The rank test

Test for dependence

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

  1. 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\).
  2. Solve it by row reduction. The coefficient matrix has the vectors as its columns.
  3. 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.

03

Solved examples

Example 1: Two vectors

Easy

Are \(X_1 = (2, -1, 3)\) and \(X_2 = (-4, 2, -6)\) dependent?

  1. Compare components: each one of \(X_2\) is \(-2\) times the matching one of \(X_1\).
  2. 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

Easy

Test \(X_1 = (1, 2, 3)\), \(X_2 = (0, 1, 4)\), \(X_3 = (5, 6, 0)\).

  1. 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\]
  2. The determinant is not zero.

AnswerIndependent.

Example 3: Finding the relation

Medium

Show that \(X_1 = (1, 2, 3)\), \(X_2 = (2, 3, 4)\), \(X_3 = (3, 4, 5)\) are dependent and find the relation.

  1. \(\begin{vmatrix} 1 & 2 & 3 \\ 2 & 3 & 4 \\ 3 & 4 & 5 \end{vmatrix} = -1 + 4 - 3 = 0\), so they are dependent.
  2. 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\).
  3. 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}\]
  4. 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

Medium

For what \(k\) are \((1, 1, 1)\), \((1, 2, 3)\), \((2, 3, k)\) linearly dependent?

  1. \(\begin{vmatrix} 1 & 1 & 1 \\ 1 & 2 & 3 \\ 2 & 3 & k \end{vmatrix} = (2k - 9) - (k - 6) + (3 - 4) = k - 4\).
  2. Dependent \(\iff k - 4 = 0\).
  3. 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³

Medium

Show 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.

  1. Four vectors in \(\mathbb{R}^3\): the 4×3 matrix has rank at most 3, which is less than 4. Dependent, with no calculation.
  2. For the relation, try to write \(X_4 = aX_1 + bX_2 + cX_3\): \(a + c = 1\), \(b + c = 1\), \(a + b = 1\).
  3. 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 level

Test \(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.

  1. 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}\]
  2. \(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}\]
  3. \(R_3 \to R_3 + 2R_2\) gives a zero row, so \(\rho(A) = 2 < 3\): dependent.
  4. 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 level

Are \(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?

  1. \(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)\).
  2. \(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\).
  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\).

Vipul Sir's tip

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.

04

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.

05

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\).

Stuck on a question?

Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.

06

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.

Related lessons

← All 12 Linear Algebra & DE topics
Vipul Sir
Written by Vipul Sir

Vipul Sir has taught mathematics for over 15 years to HSC, CBSE, ICSE, IGCSE/IB, Diploma, Engineering and BSc students at VVS Classes in Goregaon and Vile Parle, Mumbai. He teaches every class himself, concepts first and exam technique second.

Linear Algebra and Differential Equations

Get Linear Algebra & DE right, with Vipul Sir beside you.

Concept-first classes in small batches in Goregaon and Vile Parle, or online. Your first class is free.

WhatsApp↗