Vector Spaces, Bases, and Dimension
So far we have treated a vector as an “arrow in space”. But that view has limits — the real power of linear algebra lies in the fact that a “vector” can be any object that obeys the rules of operation.
Think about it: from beginning to end we have used only two operations — addition and scalar multiplication. As soon as an object can be “added” and “multiplied by a number”, and satisfies those properties, it can be used as a “vector” with every tool of linear algebra!
1. Functions Are Vectors Too
Functions can be added and multiplied by a number:
So functions form a vector space! A “linear combination” of functions is .
This brings about a startling fact: the derivative operator of calculus is a “linear transformation”!
Differentiation satisfies the two properties of a linear transformation — so differentiation is a “linear transformation on a space of functions”, and its “eigenvectors” satisfy , which solves to .
A startling conclusion
The exponential function is an eigenvector of the “derivative transformation”! This is exactly the mathematical essence of solving the differential equation . The language of linear algebra unifies differential equations.
2. Other Vector Spaces
| “Vector” object | Addition | Scalar multiplication | Example |
|---|---|---|---|
| Ordered array | Add the components | Multiply each component by c | |
| Matrix | Add entry by entry | Multiply every entry by c | All matrices |
| Polynomial | Add the coefficients | Multiply each coefficient by c | |
| Continuous function | Add pointwise | Multiply pointwise by c |
Key point: they all obey the same “addition + scalar multiplication + eight axioms” rule, so every tool of linear algebra (bases, linear transformations, eigenvalues…) applies to all of them.
A set is a vector space if it satisfies:
- Closure under addition:
- Closure under scalar multiplication:
- Associativity, commutativity, a zero element and an additive inverse for addition
- Associativity, distributivity and an identity element for scalar multiplication
Satisfying these is all it takes — whatever the “vectors” inside happen to look like.
The Space of Polynomials
All polynomials of degree ≤ 2 form a three-dimensional vector space, with basis
Every quadratic polynomial is a linear combination of them:
Dimension = 3 (the number of coefficients).
The Space of Matrices
All matrices form a four-dimensional vector space, with basis
Every matrix is a linear combination of them, so dimension = 4.
Key conclusion
A “vector” = any object that can be added, multiplied by a scalar, and satisfies the axioms. Functions, matrices and polynomials can all be vectors. Linear algebra is not about “arrows”; it is about linear structure — once the structure is in place, every tool (linear combinations, bases, transformations, eigenvalues) can be reused.
- Unity: differential equations, Fourier series and machine learning can all be described in the language of linear algebra
- Reusable tools: a method learned in one vector space transfers to every vector space
- The power of abstraction: ignore the appearance and grasp the essence, which is the “linear structure”
The Fourier viewpoint: the Fourier transform = “changing the basis” of a function to the sine/cosine basis (the frequency basis) — this is exactly the change-of-basis idea. The sine functions are the eigenfunctions of the “translation operator”.
The final section of the course, Applications of Linear Algebra, surveys the application landscape of the whole discipline.
The vector means "" in the standard basis .
But if we change to another basis (say and ), the same vector has different coordinates — it is now expressed as a combination of .
The same point:
in the standard basis: v = (3, 2)
in the new basis: v = 2.5·b₁ + 0.5·b₂ (because 2.5(1,1) + 0.5(1,-1) = (3, 2))
Coordinates are not an intrinsic property of a vector; they are a description “relative to some basis”.
From New-Basis Coordinates to Standard-Basis Coordinates
Let the new basis be (written in standard-basis coordinates). If the coordinates of a vector in the new basis are , then its standard-basis coordinates are
The columns of the change-of-basis matrix are the new basis vectors (in standard-basis coordinates).
From Standard-Basis Coordinates to New-Basis Coordinates
Conversely, use :
Example: B = [[1, 1], [1, -1]] (b₁ = (1,1), b₂ = (1,-1))
B⁻¹ = (1/-2)[[-1, -1], [-1, 1]] = [[0.5, 0.5], [0.5, -0.5]]
Check: B⁻¹·(3, 2) = (0.5×3+0.5×2, 0.5×3−0.5×2) = (2.5, 0.5) ✓
(consistent with 2.5b₁ + 0.5b₂ above)
The Question
The same linear transformation is represented by a matrix in the standard basis and by a matrix in the new basis . What is the relationship between and ?
The Derivation
- First convert the vector from new-basis coordinates back to standard-basis coordinates:
- Apply the transformation:
- Convert back to new-basis coordinates:
and are called similar.
Geometric intuition
“Representing the same transformation in a new basis” = “go back to the standard viewpoint → transform → switch back to the new viewpoint”. It is like describing one and the same thing in a different language — the transformation itself has not changed, only the coordinate system has.
| Situation | Significance |
|---|---|
| Choosing a “good” basis | Some transformations become their simplest diagonal matrix in the eigenbasis |
| Diagonalisation | If a basis of eigenvectors is found, the matrix becomes diagonal (in the next section) |
| Signal processing | The Fourier transform = changing to the frequency basis |
| Data science | PCA (principal component analysis) = changing to the directions of largest variance (the eigenvectors) |
The benefit of diagonalisation: computations with a diagonal matrix are extremely simple (entry by entry), and powers are easy as well:
| Concept | Explanation |
|---|---|
| Coordinates | A description relative to some basis, not an intrinsic property |
| Change-of-basis matrix | Its columns are the new basis vectors in standard-basis coordinates |
| Converting back to the standard basis | |
| Converting to the new basis | |
| Similar matrices | (one transformation, two coordinate systems) |
| The purpose | Choose a “good basis” to simplify the matrix, for instance by diagonalising it |
Symbols Used in This Article
| Symbol | Type | Pronunciation / Note | Meaning in This Article |
|---|---|---|---|
| Mathematical symbol | the space V | A vector space, a set satisfying the axioms | |
| Mathematical symbol | v plus w | Closure under addition: | |
| Mathematical symbol | c times v | Closure under scalar multiplication: | |
| Mathematical symbol | derivative operator | The derivative operator, a linear transformation on a space of functions | |
| Greek letter | Lambda | An eigenvalue, satisfying | |
| Mathematical symbol | e to the lambda x | An eigenfunction of the derivative transformation, solving | |
| Mathematical symbol | one, x, x squared | A basis of the space of quadratic polynomials, of dimension 3 | |
| Mathematical symbol | calligraphic B | The chosen basis, such as the new basis | |
| Mathematical symbol | b one, b two | The new basis vectors, written in standard-basis coordinates | |
| Mathematical symbol | v in basis B | The coordinates of the vector in the basis , such as | |
| Mathematical symbol | matrix B | The change-of-basis matrix, whose columns are the new basis vectors | |
| Mathematical symbol | B inverse | The inverse of the change-of-basis matrix, converting standard-basis coordinates back to the new basis | |
| Mathematical symbol | A prime equals B inverse A B | The matrix of the same linear transformation in the new basis; is similar to | |
| Greek letter | Lambda | The eigenvalues appearing in the standard form after diagonalisation |
