Linear Independence Calculator

Enter vectors as the rows of a matrix to test them for linear independence.

Vectors as rows
Rows
2
Columns
3

Write each vector as a row, rows separated by semicolons, like 1, 2, 3; 2, 4, 6.

Try

Result

You enteredv1, v2\mathbf{v}_{1},\ \mathbf{v}_{2}

linearly dependent\displaystyle \text{linearly dependent}

Relation

2v1−v2=0\displaystyle 2\mathbf{v}_{1} - \mathbf{v}_{2} = \mathbf{0}

Rank

1\displaystyle 1
Show the work
  1. Linear independence

    The vectors are independent when the only combination giving the zero vector is the one with every coefficient 0. Write them as columns and row reduce.

    Using c1v1+⋯+ckvk=0  ⇒  c1=⋯=ck=0c_1\mathbf{v}_1 + \dots + c_k\mathbf{v}_k = \mathbf{0} \;\Rightarrow\; c_1 = \dots = c_k = 0

    (122436)  ⟶  (120000)\begin{pmatrix} 1 & 2 \\ 2 & 4 \\ 3 & 6 \end{pmatrix} \;\longrightarrow\; \begin{pmatrix} 1 & 2 \\ 0 & 0 \\ 0 & 0 \end{pmatrix}
  2. Rank against the number of vectors

    Every column needs a pivot for independence: 1 pivot for 2 vectors.

    rank⁡=1k=2\begin{gathered} \operatorname{rank} = 1 \\ k = 2 \end{gathered}
  3. A dependence relation

    A column without a pivot gives a non-zero solution of the homogeneous system: coefficients, not all zero, that combine the vectors to zero.

    2v1−v2=02\mathbf{v}_{1} - \mathbf{v}_{2} = \mathbf{0}
  4. Result

    The vectors are linearly dependent.

Worked examples