Solutions to Final Exam Sample Problems, Math 246, Spring 2018

Similar documents
Solutions to Final Exam Sample Problems, Math 246, Spring 2011

Final Exam Sample Problems, Math 246, Spring 2018

Solutions to Final Exam Sample Problems, Math 246, Fall 2013

Third In-Class Exam Solutions Math 246, Professor David Levermore Thursday, 3 December 2009 (1) [6] Given that 2 is an eigenvalue of the matrix

Solutions of the Sample Problems for the Third In-Class Exam Math 246, Fall 2017, Professor David Levermore

Solution. Your sketch should show both x and y axes marked from 5 to 5 and circles of radius 1, 3, and 5 centered at the origin.

Solutions of the Sample Problems for the First In-Class Exam Math 246, Fall 2017, Professor David Levermore

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

Solution. It is evaluating the definite integral r 1 + r 4 dr. where you can replace r by any other variable.

First In-Class Exam Solutions Math 246, Professor David Levermore Thursday, 20 September 2018

First In-Class Exam Solutions Math 246, Professor David Levermore Tuesday, 21 February log(2)m 40, 000, M(0) = 250, 000.

c 1 = y 0, c 2 = 1 2 y 1. Therefore the solution to the general initial-value problem is y(t) = y 0 cos(2t)+y sin(2t).

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

Linear Planar Systems Math 246, Spring 2009, Professor David Levermore We now consider linear systems of the form

Math Exam 3 Solutions

APPM 2360: Final Exam 10:30am 1:00pm, May 6, 2015.

FIRST-ORDER SYSTEMS OF ORDINARY DIFFERENTIAL EQUATIONS III: Autonomous Planar Systems David Levermore Department of Mathematics University of Maryland

Understand the existence and uniqueness theorems and what they tell you about solutions to initial value problems.

Solutions to Math 53 Math 53 Practice Final

FIRST-ORDER SYSTEMS OF ORDINARY DIFFERENTIAL EQUATIONS II: Homogeneous Linear Systems with Constant Coefficients

HIGHER-ORDER LINEAR ORDINARY DIFFERENTIAL EQUATIONS II: Nonhomogeneous Equations. David Levermore Department of Mathematics University of Maryland

HIGHER-ORDER LINEAR ORDINARY DIFFERENTIAL EQUATIONS II: Nonhomogeneous Case and Vibrations

Math 308 Exam I Practice Problems

Math 216 Second Midterm 19 March, 2018

Solutions of Spring 2008 Final Exam

Math 215/255 Final Exam (Dec 2005)

Math 216 Final Exam 24 April, 2017

Solution: In standard form (i.e. y + P (t)y = Q(t)) we have y t y = cos(t)

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

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

Math Ordinary Differential Equations

π 1 = tr(a), π n = ( 1) n det(a). In particular, when n = 2 one has

MATH 23 Exam 2 Review Solutions

1. Diagonalize the matrix A if possible, that is, find an invertible matrix P and a diagonal

Math 308 Week 8 Solutions

Math 308 Exam I Practice Problems

= 2e t e 2t + ( e 2t )e 3t = 2e t e t = e t. Math 20D Final Review

MA 266 Review Topics - Exam # 2 (updated)

Math 4B Notes. Written by Victoria Kala SH 6432u Office Hours: T 12:45 1:45pm Last updated 7/24/2016

MATH 215/255 Solutions to Additional Practice Problems April dy dt

ORDINARY DIFFERENTIAL EQUATIONS

Do not write below here. Question Score Question Score Question Score

ODE Homework 1. Due Wed. 19 August 2009; At the beginning of the class

Review Problems for Exam 2

MATH 251 Examination I July 5, 2011 FORM A. Name: Student Number: Section:

Entrance Exam, Differential Equations April, (Solve exactly 6 out of the 8 problems) y + 2y + y cos(x 2 y) = 0, y(0) = 2, y (0) = 4.

Math 266, Midterm Exam 1

Exam Basics. midterm. 1 There will be 9 questions. 2 The first 3 are on pre-midterm material. 3 The next 1 is a mix of old and new material.

Work sheet / Things to know. Chapter 3

Calculus for the Life Sciences II Assignment 6 solutions. f(x, y) = 3π 3 cos 2x + 2 sin 3y

Eigenpairs and Diagonalizability Math 401, Spring 2010, Professor David Levermore

= e t sin 2t. s 2 2s + 5 (s 1) Solution: Using the derivative of LT formula we have

Section 9.3 Phase Plane Portraits (for Planar Systems)

FIRST-ORDER ORDINARY DIFFERENTIAL EQUATIONS II: Graphical and Numerical Methods David Levermore Department of Mathematics University of Maryland

ORDINARY DIFFERENTIAL EQUATIONS

MATH 251 Examination I October 5, 2017 FORM A. Name: Student Number: Section:

Department of Mathematics IIT Guwahati

Problem Score Possible Points Total 150

2nd-Order Linear Equations

REVIEW NOTES FOR MATH 266

Math 266: Phase Plane Portrait

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

Graded and supplementary homework, Math 2584, Section 4, Fall 2017

Solutions to Math 53 First Exam April 20, 2010

Ordinary Differential Equation Theory

Applied Differential Equation. November 30, 2012

MATH 251 Examination I July 1, 2013 FORM A. Name: Student Number: Section:

Math 210 Differential Equations Mock Final Dec *************************************************************** 1. Initial Value Problems

= AΦ, Φ(0) = I, = k! tk A k = I + ta t2 A t3 A t4 A 4 +, (3) e ta 1

Form A. 1. Which of the following is a second-order, linear, homogenous differential equation? 2

3.3. SYSTEMS OF ODES 1. y 0 " 2y" y 0 + 2y = x1. x2 x3. x = y(t) = c 1 e t + c 2 e t + c 3 e 2t. _x = A x + f; x(0) = x 0.

Math 20D Final Exam 8 December has eigenvalues 3, 3, 0 and find the eigenvectors associated with 3. ( 2) det

Problem set 7 Math 207A, Fall 2011 Solutions

Math 215/255: Elementary Differential Equations I Harish N Dixit, Department of Mathematics, UBC

MIDTERM 1 PRACTICE PROBLEM SOLUTIONS

Math 215/255 Final Exam, December 2013

dt 2 The Order of a differential equation is the order of the highest derivative that occurs in the equation. Example The differential equation

FINAL EXAM SOLUTIONS, MATH 123

Problem Score Possible Points Total 150

Section , #5. Let Q be the amount of salt in oz in the tank. The scenario can be modeled by a differential equation.

MATH 251 Examination I October 8, 2015 FORM A. Name: Student Number: Section:

+ i. cos(t) + 2 sin(t) + c 2.

MATH 2250 Final Exam Solutions

Solutions to the Review Questions

Second Order Linear ODEs, Part II

MATH 251 Examination I February 25, 2016 FORM A. Name: Student Number: Section:

Half of Final Exam Name: Practice Problems October 28, 2014

APPM 2360: Midterm 3 July 12, 2013.

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

Solutions to Dynamical Systems 2010 exam. Each question is worth 25 marks.

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 the Review Questions

Linear Algebra and ODEs review

Polytechnic Institute of NYU MA 2132 Final Practice Answers Fall 2012

Chapter 6 Nonlinear Systems and Phenomena. Friday, November 2, 12

You may use a calculator, but you must show all your work in order to receive credit.

Differential Equations Spring 2007 Assignments

MATH 251 Final Examination December 16, 2015 FORM A. Name: Student Number: Section:

MATH 307: Problem Set #7

154 Chapter 9 Hints, Answers, and Solutions The particular trajectories are highlighted in the phase portraits below.

Transcription:

Solutions to Final Exam Sample Problems, Math 46, Spring 08 () Consider the differential equation dy dt = (9 y )y. (a) Find all of its stationary points and classify their stability. (b) Sketch its phase-line portrait in the interval 5 y 5. (c) If y (0) =, how does the solution y (t) behave as t? (d) If y (0) = 4, how does the solution y (t) behave as t? (e) Evaluate ( lim y (t) y (t) ). t Solution (a,b). The right-hand side factors as (3 + y)(3 y)y. The stationary solutions are y = 3, y = 0, and y = 3. Therefore a sign analysis of (3 + y)(3 y)y shows that the phase-line portrait for this equation is + + y 3 0 3 unstable semistable stable Solution (c). The phase-line shows that if y (0) = then y (t) 0 as t. Solution (d). The phase-line shows that if y (0) = 4 then y (t) 3 as t. Solution (e). The answers to parts (c) and (d) show that ( y (t) y (t) ) = lim y (t) lim y (t) = 3 0 = 3. t t lim t () Solve each of the following initial-value problems and give the interval of definition of each solution. (a) dy dt + ty + t = t, y(0) =. (b) dy dx + ex y + x y + e = 0, y(0) = 0. x Solution (a). This equation is linear and is already in normal form. An integrating factor is ( t ) s exp 0 + s ds = exp ( log( + t ) ) = + t, so that the integrating factor form is d ( ( + t )y ) = ( + t )t = t + t 4. dt Integrate this to obtain ( + t )y = 3 t3 + 5 t5 + c. The initial condition y(0) = implies that c = ( + 0 ) 3 03 5 05 =. Therefore y = + 3 t3 + 5 t5 + t.

This solution exists for every t, so its interval of definition is (, ). Remark. Because this equation is linear, we can see that the interval of definition of its solution is (, ) without solving it because both its coefficient and forcing are continuous over (, ). Solution (b). The initial-value problem is dy dx + ex y + x y + e = 0, y(0) = 0. x Express this equation in the differential form This differential form is exact because (e x y + x) dx + (y + e x ) dy = 0. y (e x y + x) = e x = x (y + e x ) = e x. Therefore we can find H(x, y) such that x H(x, y) = e x y + x, y H(x, y) = y + e x. The first equation implies H(x, y) = e x y + x + h(y). Plugging this into the second equation gives e x + h (y) = y + e x, which yields h (y) = y. Taking h(y) = y, yields H(x, y) = e x y + x + y. Therefore a general solution is e x y + x + y = c. The initial condition y(0) = 0 implies that c = e 0 0 + 0 + 0 = 0. Therefore y + e x y + x = 0. The quadratic formula then yields the explicit solution y = ex + e x 4x. Here the positive square root is taken because that solution satisfies the initial condition. Its interval of definition is the largest interval (x L, x R ) containing the initial time 0 over which e x > 4x. We cannot find the endpoints of this interval explicitly. (3) Determine constants a and b such that the following equation is exact. Then find a general solution in implicit form. ( ye x + y 3) dx + ( ae x + bxy ) dy = 0. Solution. This equation will be exact whenever Because y ( ye x + y 3) = x ( ae x + bxy ). y ( ye x + y 3) = e x + 3y, x ( ae x + bxy ) = ae x + by, the equation will be exact whenever a = and b = 3. When a = and b = 3 there exists H(x, y) such that x H(x, y) = ye x + y 3, y H(x, y) = e x + 3xy.

The second equation implies H(x, y) = e x y + xy 3 + h(x). Plugging this into the first equation gives e x y + y 3 + h (x) = ye x + y 3, which yields h (x) = 0. Taking h(x) = 0 yields H(x, y) = e x y + xy 3. Therefore a general solution is e x y + xy 3 = c. 3 (4) Consider the following Matlab function m-file. function [t,y] = solveit(ti, yi, tf, n) t = zeros(n +, ); y = zeros(n +, ); t() = ti; y() = yi; h = (tf - ti)/n; for i = :n t(i + ) = t(i) + h; y(i + ) = y(i) + h*((t(i))ˆ4 + (y(i))ˆ); end Suppose that the input values are ti =, yi =, tf = 5, and n = 40. (a) What initial-value problem is being approximated numerically? (b) What numerical method is being used? (c) What is the step size? (d) What are the output values of t(), y(), t(3), and y(3)? Solution (a). The initial-value problem being approximated numerically is dy dt = t4 + y, y() =. Solution (b). The explicit Euler (forward Euler) method is being used. Solution (c). The step size is h = tf ti n = 5 40 = 4 40 = 0 =.. Solution (d). By carrying out the for loop in the Matlab code for i = and i = we obtain the output values t() = t() + h = +. =., y() = y() + h*((t())ˆ4 + (y())ˆ) = +.( 4 + ) = +. =.. t(3) = t() + h =. +. =., y(3) = y() + h*((t())ˆ4 + (y())ˆ) =. +. ( (.) 4 + (.) ). You DO NOT have to work out the arithmetic to compute y(3)! If you did then you would obtain y(3) =.4904. Remark. You should be able to answer similar questions that employ either the Runge-trapeziodal or Runge-midpoint method.

4 (5) Consider the following Matlab commands. [t,y] = ode45(@(t,y) y.*(y ).*( y), [0,3], -0.5:0.5:.5); plot(t,y) The following questions need not be answered in Matlab format! (a) What is the differential equation being solved numerically? (b) Give the initial condition for each solution being approximated? (c) Over what time interval are the solutions being approximated? (d) Sketch each of these solutions over this time interval on a single graph. Label the initial value of each solution clearly. (e) What is the limiting behavior of each solution as t? Solution (a). The differential equation being solved numerically is y = y(y )( y). Solution (b). There are seven solutions being approximated numerically. Their initial conditions are y(0) = 0.5, y(0) = 0.0, y(0) = 0.5, y(0) =.0, y(0) =.5, y(0) =.0, y(0) =.5. Solution (c). These solutions are being approximated over the time interval [0, 3]. Solutions (d) and (e). A sign analysis of y(y )( y) shows that the phase-line portrait for this equation is + + y 0 stable unstable stable This shows that: for the initial condition y(0) = 0.5 y(t) increases to 0 as t ; for the initial condition y(0) = 0.0 y(t) = 0 for every t > 0 ; for the initial condition y(0) = 0.5 y(t) decreases to 0 as t ; for the initial condition y(0) =.0 y(t) = for every t > 0 ; for the initial condition y(0) =.5 y(t) increases to as t ; for the initial condition y(0) =.0 y(t) = for every t > 0 ; for the initial condition y(0) =.5 y(t) decreases to as t. If someone asks for it, the sketch for part (d) will be given during the review session. It should be fairly evident from the above analysis.

(6) Let y(t) be the solution of the initial-value problem y = 4t(y + y ), y(0) =. (a) Use two steps of the explicit Euler method to approximate y(). (b) Use one step of the Runge-trapeziodal method to approximate y(). (c) Use one step of the Runge-midpoint method to approximate y(). Solution (a). The explicit (forward) Euler method is f n = f(y n, t n ), y n+ = y n + hf n, t n+ = t n + h, where h is the time step, t 0 is the initial time, and y 0 is the initial value. When the explicit Euler method is applied with h = 0.5, t 0 = 0, y 0 =, and f(y, t) = 4t(y + y ) for two steps f 0 = f(y 0, t 0 ) = f(, 0) = 4 0 ( + ) = 0, y = y 0 + hf 0 = + 0.5 0 =, t = t 0 + h = 0 + 0.5 = 0.5, Therefore the approximation is f = f(y, t ) = f(, 0.5) = 4 0.5 ( + ) = 4, y = y + hf = + 0.5 4 = 3. y() y = 3. Solution (b). The Runge-trapeziodal method is f n = f(y n, t n ), ỹ n+ = y n + hf n, t n+ = t n + h, f n+ = f(ỹ n+, t n+ ), y n+ = y n + h (f n + f n+ ). where h is the time step, t 0 is the initial time, and y 0 is the initial value. When the Runge-trapezoidal method is applied with h =, t 0 = 0, y 0 =, and f(y, t) = 4t(y + y ) for one step Therefore the approximation is f 0 = f(y 0, t 0 ) = f(, 0) = 4 0 ( + ) = 0, ỹ = y 0 + hf 0 = + 0 =, t = t 0 + h = 0 + =, f = f(y, t ) = f(, ) = 4 ( + ) = 8, y = y 0 + h (f 0 + f ) = + 0.5 (0 + 8) = 5. y() y = 5. Solution (c). The Runge-midpoint method is f n+ f n = f(y n, t n ), y n+ = f(y n+ = y n + h f n, t n+, t n+ ), y n+ = y n + hf n+ = t n + h,, t n+ = t n + h. where h is the time step, t 0 is the initial time, and y 0 is the initial value. 5

6 When the Runge-midpoint method is applied with h =, t 0 = 0, y 0 =, and f(y, t) = 4t(y + y ) for one step f 0 = f(y 0, t 0 ) = f(, 0) = 4 0 ( + ) = 0, y t f = y 0 + h f 0 = +.5 0 =, = t 0 + h = f(y y = y 0 + hf Therefore the approximation is = 0 + 0.5 = 0.5,, t ) = f(, 0.5) = 4 0.5 ( + ) = 4, = + 4 = 5. y() y = 5. (7) Give an explicit real-valued general solution of the following equations. (a) y y + 5y = t e t + cos(t) (b) ü 3 u 0u = t e t (c) v + 9v = cos(3t) (d) w + 3w + 36w = 9 sin(t) Solution (a). This is a constant coefficient, nonhomogeneous, linear equation. Its characteristic polynomial is p(z) = z z + 5 = (z ) + 4 = (z ) +. This has the conjugate pair of roots ± i, which yields a general solution of the associated homogeneous problem y H (t) = c e t cos(t) + c e t sin(t). The forcing t e t + cos(t) has composite characteristic form because it is the sum of two terms, each of which has characteristic form. The forcing term te t has degree d =, characteristic µ + iν =, and multiplicity m = 0. The forcing term cos(t) has degree d = 0, characteristic µ + iν = i and multiplicity m = 0. Because their characteristics are different, these terms must be treated separately. A particular solution y P (t) can be found by either the method of Key Identity Evaluations or the method of Undetermined Coefficients. Key Indentity Evaluations. The forcing term t e t has degree d =, characteristic µ + iν =, and multiplicity m = 0. Because m = 0 and m + d =, we need the Key Identity and its first derivative L(e zt ) = (z z + 5)e zt, L(t e zt ) = (z z + 5)t e zt + (z ) e zt. Evaluate these at z = to find L(e t ) = 4e t and L(t e t ) = 4t e t. Dividing the second of these equations by 4 yields L( 4 t et ) = t e t, which implies y P (t) = 4 t et. The forcing term cos(t) has degree d = 0, characteristic µ + iν = i, and multiplicity m = 0. Because m = m + d = 0, we only need the Key Identity, L(e zt ) = (z z + 5)e zt.

Evaluating this at z = i to find L(e it ) = ( i4)e it and dividing by i4 yeilds e it L = e it. i4 Because cos(t) = Re(e it ), the above equation implies e it ( + i4)e it y P (t) = Re = Re i4 + 4 = 7 Re( ( + i4)e it) = 7( cos(t) 4 sin(t) ). Upon combining these two particular solutions with the general solution of the associated homogeneous problem found earlier we obtain the general solution y = y H (t) + y P (t) + y P (t) = c e t cos(t) + c e t sin(t) + 4 t et + 7 cos(t) 4 7 sin(t). Undetermined Coefficients. The forcing term t e t has degree d =, characteristic µ + iν =, and multiplicity m = 0. Because m = 0 and m + d =, we seek a particular solution of the form Because y P (t) = A 0 t e t + A e t. y P (t) = A 0 t e t + (A 0 + A )e t, y P (t) = A 0 t e t + (A 0 + A )e t, we see that Ly P (t) = y P (t) y P (t) + 5y P (t) = ( A 0 t e t + (A 0 + A )e t) ( A 0 t e t + (A 0 + A )e t) + 5 ( A 0 t e t + A e t) = 4A 0 t e t + 4A e t. Setting 4A 0 t e t + 4A e t = t e t, we see that 4A 0 = and 4A = 0, whereby A 0 = 4 and A = 0. Hence, a particular solution is y P (t) = 4 t et. The forcing term cos(t) has degree d = 0, characteristic µ + iν = i, and multiplicity m = 0. Because m = 0 and m + d = 0, we seek a particular solution of the form y P (t) = A cos(t) + B sin(t). Because y P (t) = A sin(t) + B cos(t), y P (t) = 4A cos(t) 4B sin(t), we see that Ly P (t) = y P (t) y P (t) + 5y P (t) = ( 4A cos(t) 4B sin(t) ) ( A sin(t) + B cos(t) ) + 5 ( A cos(t) + B sin(t) ) = (A 4B) cos(t) + (B + 4A) sin(t). 7

8 Setting (A 4B) cos(t) + (B + 4A) sin(t) = cos(t), we see that A 4B =, B + 4A = 0. This system can be solved by any method you choose to find A = and B = 4 7 whereby a particular solution is y P (t) = 7 cos(t) 4 7 sin(t). Upon combining these two particular solutions with the general solution of the associated homogeneous problem found earlier we obtain the general solution y = y H (t) + y P (t) + y P (t) = c e t cos(t) + c e t sin(t) + 4 t et + 7 cos(t) 4 7 sin(t). Solution (b). The equation is ü 3 u 0u = te t. This is a constant coefficient, nonhomogeneous, linear equation. Its characteristic polynomial is p(z) = z 3z 0 = (z 5)(z + ). This has the two real roots 5 and, which yields a general solution of the associated homogeneous problem u H (t) = c e 5t + c e t. The forcing t e t has characteristic form with degree d =, characteristic µ + iν =, and multiplicity m =. Therefore a particular solution u P (t) can be found by either the method of Key Identity Evaluations or the method of Undetermined Coefficients. Key Indentity Evaluations. Because m = and m + d =, we will need the first and second derivative of the Key Identity, which are computed from the Key Identity as L(e zt ) = (z 3z 0) e zt, L(t e zt ) = (z 3z 0) t e zt + (z 3) e zt, L(t e zt ) = (z 3z 0) t e zt + (z 3) t e zt + e zt. Evaluate the last two of these at z = to find By adding 7 L(t e t ) = 7e t, L(t e t ) = 4t e t + e t. of the first to the second we get Upon dividing this by 4 we obtain L ( t e t + 7 t e t) = 4t e t. L ( 4 t e t 98 t e t) = t e t, whereby a particular solution is u P (t) = 4 t e t 98 t e t. Therefore a general solution is u(t) = u H (t) + u P (t) = c e 5t + c e t 4 t e t 98 t e t. 7,

Undetermined Coefficients. Because µ + iν = while m = and m + d =, we seek a particular solution of the form Because u P (t) = A 0 t e t + A t e t. u P (t) = A 0 t e t + (A 0 A )t e t + A e t, ü P (t) = 4A 0 t e t + ( 8A 0 + 4A )t e t + (A 0 4A )e t, we see that Lu P (t) = ü P (t) 3 u P (t) 0u P (t) = ( 4A 0 t e t + ( 8A 0 + 4A )t e t + (A 0 4A )e t) 3 ( A 0 t e t + (A 0 A )t e t + A e t) 0 ( A 0 t e t + A t e t) = 4A 0 t e t + (A 0 7A )e t. By setting 4A 0 t e t + (A 0 7A )e t = t e t we see that 4A 0 =, A 0 7A = 0. This system can be solved by any method you choose to find A 0 = and A 4 = whereby a particular solution is u P (t) = 4 t e t 98 t e t. Therefore a general solution is u(t) = u H (t) + u P (t) = c e 5t + c e t 4 t e t 98 t e t. Solution (c). The equation is v + 9v = cos(3t). This is a constant coefficient, nonhomogeneous, linear equation. Its characteristic polynomial is p(z) = z + 9 = z + 3. This has the conjugate pair of roots ±i3, which yields a general solution of the associated homogeneous problem v H (t) = c cos(3t) + c sin(3t). The forcing cos(3t) has characteristic form with degree d = 0, characteristic µ + iν = i3, and multiplicity m =. Therefore a particular solution v P (t) can be found by either the method of Key Identity Evaluations, the Zero-Degree Formula, or the method of Undetermined Coefficients. Key Indentity Evaluations. Because m = and m + d =, we need the first derivative of the Key Identity, which is found as L(e zt ) = (z + 9) e zt, L(t e zt ) = (z + 9) t e zt + z e zt. Evaluate the first derivative of the Key Identity at z = i3 to find that L(t e i3t ) = i6 e i3t. 9 98,

0 Because cos(3t) = Re(e i3t ), upon dividing by i6 and taking the real part we see that a particular solution is v P (t) = Re ( i6 t ei3t) = Re ( i6 t (cos(3t) + i sin(3t))) = 6 t sin(3t). Therefore a general solution is v(t) = v H (t) + v P (t) = c cos(3t) + c sin(3t) + 6 t sin(3t). Zero-Degree Formula. For a forcing f(t) with degree d = 0, characteristic µ + iν, and multiplicity m that has the form f(t) = αe µt cos(νt) + βe µt sin(νt) = e µt Re ( (α iβ)e iνt), this formula gives the particular solution α iβ v P (t) = t m e µt Re p (m) (µ + iν) eiνt. For this problem f(t) = cos(3t) = Re(e i3t ) and p(z) = z + 9, so that µ + iν = i3, α iβ =, m =, and p (z) = z. whereby e i3t cos(3t) + i sin(3t) v P (t) = t Re = t Re p (i3) i6 Therefore a general solution is = 6 t Re(sin(3t) i cos(3t)) = 6 t sin(3t). v(t) = v H (t) + v P (t) = c cos(3t) + c sin(3t) + 6 t sin(3t). Undetermined Coefficients. Because µ + iν = i3 and m = m + d =, we seek a particular solution in the form Because v P (t) = At cos(3t) + Bt sin(3t). v P (t) = 3At sin(3t) + 3Bt cos(3t)a cos(3t) + B sin(3t), v P (t) = 9At cos(3t) 9Bt sin(3t) 6A sin(3t) + 6B cos(3t), we see that Lv P (t) = v P (t) + 9v P (t) = ( 9At cos(3t) 9Bt sin(3t) 6A sin(3t) + 6B cos(3t) ) + 9 ( At cos(3t) + Bt sin(3t) ) = 6A sin(3t) + 6B cos(3t). By setting 6A sin(3t) + 6B cos(3t) = cos(3t) we see that A = 0 and B = 6, whereby a particular solution is Therefore a general solution is v P (t) = 6 t sin(3t). v(t) = v H (t) + v P (t) = c cos(3t) + c sin(3t) + 6 t sin(3t). Remark. Because of the simple form of this equation, if we had tried to solve it by either the Green Function or Variation of Parameters method then integrals that

arise are not too difficult. However, it is not generally a good idea to use these methods for such problems because evaluating the integrals that arise often involve much more work that the methods shown above. Solution (d). The equation is w + 3w + 36w = 9 sin(t). This is a constant coefficient, nonhomogeneous, linear equation. Its characteristic polynomial is p(z) = z 4 + 3z + 36 = (z + 4)(z + 9) = (z + )(z + 3 ). This has the two conjugate pair of roots ±i and ±i3, which yields a general solution of the associated homogeneous problem w H (t) = c cos(t) + c sin(t) + c 3 cos(3t) + c 4 sin(3t). The forcing 9 sin(t) has characteristic form with degree d = 0, characteristic µ+iν = i, and multiplicity m = 0. Therefore a particular solution w P (t) can be found by either the method of Key Identity Evaluations, the Zero-Degree Formula, or the method of Undetermined Coefficients. Key Identity Evaluations. Because m = 0 and m + d = 0, we need only the Key Identity, which is Evaluate this at z = i to obtain L(e zt ) = (z 4 + 3z + 36) e zt. L(e it ) = (i 4 + 3 i + 36)e it = 4e it. Because 9 sin(t) = Re( i9e it ), upon multiplying by i9/4 and taking the real part we see that a particular solution is i9 w P (t) = Re = 3 Re(sin(t) i cos(t)) = 3 sin(t). 8 8 4 eit Therefore a general solution is w(t) = w H (t) + w P (t) = c cos(t) + c sin(t) + c 3 cos(3t) + c 4 sin(3t) + 3 8 sin(t). Zero-Degree Formula. For a forcing f(t) with degree d = 0, characteristic µ + iν, and multiplicity m that has the form f(t) = αe µt cos(νt) + βe µt sin(νt) = e µt Re ( (α iβ)e iνt), this formula gives the particular solution α iβ w P (t) = t m e µt Re p (m) (µ + iν) eiνt.

For this problem f(t) = 9 sin(t) and p(z) = z 4 + 3z + 36, so that µ + iν = i, α iβ = i9, and m = 0, whereby ( ) i9 i9 w P (t) = Re p(i) eit = Re i 4 + 3 i + 36 eit ( i9 ) = Re cos(t) + i sin(t) = 3 8 4 Re(sin(t) i cos(t)) = 3 sin(t). 8 Therefore a general solution is w(t) = w H (t) + w P (t) = c cos(t) + c sin(t) + c 3 cos(3t) + c 4 sin(3t) + 3 8 sin(t). Undetermined Coefficients. Because µ + iν = i and m = m + d = 0, we seek a particular solution in the form Because w P (t) = A cos(t) + B sin(t). w P (t) = A sin(t) + B cos(t), w P (t) = A cos(t) B sin(t), w P (t) = A sin(t) B cos(t), w P (t) = A cos(t) + B sin(t), we see that Lw P (t) = w P (t) + 3w P (t) + 36w P (t) = ( A cos(t) + B sin(t) ) + 3 ( A cos(t) B sin(t) ) + 36 ( A cos(t) + B sin(t) ) = 4A cos(t) + 4B sin(t). By setting 4A cos(t)+4b sin(t) = 9 sin(t) we see that A = 0 and 4B = 9, whereby a particular solution is w P (t) = 3 8 sin(t). Therefore a general solution is w(t) = w H (t) + w P (t) = c cos(t) + c sin(t) + c 3 cos(3t) + c 4 sin(3t) + 3 8 sin(t). (8) Given that y (t) = t and y (t) = t are solutions of the associated homogeneous equation, find a general solution of t y + t y y = 3 + 5t, for t > 0. t Solution. This is a variable coefficient, nonhomogeneous, linear equation. We are given that y (t) = t and y (t) = t are solutions of the associated homogeneous equation. Their Wronskian is t t Wr[t, t ] = det t 3 = t t = 3t.

Because Wr[t, t ] 0 for t > 0, y (t) = t and y (t) = t are a fundamental set of solutions for the associated homogeneous equation, and a general solution of that equation is y H (t) = c t + c t. To find a general solution of the given nonhomogeneous equation we need to find a particular solution y P (t) of that equation. Because this equation has variable coefficients, we will use either the General Green Function or the Variation of Parameters method. To use either method we must put the equation into its normal form y + t y t y = 3 t 4 + 5 t, for t > 0. General Green Function. The Green function is given s s G(t, s) = Wr[s, s ] det t t = s( t s t s ) ( = 3 3 t t s 3). Then the particular solution that satisfies y() = y () = 0 is given by t t ( y P (t) = G(t, s) f(s) ds = 3 t t s 3)( 3 s + 5 ) ds 4 s t t t = t ds t s4 s ds + 5t t 3 s ds 5 3 t s ds = t( t 3) t log(t) + 5t log(t) 5 3 3 9 t (t 3 ). Because the first and last terms above are solutions of the associated homogeneous equation, a general solution can be expressed as y(t) = c t + c t t log(t) + 5 3 t log(t). Variation of Parameters. Seek a general solution in the form y(t) = t u (t) + t u (t), where u (t) and u (t) satisfy the linear algebraic system The solution of this system is t u (t) + t u (t) = 0, u (t) t 3 u (t) = 3t 4 + 5t. u (t) = 3( 3t 4 + 5t ), u (t) = 3 t3( 3t 4 + 5t ). Upon integrating these equations we find that u (t) = c 3 t 3 + 5 3 log(t), u (t) = c log(t) 5 9 t3. Therefore a general solution of the nonhomogeneous linear equation is y(t) = c t + c t 3 t + 5 3 t log(t) t log(t) 5 9 t. 3

4 (9) Solve the following initial-value problems. (a) w + 4w + 0w = 5e t, w(0) = 3, w (0) = 7. (b) y 4y + 4y = et 3 + t, y(0) = 0, y (0) = 5. Evaluate any definite integrals that arise. Solution (a). This is a constant coefficient, nonhomogeneous, linear equation. Its characteristic polynomial is p(z) = z + 4z + 0 = (z + ) + 6 = (z + ) + 4. This has the conjugate pair of roots ± i4, which yields a general solution of the associated homogeneous problem w H (t) = c e t cos(4t) + c e t sin(4t). The forcing 5e t has characteristic form with degree d = 0, characteristic µ + iν =, and multiplicity m = 0. Therefore a particular solution w P (t) can be found by either the method of Key Identity Evaluations, the Zero-Degree Formula, or the method of Undetermined Coefficients. Key Indentity Evaluations. Because m = 0 and m + d = 0, we only need the Key Identity, L(e zt ) = (z + 4z + 0) e zt. Evaluate this at z = to find that Upon multiplying this by 5 3 L(e t ) = (4 + 8 + 0)e t = 3e t. we see that a particular solution is w P (t) = 5 3 et. Zero-Degree Formula. For a forcing f(t) with degree d = 0, characteristic µ + iν, and multiplicity m that has the form f(t) = αe µt cos(νt) + βe µt sin(νt) = e µt Re ( (α iβ)e iνt), this formula gives the particular solution α iβ w P (t) = t m e µt Re p (m) (µ + iν) eiνt. For this problem f(t) = 5e t and p(z) = z + 4z + 0, so that µ + iν =, α iβ = 5, and m = 0, whereby w P (t) = e t 5 p() = 5 3 et. Undetermined Coefficients. Because µ + iν = and m = m + d = 0, we seek a particular solution in the form Because w P (t) = Ae t. w P (t) = Ae t, w P (t) = 4Ae t,

we see that Lw P (t) = w P (t) + 4w P (t) + 0w P (t) = 4Ae t + 4(Ae t ) + 0Ae t = 3Ae t. By setting 3Ae t = 5e t, we see that A = 5, whereby a particular solution is 3 w P (t) = 5 3 et. Solving the Initial-Value Problem. By either method we find that a general solution is Because w(t) = w H (t) + w P (t) = c e t cos(4t) + c e t sin(4t) + 5 3 et. w (t) = c e t cos(4t) 4c e t sin(4t) c e t sin(4t) + 4c e t cos(4t) + 5 6 et, the initial conditions yield 3 = w(0) = c + 5, 7 = 3 w (0) = c + 4c + 5. 6 Upon solving this system we find that c = 9 and c 3 = 3, whereby the solution 3 of the initial-value problem is w(t) = 9 3 e t cos(4t) 3 3 e t sin(4t) + 5 3 et. Solution (b). The initial-value problem is y 4y + 4y = et 3 + t, y(0) = 0, y (0) = 5. This is a constant coefficient, nonhomogeneous, linear equation in normal form. Its characteristic polynomial is p(z) = z 4z + 4 = (z ). This has the double real root, which yields a general solution of the associated homogeneous problem y H (t) = c e t + c t e t. The forcing e t /(3 + t) does not have characteristic form. Therefore a particular solution y P (t) cannot be found by either the method of Key Identity Evaluations or the method of Undetermined Coefficients. Rather, we must use either the Green Function or the Variation of Parameters method. Green Function. The associated Green function g(t) satisfies g 4g + 4g = 0, g(0) = 0, g (0) =. A general solution of this equation is g(t) = c e t + c t e t. Because 0 = g(0) = c, we see that g(t) = c t e t. Then g (t) = c e t + c t e t. Because = g (0) = c, the Green function is g(t) = t e t. 5

6 The particular solution y P (t) that satisfies y P (0) = y P (0) = 0 is given by Because t 0 t 0 we find that y P (t) = t 0 = e t t g(t s) es 3 + s ds = 0 t s 3 + s ds = et t 3 + s ds = log(3 + s) t 0 s 3 + s ds = t 0 t 0 t 0 (t s)e t s es ds et 3 + s 3 ds = t 3 log 3 + s 3 3 + s ds t 0 s 3 + s ds. ( 3 + t = log(3 + t) log(3) = log 3 3 + t, y P (t) = e t t log( + 3 t) et( t 3 log( + 3 t)). Therefore a general solution of the equation is Because y(t) = c e t + c t e t + y P (t). y (t) = c e t + c t e t + c e t + y P (t), and because y P (0) = y P (0) = 0, the initial conditions imply 0 = y(0) = c, 5 = y (0) = c + c. We find that c = 0 and c = 5, whereby the solution of the initial-value problem is y(t) = 5t e t + e t t log( + 3 t) et( t 3 log( + 3 t)). Variation of Parameters. The equation is already in normal form. Therefore we seek a particular solution of the form such that y P (t) = e t u (t) + t e t u (t), e t u (t) + t e t u (t) = 0, e t u (t) + (t e t + e t )u (t) = et 3 + t. This system can be solved to find that u (t) = t 3 + t, u (t) = 3 + t. These can be integrted to obtain t u (t) = 3 + t dt = 3 3 + t dt = t + 3 log(3 + t) + c, u (t) = 3 + t dt = log(3 + t) + c, whereby a general solution is y(t) = c e t e t( t 3 log(3 + t) ) + c t e t + t e t log(3 + t). ),

Because y (t) = c e t e t( t 3 log(3 + t) ) ( e t 3 ) 3 + t + c t e t + c e t + t e t log(3 + t) + e t log(3 + t) + t e t 3 + t, the initial conditions imply that 0 = y(0) = c + 3 log(3), 5 = y (0) = c + 6 log(3) + c + log(3). We can solve this system to find that c = 3 log(3) and c = 5 log(3). Therefore the solution of the initial-value problem is y(t) = 3 log(3)e t e t( t 3 log(3 + t) ) + ( 5 log(3) ) t e t + t e t log(3 + t). (0) Give an explicit general solution of the equation ḧ + ḣ + 5h = 0. Sketch a typical solution for t 0. If this equation governs a spring-mass system, is the system undamped, under damped, critically damped, or over damped? (Give your reasoning!) Solution. This is a constant coefficient, homogeneous, linear equation. Its characteristic polynomial is p(z) = z + z + 5 = (z + ) +. This has the conjugate pair of roots ± i, which yields a general solution h(t) = c e t cos(t) + c e t sin(t). When c + c > 0 this can be put into the amplitute-phase form h(t) = Ae t cos(t δ), where A > 0 and 0 δ < π are determined from c and c by A = c + c, cos(δ) = c A, sin(δ) = c A. In other words, (A, δ) are the polar coordinates for the point in the plane whose Cartesian coordinates are (c, c ). The sketch should show a decaying oscillation with amplitude Ae t and damped period π = π. A sketch might be given during the review session. The equation governs an under damped spring-mass system because its characteristic polynomial has a conjugate pair of roots with negative real part. 7 () When a mass of kilograms is hung vertically from a spring, it stretches the spring 0.5 meters. (Gravitational acceleration is 9.8 m/sec.) At t = 0 the mass is set in motion from 0.3 meters below its rest (equilibrium) position with a upward velocity of m/sec. It is acted upon by an external force of cos(5t). Neglect damping and assume that the spring force is proportional to its displacement. Formulate an initial-value problem that governs the motion of the mass for t > 0. (Do not solve this initial-value problem; just write it down!)

8 Solution. Let h(t) be the displacement (in meters) of the mass from its equilibrium (rest) position at time t (in seconds), with upward displacements being positive. The governing initial-value problem then has the form mḧ + kh = cos(5t), h(0) =.3, h (0) =, where m is the mass and k is the spring constant. The problem says that m = kilograms. The spring constant is obtained by balancing the weight of the mass (mg = 9.8 Newtons) with the force applied by the spring when it is stetched.5 m. This gives k.5 = 9.8, or k = 9.8.5 = 4 9.8 Newtons/m. Therefore the governing initial-value problem is ḧ + 4 9.8h = cos(5t), h(0) =.3, h (0) =. Had you chosen downward displacements to be positive then the sign of the initial data would change! You should make your convention clear! () Find the Laplace transform Y (s) of the solution y(t) to the initial-value problem y + 4y + 8y = f(t), y(0) =, y (0) = 4. where f(t) = { 4 for 0 t <, t for t. You may refer to the table of Laplace transforms on the last page. (Do not take the inverse Laplace transform to find y(t); just solve for Y (s)!) Solution. The Laplace transform of the initial-value problem is L[y ](s) + 4L[y ](s) + 8L[y](s) = L[f](s), where L[y](s) = Y (s), L[y ](s) = s L[y](s) y(0) = sy (s), L[y ](s) = s L[y ](s) y (0) = s Y (s) s 4. To compute L[f](s), first write f as f(t) = ( u(t ) ) 4 + u(t )t = 4 u(t )4 + u(t )t = 4 + u(t )(t 4) = 4 + u(t )j(t ), where by the shifty step method j(t) = (t + ) 4 = t + 4t.

Referring to the table of Laplace transforms, line 9 with c = and j(t) = t + 4t, and line with a = 0 and n =, and with a = 0 and n = then show that L[f](s) = 4L[](s) + L [ u(t )j(t ) ] (s) = 4L[](s) + e s L [ j(t) ] (s) = 4L[](s) + e s L[4t + t ](s) = 4L[](s) + 4e s L[t](s) + e s L[t ](s) = 4 s + 4e s s + e s s 3. The Laplace transform of the initial-value problem then becomes ( s Y (s) s 4 ) + 4 ( sy (s) ) + 8Y (s) = 4 s + e s 4 s + e s s 3, 9 which becomes (s + 4s + 8)Y (s) s = 4 s + e s 4 s + e s s 3. Hence, Y (s) is given by Y (s) = (s + + 4s s + 4s + 8 + 4s e s + s ) e s. 3 (3) Find the function y(t) whose Laplace transform Y (s) is given by e 3s 4 (a) Y (s) = s 6s + 5, (b) Y (s) = e s s s + 4s + 8. You may refer to the table of Laplace transforms on the last page. Solution (a). The denominator factors as (s 5)(s ), so we have the partial fraction identity 4 s 6s + 5 = 4 (s 5)(s ) = s 5 s. Referring to the table of Laplace transforms, line with a = 5 and n = 0 and with a = and n = 0 gives [ ] [ ] L (t) = e 5t, L (t) = e t, s 5 s whereby [ ] [ L 4 (t) = L s 6s + 5 s 5 ] = e 5t e t. s It follows from line 9 with c = 3 and j(t) = e 5t e t that [ ] y(t) = L [Y (s)](t) = L e 3s 4 (t) s 6s + 5 [ ] = u(t 3)L 4 (t 3) = u(t 3) ( e 5(t 3) e t 3). s 6s + 5

0 Solution (b). The denominator does not have real factors. The partial fraction identity is s s + 4s + 8 = s (s + ) + 4 = s + (s + ) + (s + ) +. Referring to the table of Laplace transforms, lines and 3 with a = and b = give [ [ ] L s + ](t) = e t cos(t), L (t) = e t sin(t), (s + ) + (s + ) + whereby [ [ [ L s ](t) = L s + ](t) L s + 4s + 8 (s + ) + = e t( cos(t) sin(t) ). (s + ) + ] (t) It follows from line 9 with c = and j(t) = e t( cos(t) sin(t) ) that [ [ ] y(t) = L [Y (s)](t) = L e s s ](t) = u(t )L s (t ) s + 4s + 8 s + 4s + 8 = u(t )e (t )( cos((t )) sin((t )) ). (4) Two interconnected tanks, each with a capacity of 60 liters, contain brine (salt water). At t = 0 the first tank contains liters and the second contains 7 liters. Brine with a salt concentration of 6 grams per liter flows into the first tank at 7 liters per hour. Well-stirred brine flows from the first tank into the second at 8 liters per hour, from the second into the first at 5 liters per hour, from the first into a drain at liter per hour, and from the second into a drain at 4 liters per hour. At t = 0 there are 3 grams of salt in the first tank and 43 grams in the second. (a) Determine the volume of brine in each tank as a function of time. (b) Give an initial-value problem that governs the amount of salt in each tank as a function of time. (Do not solve the IVP.) (c) Give the interval of definition for the solution of this initial-value problem. Remark. Let V (t) and V (t) be the volumes (lit) of brine in the first and second tank at time t hours. Let S (t) and S (t) be the mass (gr) of salt in the first and second tank at time t hours. Because the mixtures are assumed to be well-stirred, the salt concentration of the brine in the tanks at time t are C (t) = S (t)/v (t) and C (t) = S (t)/v (t) respectively. In particular, these are the concentrations of the brine that flows out of these tanks. We have the following picture. 6 gr/lit 7 lit/hr C (t) gr/lit lit/hr V (t) lit S (t) gr V (0) = lit S (0) = 3 gr C (t) gr/lit 8 lit/hr C (t) gr/lit 5 lit/hr V (t) lit S (t) gr V (0) = 7 lit S (0) = 43 gr C (t) gr/lit 4 lit/hr

Solution (a). You are asked to determine V (t) and V (t). The rates work out so that V (t) = + t liters, V (t) = 7 t liters. Remark. Because the tanks each have a capacity of 60 liters, we have the restrictions These restrictions are 0 V (t) = + t 60, 0 V (t) = 7 t 60. which combine to give the restrictions t 9, 53 t 7, t 7. Notice that each of these restrictions happen when one of the tanks is empty. If the numbers had been different restriction then one or both of these restrictions could happen when one of the tanks is full. For example, if the tanks each had a capacity of 50 liters then the restrictions would be t 4. Solution (b). You are asked to give an initial-value problem that governs S (t) and S (t). These are governed by the initial-value problem ds dt = 6 7 + S 7 t 5 S + t 8 S + t, S (0) = 3, ds dt = S + t 8 S 7 t 5 S 7 t 4, S (0) = 43. You could leave the answer in the above form. It can however be simplified to ds dt = 4 + 5 7 t S 5 + t S, S (0) = 3, ds dt = 4 + t S 9 7 t S, S (0) = 43. Solution (c). You are asked to give the interval of definition for the solution of this initial-value problem. This can be done because the differential equation is linear. Its coefficients are undefined either at t = or at t = 7 and are continuous elsewhere. Its forcing is constant, so is continuous everywhere. Therefore the natural interval of definition of this initial-value problem is (, 7) because: the initial time t = 0 is in (, 7); all the coefficients and the forcing are continuous over (, 7); two coefficients are undefined at t = ; two coefficients are undefined at t = 7. This interval is consistent with the restictions given earlier. However, it could also be argued that the interval of definition for the solution of this initial-value problem is [0, 7) because the word problem starts at t = 0.

( t 3 (5) Consider the real vector-valued functions x (t) =, x t) (t) = 3 + t 4. (a) Compute the Wronskian Wr[x, x ](t). (b) Find A(t) such that x, x is a fundamental set of solutions to the linear system x = A(t)x. (c) Give a general solution to the system you found in part (b). Solution (a). The Wronskian is given by t 3 Wr[x, x ](t) = det t 3 + t 4 = (3 + t 4 ) t t 3 = 3 + t 4 t 4 = 3. Solution (b). Set Ψ(t) = ( x (t) x (t) ) t 3 = t 3 + t 4. If x (t) and x (t) each satisfy x = A(t)x then Ψ(t) must satisfy Ψ (t) = A(t)Ψ(t). Because det(ψ(t)) = Wr[x, x ](t) = 3 0, we see that Ψ(t) is a fundamental matrix of the linear system with A(t) given by 0 3t A(t) = Ψ (t) Ψ(t) 3 + t 4 t = 3 4t 3 3 t = 3t 3 3t t 3 t 3 3 3t 4 3t 3 = t 4 t 3. Therefore x (t), x (t) is a fundamental set of solutions for the linear system whose coefficient matrix is this A(t). Solution (c). Because x (t), x (t) is a fundamental set of solutions for the linear system whose coefficient matrix is A(t), a general solution is given by t 3 x(t) = c x (t) + c x (t) = c + c t 3 + t 4. (6) Give a real, vector-valued general solution of the linear planar system x = Ax for 6 4 (a) A =, (b) A =. 4 0 Solution (a) by Eigen Methods. The characteristic polynomial of A = is p(z) = z tr(a)z + det(a) = z 6z 6 = (z + )(z 8). 6 4 4 0 The eigenvalues of A are the roots of this polynomial, which are and 8. Because 8 4 4 A + I =, A 8I =, 4 4 8

3 we see that A has the eigenpairs ( (,, )) ( ( 8,. )) Form these eigenpairs we construct the solutions x (t) = e t, x (t) = e 8t, Therefore a general solution is x(t) = c x (t) + c x (t) = c e t + c e 8t. Solution (a) by Formula. The characteristic polynomial of A = p(z) = z tr(a)z + det(a) = z 6z 6 = (z 3) 5 = (z 3) 5. This is a difference of squares with µ = 3 and ν = 5. Therefore we have [ e ta = e 3t cosh(5t)i + sinh(5t) ] (A 3I) 5 0 = e [cosh(5t) 3t + sinh(5t) ] 3 4 0 5 4 3 ( cosh(5t) + = e 3t 3 sinh(5t) 4 sinh(5t) ) 5 5 4 sinh(5t) cosh(5t) 3 sinh(5t). 5 5 6 4 is 4 0 Therefore a general solution is given by ( x(t) = e ta c cosh(5t) + = c c e 3t 3 sinh(5t) ) ( 5 4 sinh(5t) + c e 3t 4 sinh(5t) ) 5 cosh(5t) 3 sinh(5t). 5 5 Solution (b) by Formula. The characteristic polynomial of A = p(z) = z tr(a)z + det(a) = z z + 5 = (z ) + 4 = (z ) +. is This is a sum of squares with µ = and ν =. Therefore we have [ e ta = e t cos(t)i + sin(t) ] (A I) 0 = e [cos(t) t + sin(t) ] 0 cos(t) sin(t) = e 0 0 t. sin(t) cos(t) Therefore a general solution is given by x(t) = e ta c cos(t) = c c e t sin(t) sin(t) + c e t. cos(t)

4 Solution (b) by Eigen Methods. The characteristic polynomial of A = is p(z) = z tr(a)z + det(a) ( ) = z z + 5 = (z ) + 4 = (z ) +. The eigenvalues of A are the roots of this polynomial, which are ± i. Because i i A ( + i)i =, A ( i)i =, i i we see that A has the eigenpairs ( ( + i,, i)) ( ) i i,. Because cos(t) + i sin(t) e (+i)t = e i t, sin(t) + i cos(t) two real solutions of the system are cos(t) sin(t) x (t) = e t, x sin(t) (t) = e t. cos(t) Therefore a general solution is cos(t) x(t) = c x (t) + c x (t) = c e t sin(t) sin(t) + c e t. cos(t) (7) Sketch the phase-plane portrait of the linear planar system x = Ax for 6 4 (a) A =, (b) A =. 4 0 6 4 Solution (a). The characteristic polynomial of A = is 4 0 p(z) = z tr(a)z + det(a) = z 6z 6 = (z + )(z 8). The eigenvalues of A are the roots of this polynomial, which are and 8. Because A has real eigenvalues of opposite signs, the phase-plane portrait is a saddle, which is thereby unstable. To sketch the phase-plane portrait we need the eigenpairs of A. Because 8 4 4 A + I =, A 8I =, 4 4 8 we see that A has the eigenpairs ( (,, )) ( ( 8,. )) These show that one orbit moves away from (0, 0) along each half of the line x = y, and one orbit moves towards (0, 0) along each half of the line y = x. (These are the lines of eigenvectors.) Every other orbit sweeps away from the line y = x and towards the line x = y. A sketch of the phase-plane portrait will be given during the review session provided someone asks for it.

Solution (b). The characteristic polynomial of A = p(z) = z tr(a)z + det(a) is = z z + 5 = (z ) + 4 = (z ) +. The eigenvalues of A are the roots of this polynomial, which are ± i. Because A has a conjugate pair of eigenvalues with positive real part, and because a = < 0, the phase-plane portrait is a clockwise spiral source, which is thereby repelling. A sketch of the phase-plane portrait will be given during the review session provided someone asks for it. (8) What answer will be produced by the following Matlab command? >> A = [ 4; 3 ]; [vect, val] = eig(sym(a)) You do not have to give the answer in Matlab format. Solution. The Matlab command will produce the eigenpairs of A = characteristic polynomial of A is p(z) = z tr(a)z + det(a) = z 3z 0 = (z 5)(z + ), so its eigenvalues are 5 and. Because 4 4 A 5I =, A + I = 3 3 we can read off that the eigenpairs are ( ( 5,, )) (, ) 4. 3 3 4, 3 4 5 4. The 3 (9) A real matrix B has the eigenpairs ( ( 3, and )) (, ). (a) Give a general solution to the linear planar system x = Bx. (b) Give an invertible matrix V and a diagonal matrix D that diagonalize B. (c) Compute e tb. (d) Sketch a phase-plane portrait for this system and identify its type. Classify the stability of the origin. Carefully mark all sketched orbits with arrows! Solution (a). Use the given eigenpairs to construct the solutions 3 x (t) = e t, x (t) = e t. Therefore a general solution is x(t) = c x (t) + c x (t) = c e t ( 3 ) + c e t.

6 Solution (b). The matrix B can be diagonalized by 3 0 V =, D = 0. Solution (c). By part (b) we have B = VDV where 3 0 V =, D =, V 0 = 7. 3 Then e tb = Ve td V = 7 = 7 ( 3 e t 0 ) ( 3e t e t e t e t 3 ) 0 e t 3 = 7 6e t + e t 3e t 3e t e t e t e t + 6e t. Alternative Solution (c). By part (a) a fundamental matrix is Ψ(t) = ( x (t) x (t) ) 3e t e = t e t e t. Then 3e e tb = Ψ(t)Ψ(0) t e = t 3 e t e t = 3e t e t 7 e t e t = 6e t + e t 3e t 3e t 3 7 e t e t e t + 6e t. Solution (d). The matrix B has two real eigenvalues of opposite sign. Therefore the origin is a saddle and is thereby unstable. There is one orbit moves away from (0, 0) along each half of the line x = 3y, and one orbit moves towards (0, 0) along each half of the line y = x. (These are the lines of eigenvectors.) Every other orbit sweeps away from the line y = x and towards the line x = 3y. A phase-plane portrait might be sketched during the review session. (0) Solve the initial-value problem x = Ax, x(0) = x I for the following A and x I. 3 0 3 (a) A =, x 5 7 I =. ( 8 5 3 (b) A =, x 5 I =. ) 3 0 Solution (a) by Formula. The characteristic polynomial of A = is 5 7 p(z) = z tr(a)z + det(a) = z + 4z + 9 = (z + ) + 5.

This is a sum of squares with µ = and ν = 5. Therefore we have [ e ta = e t cos(5t)i + sin(5t) ] (A + I) 5 0 = e [cos(5t) t + sin(5t) ] 5 0 0 5 5 5 cos(5t) + sin(5t) sin(5t) = e t. sin(5t) cos(5t) sin(5t) Therefore the solution of the initial-value problem is cos(5t) + sin(5t) sin(5t) 3 x(t) = e ta x I = e t sin(5t) cos(5t) sin(5t) 3 cos(5t) + sin(5t) = e t. cos(5t) + sin(5t) This solution decays to zero as t. 3 0 Solution (a) by Eigen Methods. The characteristic polynomial of A = 5 7 is p(z) = z tr(a)z + det(a) = z + 4z + 9 = (z + ) + 5. Therefore the eigenvlues of A are ± i5. Because 5 i5 0 A ( + i5)i =, 5 5 i5 we can read off that A has the conjugate eigenpairs + i i + i5,, i5,. Because + i e t+i5t = e t( cos(5t) + i sin(5t) ) + i a fundamental set of real solutions is cos(5t) sin(5t) x (t) = e t cos(5t) = e t ( cos(5t) sin(5t) + i cos(5t) + i sin(5t) cos(5t) i sin(5t) ), cos(5t) + sin(5t), x (t) = e t. sin(5t) Then a fundamental matrix Ψ(t) is given by Ψ(t) = ( x (t) x (t) ) cos(5t) sin(5t) cos(5t) + sin(5t) = e t cos(5t) sin(5t) Because Ψ(0) = = 0 0 = 0,. 7

8 we see that ( cos(5t) sin(5t) e ta = Ψ(t)Ψ(0) = e t cos(5t) ) cos(5t) + sin(5t) 0 sin(5t) ). ( cos(5t) + sin(5t) sin(5t) = e t sin(5t) cos(5t) sin(5t) Therefore the solution of the initial-value problem is cos(5t) + sin(5t) sin(5t) 3 x(t) = e ta x I = e t sin(5t) cos(5t) sin(5t) 3 cos(5t) + sin(5t) = e t. cos(5t) + sin(5t) This solution decays to zero as t. Remark. After we have constructed the fundmental set of solutions x (t) and x (t), we could also have solved the initial-value problem by finding constants c and c such that x(t) = c x (t) + c x (t) satisfies the initial condition. Had we done this using the x (t) and x (t) constructed above, we would find that c = and c =. 8 5 Solution (b) by Formula. The characteristic polynomial of A = is 5 p(z) = z tr(a)z + det(a) = z 6z + 9 = (z 3). This is a perfect square with µ = 3. Therefore we have e ta = e 3t[ I + t (A 3I) ] [ ] 0 5 5 + 5t 5t = e 3t + t = e 0 5 5 3t. 5t 5t Therefore the solution of the initial-value problem is ( + 5t 5t 3 3 + 0t x(t) = e ta x I = e 3t = e 5t 5t) 3t. + 0t This solution grows like 0t e 3t as t. Solution (b) by Eigen Methods. The characteristic polynomial of A = is p(z) = z tr(a)z + det(a) = z 6z + 9 = (z 3). The only eigenvalue of A is 3. Because A 3I = 5 5, 5 5 we can read off that A has the eigenpair ( ( 3,. )) We can use this eigenpair to construct the solution x (t) = e 3t. 8 5 5

A second solution can be constructed by x (t) = e 3t w + t e 3t (A 3I)w, where w is any nonzero vector that is not an eigenvector associated with 3. example, taking w = ( 0 ) T yields ( 5 + 5t x (t) = e 3t + t e 0 3t = e 5 5) 0 3t. 5t Then a fundamental matrix Ψ(t) is given by Ψ(t) = ( x (t) x (t) ) + 5t = e 3t 5t Because we see that Ψ(0) = e ta = Ψ(t)Ψ(0) = = 0 0 0 =, + 5t 0 + 5t 5t =. 5t 5t 5t Therefore the solution of the initial-value problem is ( + 5t 5t 3 3 + 0t x(t) = e ta x I = e 3t = e 5t 5t) 3t. + 0t This solution grows like 0t e 3t as t. Remark. After we have constructed the fundmental set of solutions x (t) and x (t), we could also have solved the initial-value problem by finding constants c and c such that x(t) = c x (t) + c x (t) satisfies the initial condition. Had we done this using the x (t) and x (t) constructed above, we would find that c = and c = 4. () Consider the system ẋ = xy, ẏ = 9 9x y. (a) Find all of its stationary points. (b) Find all of its semistationary orbits. (c) Find a nonconstant function H(x, y) such that every orbit of the system satisfies H(x, y) = c for some constant c. (d) Classify the type and stability of each stationary point. (e) Sketch the stationary points plus the level set H(x, y) = c for each value of c that corresponds to a stationary point that is a saddle. Carefully mark all sketched orbits with arrows! Solution (a). Stationary points satisfy 0 = xy, 0 = 9 9x y. The top equation shows that x = 0 or y = 0. If x = 0 then the bottom equation becomes 0 = 9 y = (3 y)(3 + y), which shows that either y = 3 or y = 3. If. 9 For

30 y = 0 then the bottom equation becomes 0 = 9 9x = 9( x), which shows that x =. Therefore the stationary points of the system are (0, 3), (0, 3), (, 0). Solution (b). When x = 0 the right-hand side of the ẋ equation is zero for every y. So the system has semistationary solutions of the form (0, Y (t)) when Y (t) is any nonstationary solution of ẏ = 9 y. The orbits of these solutions all lie on the line x = 0, which is the y-axis. There is no value of y that makes the right-hand side of the ẏ equation is zero for every x. So the system has no semistationary solutions of the form (X(t), b). Therefore the semistationary orbits are the three open line segments of the y-axis that are separated by the stationary points (0, 3) and (0, 3). Solution (c). The associated first-order orbit equation is dy dx = 9 9x y xy This equation is not linear or separable. It has the differential form which is exact because (y + 9x 9) dx + xy dy = 0, y (y + 9x 9) = y = x (xy) = y. Therefore there exists H(x, y) such that x H(x, y) = y + 9x 9, y H(x, y) = xy. By integrating the second equation we see that H(x, y) = xy + h(x). When this is substituted into the first equation we find x H(x, y) = y + h (x) = y + 9x 9, which implies that h (x) = 9x 9. By taking h(x) = 9 x 9x we obtain Alternative Solution (c). Notice that H(x, y) = xy + 9 x 9x. x f(x, y) + y g(x, y) = x (xy) + y (9 9x y ) = y y = 0. Therefore the system has Hamiltonian form with Hamiltonian H(x, y) that satisfies y H(x, y) = xy, x H(x, y) = 9 9x y. By integrating the first equation we see that H(x, y) = xy + h(x). When this is substituted into the second equation we find x H(x, y) = y h (x) = 9 9x y,.

3 which implies that h (x) = 9x 9. By taking h(x) = 9 x 9x we obtain Solution (d). Because f(x, y) = H(x, y) = xy + 9 x 9x. f(x, y) xy = g(x, y) 9 9x y, the Jacobian matrix f(x, y) of partial derivatives is x f(x, y) f(x, y) = y f(x, y) y x =. x g(x, y) y g(x, y) 9 y Evaluating this matrix at each stationary point yields 6 0 6 0 f(0, 3) =, f(0, 3) =, f(, 0) = 9 6 9 6 0. 9 0 Because the matrix f(0, 3) is lower triangular, we can read off that its eigenvalues are 6 and 6. Because these are real with opposite signs, the stationary point (0, 3) is a saddle and thereby is unstable. Because the matrix f(0, 3) is lower triangular, we can read off that its eigenvalues are 6 and 6. Because these are real with opposite signs, the stationary point (0, 3) is a saddle and thereby is unstable. The characteristic polynomial of the matrix f(, 0) is p(z) = z + 8, so the matrix f(, 0) has eigenvalues ±i 8. Because these are immaginary and the system has an integral while the lower left entry of f(, 0) is negative, the stationary point (, 0) is a clockwise center and thereby is stable. Alternative Solution (b). If you saw that the system has Hamiltonian form with Hamiltonian H(x, y) from part (b) then you can take this approach. The Hessian matrix H(x, y) of second partial derivatives of the Hamiltonian H(x, y) is xx H(x, y) H(x, y) = xy H(x, y) 9 y =. yx H(x, y) yy H(x, y) y x Evaluating this at the stationary points yields 9 6 9 6 H(0, 3) =, 6 0 H(0, 3) =, 6 0 H(, 0) = The characteristic polynomial of the matrix H(0, 3) is p(z) = z 9z 36 = (z )(z + 3). 9 0. 0 Therefore the matrix H(0, 3) has eigenvalues and 3. Because these have different signs, the stationary point (0, 3) is a saddle and thereby is unstable. The characteristic polynomial of the matrix H(0, 3) is p(z) = z 9z 36 = (z )(z + 3). Therefore the matrix H(0, 3) has eigenvalues and 3. Because these have different signs, the stationary point (0, 3) is a saddle and thereby is unstable.

3 Because the matrix H(, 0) is diagonal, we can read off that its eigenvalues are 9 and. Because these are both positive, the stationary point (, 0) is a clockwise center and thereby is stable. Solution (e). The saddle points are (0, 3) and (0, 3). Because H(0, 3) = H(0, 3) = 0 (±3) + 9 0 9 0 = 0. Hence, the level set corresponding to these saddle points is 0 = xy + 9 x 9x = (y + 9 x 9)x. The points on this set must satisfy either y + 9 x 9 = 0 or x = 0. Therefore the level set is the union of the parabola x = 9 y and the y-axis. Along the y-axis (x = 0) the ẏ equation reduces to ẏ = 9 y = (3 y)(3 + y), whereby the arrows point towards (0, 3) and away from (0, 3). Along the parabola x = 9 y the arrows point away from (0, 3) and towards (0, 3) because they are saddle points. () Consider the system u = 5v, v = u 4v u. (a) Find all of its stationary points. (b) Compute the Jacobian matrix at each stationary point. (c) Classify the type and stability of each stationary point. (d) Sketch a phase-plane portrait of the system that shows its behavior near each stationary point. Carefully mark all sketched orbits with arrows! Solution (a). Stationary points satisfy 0 = 5v, 0 = u 4v u. The first equation implies v = 0, whereby the second equation becomes 0 = u u = u( u), which implies either u = 0 or u =. Therefore all the stationary points of the system are (0, 0), (, 0). Solution (b). Because f(u, v) = f(u, v) 5v = g(u, v) u 4v u, the Jacobian matrix of partial derivatives is u f(u, v) f(u, v) = v f(u, v) = u g(u, v) v g(u, v) 0 5. u 4 Evaluating this matrix at each stationary point yields the coefficient matrices 0 5 0 5 A = at (0, 0), A = at (, 0). 4 4 Solution (c). The coefficient matrix A at (0, 0) has eigenvalues that satisfy 0 = det(zi A) = z tr(a)z + det(a) = z + 4z + 5 = (z + ) +.