Where We Are
Chapter 009 showed that a matrix is determined by what it does to basis vectors.
Chapter 011 explored linear transformations more deeply.
But we have been quietly assuming one special coordinate system:
Why those two vectors?
Because they are convenient—not because nature demands them.
The same geometric arrow can have different coordinates in a different basis.
That idea unlocks PCA, eigenvectors, Fourier methods, embeddings, quantum mechanics and many numerical algorithms.
1. Coordinates Are Instructions
Take
In the standard basis, this means
So coordinates are not the vector itself.
They are the instructions for building the vector from chosen basis directions.
That distinction is subtle and essential.
Intuition — A location can be described as “3 blocks east and 2 blocks north,” or using a rotated street grid. The location is unchanged. The instructions change.
2. What Makes a Basis?
A basis must do two jobs:
- reach every vector in the space, and
- represent each vector uniquely.
In 2D, choose
These are not horizontal and vertical.
Yet they point in different enough directions that together they can build every point in the plane.
That makes them a valid basis.
3. Express the Same Vector in a New Basis
Let
We want numbers such that
Substitute:
Coordinate-wise:
Add the equations:
so
Then
Therefore the same geometric vector has new coordinates
Standard coordinates:
Coordinates in basis :
Same arrow. Different description.
4. Turn Basis Vectors Into a Matrix
Put the new basis vectors into columns:
Then
Why?
Because matrix–vector multiplication forms a weighted combination of columns:
So the basis matrix translates basis coordinates → standard coordinates.
5. Change Coordinates With an Inverse
We have
To recover basis coordinates from standard coordinates , multiply by :
For our example,
Then
Exactly what we found by solving equations.
6. A Tempting Wrong Idea: “Coordinates Are the Vector”
Suppose someone says:
The vector is
[4,2].
That is incomplete.
[4,2] only has geometric meaning after a basis is understood.
In the standard basis, it means
In another basis, the same pair of numbers describes a different arrow.
A Tempting Wrong Idea
Coordinates are not intrinsic labels attached to a vector. They are coefficients relative to a chosen basis.
7. Why Change Basis at All?
Why replace a familiar coordinate system with another one?
Because some problems become dramatically simpler in the right basis.
Imagine a cloud of data stretched diagonally.
In the standard basis:
y
↑
| •
| •
| •
| •
|•
+------------→ x
The important direction is diagonal.
If we rotate the basis so one axis lies along that direction, the data may become easy to describe:
- one coordinate contains most variation,
- the other contains very little.
That is the seed of PCA.
8. Basis as a Language Choice
Consider the vector
In basis , its coordinates are simply
The basis was chosen so these coefficients are useful.
This is like choosing a vocabulary adapted to the problem.
A poor basis can make structure look complicated.
A good basis can make it obvious.
9. Orthonormal Bases
A particularly convenient basis has vectors that are:
- mutually perpendicular,
- each of length 1.
Such a basis is orthonormal.
If
has orthonormal columns, then
That implies
So changing coordinates becomes especially easy:
Each coordinate is simply a dot product with a basis vector.
10. Why Dot Products Reappear
For an orthonormal basis,
That means coordinates are projections.
The first coordinate asks:
how much of x points along ?
The second asks:
how much points along ?
So Chapter 007’s dot product has become the machinery of coordinate systems.
11. Rotation as Change of Basis vs Rotation of the Vector
This distinction often confuses learners.
Two different stories can use similar matrices.
Active transformation
The vector physically rotates while axes stay fixed.
Passive change of basis
The vector stays fixed while we describe it using rotated axes.
These are related but conceptually different.
Intuition — Either rotate the arrow on the paper, or rotate the ruler you use to measure the arrow.
Keeping these stories separate prevents sign and transpose confusion later.
12. Shape Check
If
is a basis matrix and
then
has shape
And
also returns an -vector.
A change of basis changes coordinates, not the dimension of the underlying space.
13. Neural-Network Connection
Representation learning can be viewed partly as learning useful coordinate systems.
Early features may be inconvenient for a task.
A learned matrix transforms them into new coordinates where important structure becomes easier to separate.
Of course deep networks add nonlinearities, so the story is richer than a simple basis change.
But the geometric instinct remains valuable:
learned layers often try to place data into a representation where the next operation is easier.
14. PCA Preview
PCA will ask:
Which orthonormal directions capture the most variation in the data?
Once those directions are found, we use them as a new basis.
Then each data point gets new coordinates:
If later coordinates contain little information, we can drop them.
That becomes dimensionality reduction.
15. Code From Scratch
For a simple basis,
import numpy as np
B = np.array([
[1., 1.],
[1., -1.]
])
x = np.array([4., 2.])
coords = np.linalg.solve(B, x)
assert np.allclose(coords, [3., 1.])
reconstructed = B @ coords
assert np.allclose(reconstructed, x)
Notice the two directions:
basis coordinates --B--> standard coordinates
standard coordinates --B^-1--> basis coordinates
16. Break It
Basis vectors are dependent
Take
They point in the same direction.
They cannot span the whole plane.
The matrix
has no inverse.
So not every pair of vectors is a basis.
This failure leads directly to span, independence and rank.
17. History Lens — Coordinates Are a Choice
Descartes connected geometry and algebra by assigning coordinates to points. Later linear algebra generalized the idea: coordinates only make sense relative to a chosen basis.
The conceptual leap is powerful because it separates two things:
- the underlying geometric object,
- the numbers we use to describe it.
Modern machine learning relies on this separation constantly when it transforms data into new feature spaces.
18. Distinctions That Matter
| Pair | Difference |
|---|---|
| vector vs coordinates | geometric object vs coefficients in a basis |
| standard basis vs arbitrary basis | convenient default vs any valid spanning independent set |
| active transform vs passive basis change | move vector vs change description |
| basis matrix vs inverse basis matrix | coordinates→standard vs standard→coordinates |
| orthogonal vs orthonormal | perpendicular vs perpendicular and unit length |
19. What We Discovered
- Coordinates depend on a chosen basis.
- A basis must span the space and represent vectors uniquely.
- Basis vectors placed as columns form a basis matrix.
- converts basis coordinates to standard coordinates.
- converts standard coordinates to basis coordinates.
- Orthonormal bases make inversion easy: .
- Dot products with orthonormal basis vectors give coordinates directly.
- Good bases can expose structure that is hidden in standard coordinates.
- If basis vectors are dependent, the coordinate system fails.
20. One-Minute Explanation
A vector is not the same thing as its coordinates. Coordinates are instructions saying how much of each basis vector to combine. Change the basis and the coordinate numbers change even though the geometric vector stays the same. Put basis vectors into the columns of a matrix : multiplying by basis coordinates reconstructs the vector, while converts the vector back into those coordinates. Choosing a good basis can make a difficult problem simple, which is why basis changes appear throughout machine learning.
21. Mastery Check
- Why are coordinates not intrinsic to a vector?
- What two properties must a basis have?
- Express
[4,2]using basis[1,1],[1,-1]. - Why do basis vectors become columns of ?
- What does do?
- Why is an orthonormal basis convenient?
- Why does imply ?
- Explain active transformation vs passive basis change.
- Why can dependent vectors not form a basis?
- How does basis choice foreshadow PCA?
🔭 Bridge to Chapter 013
We now know that a basis must span the space and give unique coordinates.
But those words hide the next question:
How can we tell whether a set of vectors really contributes independent directions, and how many dimensions of space they actually cover?
That question forces span, linear independence and rank.