Change of Basis and Similarity Transformations
A linear operator is a geometric object — a map that sends a vector space into itself — and it exists before anyone chooses coordinates. To compute with it we pick a basis and copy its action into a grid of numbers, a matrix. But that grid is a human convenience, glued to a particular choice of axes; it is not part of the physics. The organizing question of this article is the one every working physicist eventually meets: when we swap one basis for another, how do the numbers rearrange, and which combinations of numbers refuse to move — because those are the coordinate-free quantities that can carry physical meaning. The answer is a single operation, the similarity transformation. If is the matrix whose columns list the new basis vectors written in the old coordinates, then the component column of a fixed vector transforms as while the operator matrix transforms by conjugation, . The two factors are inverses of one another for a reason that is almost forced: they must conspire so that the abstract statement comes out true in every basis at once. The operator never changes; only its bookkeeping does. Everything that survives conjugation is a candidate observable. The determinant and the trace are the two most elementary survivors; the full list is packaged in the characteristic polynomial, whose roots are the eigenvalues. This is precisely why eigenvalues — and not raw matrix entries — carry physics: they are the squared frequencies of a vibrating lattice, the energy levels of a Hamiltonian, the principal moments of an inertia tensor. Choosing a basis well is therefore a strategy. Diagonalization, the spectral theorem, and the Jordan form are all one idea worn three ways: pick to make as simple as the operator will allow.
- A vector exists independently of any basis; only its component column changes when you re-express it, and the change is governed by an invertible change-of-basis matrix .
- If holds the new basis vectors as columns in the old coordinates, then basis vectors carry while components carry : . This opposite behaviour is the contravariant–covariant duality.
- An operator's matrix transforms by a similarity transformation . Two matrices related this way are the same operator seen in two bases; similarity is an equivalence relation.
- Conjugation preserves every intrinsic property: determinant, trace, characteristic polynomial, eigenvalues, rank, and Jordan structure. These are the labels of the equivalence class.
- Between two orthonormal bases is unitary (orthogonal in the real case), and similarity becomes — the transformation that preserves inner products, norms, and Hermiticity, hence the one quantum mechanics uses.
- Key idea: a change of basis acts on operator matrices by conjugation, . The operator itself is untouched — only its coordinate description moves — so the intrinsic content of an operator is exactly what conjugation leaves fixed: det, trace, characteristic polynomial, eigenvalues, rank.
A change of basis acts on operator matrices by conjugation: . This similarity transformation leaves the operator itself untouched; only its coordinate description changes. Hence the intrinsic content of an operator is precisely the set of quantities invariant under conjugation — determinant, trace, characteristic polynomial, eigenvalues, rank.
Where this lives today
The similarity transformation is the computational heartbeat of modern physics. Every time a quantum chemist or condensed-matter physicist "diagonalizes the Hamiltonian" to find energy levels, they are searching for the unitary that makes diagonal, and for huge matrices iterative eigensolvers such as Lanczos build that basis change one Krylov vector at a time. Structural and mechanical engineers run the identical mathematics under the name modal analysis: the normal modes of a bridge, a turbine blade, or a spacecraft are the eigenvectors of and the resonant frequencies are the eigenvalues, exactly as in Example 2 but with thousands of degrees of freedom. In data science, principal component analysis is an orthogonal change of basis that diagonalizes a covariance matrix. In every case the lesson of this article is the operative one: choose the basis in which the operator is simplest, read off the invariants, and let the physics speak in coordinates that hide nothing.
The physical picture
Think of a vector as an arrow pinned in space, and a basis as a coordinate grid you draw on top of it. Sliding to a different grid does not move the arrow — it only changes the numbers you read off the arrow's tip. An operator is likewise a fixed geometric action: a stretch, a rotation, a shear. Its matrix is that action "read in your grid," and re-drawing the grid reshuffles the matrix entries without altering what the operator does. The first figure freezes the essential fact: one arrow, two grids, two component columns tied together by .
The inverse in is dictated by consistency. Lengthen the grid lines — scale the basis vectors up by two — and the same physical arrow now needs smaller numbers to describe it, its components halved. Basis vectors and components scale oppositely, "contravariant" against "covariant," so whatever does to the basis, must do to the components. For an operator we read its action by first stepping into the old coordinates (), applying , then stepping back out to the new (). The sandwich is literally "translate, act, translate back," which is exactly why the two flanking factors are forced to be inverses. The second figure draws that sandwich as a commuting square — the single diagram that contains the whole subject.
Invariants are the shadow the operator casts no matter where you stand. The trace (the sum of the eigenvalues) and the determinant (their product) are the two simplest shadows; together with the other coefficients of the characteristic polynomial they pin down the whole spectrum — the operator's basis-free fingerprint.
The core equations
The starting point is that a single abstract vector has two component columns, one per basis, both describing the identical arrow. Everything downstream is a rule enforcing that identity.
where: — a fixed abstract vector; — old and new basis vectors; — old and new components of . Reading: the two sums are the same point in the space, expanded on two different sets of axes. The change-of-basis matrix is defined by expressing each new basis vector in the old basis; its columns are the new basis vectors written in old coordinates. This one convention fixes the direction of every inverse that follows.
where: — matrix whose -th column lists in the old basis; — -th old-basis component of the -th new basis vector. Reading: to build , drop the new axes into the old grid and record their coordinates column by column. Because the arrow is fixed, the component column must transform by the inverse of . This is the single most important — and most error-prone — rule in the subject.
where: — column of old components ; — column of new components . Reading: basis vectors go one way (by ), the numbers describing a fixed vector go the other way (by ). An operator matrix carries on the left and on the right, sandwiching . This conjugation is the similarity transformation, the definition around which the whole article turns.
where: — operator matrix in the old basis; — operator matrix in the new basis; — change-of-basis matrix (new basis in old coordinates). Reading: to see what the operator does in new coordinates, translate in, act, translate back. When both bases are orthonormal, is no longer a generic invertible matrix but a unitary one (orthogonal, in the real case), and the similarity specializes to a form that preserves inner products.
where: — unitary change-of-basis matrix between orthonormal bases; — conjugate transpose of , equal to here. Reading: rotating between orthonormal frames keeps lengths, angles, and Hermiticity intact — the transformation physics actually performs. The whole reason to care about conjugation is that certain scalars built from do not move under it. The two most fundamental are the determinant and the trace, and both are symmetric functions of the eigenvalues.
where: — the eigenvalues counted with multiplicity; — dimension of the space. Reading: the determinant is the product of the eigenvalues, the trace is their sum, and neither notices a change of basis. More is true: the entire characteristic polynomial is invariant, so the full spectrum — not merely its product and sum — belongs to the operator rather than to any grid.
where: — characteristic polynomial whose roots are the eigenvalues; — the eigenvalue variable. Reading: similar matrices solve the identical secular equation, so they share every eigenvalue with the same multiplicities.
The goal is to prove the pivotal asymmetry of equations (2) and (3): the new basis vectors are obtained from the old by , yet the component column of a fixed vector is obtained by . We derive the rule from a single demand — that the one abstract vector has consistent expansions in both bases — and never appeal to intuition, so that the notorious "which one gets the inverse" confusion is settled by algebra rather than by memory. Everything hinges on substituting the definition of into the expansion and matching coefficients.
Step 1. Expand in the new basis and substitute the definition from equation (2):
Why: this trades the new basis vectors for old ones, so that both expansions of are now written over the same set of axes and can be compared term by term.
Step 2. Swap the summation order to collect the coefficient multiplying each old basis vector :
Why: the object in parentheses is, by construction, the -th old component of — we have re-expressed purely in the old basis with the new components still visible inside.
Step 3. Match against . Because components in a basis are unique, the bracketed sums must equal the old components:
Why: uniqueness of the expansion turns the equality of vectors into an equality of column matrices, and inverting delivers the covariant rule — components carry precisely because basis vectors carry .
Go deeper · Derivation B · 1 minThe conjugation rule and the invariance of the spectrum
The aim is twofold: first to derive as the forced consequence of demanding that the abstract relation produce correct components in every basis, and then to show that this conjugation leaves the entire characteristic polynomial — hence every eigenvalue — unchanged. Together these establish that "the operator" is a well-defined object behind its many matrices, and that its spectrum is a genuine coordinate-free label. We start from the matrix statement of the operator in the old basis and push it through the change of coordinates.
Step 1. In the old basis the operator acts as . Rewrite both component columns in the new basis using equation (3), :
Why: the same physical relation must hold whatever basis we read it in, so we simply translate every column from old coordinates into new ones.
Step 2. Left-multiply by and read off the new-basis matrix:
Why: whatever matrix sits between and is by definition the operator's matrix in the new basis, so the conjugation is not a convention but the only expression consistent with the fixed operator.
Step 3. Now test invariance of the characteristic polynomial. Factor out of using :
Why: writing the shift in conjugated form lets the whole matrix sit inside a single similarity, so its determinant can be handled in one stroke.
Step 4. Take determinants and use multiplicativity, :
Why: the conjugating determinants are reciprocals and cancel exactly, so the two polynomials are identical — and identical polynomials have identical roots, proving . Setting recovers , and the coefficient of recovers .
Go deeper · Derivation C · 1 minSimilarity is an equivalence relation, and its classes are labelled by invariants
The purpose here is to justify the very phrase "the operator behind the matrices." We show that similarity partitions all matrices into disjoint classes — it is reflexive, symmetric, and transitive — so that a single operator corresponds to exactly one class, and every matrix in that class is one coordinate portrait of it. We then identify what stays constant across a class: precisely the quantities we have been calling invariants, which is why they and not the raw entries deserve to be called intrinsic. Write when for some invertible .
Step 1. Reflexivity. Take , so and . Why: every matrix is trivially similar to itself — the do-nothing change of basis — which is the minimal sanity check any equivalence relation must pass.
Step 2. Symmetry. If then, with ,
so . Why: undoing a change of basis is itself a change of basis, so the relation cannot distinguish "old" from "new" — sameness of operator is a two-way street.
Step 3. Transitivity. If and , compose the two basis changes:
with invertible, so . Why: performing one change of basis and then another is the same as performing their composite in one go, which is exactly what transitivity must express.
Step 4. Consequence. Because det, trace, characteristic and minimal polynomials, rank, and Jordan structure are all fixed under a single conjugation, they are constant on each equivalence class. Why: these invariants are the class labels — two matrices are similar if and only if they share their full Jordan structure — so listing the invariants is the same as naming the operator.
Limiting cases
Specializing the general similarity to particular kinds of basis change recovers, one by one, the standard structures of linear algebra.
| Case | Result | Meaning |
|---|---|---|
| Trivial change | Keeping the same basis leaves the matrix untouched — the identity is the do-nothing similarity, the reflexive case of the relation. | |
| Orthonormal to orthonormal | becomes unitary (orthogonal in the real case). Inner products, norms, Hermiticity, and unitarity are all preserved — the right transformation for quantum mechanics and rigid-body geometry. | |
| Eigenbasis (diagonalizable ) | When the columns of are a complete set of eigenvectors, similarity diagonalizes : the eigenvalues line the diagonal and the operator decouples into independent one-dimensional scalings. | |
| Normal operator | The spectral theorem guarantees an orthonormal eigenbasis (unitary ) whenever — the best possible case, diagonal and length-preserving. | |
| Defective operator (no eigenbasis) | With too few eigenvectors, the simplest reachable form is block-diagonal Jordan blocks: on the diagonal, 's on the superdiagonal — the canonical representative of the similarity class. |
Worked examples
1 · Diagonalizing a 2×2 operator and checking its invariants (confidence builder)
Take the upper-triangular matrix . Find a change of basis that diagonalizes it, and verify explicitly that the trace and determinant survive the transformation.
Step 1. Find the eigenvalues from the characteristic polynomial. For a triangular matrix the diagonal entries are already the roots:
So the spectrum is .
Step 2. Solve for each eigenvalue. For , the equations force the second component to zero, giving . For , gives . The two eigenvectors are and .
Step 3. Assemble from the eigenvectors as columns, and invert:
The columns of are the new basis — the eigenbasis — written in the standard basis.
Step 4. Carry out the similarity transformation. First , then
The operator is now diagonal, : the eigenbasis has decoupled it into two independent scalings.
Step 5. Check the invariants in both bases. The original has and ; the diagonal has and . Both give trace 5 and determinant 6, confirming that conjugation left them untouched — exactly as the eigenvalue formulas and require.
2 · Normal modes of two coupled oscillators (a physical similarity transformation)
Two equal masses sit in a line, each tied to a fixed wall and to each other by three identical springs of stiffness . The equations of motion are with and . Diagonalize to find the normal-mode frequencies.
Step 1. Form the dynamical matrix. With ,
This matrix is real symmetric, so the spectral theorem promises a real orthogonal eigenbasis — the similarity here will be with orthogonal.
Step 2. Eigenvalues of the pattern matrix : from we get , so . Restoring the prefactor, the squared normal-mode frequencies are
Step 3. Eigenvectors give the mode shapes. For the eigenvector is — both masses move together, the in-phase (symmetric) mode, which never stretches the middle spring, hence the lower frequency . For the eigenvector is — the masses move oppositely, the out-of-phase (antisymmetric) mode, which compresses the middle spring hardest, hence .
Step 4. Build the orthogonal change of basis from the normalized eigenvectors and diagonalize:
In these normal coordinates the two masses no longer talk to each other — the system is two independent oscillators.
Step 5. Check invariants as a cross-check on the physics. The trace of is , and indeed . The determinant is , and . The mode frequencies satisfy and , the same eigenvalue identities that governed Example 1 — here reading out as measurable frequencies rather than as bare numbers.
Physics of the portrait
The change-of-basis rule looks like bookkeeping, but the recognition that a matrix is a coordinate portrait of an operator — and that the operator, not the portrait, is the real thing — was a genuine conceptual leap, arriving in the mid-nineteenth century from the figure who gave us the algebra of matrices.
Origins · 1 minArthur Cayley and how this was discovered
Arthur Cayley trained as a lawyer and spent fourteen years at the bar, publishing mathematics in his spare hours, before returning to Cambridge as the first Sadleirian Professor. His 1858 A Memoir on the Theory of Matrices is where the objects of this article are born: he defined how to add and multiply matrices, isolated the identity and the inverse, and — crucially — saw that a linear substitution of variables composes exactly like matrix multiplication, so that changing coordinates and conjugating a matrix are one and the same operation. In the same memoir he stated what we now call the Cayley–Hamilton theorem, that a matrix satisfies its own characteristic equation, and verified it by hand for the and cases. The word "matrix" itself had been coined a few years earlier by his close friend James Joseph Sylvester, whose 1852 law of inertia had already identified the first invariants of a quadratic form. What Cayley began as an algebra, others turned into a classification: Weierstrass's elementary divisors (1868) and Camille Jordan's canonical form (1870) answered "when are two matrices similar?" completely, and Frobenius (1878) unified the strands into the modern theory of the minimal polynomial. The result is the viewpoint every physicist now takes for granted — that the eigenvalues, not the entries, are what an operator really is.
Going further
Texts. Stone & Goldbart, Mathematics for Physics, Ch. 1 (vector spaces, operators, change of basis) · Arfken, Weber & Harris, Mathematical Methods for Physicists, 7th ed., Ch. 3 (matrices, similarity, diagonalization) · Hassani, Mathematical Physics, Ch. 4–5 (operator algebra and spectral decomposition) · Byron & Fuller, Mathematics of Classical and Quantum Physics, Ch. 3–4 · Nakahara, Geometry, Topology and Physics, Ch. 2 (linear maps and their coordinate expressions) · Strang, Linear Algebra and Its Applications, Ch. 5 (eigenvalues and similarity). Key results to keep in mind: the component rule follows from the basis-expansion derivation; determinant and trace invariance follow from and the cyclic property of the trace; the worked example gives by direct multiplication, with trace and determinant ; the coupled-oscillator spectrum are the eigenvalues of , satisfying and . All numerical values are exact.
Prerequisites. Linear Independence, Basis, and Dimension · Linear Operators and Matrix Representations · Determinants and Their Properties · Vector Spaces and Subspaces. Leads to. Eigenvalues, Eigenvectors, and the Characteristic Equation · Diagonalization and the Spectral Decomposition · Jordan Canonical Form and Defective Matrices · Unitary and Orthogonal Operators.
Ask the tutor: Want to see any operator diagonalized step by step, with its trace, determinant, and eigenvalues checked in two different bases?
Why does the operator matrix get P⁻¹ on one side and P on the other, instead of P on both?
Because the operator has to eat a vector and spit out a vector, and both are expressed in the new basis. To act, you first convert the incoming new-basis column into old coordinates (), apply the old matrix , then convert the result back into new coordinates (). That "in-then-out" round trip is what makes the two flanking factors inverses of each other. A quadratic form, by contrast, eats two vectors and returns a scalar; it transforms by congruence, , with a transpose rather than an inverse. The transformation law is dictated by how many vectors an object consumes — operators are one-in, one-out, so they get .
Is a similarity transformation the same thing as diagonalization?
No — diagonalization is a special case. A similarity transformation is any conjugation , valid for every invertible , and it always exists. Diagonalization is the lucky situation where you can choose so that comes out diagonal, which requires a complete set of linearly independent eigenvectors. Many operators cannot be diagonalized — the defective ones — yet every operator can still be brought to its Jordan canonical form by an appropriate similarity. So "can I diagonalize ?" is really the question "does have enough eigenvectors to span the space?", while "can I apply a similarity to ?" is always answered yes.
If eigenvalues are basis-independent, why do textbooks bother computing eigenvectors, which are not?
Eigenvalues tell you what the operator does — the scaling factors along its natural directions — but eigenvectors tell you where those directions point, and that is exactly the information you need to build the change of basis that simplifies the problem. In the coupled-oscillator example the eigenvalues are the frequencies you would measure, but the eigenvectors are the mode shapes: in-phase versus out-of-phase motion. You compute them because the eigenbasis is the coordinate system in which the physics decouples.
When is the change-of-basis matrix guaranteed to be unitary rather than a generic invertible matrix?
Exactly when both the old and the new basis are orthonormal. Unitarity, , is precisely the statement that maps an orthonormal set to an orthonormal set, preserving all inner products and lengths. A generic invertible between two arbitrary (skewed, unequal-length) bases will distort angles and magnitudes, which is fine for pure linear algebra but ruinous in quantum mechanics, where inner products are probabilities and must be preserved. This is why quantum changes of representation — position to momentum, or into an energy eigenbasis — are always unitary, and why the spectral theorem for normal operators is so prized: it guarantees the diagonalizing basis can be chosen orthonormal.
Trace and determinant are invariant — are they enough to tell whether two matrices are similar?
Not in general. For matrices trace and determinant fix the characteristic polynomial and hence the eigenvalues, but even there they can fail: and share both trace and determinant , yet only the second is diagonal, so they are not similar. What is needed is that two matrices share their entire Jordan canonical form — the full list of eigenvalues together with the sizes of their Jordan blocks. Trace and determinant are just two coarse summaries of that structure. They are necessary conditions for similarity and quick to check, but never sufficient on their own.
Does changing basis ever change the physics, or only the description?
Only the description — that is the whole point, and also a powerful correctness check. Any quantity you claim is physical must come out the same in every basis: energies, frequencies, and expectation values are all built from invariants precisely so that they do not depend on your coordinate choice. If an answer changes when you rotate the basis, you have computed something unphysical and made an error. The freedom to change basis is thus both a tool — pick the frame where the work is easiest — and a diagnostic: real observables are the ones that stand still while the coordinates spin.