Vector Spaces and Linear Independence
What You’ll Learn
Section titled “What You’ll Learn”Vector spaces and linear independence are foundational ideas in linear algebra. In this lesson you’ll learn what makes a set of vectors “independent” (pointing in genuinely different directions) versus “dependent” (redundant).
The Concept
Section titled “The Concept”Vector Space
Section titled “Vector Space”A vector space is a set of objects (called vectors) that you can add together and multiply by scalars, while obeying certain rules (closure, associativity, distributivity, etc.).
Examples of vector spaces:
- All 2D vectors ()
- All 3D vectors ()
- All matrices of a fixed size
- All polynomials of degree
Linear Independence
Section titled “Linear Independence”A set of vectors is linearly independent if the only way to get the zero vector as a linear combination is with all coefficients equal to zero:
If there’s a non-trivial combination (some ) that gives zero, the vectors are linearly dependent.
Think of it this way: linearly independent vectors point in “genuinely different directions.” None of them can be written as a combination of the others.
(blue) and (green) point in completely different directions. They’re independent, and together they can reach any point in 2D (their span is all of ).
(blue) and (orange) point in the same direction (). They’re dependent because one is just a scaled copy of the other. No matter how you combine them, you can only reach points along that single line.
Worked Examples
Section titled “Worked Examples”Example 1: Independent Vectors (2D)
Are and linearly independent?
Suppose
This gives and . The only solution is the trivial one, so yes, they’re independent. (These are the standard basis vectors.)
Example 2: Dependent Vectors
,
Notice , or equivalently .
We found a non-trivial combination (, ), so they’re dependent. One is just a scaled version of the other.
Example 3: Three Vectors in 2D
Any set of three or more vectors in is always linearly dependent. You can’t have more independent vectors than the dimension of the space. In 2D, the maximum number of independent vectors is 2.
Real-World Application
Section titled “Real-World Application”Linear independence shows up everywhere:
- Game development: choosing efficient basis vectors for animations, lighting, and data compression
- Computer graphics: selecting independent directions for tangent space (normal mapping)
- Machine learning: feature selection removes redundant (dependent) features to improve models
- Physics: choosing independent directions for forces or constraints
Example: When designing a character skeleton, you want the bone transformation axes to be independent. If two axes point in the same direction, you lose a degree of freedom and get weird deformations.
Retrying will remove your ✅ checkmark until you pass again.