Change of Basis and the Change-of-Basis Matrix
Suppose you describe a vector in a plane using one set of axes. Your colleague describes the same vector using axes rotated forty degrees away from yours. Your coordinate lists will differ, yet you are both pointing at the identical geometric object. How do we translate between your list of numbers and your colleague's list? We need a method that works mechanically and reliably. This is the question of change of basis. Its answer is a single matrix that acts as a dictionary. It translates between two coordinate languages for the same vector space. Change of basis matters because coordinates are never intrinsic to a vector space. They are a convenience imposed by a choice of basis. Different choices are useful for different purposes. Diagonal or triangular matrices simplify computation. Orthonormal bases simplify geometry. Eigenbases reveal dynamics. The ability to move fluidly between bases matters greatly. We must track exactly how coordinate vectors and matrix representations transform. This is what makes these specialized bases usable in practice. Otherwise they would merely exist in the abstract. The big picture is this. A finite-dimensional vector space with a chosen basis becomes identified with . This happens via a coordinate isomorphism, built from Isomorphisms and Isomorphic Vector Spaces. Composing two such isomorphisms — one for each of two bases — produces exactly the change-of-basis matrix. This matrix is always invertible. Its inverse performs the reverse translation. It also interacts with The Matrix of a Linear Map in a precise way. This will later explain something important. Two matrices representing the same linear operator in different bases are always similar. This article gives the formal definition of the change-of-basis matrix. It proves that the matrix is invertible. It also shows the matrix correctly transforms coordinate vectors. The article works through two fully explicit numerical examples. Finally, it shows exactly which hypotheses are load-bearing: finite dimensionality, ordered bases, and a common field.
- A change-of-basis matrix translates coordinate vectors of the same vector between two ordered bases of the same space.
- is built by writing each new basis vector as a linear combination of the old basis vectors, columns = coefficients.
- is always square and always invertible; performs the reverse translation.
- The formula is , where is the matrix whose columns are coordinates of -vectors in basis .
- Change of basis for vectors and change of basis for matrices of linear operators are linked: this link foreshadows Similar Matrices.
- Order of the basis matters — "basis" here always means ordered basis, and swapping the order changes .
- Key idea: the change-of-basis matrix is nothing but the matrix of the identity map, computed with two different bases on input and output.
Where this lives today
Change-of-basis machinery is the quiet workhorse behind an enormous range of applied and pure mathematics. In numerical linear algebra, converting a vector or matrix into a basis of eigenvectors (when one exists) via a change-of-basis matrix is the entire point of diagonalization, which drastically simplifies computing matrix powers, solving linear recurrences, and analyzing stability of dynamical systems. In computer graphics, every object rendered on screen is repeatedly changed from "model coordinates" to "world coordinates" to "camera coordinates" to "screen coordinates," each conversion literally a change-of-basis (together with translation) matrix multiplication applied per vertex, many times per second. In physics, changing between coordinate frames — from a lab frame to a rotating frame, or between bases adapted to different symmetries of a crystal lattice — is expressed exactly through change-of-basis matrices acting on vectors of physical quantities. In signal processing and statistics, transforming data into a new basis (such as principal components in PCA, or a Fourier/wavelet basis) is precisely a change of basis: the change-of-basis matrix packages the old features into the new coordinates that better expose structure such as variance or frequency content. In cryptography, particularly lattice-based schemes, the "goodness" or "badness" of a basis for a lattice is central, and converting between different bases of the same lattice via unimodular change-of-basis matrices underlies both the design and the cryptanalysis of these systems. Across all these settings, the underlying fact is always the same theorem proved here: coordinates transform via a fixed invertible matrix that depends only on the two bases, never on the vector in question.
:::quiz[If has columns equal to , which equation is correct?]
- ✓
- has no relation to or
Ask the tutor: How exactly does the formula for similar matrices follow from the change-of-basis theorem proved here?
Let be a finite-dimensional vector space over a field , with . Let
be two ordered bases of . For each , write in terms of :
The change-of-basis matrix from to , denoted or often just , is the matrix with entries ; that is, its -th column is the coordinate vector . Equivalently, is the matrix of the identity linear map relative to input basis and output basis , in the sense of The Matrix of a Linear Map.
Intuition
Think of a basis as a language for naming vectors with tuples of numbers. The vector itself never moves; only its name changes when you switch languages. The change-of-basis matrix is a dictionary: feed it the -name of a vector, and multiplication by returns its -name. Concretely, in , let be the standard basis and let be a tilted basis. To translate a -coordinate pair into standard coordinates, you simply take that many copies of and and add them — which is exactly matrix-vector multiplication by the matrix whose columns are written in standard coordinates. The picture below shows a single vector , expressed once in the standard grid and once in a skewed grid built from and .
Here ; to match the figure's label of exactly one would choose instead, giving — the essential point standing regardless of the exact numbers is that both diagrams draw the same arrow , merely gridded differently, and the change-of-basis matrix is precisely the machine converting the red/green grid-coordinates into the black grid-coordinates.
Let be an -dimensional vector space over a field , and let and be ordered bases of . Let be the change-of-basis matrix from to , as in the Definition above. Then: 1. For every ,
2. is invertible, and its inverse is the change-of-basis matrix in the reverse direction:
Setup. Recall that for any ordered basis of , the coordinate map sends to the column vector ; this is well defined because coordinates relative to a basis are unique, and it is a linear isomorphism by Isomorphisms and Isomorphic Vector Spaces.
Part 1: the transformation formula. Fix and write its -coordinates as , meaning
By definition of , each . Substituting,
This exhibits as a linear combination of with coefficient of equal to , which is exactly the -th entry of the matrix product , where . Since coordinates relative to the basis are unique (this is part of the definition of basis: every vector has a unique representation as a linear combination of basis vectors), this computed coefficient vector must equal . Hence
proving Part 1. The technique used is direct substitution combined with uniqueness of coordinate representation; no circularity is involved since uniqueness of coordinates is a basic consequence of linear independence, established prior to this theorem.
Part 2: invertibility. Define to be the change-of-basis matrix from to , i.e., the matrix whose -th column is . By the identical argument as in Part 1 (with the roles of and swapped), for every ,
We claim and , which will show is invertible with . To see : apply Part 1 and its mirror statement in succession. For any ,
Thus the linear map on given by matrix multiplication by fixes every vector . But as ranges over all of , ranges over all of , because the coordinate map is a bijection (it is an isomorphism, quoted above). Hence for every , i.e., . Symmetrically, for any ,
and since is also a bijection onto , we get . A square matrix with a matrix satisfying is by definition invertible with . Therefore is invertible and
If are three ordered bases of the same finite-dimensional space , then
For any , applying the theorem's transformation formula twice,
Since is onto (it is a bijection), the matrix agrees with on all of , and matrices producing identical linear maps on are equal (compare their action on the standard basis vectors of ). Hence the two matrices are equal.
∎Worked examples
Example 1: Two non-orthogonal bases of , going both directions. Let be the standard basis of : , . Let
First check is a basis: the matrix has determinant , so are linearly independent, and two independent vectors in a 2-dimensional space form a basis. Since is standard, writing in terms of is trivial: , . So
Take the vector (in standard coordinates, i.e. ). We find two ways. Direct way. Solve :
From the second equation . Substituting: . Then . So . Matrix way. By the theorem, , so . Compute the inverse using the formula:
Then
Both methods agree: , confirming . ✓. This also verifies the corollary-flavored fact from Part 2 of the theorem, computed explicitly above.
Example 2: Neither basis is standard — , with an explicit intermediate step through the standard basis. Let . Define two ordered bases, neither one standard:
We want , whose columns are . Step 1: check is a basis. Determinant of (columns ) expand along the first row: . So is a basis. Similarly for : determinant of expand along first row: ? Let's recompute carefully: entries are columns , so the matrix is
This determinant is zero — as originally chosen is not independent, so it fails to be a basis; let's fix this by replacing with a vector that restores independence, e.g. instead of , and redo the check:
Good — with , , , is a genuine basis of . Step 2: find each by solving linear systems in the standard basis, then converting. Since we know and in standard coordinates, we solve directly. Writing , we need . Compute : since (found above), use the adjugate. Cofactors of :
(Check: , first column of product: . ✓ matches identity's first column.) Now compute Check: . ✓ Check: . ✓ Check: . ✓ Step 3: assemble .
Step 4: sanity-check invertibility and use it. Take with -coordinates , meaning . By the theorem, :
Check directly: . ✓ This matches the standard-coordinate computation of above, confirming the change-of-basis formula.
The theorem requires to be finite-dimensional, so that ordered bases , have the same finite length and can be an honest matrix. Drop this hypothesis and the very construction of "the change-of-basis matrix" collapses. Let , the space of all polynomials with coefficients in a field , which is infinite-dimensional. Let
Both are (infinite) bases of (the second is a basis because spans and is independent for any fixed , by degree-counting: any polynomial of degree is uniquely a linear combination of via Taylor expansion at ). Each individual coordinate map , still makes sense for polynomials (any specific polynomial has only finitely many nonzero coordinates), but there is no longer a single finite matrix with for all simultaneously, because "coordinate vectors" now live in the space of eventually-zero sequences, and the correct replacement is an infinite matrix (only finitely many nonzero entries in each column, but arbitrarily many rows can be involved as degree grows). For instance,
which is a column of length 3 embedded in an infinite column — fine for one vector, but there is no fixed finite so that all such columns fit into one square invertible matrix as the theorem's proof demands (the proof used for a fixed finite , and used that the coordinate map is a bijection onto ; here the target is not for any finite , so the argument that are mutually inverse square matrices simply does not typecheck). This is precisely why change-of-basis matrices, as defined and used here, are a finite-dimensional tool; infinite-dimensional analogues require additional structure (e.g., topology, as in Hilbert space theory) to make sense of "infinite matrices" rigorously.
Scope, edge cases & common traps
| Situation | What happens |
|---|---|
| ordered bases of same finite-dim over same field | exists, is square, invertible; theorem applies fully |
| Same two sets of vectors but listed in different order | Different change-of-basis matrix — a permutation of columns/rows; order is part of the data |
| , but a "basis" list has a repeated or dependent vector | Not a basis at all; as constructed would be singular, contradicting invertibility — a red flag that the list was invalid |
| Attempting change of basis between bases of two different vector spaces | Undefined; change of basis is intrinsically about one space viewed two ways, not a map between distinct spaces (that's the general subject of The Matrix of a Linear Map) |
| Infinite-dimensional | No single finite matrix suffices; see the counterexample |
| Field mismatch, e.g. "basis" over vs. coordinates sought over | Coordinates must be taken in the same field the space is defined over; mixing fields breaks linearity of the coordinate map |
The mathematician behind it
Origins · 1 minHermann Günther Grassmann and how this was discovered
Grassmann worked largely outside the mainstream mathematical institutions of his day, supporting himself as a school teacher and pursuing original research on the side, notably also being a distinguished Sanskrit scholar. His 1844 treatise Die lineale Ausdehnungslehre ("Theory of Linear Extension") introduced, in essentially modern generality, the notions of vector spaces, linear independence, dimension, and bases for spaces of arbitrary dimension — ideas which include, implicitly, the freedom to re-express a given quantity relative to different systems of generating elements. His work was so far ahead of the notational and pedagogical conventions of his era that it went largely unrecognized during his lifetime; only later, through the efforts of mathematicians like Giuseppe Peano who built more accessible axiomatic treatments on Grassmann's ideas, did the modern coordinate-free view of vector spaces — and with it, the systematic study of change of basis — enter the mathematical mainstream.
Is the change-of-basis matrix the same as the matrix of a linear transformation?
Yes, in a precise sense: is exactly the matrix of the identity linear map computed with input basis and output basis , following the general recipe from The Matrix of a Linear Map. The only subtlety is that the "linear map" being represented, the identity, does nothing to the vector itself; all of the apparent transformation comes from using two different bases to read off coordinates before and after. This is why the matrix is always square and always invertible: the identity map is a bijection, and representing a bijection between spaces of the same dimension in any pair of bases always yields an invertible matrix.
Why is the change-of-basis matrix always invertible?
Because it represents the identity map, which is invertible (it is its own inverse) as a linear transformation. The proof given shows this concretely: if converts -coordinates into -coordinates, then the matrix built the same way but swapping the roles of and converts back, and composing the two round-trips gives the identity matrix in both orders. This mirrors the general fact that a linear map between finite-dimensional spaces of equal dimension is invertible exactly when it is injective (or equivalently surjective), and the identity map trivially satisfies both.
Does the order of vectors within a basis actually matter, or is that just bookkeeping?
It genuinely matters, not merely as notation. A basis, for the purposes of coordinates, is always an ordered tuple, because the coordinate vector assigns the number to position , which only makes sense if we know which basis vector occupies position . Reordering the same set of basis vectors produces a different ordered basis, and correspondingly a different (though closely related, via a permutation matrix) change-of-basis matrix. Two textbooks using the same set of basis vectors in different orders will report transposed-looking or permuted change-of-basis matrices for what is conceptually the same situation.
How does this connect to similar matrices, which I've heard change of basis leads to?
If is a linear operator represented by matrix relative to basis and by matrix relative to basis , one can show where is exactly the change-of-basis matrix constructed here. Two matrices related this way, for some invertible , are called Similar Matrices. So every pair of matrix representations of the same operator, taken in two different bases, are automatically similar — the change-of-basis matrix from this article is precisely the "" appearing in that later, more advanced definition.
Can the change-of-basis matrix be computed without knowing an explicit "standard" basis to route through?
Yes — the definition only requires expressing each vector of one basis as a linear combination of the other basis's vectors, which is always possible (both are bases of the same space) regardless of whether either is the familiar standard basis. In practice, when neither basis is standard, it is often computationally convenient to route through the standard basis as an intermediate step (as done in Example 2), using the corollary that change-of-basis matrices compose: . But this is a computational convenience, not a logical necessity.
What if the two "bases" I'm given turn out not to actually be linearly independent?
Then they are not bases at all, and the entire construction is invalid from the start — there is no valid change-of-basis matrix to compute. This is exactly what the counterexample-adjacent computation in Example 2 illustrates: an initial candidate list for failed the determinant test (determinant zero), signaling linear dependence, and had to be discarded and replaced before the theorem could be applied. Always verify linear independence (e.g. via a nonzero determinant, when the ambient space has a convenient coordinate system to compute in) before invoking any change-of-basis result.
Is there a change-of-basis notion for infinite-dimensional spaces like function spaces?
Not in the literal finite-matrix sense developed here; as the counterexample shows, without finite dimension there is no single finite invertible matrix doing the job. However, analogous ideas exist in more advanced settings: for Hilbert spaces with orthonormal bases (e.g. Fourier bases), one studies unitary "change of basis" operators, which are infinite-dimensional generalizations requiring convergence and completeness arguments well beyond finite-dimensional linear algebra. That theory is built on, but substantially extends, the finite-dimensional foundation presented in this article.