Linear Independence, Rank, and Bases
What you will be able to do
Given a set of vectors or the columns of a matrix, the learner can decide whether they are linearly independent, state the rank, exhibit an explicit dependence relation when one exists, and say whether a given square matrix can serve as a basis.
Orientation
Given a handful of vectors, is any one of them redundant? The answer decides whether they can serve as a basis, and a basis is what every later method is built on.
This sits beneath the linear programming units rather than after them. A basic feasible solution is defined by a set of linearly independent columns, and every simplex iteration solves a system against the basis matrix, which works only because that matrix is invertible. Both facts are used constantly; this unit is where they are established.
The unit is also where a common shortcut gets corrected. Checking that no two vectors are parallel feels like checking independence, and it is not the same test.
This unit assumes you can multiply a matrix by a vector and solve a two-by-two system.
Intuition
Independence as absence of redundancy
Given a collection of vectors, ask: can any one of them be built out of the others? If yes, that vector contributes no direction the rest do not already reach, and dropping it loses nothing. The set is dependent.
If no vector can be built from the others, every one of them adds something genuinely new, and the set is independent.
Rank counts what survives this pruning: how many genuinely different directions the columns supply between them.
Invertibility is the case where a square matrix's columns supply exactly as many directions as the space has dimensions. Then every target can be reached, and reached in exactly one way, which is why
The difficulty is that "builds out of the others" means combining several vectors, not only scaling one. Two vectors can fail to be multiples of each other while a third is still reachable from the pair. That is why a pairwise check is not an independence check, and it is the point of the contrast case later in this unit.
Definition
Independence, rank, and invertibility
Linear combination. For vectors
Linear independence. The vectors are linearly independent when
forces
Note what the definition quantifies over: all scalars at once, not pairs.
Rank. The rank of a matrix
Invertibility. For a square
- the columns of
are linearly independent; ; ;exists; has exactly one solution for every.
A set of columns can serve as a basis exactly when it satisfies these, which is why the basis matrix in a linear program must have independent columns.
Example
An independent pair and a dependent triple
Independent. Take
Suppose
Equivalently, the matrix
Dependent. Now add
Three vectors in
The explicit relation is
since
What this shows. No two of
Procedure
Deciding independence
Count first. If there are more vectors than components, they are dependent and no computation is needed:
For two vectors, check proportionality. A pair is dependent exactly when one is a scalar multiple of the other. This shortcut is valid for two vectors only, and using it on three or more is the error this unit warns about.
For a square set, use the determinant. Form the matrix whose columns are the vectors. A nonzero determinant means independent; zero means dependent. This answers the question but does not show the relationship.
Otherwise reduce. Put the vectors in as columns and row reduce. The number of pivots is the rank. If the rank equals the number of vectors, they are independent; if it is smaller, they are dependent.
If dependent, exhibit the relation. A column without a pivot is a combination of the pivot columns, and the reduced form's entries are the coefficients. Solve for them explicitly rather than stopping at "dependent".
Verify the relation. Substitute the coefficients back and check every component. A dependence claim with arithmetic behind it is checkable; one without is an assertion.
For a square matrix, name the consequence. Independent columns mean the matrix is invertible,
Worked example
A basis matrix and the system it solves
Problem. Decide whether
has independent columns. If it does, find
Goal. Establish independence, then use it.
Relevant principle. For a square matrix, independent columns, nonzero determinant, and invertibility are the same condition.
Step 1: count. Two vectors in
Step 2: check proportionality. Is
Reason: with exactly two vectors, proportionality is a valid test, and it already answers the question.
Step 3: confirm with the determinant.
so the columns are independent and
Step 4: form the inverse. For
Check:
Step 5: solve the system.
Check.
Interpretation. Because the columns are independent, this is the only solution. Had they been dependent, the system would have had either no solution or infinitely many, and no inverse would exist to pick one out.
This matrix is not arbitrary: it is the basis matrix reached at the end of the simplex worked example, where the same system gives the optimal
Figure
Three pairwise non-parallel vectors, one of them redundant
The contrast the unit turns on, drawn.
so
This is why pairwise checking fails. Independence allows all three coefficients to vary at once, and here
Three vectors in
Contrast
Pairwise non-proportionality is not independence
Checking that no two vectors are multiples of each other is a valid test for a set of two. Applied to three or more it gives the wrong answer, and it gives it confidently.
The tempting reasoning. Take
No two are proportional:
Why it is not. The definition allows all three coefficients to vary at once, and
is a nontrivial combination giving zero. Equivalently
The counting argument settles it instantly. Three vectors in
Where it does real damage. In a linear program, a basis is a set of
The reliable test. Count first; if the count does not settle it, reduce or take a determinant. Reserve the proportionality check for pairs.