Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 12

Change-of-Basis Matrices

Recommended resources

Hello! Let's get started on our next lesson.

In our previous session, we explored the concept of invertibility. We established that an invertible matrix corresponds to a linear transformation that can be perfectly reversed. I left you with a hint: this idea of reversibility is central to our next topic.

Today, we will focus on how to construct the change-of-basis matrix between two bases. We've been implicitly using the standard basis (with and ) for all our work so far. But what if we want to use a different coordinate system? A vector is a geometric object that exists independent of any coordinate system we impose on it. Changing the basis is like changing the language we use to describe that vector's location. Our goal is to build a "translator"—a matrix that converts a vector's coordinates from one basis (language) to another.

1. The Core Idea: One Vector, Many Descriptions

Imagine a single point on a map. You could describe its location using latitude and longitude, or you could describe it using its distance and bearing from a specific landmark. The point itself doesn't move, but its coordinates change depending on the reference system you choose. The same is true for vectors. A basis is just a reference system for a vector space.

To build our intuition, let's start with a classic visualization.

Change of basis | Chapter 13, Essence of linear algebra

The video 'Change of basis' from 3Blue1Brown provides an excellent visual foundation for this topic. It introduces the idea of 'Jennifer's basis' to illustrate how the same vector can have different coordinates.

Watch the first 3 minutes and 15 seconds. Focus on the core concept: a vector's coordinates are simply the scalars that tell you how to stretch and add the basis vectors to create that vector. If you change the basis vectors, the coordinate scalars must also change.

As the video shows, a vector we describe as using the standard basis is a result of the sum . In Jennifer's basis , that same vector is described by different coordinates, because it is constructed by a different linear combination, .

Our task is to find a systematic way to translate between these coordinate representations.


2. The Change-of-Basis Matrix

Let's establish some notation. Let be the standard basis of (the columns of the identity matrix ). Let be a new basis. The vectors themselves are described using standard coordinates.

A vector written in standard coordinates is just denoted . The same vector written in the coordinates of basis is denoted .

2.1 Translating from a New Basis to the Standard Basis

This is the more straightforward direction. Suppose we have a vector's coordinates in Jennifer's basis, say . This means by definition:

You might recognize this pattern. This is precisely the definition of matrix-vector multiplication!

So, the matrix whose columns are the basis vectors of (written in standard coordinates) is our translator. Let's call this matrix . The subscript reads "from to ".

Rule 1: Translating to the Standard Basis
The matrix that converts coordinates from basis to the standard basis is formed by taking the basis vectors of as its columns.

where .

This matrix is often just called the change-of-basis matrix from .

Change of basis | Chapter 13, Essence of linear algebra

Let's watch the next segment of the 3Blue1Brown video, which visualizes exactly this process.

Watch from 04:14 to 07:18. Notice how multiplying by the matrix whose columns are Jennifer's basis vectors transforms her coordinates into the vector we would see in our standard system.

2.2 Translating from the Standard Basis to a New Basis

Now for the other direction. We have a vector in standard coordinates, and we want to find its coordinates in the new basis. We can just use the equation we found above:

To solve for , we need to "undo" the matrix multiplication. This is where the last lesson comes in. Since the columns of form a basis, they are linearly independent. This means the matrix is invertible!

We can simply multiply both sides by the inverse:

Rule 2: Translating from the Standard Basis
The matrix that converts coordinates from the standard basis to a new basis is the inverse of the matrix from Rule 1.

Let's see this in action.

Change of basis | Chapter 13, Essence of linear algebra

The final segment of the 3Blue1Brown clip confirms this procedure.

Watch from 07:18 to 08:55. This part explicitly shows how the inverse matrix is used to translate a vector from our system into Jennifer's.

Test your understanding!

Let's use Jennifer's basis from the video: where and .

A vector has standard coordinates . What are its coordinates in Jennifer's basis?

Show answer
  1. Construct the change-of-basis matrix from to :
    This is the matrix whose columns are Jennifer's basis vectors.

  2. Find the inverse of this matrix:
    We need the matrix that translates from to , which is the inverse. For a 2x2 matrix , the inverse is .
    The determinant is .

  3. Multiply by the vector :

So, in Jennifer's basis, the vector is described by the coordinates . This means .


3. The General Case: From Basis to Basis

We've handled translations to and from the standard basis. What if we want to translate directly between two non-standard bases, say from to ?

We don't need a new trick. We can just use the standard basis as an intermediate step, like a common layover airport.

  1. Translate from basis to the standard basis .
  2. Translate from the standard basis to the final basis .

Let's say we have .

  1. First, find the standard coordinates: .
  2. Now, convert to the basis: .

Substituting the first equation into the second gives:

This gives us our general change-of-basis matrix, .

General Change-of-Basis Formula
Let and be two bases. Let be the matrix whose columns are the basis vectors of and be the matrix whose columns are the basis vectors of . The matrix that converts coordinates from to is:

Change of Basis Matrix for Identity Transformation Example
This diagram illustrates the general principle. To find the matrix that maps coordinates from basis \(\mathcal{V}\) to basis \(\mathcal{W}\), you express the input basis vectors (\(\mathbf{v}_1, \mathbf{v}_2\)) as linear combinations of the output basis vectors (\(\mathbf{w}_1, \mathbf{w}_2\)). The coefficients of these combinations form the columns of the change-of-basis matrix \(B\). Algebraically, this corresponds to the formula \(B = W^{-1}V\).

The notation can be a helpful guide. The matrix to go from to is . The "inner" bases in the product seem to "cancel out".


Conclusion

Today, we've untangled the process of changing coordinate systems. While the notation can seem dense at first, the underlying idea is straightforward and builds directly on concepts like matrix multiplication and inverses.

Key Takeaways:

  • A vector is a fixed entity; its coordinates are just a description relative to a chosen basis.
  • The matrix that changes coordinates from a basis to the standard basis has the vectors of as its columns.
  • The matrix that changes coordinates from the standard basis to a basis is the inverse, .
  • To change from basis to basis , you can use the standard basis as an intermediary: , where and are the matrices containing the basis vectors of and .

Preview of the Next Lesson:
Today, we learned how to change the coordinates of a vector. But what happens to a linear transformation when we change the basis? If a matrix represents a rotation in the standard basis, what matrix represents that same rotation in Jennifer's basis? In our next lesson, we will see how to transform the matrix of a linear operator from one basis to another, a process that is crucial for understanding concepts like diagonalization in both Deep Learning and Quantum Mechanics.