Linear Independence

Test a set of column vectors for linear independence by comparing pivot rank with the number of columns.

Give every column a pivot

Two columns and two pivots mean only the trivial coefficient combination gives zero. The columns are independent.

independent([[1, 2], [3, 5]])

Find a dependency

The second column is twice the first, leaving only one pivot. Rank 1 is below the column count 2, so the columns are dependent.

independent([[1, 2], [2, 4]])

Compare rank with all columns

Three columns cannot be independent if only two pivots exist. The third column is a combination of the first two.

independent([[1, 0, 1], [0, 1, 1]])

Practice

Practice: problems like this one, made and checked in your browser.

Recap

  • Independent columns have rank equal to their column count.
  • A smaller rank reveals a nontrivial dependency.
  • Use columns as the vectors being tested.