Linear Independence: Definition, Examples and How to Test It
Linear independence means no vector in a set can be built from the others. Vectors v₁, v₂, …, vₙ are linearly independent when c₁v₁ + c₂v₂ + … + cₙvₙ = 0 is true only if every coefficient is zero. If a nonzero combination also gives the zero vector, the vectors are linearly dependent.
Linear independence is the idea behind rank, basis, dimension, and invertible matrices. This guide covers the linear independence definition, three tests, and two solved examples. To check your own vectors instantly, use the Matrix Independence Calculator.
What Is the Definition of Linear Independence?
A set of vectors is a linearly independent set when the equation
c₁v₁ + c₂v₂ + … + cₙvₙ = 0
has only the trivial solution c₁ = c₂ = … = cₙ = 0. If any other solution exists, the set is linearly dependent.
Dependent simply means one vector is redundant. It points in a direction the others already cover, so it adds nothing new.
Linear Independence Examples (Quick)
- (1, 0) and (0, 1) are independent. Neither is a multiple of the other.
- (1, 2) and (2, 4) are dependent, because 2(1, 2) − (2, 4) = (0, 0).
- (1, 0), (0, 1) and (1, 1) are dependent, because (1, 1) = (1, 0) + (0, 1).
Linearly Independent vs Dependent: What Is the Difference?
| Linearly independent | Linearly dependent | |
|---|---|---|
| Combination equal to 0 | Only all-zero coefficients | A nonzero combination exists |
| Redundant vector | None | At least one |
| Matrix rank (vectors as columns) | Equals number of vectors | Less than number of vectors |
| Square matrix determinant | Nonzero | Zero |
What Does Linear Independence Look Like Geometrically?
- Two vectors in R² are independent when they do not lie on the same line through the origin.
- Three vectors in R³ are independent when they do not all lie in one plane.
- Any 3 vectors in R² are always dependent, because the plane has only 2 independent directions.
The general rule: more than n vectors in Rⁿ are always linearly dependent.
How to Check Linear Independence (3 Tests)
Place the vectors as columns of a matrix A. Each test below gives the same verdict.
| Test for linear independence | Vectors are independent when | Works for |
|---|---|---|
| Pivots (RREF) | Every column has a pivot | Any size |
| Rank | rank(A) = number of vectors | Any size |
| Determinant | det(A) ≠ 0 | Square matrices only |
Test 1: Row Reduce and Count Pivots
Row reduce the matrix. If every column holds a pivot, the vectors are independent. A column without a pivot is a free variable, and it gives a nonzero solution to Ax = 0. That solution is the dependency. The RREF Calculator shows each pivot with the full steps.
Test 2: Compare the Rank With the Number of Vectors
Rank counts the independent columns. When the rank equals the number of vectors, they are independent. The Rank of Matrix Calculator returns the rank with the elimination steps. If you want the pivots, the rank, and the dependency relation in one result, a linear independence calculator does all three at once.
Test 3: Check the Determinant (Square Matrices)
With n vectors in Rⁿ, build the n × n matrix and compute its determinant. A nonzero determinant means the vectors are independent, and zero means dependent. Read What is a Determinant? for the geometric meaning, or use the Determinant Calculator.
Solved Example 1: Linearly Independent Vectors in R³
Test v₁ = (1, 0, 1), v₂ = (0, 1, 1), v₃ = (1, 1, 0).
Build the matrix with these vectors as columns:
A = [[1, 0, 1], [0, 1, 1], [1, 1, 0]]
Expand the determinant along the first row:
det(A) = 1(0·0 − 1·1) − 0 + 1(0·1 − 1·1) = −1 − 1 = −2
The determinant is nonzero, so these are linearly independent vectors. The 3x3 Determinant Calculator confirms the value in one step.
Solved Example 2: Linearly Dependent Vectors in R³
Test v₁ = (1, 2, 3), v₂ = (0, 1, 1), v₃ = (2, 5, 7).
Notice that 2v₁ = (2, 4, 6), and adding v₂ gives (2, 5, 7). So v₃ = 2v₁ + v₂.
Rearranging gives the dependency relation:
2v₁ + v₂ − v₃ = 0
This is a nonzero combination (coefficients 2, 1, −1) that equals the zero vector, so these are linearly dependent vectors. The matrix has rank 2, not 3, and its determinant is 0.
Want to skip the hand work? Enter the vectors in the Matrix Independence Calculator and it shows the pivots, rank, and this exact relation.
How Do You Spot Linearly Dependent Vectors Quickly?
Look for these signs before doing any arithmetic:
- A zero vector. Any set containing the zero vector is dependent.
- A repeated vector. Two identical vectors are dependent.
- A scalar multiple. If one vector is a multiple of another, the set is dependent.
- Too many vectors. More than n vectors in Rⁿ are always dependent.
Linear Independence and Invertible Matrices
For a square matrix, independent columns and invertibility are the same fact. These statements are all true together or all false together:
- The columns of A are linearly independent.
- det(A) ≠ 0.
- rank(A) = n.
- Ax = 0 has only the solution x = 0.
- A is invertible.
The Invertible Matrix Checker tests statement 5 with steps. Independence also decides diagonalization: a matrix is diagonalizable only when it has n linearly independent eigenvectors. The Eigenvalue Calculator and the Diagonalizable Matrix Checker build on this idea.
Try It Yourself
Enter any matrix and get the verdict, the rank, the pivot columns, the RREF steps, and the dependency relation.
Check your vectors with the Matrix Independence CalculatorFrequently Asked Questions About Linear Independence
What is the difference between linearly independent and linearly dependent vectors?
Independent vectors cannot be written as combinations of each other. Dependent vectors can, so at least one of them is redundant.
How do you check if vectors are linearly independent?
Put the vectors in a matrix as columns and row reduce it. If every column has a pivot, the vectors are independent. For a square matrix, a nonzero determinant gives the same answer.
Are two vectors linearly independent if they are not multiples of each other?
Yes. For exactly two vectors, independence just means neither is a scalar multiple of the other.
Can the zero vector be part of a linearly independent set?
No. Give the zero vector coefficient 1 and every other vector coefficient 0. That nonzero combination equals zero, so the set is dependent.
How many linearly independent vectors can there be in R³?
At most 3. Any set of 4 or more vectors in R³ is linearly dependent.