Vector spaces are the abstract framework that unifies all of linear algebra. The same theory that applies to arrows in applies equally to polynomials, matrices, functions, and signals. The key insight is that the 'size' of a space is fully captured by a single number: its dimension.
The four core concepts — span, linear independence, basis, dimension — provide the language for describing what a set of vectors can and cannot represent. The column space and null space give these abstract ideas concrete computational content.
Understanding vector spaces is the conceptual leap that separates people who use linear algebra from people who understand it. Every major theorem — eigenvalues, the SVD, least squares — is ultimately a statement about the structure of certain vector spaces.
Subspaces
A subspace of is a subset satisfying three conditions: (1) , (2) if then (closed under addition), and (3) if and then (closed under scalar multiplication). The three conditions collapse into one: is a subspace iff every linear combination of vectors in stays in .
Examples of subspaces: , any line through the origin, any plane through the origin, itself, the null space of any matrix , and the column space of any matrix .
Non-examples: a line not through the origin (fails condition 1), a circle (not closed under addition), (fails condition 3 — multiply any vector by and you leave the set). The origin condition is always the fastest check.
The intersection of two subspaces is always a subspace. The union is usually not — to get a subspace from two subspaces, take their sum .
💡Explain it simply
A subspace is a flat surface (of any dimension) passing through the origin. You can add vectors and scale them all you like and you'll never leave the surface. A tilted plane not through the origin, or a curved surface, is not a subspace.
Span
The span of vectors is every possible linear combination: . It is always a subspace — it contains (set all ) and is closed under addition and scaling.
Geometrically in : one nonzero vector spans a line through the origin; two independent vectors span a plane; three independent vectors span all of .
To check if , set up and row-reduce. If consistent, is in the span.
The column space is the span of the columns of . The question 'is ?' is identical to 'is consistent?'
💡Explain it simply
The span of a set of vectors is everything you can reach by mixing them together. Vectors are like paint colors: red and blue span all mixtures of red and blue. Purple is in the span; orange is not (you'd need yellow). The span is your palette.
Is a vector in the span?
- Is in with , ?
- Row-reduce : .
- Consistent. , : .
- Check: ✓.
Linear independence
Vectors are linearly independent if forces all . If a non-trivial combination equals , the vectors are linearly dependent.
Dependence means redundancy: at least one vector is expressible as a combination of the others and adds no new direction. Removing it does not shrink the span.
Test: form and row-reduce. The vectors are independent iff every column is a pivot column iff .
In , any set with more than vectors is automatically dependent. You cannot have more than independent directions in -dimensional space.
Any set containing is automatically dependent: provides a non-trivial combination equalling zero.
💡Explain it simply
Vectors are independent if none of them is 'redundant' — if knowing the others doesn't already tell you where this one points. If , then adds no new information and the set is dependent.
Dependence check in
- Are , , independent?
- Row-reduce: . Only 2 pivots — dependent.
- From RREF: . Check: ✓.
Basis and dimension
A basis for a subspace is a set of vectors that is both linearly independent and spans . It is simultaneously a minimal spanning set and a maximal independent set.
Every vector in has a unique representation as a linear combination of basis vectors. This uniqueness makes a basis a coordinate system: given basis , each vector has unique coordinates .
The dimension of is the number of vectors in any basis. All bases for contain the same number of vectors — this is a theorem. Dimension is an intrinsic invariant of the space.
To find a basis for : row-reduce and take the original columns (not the RREF columns) at pivot positions. To find a basis for : row-reduce, express pivot variables in terms of free variables, and write the general solution as a linear combination of vectors.
💡Explain it simply
A basis is the minimum set of directions you need to describe every position in the space. In , any two non-parallel vectors form a basis: one is not enough (you're stuck on a line), three is too many (one is redundant). Dimension is just how many directions you need.
Column space and null space
The column space is the span of the columns of — all possible outputs. Its dimension is .
The null space is the set of all inputs that map to zero. It is always a subspace of , and its dimension is the nullity.
The rank-nullity theorem: . Every column either contributes a new independent direction (pivot, adds to rank) or introduces a free variable (adds to nullity).
The row space has dimension as well. The fundamental theorem of linear algebra: and . The four fundamental subspaces partition and into complementary pairs.
💡Explain it simply
The column space is everywhere the matrix can take you — all reachable destinations. The null space is everything the matrix erases — inputs it maps to zero. A large null space means the matrix loses a lot of information; a trivial null space means it is injective (one-to-one).
Common Mistakes to Avoid
- Claiming any subset of is a subspace without checking all three conditions. The easiest first check: does it contain ?
- Confusing span with independence. A spanning set can be dependent (redundant); an independent set may not span. A basis must be both.
- Stating 'the dimension is ' because you found two independent vectors, without checking they actually span the space.
- Extracting the column space basis from the RREF matrix instead of the original matrix. Use pivot positions to identify which original columns to take.
- Forgetting the zero vector is always in the null space — is never empty.