Change of Basis
Change of Basis
Changing Coordinates in R2
The standard basis for R2 is {e1 , e2 }. Any vector x in R2 can be expressed as a linear
combination
x = x 1 e1 + x 2 e2
The scalars x1 and x2 can be thought of as the coordinates of x with respect to the
standard basis. Actually, for any basis {y, z} for R2 , it follows from Theorem 3.3.2 that
a given vector x can be represented uniquely as a linear combination
x = αy + βz
The scalars α and β are the coordinates of x with respect to the basis {y, z}. Let us order
the basis elements so that y is considered the first basis vector and z is considered the
second, and denote the ordered basis by [y, z]. We can then refer to the vector (α, β)T
as the coordinate vector of x with respect to [y, z]. Note that, if we reverse the order
of the basis vectors and take [z, y], then we must also reorder the coordinate vector.
The coordinate vector of x with respect to [z, y] will be (β, α)T . When we refer to a
basis using subscripts, such as {u1 , u2 }, the subscripts assign an ordering to the basis
vectors.
EXAMPLE 1 Let y = (2, 1)T and z = (1, 4)T . The vectors y and z are linearly independent and
hence they form a basis for R2 . The vector x = (7, 7)T can be written as a linear
3.5 Change of Basis 145
combination
x = 3y + z
Thus, the coordinate vector of x with respect to [y, z] is (3, 1)T . Geometrically, the
coordinate vector specifies how to get from the origin to the point (7, 7) by moving
first in the direction of y and then in the direction of z. If, instead, we treat z as our first
basis vector and y as the second basis vector, then
x = z + 3y
The coordinate vector of x with respect to the ordered basis [z, y] is (1, 3)T . Geomet-
rically, this vector tells us how to get from the origin to (7, 7) by moving first in the
direction of z and then in the direction of y (see Figure 3.5.1).
7
3y
z
4 x
z 3y
y
2 4 6 7
Figure 3.5.1.
The initial vector x0 can be written as a linear combination of the new basis vectors:
⎧ ⎫ ⎧ ⎫ ⎧ ⎫
x0 = ⎪
⎩ 0.30 ⎪
⎭ = 0.25 ⎪
⎩1⎪ ⎩ −1 ⎪
⎭ − 0.05 ⎪ ⎭ = 0.25u1 − 0.05u2
0.70 3 1
It follows that
xn = An x0 = 0.25u1 − 0.05(0.92)n u2
The entries of the second component approach 0 as n gets large. In fact, for n > 27,
the entries will be small enough so that the rounded values of xn are all equal to
⎧ ⎫
⎩ 0.25 ⎪
0.25u1 = ⎪ ⎭
0.75
Au j = λ j u j j = 1, 2, . . . , n (1)
In many applied problems involving an n × n matrix A, the key to solving the problem
often is to find basis vectors u1 , . . . , un and scalars λ1 , . . . , λn such that (1) is satisfied.
The new basis vectors can be thought of as a natural coordinate system to use with the
matrix A, and the scalars can be thought of as natural frequencies for the basis vectors.
We will study these types of applications in more detail in Chapter 6.
3.5 Change of Basis 147
Changing Coordinates
Once we have decided to work with a new basis, we have the problem of finding the
coordinates with respect to that basis. Suppose, for example, that instead of using the
standard basis [e1 , e2 ] for R2 , we wish to use a different basis, say,
⎧ ⎫ ⎧ ⎫
⎩3⎪
u1 = ⎪ ⎭ , u2 = ⎪ ⎩1⎪ ⎭
2 1
Indeed, we may want to switch back and forth between the two coordinate systems.
Let us consider the following two problems:
I. Given a vector x = (x1 , x2 )T , find its coordinates with respect to u1 and u2 .
II. Given a vector c1 u1 + c2 u2 , find its coordinates with respect to e1 and e2 .
We will solve II first, since it turns out to be the easier problem. To switch bases from
{u1 , u2 } to {e1 , e2 }, we must express the old basis elements u1 and u2 in terms of the
new basis elements e1 and e2 . Thus, we have
u1 = 3e1 + 2e2
u2 = e1 + e2
It then follows that
c1 u1 + c2 u2 = (3c1 e1 + 2c1 e2 ) + (c2 e1 + c2 e2 )
= (3c1 + c2 )e1 + (2c1 + c2 )e2
Thus, the coordinate vector of c1 u1 + c2 u2 with respect to {e1 , e2 } is
⎧ ⎫ ⎧ ⎫⎧ ⎫
⎪ 3c + c ⎪ ⎪ 3 1 ⎪
⎭⎪⎩ c1 ⎪
x=⎩ 1 2 ⎭=⎩ ⎭
2c1 + c2 2 1 c2
If we set ⎧ ⎫
U = (u1 , u2 ) = ⎪
⎩3 1⎪ ⎭
2 1
then, given any coordinate vector c with respect to {u1 , u2 }, to find the corresponding
coordinate vector x with respect to {e1 , e2 }, we simply multiply U times c:
x = Uc (2)
The matrix U is called the transition matrix from the ordered basis {u1 , u2 } to the basis
{e1 , e2 }.
To solve problem I, we must find the transition matrix from {e1 , e2 } to {u1 , u2 }.
The matrix U in (2) is nonsingular, since its column vectors, u1 and u2 , are linearly
independent. It follows from (2) that
c = U −1 x
Thus, given a vector
x = (x1 , x2 )T = x1 e1 + x2 e2
we need only multiply by U −1 to find its coordinate vector with respect to {u1 , u2 }.
U −1 is the transition matrix from {e1 , e2 } to {u1 , u2 }.
148 Chapter 3 Vector Spaces
EXAMPLE 2 Let u1 = (3, 2)T , u2 = (1, 1)T , and x = (7, 4)T . Find the coordinates of x with respect
to u1 and u2 .
Solution
By the preceding discussion, the transition matrix from {e1 , e2 } to {u1 , u2 } is the inverse
of ⎧ ⎫
U = (u1 , u2 ) = ⎪⎩3 1⎪ ⎭
2 1
Thus, ⎧ ⎫⎧ ⎫ ⎧ ⎫
⎩ 1 −1 ⎪
c = U −1 x = ⎪ ⎭⎪⎩7⎪ ⎩ 3⎪
⎭=⎪ ⎭
−2 3 4 −2
is the desired coordinate vector and
x = 3u1 − 2u2
EXAMPLE 3 Let b1 = (1, −1)T and b2 = (−2, 3)T . Find the transition matrix from {e1 , e2 } to
{b1 , b2 } and the coordinates of x = (1, 2)T with respect to {b1 , b2 }.
Solution
The transition matrix from {b1 , b2 } to {e1 , e2 } is
⎧ ⎫
B = (b1 , b2 ) = ⎪ ⎩ 1 −2 ⎪ ⎭
−1 3
and hence the transition matrix from {e1 , e2 } to {b1 , b2 } is
⎧ ⎫
B −1 = ⎪ ⎩3 2⎪ ⎭
1 1
The coordinate vector of x with respect to {b1 , b2 } is
⎧ ⎫⎧ ⎫ ⎧ ⎫
c = B −1 x = ⎪⎩3 2⎪ ⎭⎪ ⎩1⎪ ⎭=⎪⎩7⎪⎭
1 1 2 3
and hence
x = 7b1 + 3b2
Now let us consider the general problem of changing from one basis [v1 , v2 ] of
R2 to another basis {u1 , u2 }. In this case, we assume that, for a given vector x, its
coordinates with respect to {v1 , v2 } are known:
x = c1 v1 + c2 v2
Now we wish to represent x as a sum d1 u1 + d2 u2 . Thus, we must find scalars d1 and
d2 so that
c1 v1 + c2 v2 = d1 u1 + d2 u2 (3)
If we set V = (v1 , v2 ) and U = (u1 , u2 ), then equation (3) can be written in matrix
form:
V c = Ud
3.5 Change of Basis 149
It follows that
d = U −1 V c
Thus, given a vector x in R2 and its coordinate vector c with respect to the ordered
basis {v1 , v2 }, to find the coordinate vector of x with respect to the new basis {u1 , u2 },
we simply multiply c by the transition matrix S = U −1 V .
EXAMPLE 4 Find the transition matrix corresponding to the change of basis from {v1 , v2 } to
{u1 , u2 }, where
⎧ ⎫ ⎧ ⎫ ⎧ ⎫ ⎧ ⎫
⎩5⎪
v1 = ⎪ ⎭, ⎩7⎪
v2 = ⎪ ⎭ and ⎩3⎪
u1 = ⎪ ⎭, ⎩1⎪
u2 = ⎪ ⎭
2 3 2 1
Solution
The transition matrix from {v1 , v2 } to {u1 , u2 } is given by
⎧ ⎫⎧ ⎫ ⎧ ⎫
−1 ⎪ 1 −1 ⎪ ⎪ 5 7 ⎪ ⎪ 3 4 ⎪
S=U V =⎩ ⎭⎩ ⎭=⎩ ⎭
−2 3 2 3 −4 −5
The change of basis from {v1 , v2 } to {u1 , u2 } can also be viewed as a two-step
process. First we change from {v1 , v2 } to the standard basis, {e1 , e2 }, and then we
change from the standard basis to {u1 , u2 }. Given a vector x in R2 , if c is the coordinate
vector of x with respect to {v1 , v2 } and d is the coordinate vector of x with respect to
{u1 , u2 }, then
c1 v1 + c2 v2 = x1 e1 + x2 e2 = d1 u1 + d2 u2
Since V is the transition matrix from {v1 , v2 } to {e1 , e2 } and U −1 is the transition matrix
from {e1 , e2 } to {u1 , u2 }, it follows that
Vc = x and U −1 x = d
and hence
U −1 V c = U −1 x = d
As before, we see that the transition matrix from {v1 , v2 } to {u1 , u2 } is U −1 V (see
Figure 3.5.2).
V
[v1, v2] [e1, e2]
U –1
U –1V
[u1, u2]
Figure 3.5.2.