Vector Spaces, Subspaces, Independence, Basis and Dimension
The axioms of a vector space with the standard examples, the subspace test, span and linear combinations, linear dependence and independence and how to test it, bases, dimension and coordinates, sums and intersections of subspaces, and inner products, orthogonality and Gram–Schmidt.
Vector spaces
A vector space over is a set with addition and scalar multiplication satisfying the familiar rules: closure under both operations, commutativity and associativity of addition, a zero vector, additive inverses, distributivity (, ), , and .
| Space | Elements | Dimension |
|---|---|---|
| column vectors | ||
| matrices | ||
| polynomials of degree | ||
| continuous functions on | infinite | |
| symmetric matrices | ||
| skew-symmetric matrices | ||
| upper-triangular matrices |
Subspaces
A non-empty subset is a subspace iff it is closed under linear combinations:
Every subspace contains — the fastest way to rule a set out. Subspaces of are: , lines through the origin, planes through the origin, and itself.
Span and linear combinations
is the smallest subspace containing the vectors. iff the system is consistent.
Linear dependence and independence
Vectors are linearly independent if
Otherwise some vector is a combination of the others (dependent).
How to test:
- Put the vectors as columns of ; they are independent iff iff has only the trivial solution.
- For vectors in : independent iff .
- Shortcuts: any set containing is dependent; more than vectors in are dependent; two vectors are dependent iff one is a multiple of the other; non-zero mutually orthogonal vectors are independent.
Basis and dimension
A basis is a linearly independent spanning set. Every basis of a space has the same number of vectors, the dimension.
- In an -dimensional space, any independent vectors form a basis, and any spanning vectors form a basis.
- Any independent set can be extended to a basis; any spanning set can be reduced to one.
- Coordinates: each is a unique combination of basis vectors; the coefficients are its coordinates in that basis. If has the basis vectors as columns, .
Sums and intersections
For subspaces :
- and are subspaces; generally is not.
- .
- If , the sum is direct, , and every vector splits uniquely as .
Inner products, norms and orthogonality
The standard inner product gives:
- Norm: ; other norms: , .
- Angle: — the cosine similarity used in ML.
- Cauchy–Schwarz: ; triangle inequality .
- Orthogonal vectors: . An orthonormal set is orthogonal with unit vectors. In an orthonormal basis, coordinates are just dot products: .
- Orthogonal complement: , with .
Gram–Schmidt
Turns an independent set into an orthonormal set spanning the same space:
Each step subtracts the projections onto the earlier directions (see projections). In matrix form this is the QR decomposition .
Quick revision
Practice questions
GATE-style questions: 5 one-mark and 4 two-mark. Wrong MCQs cost ⅓ of their marks in the real exam; MSQ and NAT have no negative marking. Attempt each before opening the solution.
Which of the following subsets of is a subspace?
The dimension of the subspace is ______.
Which of the following sets of vectors are linearly independent?
One or more options are correct.
The dimension of is ______.
The dimension of the vector space of all real symmetric matrices is
The value of for which the vectors , and are linearly dependent is ______.
The dimension of the vector space of real polynomials of degree at most 3 is
and are subspaces of a finite-dimensional vector space . Which statements are always true?
One or more options are correct.
With respect to the basis of , the vector has coordinates . The value of is ______.