ES.1803 Topic 13 Notes Jeremy Orloff

Similar documents
Topic 14 Notes Jeremy Orloff

2 Systems of Linear Equations

Topic 5 Notes Jeremy Orloff. 5 Homogeneous, linear, constant coefficient differential equations

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

Assume that you have made n different measurements of a quantity x. Usually the results of these measurements will vary; call them x 1

Contents. 1 Vectors, Lines and Planes 1. 2 Gaussian Elimination Matrices Vector Spaces and Subspaces 124

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

Chapter 1: Linear Equations

Introduction to Linear Algebra

Section 1.8 Matrices as Linear Transformations

MATHEMATICS FOR ENGINEERS & SCIENTISTS 23

Chapter 1: Linear Equations

Usually, when we first formulate a problem in mathematics, we use the most familiar

Honors Advanced Mathematics Determinants page 1

Matrices and Linear transformations

ES.1803 Topic 7 Notes Jeremy Orloff. 7 Solving linear DEs; Method of undetermined coefficients

Topic 2 Notes Jeremy Orloff

A primer on matrices

CHMC: Finite Fields 9/23/17

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

Final Review Sheet. B = (1, 1 + 3x, 1 + x 2 ) then 2 + 3x + 6x 2

Instructor Notes for Chapters 3 & 4

Problem 1: (3 points) Recall that the dot product of two vectors in R 3 is

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

Notes on Linear Algebra I. # 1

x n -2.5 Definition A list is a list of objects, where multiplicity is allowed, and order matters. For example, as lists

2.1 Definition. Let n be a positive integer. An n-dimensional vector is an ordered list of n real numbers.

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

DIFFERENTIAL EQUATIONS

Notes on multivariable calculus

The geometry of least squares

Linear Algebra. Chapter Linear Equations

Coordinate systems and vectors in three spatial dimensions

Lecture 2: Vector Spaces, Metric Spaces

Vectors and their uses

BASIC NOTIONS. x + y = 1 3, 3x 5y + z = A + 3B,C + 2D, DC are not defined. A + C =

Linear Algebra Handout

MATH 12 CLASS 2 NOTES, SEP Contents. 2. Dot product: determining the angle between two vectors 2

MATH 308 COURSE SUMMARY

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

Math (P)Review Part II:

Elementary Algebra - Problem Drill 01: Introduction to Elementary Algebra

A primer on matrices

Topic 15 Notes Jeremy Orloff

ENGINEERING MATH 1 Fall 2009 VECTOR SPACES

ES.1803 Topic 19 Notes Jeremy Orloff. 19 Variation of parameters; exponential inputs; Euler s method

LINEAR ALGEBRA KNOWLEDGE SURVEY

Section 3.1: Definition and Examples (Vector Spaces), Completed

Quadratics and Other Polynomials

Perspective. ECE 3640 Lecture 11 State-Space Analysis. To learn about state-space analysis for continuous and discrete-time. Objective: systems

Eigenvalues and eigenvectors

Math 2C03 - Class # 4. Mon. July 6th, 2015

Lecture 8: A Crash Course in Linear Algebra

MATH 115, SUMMER 2012 LECTURE 12

Introduction to Algorithms

Linear Algebra (Math-324) Lecture Notes

Announcements August 31

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

Linear Algebra. Preliminary Lecture Notes

Commutative Rings and Fields

Volume in n Dimensions

O.K. But what if the chicken didn t have access to a teleporter.

Main topics for the First Midterm Exam

High School Algebra I Scope and Sequence by Timothy D. Kanold

Algebra & Trig Review

Math (P)Review Part I:

MATH 250 TOPIC 13 INTEGRATION. 13B. Constant, Sum, and Difference Rules

Linear Algebra, Summer 2011, pt. 2

Lab 2 Worksheet. Problems. Problem 1: Geometry and Linear Equations

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

Introduction to Vectors

Math 110, Spring 2015: Midterm Solutions

22.2. Applications of Eigenvalues and Eigenvectors. Introduction. Prerequisites. Learning Outcomes

Introduction - Motivation. Many phenomena (physical, chemical, biological, etc.) are model by differential equations. f f(x + h) f(x) (x) = lim

Tin Ka Ping Secondary School F.5 Mathematics Module 2 Teaching Syllabus

Lecture 8: Ordinary Differential Equations

Solving Equations by Adding and Subtracting

CH 59 SQUARE ROOTS. Every positive number has two square roots. Ch 59 Square Roots. Introduction

Sequence convergence, the weak T-axioms, and first countability

Abstract & Applied Linear Algebra (Chapters 1-2) James A. Bernhard University of Puget Sound

Linear Algebra. Preliminary Lecture Notes

2 Discrete Dynamical Systems (DDS)

Chapter 6. Net or Unbalanced Forces. Copyright 2011 NSTA. All rights reserved. For more information, go to

LESSON EII.C EQUATIONS AND INEQUALITIES

Quantitative Understanding in Biology Module III: Linear Difference Equations Lecture I: Introduction to Linear Difference Equations

3.4 Complex Zeros and the Fundamental Theorem of Algebra

Math 300: Foundations of Higher Mathematics Northwestern University, Lecture Notes

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note 21

Eigenvalues, Eigenvectors, and an Intro to PCA

Seunghee Ye Ma 8: Week 2 Oct 6

LINEAR ALGEBRA W W L CHEN

Math 480 The Vector Space of Differentiable Functions

Parametric Equations, Function Composition and the Chain Rule: A Worksheet

Algebra Year 10. Language

Chapter 10. Right Triangles

Eigenvalues, Eigenvectors, and an Intro to PCA

Scott Taylor 1. EQUIVALENCE RELATIONS. Definition 1.1. Let A be a set. An equivalence relation on A is a relation such that:

Math 24 Spring 2012 Questions (mostly) from the Textbook

Lab #2 - Two Degrees-of-Freedom Oscillator

CHAPTER 5. Linear Operators, Span, Linear Independence, Basis Sets, and Dimension

Transcription:

ES.1803 Topic 13 Notes Jeremy Orloff 13 Vector Spaces, matrices and linearity 13.1 Goals 1. Know the definition of a vector space and how to show that a given set is a vector space. 2. Know the meaning of the phrase closed under addition and scalar multiplication. 3. Know how to convert a higher order DE into the companion system of first-order DEs. 4. Know how to organize matrix multiplication as a linear combination of the columns of the matrix. 5. Know how to organize matrix multiplication in block form and recognize when block multiplication is valid. 13.2 Introduction Up to now we have spent most of our time in 18.03 considering linear differential equations. For these one of our main tools was linearity, or equivalently the superposition principle. There are many other domains where linearity is important. For example, systems of linear algebraic equations and matrices. In this next unit on linear algebra we will study the common features of linear systems. To do this we will introduce the somewhat abstract language of vector spaces. This will allow us to view the plane and space vectors you encountered in 18.02 and the general solutions to a differential equation through the same lens. In 18.02 vectors had both an algebraic and a geometric interpretation. In 18.03 we will focus primarily on the algebraic side of vectors, though we will sometimes use our geometric intuition as a guide. 13.3 Matlab We will use Matlab for computation and visualization. It will allow us to work with large matrices. There is a student edition available for free from MIT. See http://ist.mit. edu/matlab/all. We will only use a tiny subset of Matlab s enormous set of functions. I ll post some simple (and short) tutorials on its use. A free substitute for Matlab is Octave. It has the advantage that it loads much faster and doesn t spread digital rights management files all around your computer. The disadvantage is that it can be a little harder to install, especially on the Mac. Look at http://www.gnu. org/software/octave/download.html. I can help you get it installed if you want to try. 1

13 VECTOR SPACES, MATRICES AND LINEARITY 2 13.4 Linearity and vector spaces We ve seen before the importance of linearity when solving differential equations P (D)x f(t). To remind you: linearity mean that for functions f, g and constants c 1, c 2. P (D)(c 1 f + c 2 g) c 1 P (D)f + c 2 P (D)g Matrix multiplication is also linear. If A is a matrix and v 1, v 2 are vectors the A (c 1 v 1 + c 2 v 2 ) c 1 A v 1 + c 2 A v 2 Example 13.1. In this example we will write an explicit matrix multiplication in a way that emphasizes the linearity. 6 5 3 + 4 6(3 + 4) + 5(7 + 8) 1 2 7 + 8 (3 + 4) + 2(7 + 8) [ ] 6 3 + 5 7 + 6 4 + 5 8 1 3 + 2 7 + 1 4 + 2 8 [ ] 6 5 3 6 5 4 + 1 2 7 1 2 8 Superposition Exactly like solving linear differential equations, solving linear systems of algebraic equations involves finding a particular solution and supersitioning with the homogeneous solution. 1 3 ] 2 Example 13.2. Solve 4 12 3 9 [ x1 x 2 8 6 answer: For this example we ll use ad hoc methods to find particular and homogeneous solutions. Later we will learn systematic methods. The main point here is that the solutions can be superimposed. By inspection we can see one solution is x p [ ] [ ] 1 5 x p or x 1 p. 1 Next we have to solve the associated homogeneous equation: 1 3 [ ] 0 4 12 x1 0 x 3 9 2 0 [ ] 2. Just as valid would be to take 0 This expands to three [ equations ] in two unknowns. You can easily check that the general 3 solution is x h c. 1 By superposition, the solution to the original equation is [ ] [ ] 1 3 x x p + x h + c. 1 1 If this is unclear you should check the solution by substitution.

13 VECTOR SPACES, MATRICES AND LINEARITY 3 13.5 Vector spaces In order to have the notions of linearity and superposition we need have the notions of adding and scaling. This leads to the definition of vectors whose key property is that they can be be added and scaled. Definition. A vector space is any set V with the following properties. 1. The set V has the arithmetic operations of addition and scalar multiplication. 2. Closure under addition: The sum of any two elements in V is another member V. That is, if v, w V then v + w V. 3. Closure under scalar multiplication: Scaling an element of V results in another member of V. That is, if v V and c is a scalar then cv V. 4. Distributive law: If v, w V and c is a scalar then c(v + w) cv + cw. An element v in V is called a vector. The formal definition of a vector space requires some more technical properties but this definition will suffice for 18.03. If the scalars are required to be real numbers we say we have a real vector space. If we allow them to be complex numbers then we have a complex vector space. The next few examples will introduce some important vector spaces and show how to check whether or not a given set is a vector space. Key point. Checking whether or not a given set is a vector space is always easy. This is similar to checking whether a given operator is linear. Example 13.3. Show that the set of ordered pairs (x, y) under the usual rules of addition and scalar multiplication is a vector space. answer: We have to show the set satisfies the four properties in the definition of vector space. As we said, this is straightforward. 1. Multiplication and scalar multiplication: By definition we have these operations. 2. Closure under addition: Take any two pairs (x 1, y 1 ) and (x 2, y 2 ). Their sum (x 1, y 1 ) + (x 2, y 2 ) (x 1 + x 2, y 1 + y 2 ) is also such a pair. 3. Closure under scalar multiplication: Take any pair (x, y) and scalar c then c(x, y) (cx, cy) is also an ordered pair. 4. Distributive law: We show this without any commentary: c ((x 1, y 1 ) + (x 2, y 2 )) c(x 1 + y 1, x 2 + y 2 )... c(x 1, y 1 ) + c(x 2, y 2 ). Example 13.4. (Vector spaces.) The following are all examples of vector spaces. You should be able to check this in the same way as we did in the previous example. We call the plane R 2. It is the set of all pairs (x, y). We call space R 3. It is the set of all triples (x, y, z).

13 VECTOR SPACES, MATRICES AND LINEARITY 4 The powers indicate the dimension of each space. Likewise we can work with high dimensional vector spaces like R 1000 which consists of all lists of 1000 numbers. In 18.03 we have used the fact that functions can be added and scaled. That is, the set of all functions f(t) is a vector space. (It happens to be infinite dimensional, but we can talk about that later.) Example 13.5. (Non-vector spaces.) The following are not vector spaces. 1. The set of plane vectors in the first quadrant. This fails to be closed under scalar multiplication. For example, (1, 1) is in the first quadrant, but 2 (1, 1) ( 2, 2) is not. y (1, 1) x 2 (1, 1) 2. The set of functions of the form cos(6t) + c 1 e t + c 2 e 7t. This fails to be closed under addition. For example, (cos(6t) + 2e t + 3e 7t ) + (cos(6t) + e t + 4e 7t ) 2 cos(6t) + 3e t + 7e 7t The sum is not in the set because of the factor of 2 in front of cos(6t). 13.6 Connection to DEs We will give two examples showing directly how matrices arise in differential equations. Example 13.6. The companion matrix -converting a higher order DE to a first-order system. Here we are going to convert a higher order differential equation into a system of first order equations. Later we will see how this technique allows us to understand DEs in a new way and also how it allows us to use numerical techniques on higher order equations. Consider the second order linear differential equation. ẋ + 8ẋ + 7x 0. We ve worked this example many times. The general solution is x c 1 e t + c 2 e 7t. To convert the DE to a matrix system we introduce a new variable: y ẋ. Now, substituting y for ẋ in the original DE we get the equation ẏ + 8y + 7x 0. Altogether we have the system of two first order linear DE s:. x y. y 7x 8y This can be rewritten in matrix form: ẋẏ 0 1 x 7 8 y

13 VECTOR SPACES, MATRICES AND LINEARITY 5 Notice two things: [ ] [ ] x 0 1 1. If we write this abstractly with x and A it looks like y 7 8 ẋ Ax. Ignoring the fact that x is a vector and A is a matrix this looks like our most important DE: ẋ ax. 2. Solving the system is equivalent to solving the original equation. That is, if we solve the original equation we ll have found x and hence y ẋ. Conversely if we solve the matrix system we ll have found both x and y. In this case we already know the solution to the DE, so the solution to the system is [ ] [ ] [ x xẋ c1 e t + c 2 e 7t ] [ ] [ ] y c 1 e t + 7c 2 e 7t c 1 e t 1 + c 1 2 e 7t 1 7 Notice that the modal solutions are of the form e rt v where v is a constant vector. Later we will use the method of optimism to guess solutions of this form. Definition. The matrix A of coefficients that arises from this technique will be called the companion matrix to the original DE. Example 13.7. Heat Flow. In this example we will set up a model for heat flow. We won t solve it for a few days. Suppose we have a metal rod where different parts are at different temperatures. We divide it into 3 regions and imagine that each region exchanges heat with the adjacent regions. The regions on either end also exchange heat with the environment. We assume that the top and bottom of the rod are insulated so that heat can only flow out of the bar at the ends. We also assume that the heat transfer follows Newton s law and the rate constant is k at each interface. The figure below shows the the metal bar divided into 3 regions and insulated above and below. The temperature of each region and the temperature of the environment on the left and right ends are indicated in the figure. E L T 1 T 2 T 3 E R Using Newton s law we can write a DE for the temperature of each region.. T 1 k(t 1 E L ) k(t 1 T 2 ) 2kT 1 + kt 2 + ke L Ṫ 2 k(t 2 T 1 ) k(t 2 T 3 ) kt 1 2kT 2 + kt 3 Ṫ 3 k(t 3 T 2 ) k(t 3 E R ) kt 2 2kT 3 + ke R We can write this in matrix form. T 1 2k k 0 T 1 ke L Ṫ 2 k 2k k T 2 + 0 0 k 2k T 3 ke R Ṫ 3

13 VECTOR SPACES, MATRICES AND LINEARITY 6 Remark: This particular coefficient matrix occurs quite often in applications. You should make sure you know how to modify the equation if we use n divisions of the rod instead of 3. 13.7 Matrix Multiplication Combination of columns We can view the result of multiplying a matrix times a vector as a linear combination of the columns of the matrix. We will use this again and again, so you should internalize it now! We illustrate with an example: Example 13.8. Consider the following product 6 5 3 6 3 + 5 4 1 2 4 1 3 + 2 4 3 [ ] [ ] 6 1 + 4 5 2 Notice that the result is a linear combination of the columns of the matrix. To express this abstratcly we write a matrix as A v 1 v 2 v 3 v 4 v 5 Here each v j is a vector representing a column of A. We then have c 1 v 1 v 2 v 3 v 4 v 5 c 2 c 3 c 4 c 1v 1 + c 2 v 2 + c 3 v 3 + c 4 v 4 + c 5 v 5 c 5 That is, the product is a linear combination of the columns of A. Block matrices and multiplication 0 0 1 0 Consider the following matrix A 0 0 0 1 6 5 0 0. We can divide this into blocks 1 2 0 0 A 0 0 1 0 0 0 0 1 6 5 0 0 1 2 0 0 [ 0 ] I B 0 As long as the sizes of the blocks are compatible block matrices multiply just like matrices: A B E AE + BF C D F CE + DF

13 VECTOR SPACES, MATRICES AND LINEARITY 7 To convince yourself of this look at the following product and see that the blocks in the first column on the left only touch the top block on the right etc. 0 0 1 0 0 0 0 1 6 5 0 0 1 2 0 0 a c e g b d f h