← MATH 231 MathScape 0 MATH231

Linear Independence

11 min read

Before Independence is a question about the solutions of Ax = 0, so it uses the matrix equation and solution sets. Builds on: The Matrix Equation Ax = b · Solution Sets of Linear Systems and Free Variables

Next Independence appears in almost every later lesson: invertibility, subspaces, bases, dimension, eigenvectors, and orthogonal sets. Leads to: The Invertible Matrix Theorem · Vector Spaces and Subspaces · Null Space, Column Space, and Basis · Dimension, Rank, and Coordinate Systems · Diagonalization · Inner Products, Length, and Orthogonality · Orthogonal Projections and the Gram-Schmidt Process

Jump to a section
Reference: Lay, Linear Algebra and Its Applications, Section 1.7: Linear Independence

Video: Dr Lynch’s MATH 231 lectures (YouTube playlists)

Before You Start: Prerequisite Check

Can you do these? (Click to reveal self-test)

Test yourself on these prerequisite skills:

  1. Null space: What is the null space of a matrix $A$?

    Check

    The null space $\text{Nul}(A)$ is the solution set of the homogeneous equation $A\mathbf{x} = \mathbf{0}$. It always contains $\mathbf{0}$ and is a subspace of $\mathbb{R}^n$.

  2. Free variables: When does $A\mathbf{x} = \mathbf{0}$ have a nontrivial solution?

    Check

    When the row reduction of $A$ produces at least one free variable (a column without a pivot). Any nonzero value for a free parameter gives a nontrivial solution.

  3. Column combination: If $A = [\mathbf{v}_1 \; \mathbf{v}_2]$, what does $A\mathbf{x} = \mathbf{0}$ ask?

    Check

    It asks: for which scalars $x_1, x_2$ does $x_1\mathbf{v}_1 + x_2\mathbf{v}_2 = \mathbf{0}$? This is exactly the linear dependence equation for the set $\{\mathbf{v}_1, \mathbf{v}_2\}$.

If you struggled: Review Solution Sets and Free Variables and The Matrix Equation Ax = b.


Try This First

Try to find scalars $c_1$ and $c_2$, not both zero, satisfying:

\[ c_1\begin{pmatrix}1\\0\end{pmatrix} + c_2\begin{pmatrix}0\\1\end{pmatrix} = \begin{pmatrix}0\\0\end{pmatrix} \]

If you cannot find such scalars, explain why.

Then try the same with: \[ c_1\begin{pmatrix}1\\2\end{pmatrix} + c_2\begin{pmatrix}2\\4\end{pmatrix} = \begin{pmatrix}0\\0\end{pmatrix} \]

Show Solution

First pair: The equation gives $c_1 = 0$ and $c_2 = 0$. There is no nontrivial solution. The vectors $\begin{pmatrix}1\\0\end{pmatrix}$ and $\begin{pmatrix}0\\1\end{pmatrix}$ point in genuinely different directions. This set is linearly independent.

Second pair: Take $c_1 = 2$ and $c_2 = -1$: \[ 2\begin{pmatrix}1\\2\end{pmatrix} + (-1)\begin{pmatrix}2\\4\end{pmatrix} = \begin{pmatrix}2\\4\end{pmatrix} - \begin{pmatrix}2\\4\end{pmatrix} = \begin{pmatrix}0\\0\end{pmatrix} \]

A nontrivial solution exists. The second vector is $2$ times the first. This set is linearly dependent.

The pattern: Linear dependence means some nontrivial combination equals zero. Linear independence means the only way to combine them into zero is to use all-zero scalars.


The Geometric Picture

Two vectors are linearly dependent when one lies in the span of the other, which in $\mathbb{R}^2$ means they point in the same or opposite direction. Three vectors in $\mathbb{R}^3$ are dependent when one lies in the plane spanned by the other two.

Dependence is about redundancy: a dependent vector adds no new direction to the span. An independent set has no redundancy: each vector contributes a genuinely new direction.

This is why linear independence matters throughout linear algebra: a basis, the most efficient spanning set for a space, is always linearly independent.


Prerequisite Map


Quick Reference

Property Value
Course MATH 231
Difficulty Intermediate
Time ~30 minutes
Source Lay, Linear Algebra and Its Applications, Section 1.7

Independence Test at a Glance

Step Action
1 Form $A = [\mathbf{v}_1 \; \mathbf{v}_2 \; \cdots \; \mathbf{v}_p]$
2 Row-reduce $[A \mid \mathbf{0}]$
3 Count free columns
Independent: No free columns (pivot in every variable column)
Dependent: At least one free column

Key Concepts

Definition

A set of vectors $\{\mathbf{v}_1, \mathbf{v}_2, \ldots, \mathbf{v}_p\}$ in $\mathbb{R}^n$ is linearly independent if the vector equation

\[ x_1\mathbf{v}_1 + x_2\mathbf{v}_2 + \cdots + x_p\mathbf{v}_p = \mathbf{0} \]

has only the trivial solution $x_1 = x_2 = \cdots = x_p = 0$.

The set is linearly dependent if there exist scalars $c_1, \ldots, c_p$, not all zero, satisfying the equation. Such a collection $(c_1, \ldots, c_p)$ is called a linear dependence relation among the vectors.

Source: Lay, Linear Algebra and Its Applications, Section 1.7: Linear Independence.

The Matrix Test

To test $\{\mathbf{v}_1, \ldots, \mathbf{v}_p\}$ for independence, form the matrix $A = [\mathbf{v}_1 \; \cdots \; \mathbf{v}_p]$ and row-reduce $[A \mid \mathbf{0}]$:

Note: the augmented column $\mathbf{0}$ never becomes a pivot column in the homogeneous system, so you only need to reduce $A$ itself and count pivot columns.

Worked Example

Is $\left\{\begin{pmatrix}1\\2\\3\end{pmatrix}, \begin{pmatrix}2\\1\\0\end{pmatrix}, \begin{pmatrix}4\\5\\6\end{pmatrix}\right\}$ linearly independent?

Form $A$ and row-reduce: \[ \left[\begin{array}{rrr} 1 & 2 & 4 \\ 2 & 1 & 5 \\ 3 & 0 & 6 \end{array}\right] \]

$R_2 \to R_2 - 2R_1$, $R_3 \to R_3 - 3R_1$: \[ \left[\begin{array}{rrr} 1 & 2 & 4 \\ 0 & -3 & -3 \\ 0 & -6 & -6 \end{array}\right] \]

$R_3 \to R_3 - 2R_2$: \[ \left[\begin{array}{rrr} 1 & 2 & 4 \\ 0 & -3 & -3 \\ 0 & 0 & 0 \end{array}\right] \]

Column 3 is free: the set is linearly dependent.

Finding the dependence relation: Let $x_3 = t$. Then $x_2 = -t$ and $x_1 = -2t$. With $t = 1$:

\[ -2\begin{pmatrix}1\\2\\3\end{pmatrix} - 1\begin{pmatrix}2\\1\\0\end{pmatrix} + 1\begin{pmatrix}4\\5\\6\end{pmatrix} = \begin{pmatrix}-2-2+4\\-4-1+5\\-6+0+6\end{pmatrix} = \begin{pmatrix}0\\0\\0\end{pmatrix} \]

The third vector is a linear combination of the first two: $\begin{pmatrix}4\\5\\6\end{pmatrix} = 2\begin{pmatrix}1\\2\\3\end{pmatrix} + \begin{pmatrix}2\\1\\0\end{pmatrix}$.

Special Cases

Situation Conclusion Why
Set contains $\mathbf{0}$ Dependent Any scalar $c \neq 0$ gives $c \cdot \mathbf{0} = \mathbf{0}$
One nonzero vector $\{\mathbf{v}\}$ Independent $c\mathbf{v} = \mathbf{0}$ implies $c = 0$
Two vectors, neither a multiple of the other Independent No $c$ makes $\mathbf{v}_1 = c\mathbf{v}_2$
Two vectors, one a multiple of the other Dependent That multiple is the relation
$p > n$ vectors in $\mathbb{R}^n$ Always dependent $A$ is $n \times p$ with $p > n$, so fewer than $p$ pivots are possible

The last case is particularly useful: you cannot have more than $n$ linearly independent vectors in $\mathbb{R}^n$.


Common Pitfalls

Mistake Why It Is Wrong Correct Approach
Checking only pairs of vectors for dependence Pairwise independence does not imply set independence; a vector could be a combination of two others without being a multiple of either Check the full set by row-reducing the matrix of all vectors
Concluding vectors are independent because they are not parallel In $\mathbb{R}^n$ with $n \geq 3$, a vector could lie in the span of two others even if it is not parallel to either Use the matrix test; geometric inspection alone is insufficient
Thinking “more vectors means more likely independent” More vectors in a fixed space $\mathbb{R}^n$ actually increases the chance of dependence; once you have more than $n$ vectors, dependence is guaranteed Count pivot columns, not just the number of vectors
Forgetting that a set containing $\mathbf{0}$ is always dependent $c\mathbf{0} = \mathbf{0}$ for any nonzero $c$, which is a nontrivial dependence relation Check for zero vectors before row-reducing
Pairwise Independence Does Not Imply Full Independence

Consider in $\mathbb{R}^2$: \[ \mathbf{v}_1 = \begin{pmatrix}1\\0\end{pmatrix}, \quad \mathbf{v}_2 = \begin{pmatrix}0\\1\end{pmatrix}, \quad \mathbf{v}_3 = \begin{pmatrix}1\\1\end{pmatrix} \]

Each pair is independent: no vector in any pair is a multiple of the other.

Yet the full set is dependent: $\mathbf{v}_3 = \mathbf{v}_1 + \mathbf{v}_2$, so $\mathbf{v}_1 + \mathbf{v}_2 - \mathbf{v}_3 = \mathbf{0}$.

In $\mathbb{R}^2$, any three vectors must be dependent (more vectors than dimension of the space).


Practice Problems

Level 1 Two-Vector Check by Inspection

For each pair below, determine by inspection (without row reduction) whether the pair is linearly independent or dependent. Justify each answer.

(a) $\left\{\begin{pmatrix}3\\-6\end{pmatrix}, \begin{pmatrix}-1\\2\end{pmatrix}\right\}$

(b) $\left\{\begin{pmatrix}1\\2\\3\end{pmatrix}, \begin{pmatrix}0\\1\\-1\end{pmatrix}\right\}$

Thought Process

For two vectors: check whether one is a scalar multiple of the other. If yes, they are dependent. If not, they are independent.

For (a): is $\begin{pmatrix}-1\\2\end{pmatrix} = c\begin{pmatrix}3\\-6\end{pmatrix}$ for some $c$?

For (b): is $\begin{pmatrix}0\\1\\-1\end{pmatrix} = c\begin{pmatrix}1\\2\\3\end{pmatrix}$ for some $c$?

Show Answer

(a) $\begin{pmatrix}-1\\2\end{pmatrix} = -\frac{1}{3}\begin{pmatrix}3\\-6\end{pmatrix}$? Check: $-\frac{1}{3}(3) = -1$ (yes) and $-\frac{1}{3}(-6) = 2$ (yes). The second vector is $-\frac{1}{3}$ times the first. Dependent.

(b) From the first entry: if $c$ exists, then $c(1) = 0 \implies c = 0$. But $c(2) = 0 \neq 1$. No scalar works. Independent.

Level 2 Three-Vector Test by Row Reduction

Determine whether $\left\{\begin{pmatrix}1\\0\\2\end{pmatrix}, \begin{pmatrix}-1\\1\\0\end{pmatrix}, \begin{pmatrix}3\\1\\4\end{pmatrix}\right\}$ is linearly independent or dependent by row-reducing the matrix formed by these vectors as columns.

Thought Process

Form $A = [\mathbf{v}_1 | \mathbf{v}_2 | \mathbf{v}_3]$ and row-reduce $A$ (no augmented column needed for independence testing). Count pivot columns.

Show Answer

\[ A = \left[\begin{array}{rrr} 1 & -1 & 3 \\ 0 & 1 & 1 \\ 2 & 0 & 4 \end{array}\right] \]

$R_3 \to R_3 - 2R_1$: \[ \left[\begin{array}{rrr} 1 & -1 & 3 \\ 0 & 1 & 1 \\ 0 & 2 & -2 \end{array}\right] \]

$R_3 \to R_3 - 2R_2$: \[ \left[\begin{array}{rrr} 1 & -1 & 3 \\ 0 & 1 & 1 \\ 0 & 0 & -4 \end{array}\right] \]

Three pivots, no free columns. The set is linearly independent.

Level 3 Dependent Set and the Dependence Relation

(a) Determine whether $\left\{\begin{pmatrix}1\\-2\\0\end{pmatrix}, \begin{pmatrix}2\\1\\3\end{pmatrix}, \begin{pmatrix}4\\-3\\3\end{pmatrix}\right\}$ is linearly independent.

(b) If the set is dependent, find a specific linear dependence relation: nonzero scalars $c_1, c_2, c_3$ with $c_1\mathbf{v}_1 + c_2\mathbf{v}_2 + c_3\mathbf{v}_3 = \mathbf{0}$.

Thought Process

Row-reduce $A = [\mathbf{v}_1|\mathbf{v}_2|\mathbf{v}_3]$. If a free variable exists, use it to read off the dependence relation from the null space.

Show Answer

(a)

\[ A = \left[\begin{array}{rrr} 1 & 2 & 4 \\ -2 & 1 & -3 \\ 0 & 3 & 3 \end{array}\right] \]

$R_2 \to R_2 + 2R_1$: \[ \left[\begin{array}{rrr} 1 & 2 & 4 \\ 0 & 5 & 5 \\ 0 & 3 & 3 \end{array}\right] \]

$R_2 \to \frac{1}{5}R_2$, then $R_3 \to R_3 - 3R_2$: \[ \left[\begin{array}{rrr} 1 & 2 & 4 \\ 0 & 1 & 1 \\ 0 & 0 & 0 \end{array}\right] \]

Column 3 is free. The set is linearly dependent.

(b) Let $x_3 = t$. From row 2: $x_2 = -t$. From row 1: $x_1 = -2(-t) - 4t = 2t - 4t = -2t$.

With $t = 1$: $c_1 = -2$, $c_2 = -1$, $c_3 = 1$.

Dependence relation: $-2\mathbf{v}_1 - \mathbf{v}_2 + \mathbf{v}_3 = \mathbf{0}$.

Verify: $-2\begin{pmatrix}1\\-2\\0\end{pmatrix} - \begin{pmatrix}2\\1\\3\end{pmatrix} + \begin{pmatrix}4\\-3\\3\end{pmatrix} = \begin{pmatrix}-2-2+4\\4-1-3\\0-3+3\end{pmatrix} = \begin{pmatrix}0\\0\\0\end{pmatrix}$.

Level 4 The "More Vectors Than Entries" Theorem

Four vectors in $\mathbb{R}^3$ must be linearly dependent. Explain why this is always true, without computing a specific example.

Then construct a set of four vectors in $\mathbb{R}^3$ and verify dependence by row reduction.

Thought Process

If $A$ is $3 \times 4$, what is the maximum number of pivot columns it can have? What does that mean for the number of free columns?

For the construction, choose any four vectors and row-reduce their matrix.

Show Answer

Why it is always true: If $A = [\mathbf{v}_1 \; \mathbf{v}_2 \; \mathbf{v}_3 \; \mathbf{v}_4]$ is a $3 \times 4$ matrix, then $A$ has at most 3 pivot columns (one per row). With 4 columns and at most 3 pivots, at least 1 column must be free. A free variable means a nontrivial solution to $A\mathbf{x} = \mathbf{0}$ exists, so the four vectors are linearly dependent.

The general principle (Lay, Section 1.7): if $p > n$, then any set of $p$ vectors in $\mathbb{R}^n$ is linearly dependent.

Specific example: \[ \mathbf{v}_1 = \begin{pmatrix}1\\0\\0\end{pmatrix}, \quad \mathbf{v}_2 = \begin{pmatrix}0\\1\\0\end{pmatrix}, \quad \mathbf{v}_3 = \begin{pmatrix}0\\0\\1\end{pmatrix}, \quad \mathbf{v}_4 = \begin{pmatrix}1\\2\\3\end{pmatrix} \]

Row-reduce $A = [\mathbf{v}_1|\mathbf{v}_2|\mathbf{v}_3|\mathbf{v}_4]$:

$A$ already has the $3\times 3$ identity as its first three columns, so it is in RREF except for column 4:

\[ \left[\begin{array}{rrrr} 1 & 0 & 0 & 1 \\ 0 & 1 & 0 & 2 \\ 0 & 0 & 1 & 3 \end{array}\right] \]

Column 4 is free. With $x_4 = 1$: $x_3 = -3$, $x_2 = -2$, $x_1 = -1$.

Dependence relation: $-\mathbf{v}_1 - 2\mathbf{v}_2 - 3\mathbf{v}_3 + \mathbf{v}_4 = \mathbf{0}$.

Level 5 Independence and the Null Space

Let $A = \begin{pmatrix}1&0&2\\-1&1&1\\0&2&3\end{pmatrix}$.

(a) Are the columns of $A$ linearly independent? Row-reduce to decide.

(b) What does the answer to (a) tell you about $\text{Nul}(A)$?

(c) If $A\mathbf{x} = \mathbf{b}$ is consistent, how many solutions does it have? Explain.

(d) A classmate claims: “If I change one entry of $A$, the columns might become dependent.” For which entry positions would a small change most plausibly destroy independence? Where would it change nothing?

Thought Process

For (a): row-reduce $A$ and count pivots.

For (b): column independence is equivalent to $\text{Nul}(A) = \{\mathbf{0}\}$.

For (c): if the columns are independent and the system is consistent, the solution is unique. No free variables means a unique solution.

For (d): think about which entries the pivots depend on. Entries in non-pivot positions have less effect.

Show Answer

(a) Row-reduce $A$:

$R_2 \to R_2 + R_1$: \[ \left[\begin{array}{rrr}1&0&2\\0&1&3\\0&2&3\end{array}\right] \]

$R_3 \to R_3 - 2R_2$: \[ \left[\begin{array}{rrr}1&0&2\\0&1&3\\0&0&-3\end{array}\right] \]

Three pivot columns. The columns of $A$ are linearly independent.

(b) Column independence means the only solution to $A\mathbf{x} = \mathbf{0}$ is $\mathbf{x} = \mathbf{0}$. Therefore $\text{Nul}(A) = \{\mathbf{0}\}$: the null space contains only the zero vector.

(c) When $A\mathbf{x} = \mathbf{b}$ is consistent and no free variables exist, the RREF gives a unique value for each variable. The solution is unique.

(d) The pivots sit in columns 1, 2, and 3 (the full matrix is 3x3, square). Changing any diagonal or sub-diagonal entry that currently carries a pivot could destroy the pivot structure and introduce a free column. Entries that are already zero and lie in positions far from the diagonal have less direct impact, but any entry could matter in principle because row operations interact. A precise answer requires recomputing the pivot structure after the change.


Common Misconceptions

Common misconception

linearly independent vectors must be perpendicular. Perpendicularity (zero dot product) is a much stronger condition than independence. Two vectors at a $45^\circ$ angle are linearly independent; two vectors at $90^\circ$ are both independent AND orthogonal. Independence requires only that neither vector is a scalar multiple of the other, which is possible at virtually any angle except $0^\circ$ or $180^\circ$.

Common misconception

checking all pairs of vectors in a set is sufficient to confirm independence. A set of vectors can be pairwise independent (no single vector is a multiple of any other) yet still be linearly dependent as a set. This happens when one vector is a linear combination of two or more others. For three or more vectors, always test the full set with the matrix method.

Common misconception

adding more vectors to an independent set keeps it independent. Increasing the number of vectors increases the chance of dependence. Once the set has more vectors than the dimension of the space, dependence is guaranteed. Each additional vector either adds a new direction (and keeps the set independent) or falls in the span of the existing vectors (and creates dependence). The matrix test must be rerun each time the set changes.


Mastery Checklist

Novice (Level 1-2):

Competent (Level 3-4):

Proficient (Level 5):


Mental Model

The Redudancy Detector

A linearly dependent vector is redundant: it is already reachable from the others. An independent set has no redundancy; each vector is needed to cover a new direction.

Think of it as a recipe for covering space. If you have vectors pointing north, east, and up, you can reach any point in $\mathbb{R}^3$ by combining them. If you add a fourth vector pointing northeast, you can still reach everything, but the northeast vector is redundant, because northeast is already covered by north and east together. The set of four is dependent because the northeast direction is in the span of the first two.

The matrix test is the precise way to detect this redundancy: row operations reveal exactly which vectors add new pivot positions (new directions) and which do not.


Connections

Looking ahead in MATH 231:

Real-world connections:

Source: Lay, Linear Algebra and Its Applications, Section 1.7: Linear Independence.



Last updated: 2026-06-16

Watch and Read