Historical Context & Motivation
Imagine you and a friend are describing the same park, but your friend uses a totally different map. The park hasn't changed—only the way you describe it has. That's the key idea behind similarity transformations and change of basis in linear algebra. These ideas let mathematicians describe the same operation using different coordinate systems. This topic is a central part of college-level Linear Algebra, typically studied after Calculus, and builds on familiarity with matrices, matrix multiplication, and the concept of a determinant.
Throughout history, mathematicians needed ways to simplify complicated matrix equations. They discovered that by switching to a smarter set of axes, a messy matrix could become neat and diagonal. This insight connects directly to eigenvalues and eigenvectors, which we'll explore in this lesson.
The central question is: if a matrix represents a transformation like stretching or rotating, can we find a different set of coordinates where that transformation looks as simple as possible? The answer is yes—and that's exactly what similarity transformations accomplish.
Core Principles & Definitions
Before we dive into formulas, let's nail down the key vocabulary. A basis is a set of direction arrows (vectors) that act like the axes on a graph. The standard basis in 2D is just the usual x-axis and y-axis. A change of basis means switching to a new set of axes. The transformation itself doesn't change—only the numbers we use to describe it.
Two important background tools used throughout this lesson: the determinant of a square matrix is a single number that measures how much the matrix scales areas (or volumes); for a 2×2 matrix [[a, b], [c, d]] it equals ad − bc. The inverse of a matrix P, written P⁻¹, is the matrix that 'undoes' P: multiplying P by P⁻¹ gives the identity matrix (the matrix equivalent of the number 1). A matrix has an inverse only when its determinant is not zero.
Basis
Change-of-Basis Matrix (P)
Similar Matrices
Eigenvalues Stay the Same
Diagonalization
Visual Explanation — Two Bases, One Transformation
The diagram below shows a single linear transformation applied to a vector. On the left, we see the standard basis (the usual x- and y-axes). On the right, we see a new basis made from eigenvectors. Notice how the transformation matrix looks much simpler in the eigenvector basis—it becomes diagonal!
In the left panel, the matrix A = [[2, 1], [0, 3]] has an off-diagonal entry (the 1 in the top-right). That entry mixes the x- and y-directions together. In the right panel, after we change to the eigenvector basis, the same transformation becomes D = [[2, 0], [0, 3]]—a diagonal matrix. Each axis just gets stretched by its own eigenvalue, with no mixing at all. That's the power of choosing the right basis.
Mathematical Framework
Let's formalize what we saw in the diagram. Suppose A is a matrix describing a linear transformation in the standard basis. If we pick a new basis and organize those new basis vectors as columns of a matrix P, then the matrix describing the same transformation in the new basis is given by a formula called the similarity transformation.
When the new basis is made of eigenvectors, something beautiful happens. The resulting matrix B becomes diagonal. Its diagonal entries are the eigenvalues.
A key fact about similar matrices is that they always share the same eigenvalues. Here is a brief sketch of why: the eigenvalues of a matrix M are found by solving det(M − λI) = 0, where det denotes the determinant and I is the identity matrix. For B = P⁻¹AP, one can show (using properties of determinants) that det(B − λI) = det(A − λI). Because the two expressions are equal, they have the same solutions, so A and B have identical eigenvalues.
Properties Preserved Under Similarity
One of the most important things about similar matrices is that they share many key properties. Changing the basis is like looking at a sculpture from a different angle—the sculpture's weight, height, and material stay the same even though it looks different. The following diagram and table show what is preserved and what can change.
| Property | Preserved? | Why? |
|---|---|---|
| Eigenvalues | ✅ Yes | Same eigenvalue equation det(M − λI) = 0 for both matrices |
| Determinant | ✅ Yes | det(P⁻¹AP) = det(A) because det(P⁻¹)·det(P) = 1 |
| Trace (sum of diagonal) | ✅ Yes | Trace equals the sum of eigenvalues |
| Rank | ✅ Yes | Multiplying by a matrix with nonzero determinant doesn't change rank |
| Individual entries | ❌ No | Entries depend on the basis chosen |
| Eigenvectors | ❌ No (coordinates change) | The direction is the same, but its coordinates differ per basis |
Worked Example — Diagonalizing a 2×2 Matrix
Let's walk through a complete example. We'll start with a matrix A, find its eigenvalues and eigenvectors, build the change-of-basis matrix P, and verify that P⁻¹AP gives us a diagonal matrix.
Strengths & Limitations of Diagonalization
Diagonalization through similarity transformations is incredibly powerful, but it doesn't work for every matrix. Let's compare the advantages and the situations where it runs into trouble.
| Strengths | Limitations |
|---|---|
| Makes matrix powers easy: Aⁿ = P Dⁿ P⁻¹, and Dⁿ is trivial to compute (just raise each diagonal entry to the nth power). | Not all matrices are diagonalizable. Some lack enough independent eigenvectors. |
| Reveals the eigenvalues directly on the diagonal of D. | Repeated eigenvalues can cause problems if the eigenspace is too small. |
| Simplifies systems of differential equations and recurrence relations. | Computing P⁻¹ can be numerically unstable for large matrices. |
| Provides deep geometric insight about how a transformation stretches space. | For non-diagonalizable matrices, a more advanced technique called Jordan Normal Form is needed. This is a college-level topic beyond the scope of this lesson. |
Connection to Advanced Topics
Similarity transformations are a gateway to many advanced ideas in mathematics and science studied at the college level and beyond. Once you understand how changing a basis can simplify a matrix, you're ready to explore deeper concepts. The table below compares what we've learned with some topics you might encounter in future courses.
| This Lesson | Advanced Extension |
|---|---|
| Diagonalization: D = P⁻¹AP | Jordan Normal Form: a college-level technique that handles matrices which can't be fully diagonalized, by allowing small 1s above the diagonal in an otherwise near-diagonal form. |
| Change of basis with any invertible P | Orthogonal diagonalization: restricts P to be an orthogonal matrix (one where Pᵀ = P⁻¹), preserving lengths and angles. Used for symmetric matrices in advanced Linear Algebra. |
| Finding eigenvalues of a single matrix | Spectral Theorem: a college-level result that guarantees real eigenvalues and orthogonal eigenvectors for symmetric matrices. |
| 2×2 and 3×3 examples | Singular Value Decomposition (SVD): a college-level generalization that extends diagonalization ideas to any matrix, even non-square ones. It powers modern data science and machine learning. |
In physics, quantum mechanics relies heavily on similarity and unitary transformations to switch between different representations of a system. In computer graphics, every time a 3D model is rotated on screen, a change-of-basis matrix is at work behind the scenes. Mastering similarity transformations gives you a powerful toolkit that extends far beyond the classroom.
Practice Problems
Lesson Summary
A similarity transformation rewrites a matrix A as B = P⁻¹AP, using a change-of-basis matrix P whose determinant is nonzero (so that its inverse P⁻¹ exists). The matrices A and B represent the same linear transformation in different coordinate systems. Because of this, they share every intrinsic property: eigenvalues, determinant, trace, rank, and the eigenvalue equation det(M − λI) = 0.
When the columns of P are eigenvectors of A, the result B becomes a diagonal matrix D whose diagonal entries are the eigenvalues. This process—called diagonalization—makes computations like matrix powers dramatically simpler (Aⁿ = P Dⁿ P⁻¹). Not every matrix can be diagonalized; when there aren't enough independent eigenvectors, college-level techniques such as Jordan Normal Form provide the next-best simplification. This topic is a core part of college-level Linear Algebra and connects to many fields including physics, computer graphics, and data science.