Linear Independence, Rank, and Bases

A set of vectors is linearly independent when none of them is a combination of the others. The rank of a matrix is the number of independent columns it has, and a square matrix is invertible exactly when its columns are independent. These facts decide which column sets can serve as a basis, and therefore which points a linear program can call a basic solution.

Definition

Vectors v 1 , … , v k are linearly independent when the only scalars λ 1 , … , λ k satisfying λ 1 v 1 + ⋯ + λ k v k = 0 are all zero; otherwise they are dependent, and some vector is a combination of the others. The rank of a matrix is the number of vectors in its largest independent set of columns, which equals the number of pivots in its reduced row echelon form. A square matrix is invertible exactly when its columns are independent, equivalently when its rank is full, equivalently when its determinant is nonzero.

Formal statement

For A ∈ R m × n , rank ⁡ ( A ) is the dimension of the column space. For square A ∈ R m × m the following are equivalent: the columns are linearly independent; rank ⁡ ( A ) = m ; det A ≠ 0 ; A − 1 exists; A x = b has exactly one solution for every b .

Assumptions and scope

  • More than m vectors in R m are always dependent, so a counting argument settles independence before any computation when the set is large enough.

  • Independence is a property of a set, not of individual vectors. No single vector is independent or dependent on its own, apart from the zero vector, which makes any set containing it dependent.

  • A determinant of zero shows singularity but not how the columns are related. Reduced row echelon form both detects dependence and exhibits the combination.

  • Rank is the number of independent columns, and equals the number of independent rows. Column rank and row rank always agree, which is why row operations can be used to find either.

Worked material

Example

An independent pair and a dependent triple

Independent. Take

a 1 = ( 1 2 ) , a 2 = ( 3 1 ) .

Suppose λ 1 a 1 + λ 2 a 2 = 0 . Reading the two rows gives λ 1 + 3 λ 2 = 0 and 2 λ 1 + λ 2 = 0 . From the second, λ 2 = − 2 λ 1 ; substituting into the first gives λ 1 − 6 λ 1 = − 5 λ 1 = 0 , so λ 1 = 0 and then λ 2 = 0 . Only the trivial combination vanishes, so the pair is independent.

Equivalently, the matrix ( 1 3 2 1 ) has determinant 1 − 6 = − 5 ≠ 0 .

Dependent. Now add

a 3 = ( 2 − 1 ) .

Three vectors in R 2 are always dependent, because rank cannot exceed 2. The counting argument settles the question before any computation.

The explicit relation is

a 3 = − a 1 + a 2 ,

since − 1 + 3 = 2 in the first component and − 2 + 1 = − 1 in the second. Rearranged, a 1 − a 2 + a 3 = 0 is a nontrivial combination giving the zero vector.

What this shows. No two of a 1 , a 2 , a 3 are multiples of one another, yet the set is dependent. Independence is not a pairwise property.

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

a 1 = ( 1 2 ) , a 2 = ( 3 1 ) , a 3 = ( 2 − 1 ) .

No two are proportional: a 2 is not a multiple of a 1 , nor a 3 of a 1 , nor a 3 of a 2 . Each points a different way. So the set looks independent.

Why it is not. The definition allows all three coefficients to vary at once, and

a 1 − a 2 + a 3 = ( 1 − 3 + 2 2 − 1 − 1 ) = ( 0 0 )

is a nontrivial combination giving zero. Equivalently a 3 = − a 1 + a 2 : the third vector is reachable from the first two, so it adds no new direction.

The counting argument settles it instantly. Three vectors in R 2 are always dependent, whatever they look like, because rank cannot exceed the number of components. The pairwise check cannot see this, since it never considers three vectors together.

Where it does real damage. In a linear program, a basis is a set of m columns that must be independent. Selecting columns by eye because they look different produces a singular basis matrix, and then A B − 1 does not exist: the basic solution is undefined and the iteration cannot proceed. The failure appears as a division by zero deep in the arithmetic rather than as a clear message about the columns.

The reliable test. Count first; if the count does not settle it, reduce or take a determinant. Reserve the proportionality check for pairs.

Common errors

Common misconception

A set of vectors is linearly independent as long as no two of them are multiples of each other.

Related units

Connected

Learn this topic

Used in

Sources

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.