Linear algebra

Linear Independence and Dependence

Find out when a vector adds a new direction

Foundations6 min watch
Uploaded lesson
The idea

What you’ll explore

A set of vectors is linearly independent when the only linear combination that gives zero uses all-zero coefficients. The same test applies to arrows, equations, and functions.

The zero-vector test for independence

a1v1+⋯+akvk=0  ⟹  a1=⋯=ak=0a_1\mathbf v_1+\cdots+a_k\mathbf v_k=\mathbf 0\implies a_1=\cdots=a_k=0

Step by step

  1. 01

    Write a linear combination of the vectors and set it equal to zero.

  2. 02

    Solve for the coefficients. A nonzero solution shows dependence.

  3. 03

    If every coefficient must be zero, the vectors are independent.

A small code example

Python
from sympy import Matrix
A = Matrix([[1, 2], [2, 4]])
print(A.nullspace())
Keep exploring

Related lessons