Switching to a new coordinate basis

 
 
 
 
 

Changing the basis from xy-coordinates to a different coordinate plane

When we first learned to graph, we defined points in space using coordinates.

Hi! I'm krista.

I create online courses to help you rock your math class. Read more.

 

For instance, the point (3,4)(3,4) told us to move 33 units from the origin horizontally toward the positive direction of the xx-axis, and 44 units vertically toward the positive direction of the yy-axis.

 
plot of the point (3,4) in rectangular coordinates
 

We’ve also learned how to define the same point with vectors. The vector v=(3,4)\vec{v}=(3,4) will point us to the same point (3,4)(3,4). So the graph of v=(3,4)\vec{v}=(3,4) is

 
sketch of the vector (3,4)
 

And we know that the same spot can be represented as a combination of the standard basis vectors i\bold{i} and j\bold{j}. The vector i=(1,0)\bold{i}=(1,0) is the vector that points to (1,0)(1,0) and the vector j=(0,1)\bold{j}=(0,1) is the vector that points to (0,1)(0,1). So we can take 33 of i\bold{i} and 44 of j\bold{j} and again get to the same point. So the graph of 3i+4j3\bold{i}+4\bold{j} is

 
the sum of the vectors 3i and 4j gives the vector (3,4)
 

In other words, up to now, plotting points has always been done using the standard basis vectors i\bold{i} and j\bold{j}, or i\bold{i}, j\bold{j}, and k\bold{k} in three dimensions. Even when we were originally learning to plot (3,4)(3,4) back in an introductory Algebra class, and we knew nothing about vectors, we were really learning to plot 3i+4j3\bold{i}+4\bold{j} in terms of the standard basis vectors, we just didn’t know it yet.

In this lesson, we want to see what it looks like to define points using different basis vectors. In other words, instead of using i=(1,0)\bold{i}=(1,0) and j=(0,1)\bold{j}=(0,1), can we use different vectors as the basis instead?

Changing the basis

Well, let’s say VV is a subspace of R2\mathbb{R}^2. And let’s say we wanted our basis vectors to be v=(2,1)\vec{v}=(2,1) and w=(1,3)\vec{w}=(1,3), such that B={v,w}B=\{\vec{v},\vec{w}\} is basis for R2\mathbb{R}^2, and we want to figure out how to use these vectors to plot the same point we’ve been working with, (3,4)(3,4).

First, we could mark off a new set of axes. Realize that in the standard basis coordinate system, the perfectly horizontal xx-axis is marked off in increments of i\bold{i}, and the perfectly vertical yy-axis is marked off in increments of j\bold{j}.

Now we want to create a new set of axes, with one axis marked off in increments of v=(2,1)\vec{v}=(2,1), and the other axis marked off in increments of w=(1,3)\vec{w}=(1,3). Because v\vec{v} and w\vec{w} are not perfectly horizontal or vertical, the v\vec{v}- and w\vec{w}-axes won’t be perfectly horizontal or vertical either. Instead, the v\vec{v}-axis will lie along v=(2,1)\vec{v}=(2,1), and the w\vec{w}-axis will lie along w=(1,3)\vec{w}=(1,3).

 
the v- and w-axes, overlaid on the x- and y-axes
 

With the new axes sketched in, notice how we’ve marked them off in increments of v=(2,1)\vec{v}=(2,1) and w=(1,3)\vec{w}=(1,3), such that we can count how many v\vec{v}s we’re moving out along the v\vec{v}-axis, and how many w\vec{w}s we’re moving out along the w\vec{w}-axis.

Now we could sketch in a grid pattern that shows the whole “vw\vec{v}\vec{w} coordinate system.”

 
vw coordinate system
 

Now to reach (3,4)(3,4), we can see that we need 11 of v\vec{v} and 11 of w\vec{w}. We can either go out one unit of v\vec{v} toward the positive direction of the v\vec{v}-axis, and then move one unit of w\vec{w} toward the positive direction of the w\vec{w}-axis, or we can go the opposite way, moving out one unit of w\vec{w} toward the positive direction of the w\vec{w}-axis and then one unit of v\vec{v} toward the positive direction of the v\vec{v}-axis. Either way, we end up at (3,4)(3,4).

 
plotting (3,4) in vw coordinate space
 

So the vector xV\vec{x}\in V can be expressed uniquely as x=v+w\vec{x}=\vec{v}+\vec{w}, and the coordinate vector of x\vec{x} in the basis BB is

[x]B=[11][\vec{x}]_B=\begin{bmatrix}1\\ 1\end{bmatrix}

Change of basis matrix

So now that we understand the concept of changing from the standard basis vectors i\bold{i} and j\bold{j} to another set of basis vectors, like v\vec{v} and w\vec{w}, let’s talk about how we’d actually go about doing that.

If we have the vectors that form the basis for the subspace, then we can use them to create a transformation matrix, called the change of basis matrix, that will change a vector from one basis to another.

For instance, earlier we changed from i=(1,0)\bold{i}=(1,0) and j=(0,1)\bold{j}=(0,1) to v=(2,1)\vec{v}=(2,1) and w=(1,3)\vec{w}=(1,3). Let’s say that v\vec{v} and w\vec{w} form the basis for the subspace VV, B={v,w}B=\{\vec{v},\vec{w}\}, and some vector x\vec{x} can be expressed uniquely as x=c1v+c2w\vec{x}=c_1\vec{v}+c_2\vec{w}. Then

[x]B=[c1c2][\vec{x}]_B=\begin{bmatrix}c_1\\ c_2\end{bmatrix}

are the coordinates of x\vec{x} relative to the basis BB. We can then set up an equation in the form A[x]B=xA[\vec{x}]_B=\vec{x}, where AA is the transformation matrix (the change of basis matrix from the standard basis to the basis BB), and [x]B[\vec{x}]_B is the vector x\vec{x} represented in terms of the basis BB.

So if we want to know how the vector x=(3,4)\vec{x}=(3,4) will be represented by the new basis given by v=(2,1)\vec{v}=(2,1) and w=(1,3)\vec{w}=(1,3), then we plug into the equation.

A[x]B=xA[\vec{x}]_B=\vec{x}

 
Screen Shot 2021-08-16 at 4.33.42 PM.png
 

To figure out how x=(3,4)\vec{x}=(3,4) would be represented in VV, we’ll solve the augmented matrix given by this equation.

 
Screen Shot 2021-08-16 at 4.34.02 PM.png
 

This tells us that the solution to the equation is [x]B=(1,1)[\vec{x}]_B=(1,1), or

 
Screen Shot 2021-08-16 at 4.34.13 PM.png
 

In other words, if we want to represent x=(3,4)\vec{x}=(3,4) in terms of the standard basis vectors i=(1,0)\bold{i}=(1,0) and j=(0,1)\bold{j}=(0,1), then we need 3i+4j3\bold{i}+4\bold{j}. But if we want to represent x=(3,4)\vec{x}=(3,4) in terms of the alternate basis v=(2,1)\vec{v}=(2,1) and w=(1,3)\vec{w}=(1,3), then we need 1v+1w1\vec{v}+1\vec{w}, or just v+w\vec{v}+\vec{w}. Which matches what we already found earlier when we sketched (3,4)(3,4) in the alternate basis.

And you can convert the other way, too. If you know you need 1v+1w1\vec{v}+1\vec{w} to get to (3,4)(3,4) in the alternate basis, you can do the matrix multiplication to find out the right combination of i\bold{i} and j\bold{j} in the standard basis.

A[x]V=xA[\vec{x}]_V=\vec{x}

 
Screen Shot 2021-08-16 at 4.34.57 PM.png
 

[2(1)+1(1)1(1)+3(1)]=[x1x2]\begin{bmatrix}2(1)+1(1)\\ 1(1)+3(1)\end{bmatrix}=\begin{bmatrix}x_1\\ x_2\end{bmatrix}

[2+11+3]=[x1x2]\begin{bmatrix}2+1\\ 1+3\end{bmatrix}=\begin{bmatrix}x_1\\ x_2\end{bmatrix}

[34]=[x1x2]\begin{bmatrix}3\\ 4\end{bmatrix}=\begin{bmatrix}x_1\\ x_2\end{bmatrix}

 
 

How to create a change of basis matrix to change from xy-coordinates into a more convenient basis


 
 

Take the course

Want to learn more about Linear Algebra? I have a step-by-step course for that. :)

 
 

 
 

Finding the combination of basis vectors

Example

Find the combination of basis vectors v=(4,3)\vec{v}=(4,-3) and w=(2,2)\vec{w}=(-2,2), where v\vec{v} and w\vec{w} are a basis for R2\mathbb{R}^2, and give x=8i6j\vec{x}=8\bold{i}-6\bold{j}.

The vector x=(8,6)\vec{x}=(8,-6) is given in terms of the standard basis, and we need to transform it into an alternate basis that’s defined by v=(4,3)\vec{v}=(4,-3) and w=(2,2)\vec{w}=(-2,2).

In other words, we’re trying to figure out how we would represent x=(8,6)\vec{x}=(8,-6), if we were doing it in terms of v\vec{v} and w\vec{w}. So let’s plug the values we’ve been given into the matrix equation.

A[x]B=xA[\vec{x}]_B=\vec{x}

Screen Shot 2021-08-16 at 4.35.14 PM.png

To find the representation of x\vec{x} in the alternate basis, [x]B[\vec{x}]_B, we’ll solve the augmented matrix.

Screen Shot 2021-08-16 at 4.35.45 PM.png

This tells us that

[x]B=[20][\vec{x}]_B=\begin{bmatrix}2\\ 0\end{bmatrix}

In other words, we need 22 of v=(4,3)\vec{v}=(4,-3) and 00 of w=(2,2)\vec{w}=(-2,2) in order to get to x=(8,6)\vec{x}=(8,-6), in the alternate basis space defined by v\vec{v} and w\vec{w}. So if we want to sketch this result, we first sketch in our v\vec{v}- and w\vec{w}-axes.

sketch of the primary v- and w-axes

Then we move out 22 v\vec{v}-units in the positive direction of the v\vec{v}-axis, and 00 w\vec{w}-units along the w\vec{w}-axis (which means we don’t move anywhere at all), and we arrive at x=(8,6)\vec{x}=(8,-6).

moving out along the v-axis to (8,-6)

If we have the vectors that form the basis for the subspace, then we can use them to create a transformation matrix, called the change of basis matrix, that will change a vector from one basis to another.

When AA is invertible

If the basis transformation matrix is invertible (if it has an inverse), then we can multiply A1A^{-1} by both sides of A[x]B=xA[\vec{x}]_B=\vec{x}.

A[x]B=xA[\vec{x}]_B=\vec{x}

A1A[x]B=A1xA^{-1}A[\vec{x}]_B=A^{-1}\vec{x}

I[x]B=A1xI[\vec{x}]_B=A^{-1}\vec{x}

[x]B=A1x[\vec{x}]_B=A^{-1}\vec{x}

Now we have an equation that calculates directly the expression of x\vec{x} in the alternate basis.

So if we were to use the values from the last example, we could have first found A1A^{-1} from AA.

Screen Shot 2021-08-16 at 4.36.14 PM.png

Now that the left side of the augmented matrix is in reduced row-echelon form, the right side is the inverse matrix A1A^{-1}, so

Screen Shot 2021-08-16 at 4.36.26 PM.png

Now to find the representation of x=(8,6)\vec{x}=(8,-6) in BB, we simply multiply the inverse matrix by the vector.

[x]B=A1x[\vec{x}]_B=A^{-1}\vec{x}

Screen Shot 2021-08-16 at 4.36.49 PM.png

[x]B=[1(8)+1(6)32(8)+2(6)][\vec{x}]_B=\begin{bmatrix}1(8)+1(-6)\\ \frac32(8)+2(-6)\end{bmatrix}

[x]B=[861212][\vec{x}]_B=\begin{bmatrix}8-6\\ 12-12\end{bmatrix}

[x]B=[20][\vec{x}]_B=\begin{bmatrix}2\\ 0\end{bmatrix}

This confirms the result we found before.

 
 

Get access to the complete Linear Algebra course