Linear Algebra and ODEs review

Similar documents
Math Ordinary Differential Equations

Even-Numbered Homework Solutions

Math 224, Fall 2007 Exam 3 Thursday, December 6, 2007

Linear Algebra (MATH ) Spring 2011 Final Exam Practice Problem Solutions

Linear Algebra Review (Course Notes for Math 308H - Spring 2016)

Math Assignment 5

Identification Methods for Structural Systems

Section 9.8 Higher Order Linear Equations

Differential Equations Practice: 2nd Order Linear: Nonhomogeneous Equations: Undetermined Coefficients Page 1

Solutions to the Calculus and Linear Algebra problems on the Comprehensive Examination of January 28, 2011

MA 527 first midterm review problems Hopefully final version as of October 2nd

MATH 213 Linear Algebra and Ordinary Differential Equations Spring 2015 Study Sheet for Final Exam. Topics

Study guide - Math 220

Section 8.2 : Homogeneous Linear Systems

Thursday, August 4, 2011

A: Brief Review of Ordinary Differential Equations

Solutions for homework 5

Old Math 330 Exams. David M. McClendon. Department of Mathematics Ferris State University

Find the general solution of the system y = Ay, where

Chapters 5 & 6: Theory Review: Solutions Math 308 F Spring 2015

Math 211. Substitute Lecture. November 20, 2000

MATH 320 INHOMOGENEOUS LINEAR SYSTEMS OF DIFFERENTIAL EQUATIONS

Eigenvalues, Eigenvectors and the Jordan Form

Systems of Linear Differential Equations Chapter 7

MATH 24 EXAM 3 SOLUTIONS

Chapter 7. Canonical Forms. 7.1 Eigenvalues and Eigenvectors

Selected Solutions: 3.5 (Undetermined Coefficients)

Math 216 Second Midterm 16 November, 2017

MATH 221, Spring Homework 10 Solutions

Work sheet / Things to know. Chapter 3

MTH 464: Computational Linear Algebra

21 Linear State-Space Representations

Test #2 Math 2250 Summer 2003

APPM 2360: Midterm exam 3 April 19, 2017

4. Linear transformations as a vector space 17

Damped Harmonic Oscillator

SECOND ORDER ODE S. 1. A second order differential equation is an equation of the form. F (x, y, y, y ) = 0.

APPM 2360 Section Exam 3 Wednesday November 19, 7:00pm 8:30pm, 2014

Solutions to Final Practice Problems Written by Victoria Kala Last updated 12/5/2015

Solutions to Math 53 Math 53 Practice Final

Answers and Hints to Review Questions for Test (a) Find the general solution to the linear system of differential equations Y = 2 ± 3i.

Solutions to Homework 3

Math 240 Calculus III

Math 312 Lecture Notes Linear Two-dimensional Systems of Differential Equations

INHOMOGENEOUS LINEAR SYSTEMS OF DIFFERENTIAL EQUATIONS

Elementary Linear Algebra Review for Exam 2 Exam is Monday, November 16th.

Math 250B Final Exam Review Session Spring 2015 SOLUTIONS

Calculating determinants for larger matrices

Notes on the Periodically Forced Harmonic Oscillator

Ex. 1. Find the general solution for each of the following differential equations:

Differential Equations 2280 Sample Midterm Exam 3 with Solutions Exam Date: 24 April 2015 at 12:50pm

FINAL EXAM SOLUTIONS, MATH 123

MATH 320, WEEK 11: Eigenvalues and Eigenvectors

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

Second In-Class Exam Solutions Math 246, Professor David Levermore Thursday, 31 March 2011

Second order linear equations

1. Select the unique answer (choice) for each problem. Write only the answer.

HW2 - Due 01/30. Each answer must be mathematically justified. Don t forget your name.

dx n a 1(x) dy

Math 215/255 Final Exam (Dec 2005)

Chap 3. Linear Algebra

9.6: Matrix Exponential, Repeated Eigenvalues. Ex.: A = x 1 (t) = e t 2 F.M.: If we set

4. Complex Oscillations

MATH 4B Differential Equations, Fall 2016 Final Exam Study Guide

Final 09/14/2017. Notes and electronic aids are not allowed. You must be seated in your assigned row for your exam to be valid.

Lecture 7. Please note. Additional tutorial. Please note that there is no lecture on Tuesday, 15 November 2011.

MATH 23 Exam 2 Review Solutions

Exercises Lecture 15

93 Analytical solution of differential equations

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

CITY UNIVERSITY LONDON

Math 205, Summer I, Week 4b:

MIT Final Exam Solutions, Spring 2017

6 EIGENVALUES AND EIGENVECTORS

ORDINARY DIFFERENTIAL EQUATIONS

ENGI 9420 Lecture Notes 1 - ODEs Page 1.01

City Suburbs. : population distribution after m years

REVIEW PROBLEMS FOR MIDTERM II MATH 2373, FALL 2016 ANSWER KEY

MATH 235. Final ANSWERS May 5, 2015

Remark By definition, an eigenvector must be a nonzero vector, but eigenvalue could be zero.

Math 266 Midterm Exam 2

ft-uiowa-math2550 Assignment OptionalFinalExamReviewMultChoiceMEDIUMlengthForm due 12/31/2014 at 10:36pm CST

MATH 304 Linear Algebra Lecture 23: Diagonalization. Review for Test 2.

Summer Session Practice Final Exam

ODEs. September 7, Consider the following system of two coupled first-order ordinary differential equations (ODEs): A =

Classical Mechanics Phys105A, Winter 2007

Eigenvalues and Eigenvectors

Math 313 Chapter 5 Review

MATH 1553-C MIDTERM EXAMINATION 3

June 2011 PURDUE UNIVERSITY Study Guide for the Credit Exam in (MA 262) Linear Algebra and Differential Equations

Generalized Eigenvectors and Jordan Form

Announcements Monday, October 29

Final Review Written by Victoria Kala SH 6432u Office Hours R 12:30 1:30pm Last Updated 11/30/2015

Copyright (c) 2006 Warren Weckesser

Chapter 4 & 5: Vector Spaces & Linear Transformations

Section 3.4. Second Order Nonhomogeneous. The corresponding homogeneous equation

Midterm 1 NAME: QUESTION 1 / 10 QUESTION 2 / 10 QUESTION 3 / 10 QUESTION 4 / 10 QUESTION 5 / 10 QUESTION 6 / 10 QUESTION 7 / 10 QUESTION 8 / 10

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

Autonomous system = system without inputs

Transcription:

Linear Algebra and ODEs review Ania A Baetica September 9, 015 1 Linear Algebra 11 Eigenvalues and eigenvectors Consider the square matrix A R n n (v, λ are an (eigenvector, eigenvalue pair of matrix A if and only if Av = λv, v R n 1, v 0, λ C Remark 1 Real matrices may have complex eigenvalues pairs They occur in conjugate We find eigenvalues by setting det(a λi n n = 0, where I n n is the identity matrix, and solving for λ Once we know the eigenvalue, let s call it λ i, we solve for the corresponding eigenvector(s from the equation (A λ i v i = 0 Remark Upper- or lower- triangular and diagonal matrices have their eigenvalues on the diagonal Matrix 1 A = 0 3 has eigenvalues 1 and 3 because it s upper triangular MATLAB is excellent at working with matrices The command V, D = eig(a returns diagonal matrix D with eigenvalues on its diagonal and matrix V whose columns are the corresponding eigenvectors, so that A V = V D 1 Rank and nullity Definition 1 The vectors v 1,, v m R n 1 are called linearly dependent if there exist scalars (numbers a 1,, a m R, not all equal to 0, such that a 1 v 1 + + a m v m = 0 When no such scalars exist, the vectors v 1,, v m are called linearly independent We can consider the columns of matrix A as a set of n vectors, as above Definition The column rank of matrix A is the number of linearly independent columns of the matrix The row rank of matrix A is the number of linearly independent rows of the matrix The column rank = the row rank The notation for the rank is rank(a For matrix the rank is 1 1 0 A = 0 4 3 0 6 1

Definition 3 A vector v is in the nullspace of matrix A if Av = 0 The dimension of the nullspace of A is called nullity, notation nullity(a It equals the number of linearly independent vectors in the nullspace Theorem 1 The rank-nullity theorem: rank(a + nullity(a = n Using the rank-nullity theorem, the nullity of matrix A from ( the last example is 0 ( 01 We find two linearly independent vectors in the nullspace of A: and Can 1 0 you give another example of two linearly independent vectors in the nullspace of A? 13 The matrix exponential The exponential of matrix A is e A = i=0 A i i! = I n n + A + 1 A + Properties: 1 e A is also an n n matrix d eat = Ae At 3 e A e A = I n n 4 e A+B e A e B, unless AB = BA 5 If A is diagonal with elements d 1,, d n on its diagonal, then e A is also a diagonal matrix with elements e d1,, e dn on its diagonal In MATLAB, use function expm to compute the matrix exponential Don t use exp, they are not the same! ODEs 1 Chain rule and change of variables Theorem If y is a function of u, y = f(u and u is a function of x, u = g(x, then dy dx = dy x=c du du u=g(c dx (1 x=c Homework 1 problem b (CDS 101 and 3b (CDS 110: We introduce the new variables by rescaling time Use the chain rule to adjust the time scale First order linear ODEs The simplest first order linear ODE is x (t = ax(t, where x and a are scalars and a is a constant The solution is x(t = e at x(0 The general form of a first order linear ODE is: x (t + p(tx(t = g(t, ( where p and g are known functions (that may be constant The solution method is due to Leibniz: We multiply Equation ( by the integrating factor µ(t = e p(t Then Equation ( becomes d (µ(tx(t = µ(tg(t Thus, the general solution is: x(t = 1 µ(tg(t + c, (3 µ(t where c is a constant and µ(t = e p(t When x is a vector, the solution to the first order ODE x (t = Ax(t is x(t = e At x(0

3 Second order linear ODEs 31 Second order linear homogeneous ODEs The form of a homogeneous (the right hand side equals 0 second order linear ODEs is given by d z(t + a dz(t + bz(t = 0, (4 where a and b are numbers The solution to this equation may be obtained by assuming that z(t = e st Then, by substituting the solution we guessed into the equation, we obtain that s e st +ase st + be st = 0 Since the exponential cannot be zero, we divide it out and obtain s + as + b = 0 (5 This is called the characteristic polynomial associated with a homogeneous second order ODE It is a quadratic equation with the two roots (not always distinct s 1 = a + a 4b and s = a a 4b There are two possible solutions to Equation (4: e s1t and e st Since the two solutions are linearly independent when the discriminant a 4b 0 and Equation (4 is linear, then the solution is their linear combination z(t = c 1 e s1t + c e st, (6 where c 1 and c are real numbers If we knew two specified initial condition (an example would be knowing z(0 and its first derivative z (0, then we could also determine the values of c 1 and c There are 3 cases for the form of z(t, according to the value of the discriminant in Equation (5: 1 When a 4b > 0, then s 1 and s are both real numbers and z(t = e at (c 1 e 1 a 4bt + c e 1 a 4bt When a 4b = 0, then s 1 = s = a The solutions es1t and e st are linearly dependent here, so we only know one of the solutions to Equation (4 Since Equation (4 is a second order ODE, it must have two solutions We find the missing solution by assuming another form that the solution might have, z(t = A(te st By substituting our guess back into Equation(4, we obtain d A(t +(s 1 +a da +(s 1 +as 1 +ba(t = 0 Since both terms s 1 + a = 0 and s 1 + as 1 + b = 0, it must be that d A(t = 0 Hence, A(t = t and z(t = c 1 e at + c te at 3 When a 4b < 0, then α 1 and α are complex conjugates of each other Following algebraic manipulation that we do not include here, z(t = e at (B 1 sin( 1 4b a t + B cos( 1 4b a t, where B 1 and B are constants Let s apply our results to a damped mass-spring system It is a second degree homogeneous equation for the position of the mass y(t as a function of time: m d y(t + c dy(t + ky(t = 0 (7 It doesn t have the form we gave for a second order homogeneous ODE because the first term is multiplied by the mass If we divide by m and let a = c m and b = k m, then we are in the preferred form The solutions to Equation (7 are split in 3 cases: 1 When c 4mk > 0 (overdamping, the solution is y(t = e c m t (c 1 e Ωt + c e Ωt, where Ω = c 4mk/m In the overdamped case, there is no oscillation and the amplitude of y(t eventually decays to equilibrium 3

When c 4mk = 0 (critical damping, the solution is y(t = e c m t (c 1 + c t In critical damping, y(t decays to equilibrium as quickly as possible with no oscillation 3 When c 4mk < 0 (under-damping, the solution is y(t = e c m t (c 1 cos(ωt + c sin(ωt, where Ω = c 4mk/m In under-damping, y(t returns to equilibrium by oscillating with decreased amplitude Fore more information on the damped mass-spring system and its solutions, see 3 Derivative trick We can reduce a second order linear homogeneous ODE to a first order linear ODE by introducing a dummy variable In fact, we can also reduce higher order linear homogeneous ODEs to a first order linear ODE using the same trick with more than one dummy variable In the damped mass-spring example, we introduce dummy variable z(t = z (t = y (t By replacing y (t in Equation (7, we obtain z (t = c m z(t k m y(t We now stack the two equations and obtain 0 1 ( y(t k/m c/m z(t ( z (t ( = z(t c/mz(t k/my(t ( z (t = ( We now form the vector v(t = y(t and we get v 0 1 (t = v(t This z(t k/m c/m is a first order linear ODE, so the solution is v(t = e At 0 1 v(0, where A = ( ( k/m c/m y(t Thus, = e At y(0 y (0 33 Second order linear non-homogeneous ODEs Non-homogeneous ODEs have the form d z(t + a dz(t where a and b are numbers, f is a forcing term The solution to Equation (8 has two components: + bz(t = f(t, (8 z(t = z h (t + z p (t, (9 where z h is the solution of the corresponding homogeneous equation d z h + a dz h + bz h (t = 0 and z p is the particular solution There are no fixed rules for determining the particular solution z p However, it is usually a good guess to assume that z p is similar function to the forcing term f We provide a list of common examples below The coefficients for f(t are known, whereas the coefficients for z p (t are unknown and must be determined 1 f(t is a polynomial of order n: f(t = at + bt + c (order here, then z p (t is a polynomial of order n: z p (t = a 1 t + a t + a 3 (order here f(t is a trigonometric function: f(t = a sin(st or f(t = b cos(st or f(t = a sin(st + b cos(st, then z p (t is a combination of both trigonometric functions: z p (t = a 1 sin(st + a cos(st 3 f(t is an exponential function: f(t = ae st, then z p (t is an exponential function: z p (t = a 1 e st 4 f(t is a linear combination of the functions above, then z p (t is a linear combination of the functions above with unknown coefficients 4

Let s solve the damped mass-spring system with forcing function f(t = sin(ωt ω is known here Then the equation we want to solve is: d y(t + c dy(t + k y(t = sin(ωt (10 m m We know that y(t = y h (t+y p (t y h (t is the solution of the homogeneous second order ODE and we can determine it as in Section 31 We then guess the form of the particular solution y p (t = s 1 sin(ωt + s cos(ωt y p(t = s 1 ω cos(ωt s ω sin(ωt, y (t = s 1 ω sin(ωt s ω cos(ωt By replacing them in Equation (10, we obtain that sin(ωt( s 1 ω c m s ω + k m s 1 1 + cos(ωt( s ω + c m s k 1ω + s m = 0 Since sin(ωt and cos(ωt are linearly independent functions (try proving the linear independence, it must be that their coefficients are 0 Hence, s 1 ω c m s ω + k m s 1 1 = 0 and s ω + c m s k 1ω + s m = 0 This is a linear equation system with two equations and two unknowns s 1 and s We do not include its solution here References 1 http://wwwengrsjsuedu/trhsu/chapter 4 Second order DEspdf https://enwikipediaorg/wiki/damping 5