User:IssaRice/Linear algebra/Change of basis example in two dimensions

From Machinelearning
Revision as of 00:45, 9 January 2019 by IssaRice (talk | contribs) (Undo revision 1309 by IssaRice (talk))

This example comes from this video. To make it easier to go back and forth between this page and the video, the notation on this page tries to follow that of the video (where the discussion overlaps), but we distinguish between matrices and vectors.

We are working in R2, the plane. To be slightly pedantic, we will distinguish between matrices and vectors: [10]R2,1 and (1,0)R2.

Jennifer's basis vectors: b1:=(2,1) and b2:=(1,1).

To Jennifer, b1 looks like (1,0) and b2 looks like (0,1).

If Jennifer says "(1,2)", to us (in the standard basis) this is the vector 1b1+2b2=1(2,1)+2(1,1)=(4,1).

We can also write the above calculation as [b1b2][12]=[2111][12]=[41].

Notice that [b1b2]e1=b1 and [b1b2]e2=b2, i.e., this matrix transforms our (standard) basis vectors into Jennifer's basis vectors.

How can we write this using change of basis notation? When Jennifer says "(1,2)", this is the vector vR2 such that, when written in Jennifer's coordinate system, it has coordinates (1,2). In other words, it is the vector v such that [v](b1,b2)=[12]. To find out what this vector means in our coordinate system, we must compute [v](e1,e2).

We can write [I](b1,b2)(e1,e2)[v](b1,b2)=[v](e1,e2).

Now consider the linear transformation T:R2R2 defined by Te1:=b1 and Te2:=b2. Since (e1,e2) is a basis of R2, there is exactly one such linear transformation, i.e., our specification is well-defined. What is the matrix of T? We can look at where it takes the standard basis vectors to see that the first column is b1 and the second column is b1, i.e., we have [T](e1,e2)(e1,e2)=[b1b2]=[2111]=[I](b1,b2)(e1,e2).

To summarize, we can write the same equation in multiple ways:

Equation Description
1b1+2b2=1[21]+2[11]=[41] Linear combination of Jennifer's basis vectors
[b1b2][12]=[2111][12]=[41] Matrix multiplication
[I](b1,b2)(e1,e2)[v](b1,b2)=[v](e1,e2) Change of coordinate equation
T(1e1+2e2)=1b1+2b2
[T](e1,e2)(e1,e2)[12]=[T](e1,e2)(e1,e2)[(1,2)](e1,e2)=[T(1,2)](e1,e2)=[(4,1)](e1,e2)=(4,1)