Linear Independence and Dependence

April 13, 2026

Problem

Are v₁ = [1,2,3], v₂ = [4,5,6], v₃ = [5,7,9] linearly independent? If not, find an explicit dependence relation.

Explanation

Definition

Vectors v1,,vk\mathbf{v}_1, \ldots, \mathbf{v}_k are linearly independent if the only scalars making c1v1+c2v2++ckvk=0c_1 \mathbf{v}_1 + c_2 \mathbf{v}_2 + \cdots + c_k \mathbf{v}_k = \mathbf{0}

are c1=c2==ck=0c_1 = c_2 = \cdots = c_k = 0 (the trivial combination).

They are linearly dependent if there is some nontrivial combination (not all zero) giving 0\mathbf{0} — equivalently, at least one of them is a linear combination of the others.

The matrix test

Form the matrix MM with the vectors as columns. Then:

  • IndependentMc=0M \mathbf{c} = \mathbf{0} has only the trivial solution ⟺ MM has rank equal to the number of vectors.
  • DependentMc=0M \mathbf{c} = \mathbf{0} has nontrivial solutions.

For a square MM, this is the same as detM0\det M \ne 0 (independent) vs. detM=0\det M = 0 (dependent).

Step-by-step — are the three vectors independent?

Set up c1(123)+c2(456)+c3(579)=(000)c_1 \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} + c_2 \begin{pmatrix} 4 \\ 5 \\ 6 \end{pmatrix} + c_3 \begin{pmatrix} 5 \\ 7 \\ 9 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \\ 0 \end{pmatrix}

Matrix form Mc=0M \mathbf{c} = \mathbf{0}: M=(145257369)M = \begin{pmatrix} 1 & 4 & 5 \\ 2 & 5 & 7 \\ 3 & 6 & 9 \end{pmatrix}

Step 1 — Compute detM\det M (expand along row 1): detM=1det(5769)4det(2739)+5det(2536)\det M = 1 \cdot \det\begin{pmatrix} 5 & 7 \\ 6 & 9 \end{pmatrix} - 4 \cdot \det\begin{pmatrix} 2 & 7 \\ 3 & 9 \end{pmatrix} + 5 \cdot \det\begin{pmatrix} 2 & 5 \\ 3 & 6 \end{pmatrix}

  • det(5769)=4542=3\det\begin{pmatrix} 5 & 7 \\ 6 & 9 \end{pmatrix} = 45 - 42 = 3
  • det(2739)=1821=3\det\begin{pmatrix} 2 & 7 \\ 3 & 9 \end{pmatrix} = 18 - 21 = -3
  • det(2536)=1215=3\det\begin{pmatrix} 2 & 5 \\ 3 & 6 \end{pmatrix} = 12 - 15 = -3

detM=134(3)+5(3)=3+1215=0\det M = 1 \cdot 3 - 4 \cdot (-3) + 5 \cdot (-3) = 3 + 12 - 15 = 0

Verdict: detM=0\det M = 0, so the vectors are linearly dependent.

Step 2 — Find the dependence relation. Observe that v3=(5,7,9)=(1,2,3)+(4,5,6)=v1+v2\mathbf{v}_3 = (5, 7, 9) = (1, 2, 3) + (4, 5, 6) = \mathbf{v}_1 + \mathbf{v}_2

Rearranged: v1+v2v3=0\mathbf{v}_1 + \mathbf{v}_2 - \mathbf{v}_3 = \mathbf{0}, a nontrivial linear combination equal to zero. ✓

Geometric meaning

  • In R2\mathbb{R}^2: two vectors are independent iff they are non-parallel.
  • In R3\mathbb{R}^3: three vectors are independent iff they are not coplanar (don't all lie in the same plane through the origin).
  • In Rn\mathbb{R}^n: up to nn vectors can be independent; any n+1n + 1 or more are always dependent.

If v3=v1+v2\mathbf{v}_3 = \mathbf{v}_1 + \mathbf{v}_2 (as here), the three vectors lie in the 2D plane Span{v1,v2}\operatorname{Span}\{\mathbf{v}_1, \mathbf{v}_2\}.

Why independence matters

Independent vectors:

  • Span uniquely — any vector in their span has exactly one linear combination expression.
  • Form a basis for their span.
  • Give a minimum-size spanning set — no redundancy.

Common mistakes

  • Confusing "independence" with "orthogonality." Orthogonal implies independent, but independent vectors need not be orthogonal.
  • Testing only one combination. Zero vector must be the only combination giving zero; one counterexample suffices for dependence.
  • Counting vectors vs. dimensions. n+1n + 1 vectors in Rn\mathbb{R}^n are automatically dependent, regardless of their specific values.

Try it in the visualization

Drag vector tips in 3D. When the three vectors become coplanar, the determinant shrinks to zero and the dependence indicator lights up. A sample dependence relation (e.g. v3=v1+v2\mathbf{v}_3 = \mathbf{v}_1 + \mathbf{v}_2) is printed.

Interactive Visualization

Parameters

1.00
2.00
3.00
-1.00
4.00
1.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Linear Independence and Dependence | MathSpin