Skip to content

How to check whether vectors are linearly independent

5 min read

Short answer

Vectors v1,…,vk\mathbf v_1,\dots,\mathbf v_k are linearly independent if the only way to get c1v1+⋯+ckvk=0c_1\mathbf v_1+\cdots+c_k\mathbf v_k=\mathbf 0 is c1=⋯=ck=0c_1=\cdots=c_k=0. To test it, put the vectors as columns of a matrix and row-reduce: they are independent exactly when every column has a pivot.

Independent vectors span a plane; dependent vectors lie on one linev₁v₂independentw₁w₂ = 2w₁dependent
Left: two vectors that point in different directions are independent and span the whole plane. Right: two vectors on the same line are dependent: one is a multiple of the other.

What dependence means

Vectors are dependent when at least one of them is a combination of the others, so it adds no new direction. In the plane, two vectors are dependent exactly when they lie on one line. In 3D, three vectors are dependent when they lie in one plane. Independent vectors each add a genuinely new direction.

The row-reduction test

  1. Write the vectors as the columns of a matrix AA.
  2. Row-reduce AA to echelon form.
  3. If every column contains a pivot, the vectors are independent. If some column has no pivot, they are dependent, and the free variable tells you the dependence relation.

Two shortcuts: more than nn vectors in Rn\mathbb R^n are always dependent, and nn vectors in Rn\mathbb R^n are independent exactly when det⁡A≠0\det A\neq0.

Worked example

Are v1=(1,2,3)\mathbf v_1=(1,2,3), v2=(2,1,0)\mathbf v_2=(2,1,0) and v3=(4,5,6)\mathbf v_3=(4,5,6) linearly independent?

Use them as columns and row-reduce: (124215306)→R2−2R1, R3−3R1(1240−3−30−6−6)→R3−2R2(1240−3−3000).\begin{pmatrix}1&2&4\\2&1&5\\3&0&6\end{pmatrix}\xrightarrow{R_2-2R_1,\ R_3-3R_1}\begin{pmatrix}1&2&4\\0&-3&-3\\0&-6&-6\end{pmatrix}\xrightarrow{R_3-2R_2}\begin{pmatrix}1&2&4\\0&-3&-3\\0&0&0\end{pmatrix}. Only columns 1 and 2 have pivots, so the vectors are dependent. Column 3 is free: set z=1z=1, then −3y−3=0-3y-3=0 gives y=−1y=-1 and x+2(−1)+4=0x+2(-1)+4=0 gives x=−2x=-2. So −2v1−v2+v3=0,i.e. v3=2v1+v2.-2\mathbf v_1-\mathbf v_2+\mathbf v_3=\mathbf 0,\quad\text{i.e. } \mathbf v_3=2\mathbf v_1+\mathbf v_2. Check: 2(1,2,3)+(2,1,0)=(4,5,6)2(1,2,3)+(2,1,0)=(4,5,6) ✓.

Try it yourself

Are (1,0,1)(1,0,1), (0,1,1)(0,1,1) and (1,1,0)(1,1,0) linearly independent?

Show the answer

Put them in a matrix and compute the determinant: det⁡(101011110)=1(0−1)−0+1(0−1)=−2≠0\det\begin{pmatrix}1&0&1\\0&1&1\\1&1&0\end{pmatrix}=1(0-1)-0+1(0-1)=-2\neq0. So they are independent.

Keep going with practice

Independence, span and basis are core ideas in Vidi's Linear Algebra & Probability course, with an interactive span visualizer and auto-graded practice.