back to the math tutorial index back to the math tutorial index

Change of Basis

Let V be a vector space and let S = {v1,v2, ¼, vn} be a set of vectors in V. Recall that S forms a basis for V if the following two conditions hold:

  1. S is linearly independent.

  2. S spans V.

If S = {v1,v2, ¼, vn} is a basis for V, then every vector v Î V can be expressed uniquely as a linear combination of v1,v2, ¼, vn:
v = c1v1 + c2v2 + ¼+ cnvn.
Think of é
ê
ê
ê
ê
ê
ë
c1
c2
:
cn
ù
ú
ú
ú
ú
ú
û
as the coordinates of v relative to the basis S. If V has dimension n, then every set of n linearly independent vectors in V forms a basis for V. In every application, we have a choice as to what basis we use. In this tutorial, we will describe the transformation of coordinates of vectors under a change of basis.

We will focus on vectors in R2, although all of this generalizes to Rn. The standard basis in R2 is {[1 0]T,[0 1]T}. We specify other bases with reference to this rectangular coordinate system.

Let B = {u,w} and B¢ = {u¢,w¢} be two bases for R2. For a vector v Î V, given its coordinates [v]B in basis B we would like to be able to express v in terms of its coordinates [v]B¢ in basis B¢, and vice versa.

Suppose the basis vectors u¢ and w¢ fo B¢ have the following coordinates relative to the basis B:

[ u¢ ]B
=
é
ê
ë
a
b
ù
ú
û
[ w¢ ]B
=
é
ê
ë
c
d
ù
ú
û
.
This means that
u¢
=
au + bw
w¢
=
cu + dw

The change of coordinates matrix from B¢ to B

P = é
ê
ê
ê
ë
a
c
b
d
ù
ú
ú
ú
û
governs the change of coordinates of v Î V under the change of basis from B¢ to B:
[v]B = P[v]B¢ = é
ê
ê
ê
ë
a
c
b
d
ù
ú
ú
ú
û
[v]B¢.
That is, if we know the coordinates of v relative to the basis B¢, multiplying this vector by the change of coordinates matrix gives us the coordinates of v relative to the basis B.

Why?

The transition matrix P is invertible. In fact, if P is the change of coordinates matrix from B¢ to B, then P-1 is the change of coordinates matrix from B to B¢:

[v]B¢ = P-1[v]B

Example

Let B = {[1 0]T,[0 1]T} and B¢ = {[3 1]T,[-2 1]T}. The change of basis matrix from B¢ to B is

P = é
ê
ë
3
-2
1
1
ù
ú
û
.
The vector v with coordinates [v]B¢ = [2 1]T relative to the basis B¢ has coordinates
[v]B = é
ê
ë
3
-2
1
1
ù
ú
û
é
ê
ë
2
1
ù
ú
û
= é
ê
ë
4
3
ù
ú
û
relative to the basis B. Since
P-1 = é
ê
ë
1/5
2/5
-1/5
3/5
ù
ú
û
,
we can verify that
[v]B¢ = é
ê
ë
1/5
2/5
-1/5
3/5
ù
ú
û
é
ê
ë
4
3
ù
ú
û
= é
ê
ë
2
1
ù
ú
û
which is what we started with.

In the following example, we introduce a third basis to look at the relationship between two non-standard bases.

Example

Let B¢¢ = ì
í
î
é
ê
ë
2
1
ù
ú
û
, é
ê
ë
1
4
ù
ú
û
ü
ý
þ
.
To find the change of coordinates matrix from the basis B¢ of the previous example to B¢¢, we first express the basis vectors

é
ê
ë
3
1
ù
ú
û
and
é
ê
ë
-2
1
ù
ú
û
of B¢ as linear combinations of the basis vectors
é
ê
ë
2
1
ù
ú
û
and
é
ê
ë
1
4
ù
ú
û
of B¢¢:

é
ê
ë
3
1
ù
ú
û
=
11
7
é
ê
ë
2
1
ù
ú
û
- 1
7
é
ê
ë
1
4
ù
ú
û
é
ê
ë
-2
1
ù
ú
û
=
-9
7
é
ê
ë
2
1
ù
ú
û
+ 4
7
é
ê
ë
1
4
ù
ú
û
      
Set é
ê
ë
3
1
ù
ú
û
=
a é
ê
ë
2
1
ù
ú
û
+ b é
ê
ë
1
4
ù
ú
û
é
ê
ë
-2
1
ù
ú
û
=
c é
ê
ë
2
1
ù
ú
û
+ d é
ê
ë
1
4
ù
ú
û
and solve the resulting systems for a,b,c, and d.

Thus, the transition matrix from B¢ to B¢¢ is

é
ê
ê
ê
ê
ê
ê
ê
ê
ë
11
7
-9
7
-1
7
4
7
ù
ú
ú
ú
ú
ú
ú
ú
ú
û
.
The vector v with coordinates [2 1]T relative to the basis B¢ has coordinates
é
ê
ê
ê
ê
ê
ê
ê
ê
ë
11
7
-9
7
-1
7
4
7
ù
ú
ú
ú
ú
ú
ú
ú
ú
û
é
ê
ë
2
1
ù
ú
û
= é
ê
ê
ê
ê
ê
ê
ê
ê
ë
13
7
2
7
ù
ú
ú
ú
ú
ú
ú
ú
ú
û
relative to the basis B¢¢. This is, back in the standard basis,
[ v ]B = 13
7
é
ê
ë
2
1
ù
ú
û
+ 2
7
é
ê
ë
1
4
ù
ú
û
= é
ê
ë
4
3
ù
ú
û
,
which agrees with the results of the previous example.

Rotation of the Coordinate Axes

Suppose we obtain a new coordinate system from the standard rectangular coordinate system by rotating the axes counterclockwise by an angle q. The new basis B¢ = {u¢, v¢} of unit vectors along the x¢- and y¢-axes, respectively, has coordinates

[u¢]B
=
é
ê
ë
cosq
sinq
ù
ú
û
[v¢]B
=
é
ê
ë
-sinq
cosq
ù
ú
û
in the original coordinate system. Thus,
P = é
ê
ê
ê
ë
cosq
-sinq
sinq
cosq
ù
ú
ú
ú
û
and P-1 = é
ê
ê
ê
ë
cosq
sinq
-sinq
cosq
ù
ú
ú
ú
û
A vector [x y]TB in the original coordinate system has coordinates [x¢ y¢]TB¢ given by
é
ê
ë
x¢
y¢
ù
ú
û


B¢ 
= é
ê
ë
cosq
sinq
-sinq
cosq
ù
ú
û
é
ê
ë
x
y
ù
ú
û


B 
in the rotated coordinate system.

Example

The vector [v]B = [3 2]T in the original coordinate system has coordinates

[v]B¢ = é
ê
ê
ê
ê
ê
ê
ê
ê
ë
Ö2
2
Ö2
2
- Ö2
2
Ö2
2
ù
ú
ú
ú
ú
ú
ú
ú
ú
û
é
ê
ë
3
2
ù
ú
û
= é
ê
ê
ê
ê
ê
ê
ê
ê
ë
5Ö2
2
- Ö2
2
ù
ú
ú
ú
ú
ú
ú
ú
ú
û
in the coordinate system formed by rotating the axes by 45°.

In the following Exploration, set up your own basis in R2 and compare the coordinates of vectors in your basis to their coordinates in the standard basis.

Exploration






Key Concepts

Let B = {u,v} and B¢ = { u¢, v¢ } be two bases for R2. If [u]B = [a b]T and [v]B = [c d]T, then

P = é
ê
ê
ê
ë
a
c
b
d
ù
ú
ú
ú
û
is the change of coordinates matrix from B¢ to B and P-1 is the change of coordinates matrix from B to B¢. That is, for any v Î V,

[v]B
=
P[v]B¢
[v]B¢
=
P-1[v]B.