Lecture 2: Change of Basis

Similar documents
Lecture 19: The Determinant

Lecture 8: A Crash Course in Linear Algebra

Lecture 4: Applications of Orthogonality: QR Decompositions

Lecture 6: Lies, Inner Product Spaces, and Symmetric Matrices

Lecture 6: Finite Fields

Lecture 3: Latin Squares and Groups

Lecture 4: Constructing the Integers, Rationals and Reals

Recitation 8: Graphs and Adjacency Matrices

What if the characteristic equation has a double root?

Lecture 2: Vector Spaces, Metric Spaces

Lecture 5: Latin Squares and Magic

Divisibility = 16, = 9, = 2, = 5. (Negative!)

Lecture 3: Sizes of Infinity

Calculus II. Calculus II tends to be a very difficult course for many students. There are many reasons for this.

STEP Support Programme. Hints and Partial Solutions for Assignment 17

Lecture 10: Everything Else

Modern Algebra Prof. Manindra Agrawal Department of Computer Science and Engineering Indian Institute of Technology, Kanpur

c 1 v 1 + c 2 v 2 = 0 c 1 λ 1 v 1 + c 2 λ 1 v 2 = 0

[Disclaimer: This is not a complete list of everything you need to know, just some of the topics that gave people difficulty.]

Introduction to Algebra: The First Week

AN ALGEBRA PRIMER WITH A VIEW TOWARD CURVES OVER FINITE FIELDS

Lecture 14: The Rank-Nullity Theorem

Recitation 5: Elementary Matrices

Row Reduction

Lesson 6-1: Relations and Functions

Algebra Review. Finding Zeros (Roots) of Quadratics, Cubics, and Quartics. Kasten, Algebra 2. Algebra Review

Linear Algebra, Summer 2011, pt. 2

Lecture 1 Systems of Linear Equations and Matrices

Basics of Proofs. 1 The Basics. 2 Proof Strategies. 2.1 Understand What s Going On

To factor an expression means to write it as a product of factors instead of a sum of terms. The expression 3x

Linear algebra and differential equations (Math 54): Lecture 10

Discrete Structures Proofwriting Checklist

Lecture 2: Eigenvalues and their Uses

Recitation 9: Probability Matrices and Real Symmetric Matrices. 3 Probability Matrices: Definitions and Examples

Quadratic Equations Part I

What if the characteristic equation has complex roots?

Math 5a Reading Assignments for Sections

Lecture 7: Differential Equations

Math 308 Midterm Answers and Comments July 18, Part A. Short answer questions

Lecture 1: Period Three Implies Chaos

Gaussian elimination

March 19 - Solving Linear Systems

Chapter 4. Solving Systems of Equations. Chapter 4

MITOCW ocw-18_02-f07-lec02_220k

1 GSW Sets of Systems

Solution to Proof Questions from September 1st

Lecture 9: Taylor Series

A non-turing-recognizable language

Some Review Problems for Exam 1: Solutions

#29: Logarithm review May 16, 2009

Math 138: Introduction to solving systems of equations with matrices. The Concept of Balance for Systems of Equations

Roberto s Notes on Linear Algebra Chapter 9: Orthogonality Section 2. Orthogonal matrices

Problem Solving in Math (Math 43900) Fall 2013

How to write maths (well)

Algebra. Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed.

I started to think that maybe I could just distribute the log so that I get:

What we still don t know about addition and multiplication. Carl Pomerance, Dartmouth College Hanover, New Hampshire, USA

22A-2 SUMMER 2014 LECTURE 5

Last Time. x + 3y = 6 x + 2y = 1. x + 3y = 6 y = 1. 2x + 4y = 8 x 2y = 1. x + 3y = 6 2x y = 7. Lecture 2

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note Introduction to Linear Algebra the EECS Way

Math Lecture 3 Notes

Mathematics GRADE 8 Teacher Packet

x y = 1, 2x y + z = 2, and 3w + x + y + 2z = 0

irst we need to know that there are many ways to indicate multiplication; for example the product of 5 and 7 can be written in a variety of ways:

Quiz 07a. Integers Modulo 12

The Integers. Math 3040: Spring Contents 1. The Basic Construction 1 2. Adding integers 4 3. Ordering integers Multiplying integers 12

Math 31 Lesson Plan. Day 5: Intro to Groups. Elizabeth Gillaspy. September 28, 2011

Volume in n Dimensions

Methods of Mathematics

Algebra Exam. Solutions and Grading Guide

Math 291-2: Lecture Notes Northwestern University, Winter 2016

Alex s Guide to Word Problems and Linear Equations Following Glencoe Algebra 1

Conceptual Explanations: Simultaneous Equations Distance, rate, and time

Vector Spaces. 9.1 Opening Remarks. Week Solvable or not solvable, that s the question. View at edx. Consider the picture

What is proof? Lesson 1

Announcements Wednesday, October 10

I started to think that maybe I could just distribute the log so that I get:

Numerical Methods for Inverse Kinematics

15. NUMBERS HAVE LOTS OF DIFFERENT NAMES!

( ) is called the dependent variable because its

Q: How can quantum computers break ecryption?

Differential Equations

MAT1302F Mathematical Methods II Lecture 19

CHAPTER 7: TECHNIQUES OF INTEGRATION

In case (1) 1 = 0. Then using and from the previous lecture,

Lecture 3: Special Matrices

Mathematical Statements

2.2 Graphs of Functions

P vs. NP. Data Structures and Algorithms CSE AU 1

Review Solutions, Exam 2, Operations Research

CS1800: Sequences & Sums. Professor Kevin Gold

Error Correcting Codes Prof. Dr. P Vijay Kumar Department of Electrical Communication Engineering Indian Institute of Science, Bangalore

MITOCW watch?v=b1ekhyc9tto

1 Introduction. 2 Determining what the J i blocks look like. December 6, 2006

CSE 241 Class 1. Jeremy Buhler. August 24,

TheFourierTransformAndItsApplications-Lecture28

Page 1. These are all fairly simple functions in that wherever the variable appears it is by itself. What about functions like the following, ( ) ( )

base 2 4 The EXPONENT tells you how many times to write the base as a factor. Evaluate the following expressions in standard notation.

Math 4310 Solutions to homework 1 Due 9/1/16

Lecture 14, Thurs March 2: Nonlocal Games

Transcription:

Math 108 Lecture 2: Change of asis Professor: Padraic artlett Week 2 UCS 2014 On Friday of last week, we asked the following question: given the matrix A, 1 0 is there a quick way to calculate large powers of this matrix? Our answer to this question turned out to be yes! We did this by writing 1 1 1+ 2 1+ 2 0 1 1 0 0 1 1+ 2 1+ 2, 1+ 2 1+ 2 1 1+ 2 1+ 2 which is particularly nice because it writes A in the form UDU 1, where D is a diagonal matrix ie its only nonzero entries are on its diagonal This lets us find A k very quickly, as it is just UD U 1 UD U 1 UDU 1 UD k U 1, which is very easy to calculate! In general, this problem given a matrix A, how can we calculate A n quickly is something that mathematicians and scientists run into constantly We came up with a solution for one specific matrix on Friday; but how can we do this in general? There are a lot of techniques people have came up with when examining this problem One particularly useful idea is the following concept of a change of basis, which we study in the next section! 1 Change of asis Here s a quick motivational question: suppose that we re working in R 2 What is the vector 2, 3? y 2,3 x Ok: this seems dumb ut there is a real question here: what do we mean when we write down the vector 2, 3? Well: usually we mean that we have the vector in the xy-plane 1

whose x-coördinate is 2, and whose y-coördinate is 3 In other words, when we re thinking about R 2, we already have a built-in basis in mind for it specifically, the standard basis e 1 x 1, 0, e 2 y 0, 1 Using this standard basis, we interpret things like 2, 3 as meaning two copies of e 1, plus three copies of e 2 Which makes sense! However, over the course of Math 108A, we saw tons of different bases for R n Why don t we sometimes use some of those bases instead? This idea leads us to the following definition: Definition Take any vector space F n Almost always in this course, F will almost always denote R, or sometimes C As well, take some basis { b 1, b n } for F n Take an ordered set of n elements from F, say v 1, v n We can interpret this as a vector using the basis by associating it as follows to a vector in F n : v 1, v n a vector using the basis v 1 b1 + v 2 b2 + + v n bn In this sense, we ve been interpreting vectors for the past quarter as vectors under the standard basis e 1, e n In general, unless we explicitly write otherwise, we will work with these standard vectors; ie only interpret a vector as existing in some other base if we give it a subscript describing what base it is in! To illustrate the idea, we run a quick example: Example Take R 4 with the basis { b 1 1, 1, 0, 0, b 2 0, 1, 1, 0, b 3 0, 0, 1, 1, b 4 0, 0, 0, 1} Again, note that because we haven t subscripted these vectors with some other basis, we are interpreting these four vectors in the standard fashion: ie 1, 1, 0, 0 denotes the object e 1 + e 2 in R 4 Consider the vector 1, 2, 3, 4 a vector using the basis In the standard basis, what is this vector? Answer So: by definition, we have 1, 2, 3, 4 a vector using the basis 1 b 1 + 2 b 2 + 3 b 3 + 4 b 4 now working in the standard basis {}}{ 1 1, 1, 0, 0 + 20, 1, 1, 0 + 30, 0, 1, 1, + 40, 0, 0, 1 1, 3, 5, 7 So the vector 1, 2, 3, 4 a vector using the basis corresponds to the vector 1, 3, 5, 7 in the standard basis Example Take R 3, and the vector 1, 2, 3 Write this vector with respect to the basis { b 1 1, 0, 0, b 2 1, 1, 0, b 3 0, 1, 1} Answer So: we start by finding a way to express 1, 2, 3 as a sum of things in our basis: Consequently, we can write 1, 2, 3 21, 0, 0 11, 1, 0 + 30, 1, 1 1, 23 2, 1, 3 2

The above two examples worked in an ad-hoc sense; given a vector written in one basis, we were able to write it in another with little work There is a more efficient way, however! Given a basis { b 1, b n } for some space F n, consider the following matrix: b 1 b2 bn Suppose we take a vector of the form x 1, x n, and multiply this vector by our matrix: what do we get? Well: x 1 b 1 b2 bn x 1b1 + + x nbn x n In other words: b 1 b2 bn x 1 x n x 1, x n This matrix allows us to convert vectors written in the standard notation to vectors written with respect to the base! Similarly, notice that if we multiply both the left- and righthand-sides above by 1 b 1 b2 bn, we get x 1, x n b 1 b2 bn b 1 b2 bn 1 1 x 1b1 + + x nbn x 1, x n Therefore, we can use the inverse of this matrix to translate vectors written in the base to vectors written with the standard basis! We call these matrices change of basis matrices; they re rather useful, and will come up often in this course The main reason we care about this idea is not because it gives us a new way to look at vectors, but rather because it gives us a new way to look at things that act on vectors: ie matrices! Think back to last quarter, when we discussed how to turn a linear transformation into a matrix: 3

Definition Take a linear map T : F n F n Again, F will almost always denote R, or sometimes C Let the vectors e 1, e n denote the standard basis vectors for F n : ie e 1 1, 0, 0, e 2 0, 1, 0 0, e n 0, 0 0, 1 Take all of the vectors T e i in F n, where i ranges from 1 to n We can use these vectors to represent T as an n n matrix as follows: T T matrix T e 1 T e 2 T e n, Similarly, given some n n matrix a 1,1 a 1,2 a 1,n a 2,1 a 2,2 a 2,n A, a n,1 a n,2 a n,n we can interpret A as a linear map A map : F n to F n as follows: For any of the standard basis vectors e i, we define A map e i to simply be the vector a 1,i, a n,i For any other vector x 1, x n F n, we define A map x 1, x n to simply be the corrresponding linear combination of the e i s: ie A map : x 1, x n : x 1 A map e 1 + + x n A map e n In the above work, we basically chose to represent a linear transformation as a matrix by looking at where it sent the standard basis vectors e 1, e n However: again, if we re looking at R n or C n, there are many different choices of basis that we can come up with that are not the standard basis! So: can we represent a linear transformation as a matrix using these other bases? The answer is yes! We provide a definition and a few examples below: Definition Take a linear map T : F n F n Again, F will almost always denote R, or sometimes C As well, take some basis { b 1, b n } for F n Take all of the vectors T b i in F n, where i ranges from 1 to n For each one of these vectors, because is a basis, we can find constants t 1,i, t n,i such that T b i t 1,i b1 + t n,i bn Take these sums, and use them to represent T as an n n matrix as follows: t 1,1 t 2,1 t n,1 T T matrix with respect to the basis, t 1,n t 2,n t n,n 4

Similarly, given some n n matrix A with entries in F, we can interpret it as a linear transformation with respect to this basis! In other words, suppose we have a 1,1 a 1,2 a 1,n a 2,1 a 2,2 a 2,n A matrix with respect to the base a c1 a c2 a cn, a m,1 a m,2 a n,n where a ci is the i-th column vector of A Then we can interpret A as a linear map A map : F n to F n as follows: For any of the basis vectors b i, we define A map b i to simply be the vector a ci Take any other vector x F n ecause is a basis, we can write x as a unique linear combination of the elements of : ie x c 1 b1 + + c n bn Then, because we sent each b i to the column a ci we should define A map x to simply be the corresponding linear combination of the a ci s: ie A map, from a matrix written with basis : x : c 1 a c1 + + c n a cn In general, if we have a matrix written with respect to any basis other than a standard basis, we will clearly denote this by giving it a subscript labeling it as a matrix written with respect to some other basis If you see a matrix without any such subscript, you can assume that it is a matrix written with respect to the standard basis To illustrate the ideas here, we work a pair of examples: Example Consider the following linear transformation T from R 4 R 4 : T a, b, c, d a + b, a + c, a + d, a Write this linear transformation as a matrix with respect to the standard basis, and also with respect to the basis { b 1 1, 0, 0, 0, b 2 1, 1, 0, 0, b 3 0, 1, 1, 0, b 4 0, 0, 1, 1} Answer To write this linear map as a matrix with respect to the standard basis, we just need to find the following: 0 0 T T matrix T e 1 T e 2 T e n 1 0 1 0 1 0 0 1 1 0 0 0 5

Writing this in terms of the basis is slightly tricker We first need to calculate the vectors T b 1, T b n : T 1, 0, 0, 0 1, 1, 1, 1, T 1, 1, 0, 0 2, 1, 1, 1, T 0, 1, 1, 0 1, 1, 0, 0, T 0, 0, 1, 1 0, 1, 1, 0 Now, for each vector, we need to write it as a sum of elements in the basis: T 1, 0, 0, 0 1, 1, 1, 1 1, 1, 0, 0 + 0, 0, 1, 1 b 2 + b 4, T 1, 1, 0, 0 2, 1, 1, 1 1, 0, 0, 0 + 1, 1, 0, 0 + 0, 0, 1, 1 b 1 + b 2 + b 4, T 0, 1, 1, 0 1, 1, 0, 0 b 2, T 0, 0, 1, 1 0, 1, 1, 0 b 3 As a consequence, we can write the T b i s as vectors under the basis : T b 1 0, 1, 0, 1 a vector using the basis, T b 2 1, 1, 0, 1 a vector using the basis, T b 3 0, 1, 0, 0 a vector using the basis, T b 4 0, 0, 1, 0 a vector using the basis From here, we can now turn T into a 4 4 matrix T with respect to the basis, by just using the above vectors as our columns: 0 1 0 0 T matrix with respect to the base 1 0 0 0 0 1 0 0 Success! As the above example indicates, sometimes writing a matrix in some other base doesn t really make it look any prettier or nicer However, in other situations it really can! Consider the example we worked with last Friday: Example Take the matrix, and write it using the basis 1 0 { } b 1, 1, 1 b 2, 1 + 2 1 + 2 1 + 2 1 + 2 6

Answer So: our first step is to turn this matrix into the linear transformation T x, y x+y, x From here, we can proceed as we did in the earlier example Start by determining where this linear transformation takes the elements of our basis: T, 1 1 + 2 1 + 2 1 T, 1 + 2 1 + 2 + 1, 1 + 2 1 + 2 1, 1 1 + 2 1 + 2 Now, notice that because as proven on Wednesday 2 + 1 and 2 1, we have + 1, 2, 1 + 2 1 + 2 1 + 2 1 + 2 1 + 2, 1 1 + 2 b 1, and 1, 1 2, 1 1 + 2 1 + 2 1 + 2 1 + 2 1, 1 1 + 2 1 + 2, 1 + 2 1 + 2 1 b 2 Therefore, we can write T b 1 b 1 and T b 2 1 b 2 This means that we can write the matrix associated to this linear transformation as 0 T matrix with respect to the basis 0 1 So in other words, we have that 0, 1 0 0 1 correspond to the same linear transformations! 7

In this situation, writing our matrix in another base is incredibly useful! In this second base, matrix exponentiation is really really easy: because our matrix is diagonal, we have [ 0 0 1 ] n times n [ { ] [ }} ] { 0 0 0 0 1 0 1 0 1 n 2 times { }} { [ 0 0 2 ] 0 0 1 0 1 2 0 1 n 3 times { }} { [ 0 0 2 ] 0 0 1 0 1 3 0 1 n 0 n 0 1 Punchline: in certain bases, it s really easy to raise a matrix to a large power! That s great except we often don t want to have to work in strange bases all the time We like the standard basis! This then raises the last problem that we re going to consider in this section: on one hand, we ve seen that it is sometimes nice to work in other bases ut we don t want to have to do all of our work in other bases: it would be nice if we had some way to translate matrices back and forth between two different bases! [ Ie ] it s really useful to be able to think of the linear map in the example above as in lots of situations when we re 1 0 0 doing small manipulations, but also useful to think of it as 0 1 when we want to raise it to large powers! So: how can we do this? In other words: suppose I give you a matrix in some basis How can you translate it back to the standard basis? The answer here: the change of basis matrices from before! Proposition Suppose we have some space F n with a basis { b 1, b n } Suppose we have a n n matrix A written in this base : ie a 1,1 a 1,2 a 1,n a 2,1 a 2,2 a 2,n A matrix with respect to the base a n,1 a n,2 a n,n Then, we can turn A into a matrix written with the standard basis, that corresponds 8

to the same linear transformation, as follows: a 1,1 a 1,2 a 1,n A written in the standard basis b 1 b2 bn a 2,1 a 2,2 a 2,n a n,1 a n,2 a n,n b 1 b2 bn Answer Take any vector x 1, x n written in the standard basis Suppose that we want to apply the linear transformation corresponding to A to this vector The first thing we have to do is convert it to the basis : we do this by multiplying it on the left by the 1 change of basis matrix b 1 b2 bn, as discussed earlier Once this is done, we can apply A to it, by multiplying this on the left by A Finally, to interpret our results in the standard basis, we have to multiply it on the left by the other change of basis matrix b 1 b2 bn This set of multiplications lets us apply A to a vector written with the standard basis and interpret our results in the standard basis, and is precisely what claimed A standard was! So we are done To illustrate the idea here, we work a quick example: Example Consider the linear transformation T x, y 4x 6y, x y Write this transformation as a matrix with respect to the standard basis, and also with respect to the basis { b 1 3, 1, b 2 2, 1} Relate these two matrices via the proposition above Verify that the left and right hand sides are indeed equal Answer To write this as a matrix using the standard basis, just look at where it sends 1, 0 and 0, 1: 4 6 T standard 1 1 To write it as a matrix using the basis, first determine where it sends b 1 and b 2, and write these results as a combination of the elements of : T b 1 6, 2 2 b 1 2, 0, T b 2 2, 1 b 2 0, 1 1 9

Use these vectors to create the matrix with respect to the basis : 2 0 T standard 0 1 According to the proposition above, we should have 1 4 6 3 2 2 0 3 2 1 1 0 1 3 2 a b To check this, we quickly determine the inverse of by hand: it s the matrix c d such that a b 3 2 1 0 c d 0 1 Multiplying out the left-hand side and setting it equal to the right-hand side gives us the following four linear equations: 3a + b 1, 2a + b 0, 3c + d 0, 2c + d 1 Subtracting one copy of the second equation from the first gives us a 1, which when substituted into the second equation also gives b 2 Similarly, subtracting one copy of the fourth equation from the third gives us c 1, which when plugged into the fourth equation also yields d 3 Therefore, we have ] 1 ] and therefore should have [4 ] 6 1 1 This is easily verified: 3 2 2 0 0 1 [ 3 2 3 2 1 2 1 3 [ 1 2 1 3 2 0 0 1 6 2 2 1, 1 2 1 3 1 2 1 3 4 6 1 1 With our earlier proposition in mind, we can restate our work from week 1, Friday s lecture using [ the] language of a change-of-basis matrix! Specifically: we have shown that the matrix can be written using the basis 1 0 { } b 1, 1, 1 b 2, 1 + 2 1 + 2 1 + 2 1 + 2 10

as the matrix [ 0 0 1 If we use the result we gave above about change-of-basis matrices, we ve just proven that 1 1 1 1+ 2 1+ 2 1 1 0 0 0 1 1+ 2 1+ 2 1 1+ 2 1+ 2 1+ 2 1+ 2 Which is exactly what we did on last Friday s lecture but this time, we understand why these things fit together in the way that they did! Well, mostly The only thing we haven t discussed is why we chose the basis in the way that we did In next week s class, we ll fix that! ] 11