Matlab Problem Sets. Math 246 Spring 2012 Sections 0112, 0122, 0132, R. Lipsman

Similar documents
Math 216 Final Exam 24 April, 2017

Nonlinear Autonomous Systems of Differential

Math 215/255 Final Exam (Dec 2005)

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

Math 308 Exam I Practice Problems

Sample Questions, Exam 1 Math 244 Spring 2007

Math 216 Final Exam 24 April, 2017

Differential Equations and Linear Algebra Exercises. Department of Mathematics, Heriot-Watt University, Edinburgh EH14 4AS

Practice problems from old exams for math 132 William H. Meeks III

Problem Sheet 1.1 First order linear equations;

DIFFERENTIAL EQUATIONS

Math 308 Exam I Practice Problems

Math 266 Midterm Exam 2

Math 232, Final Test, 20 March 2007

MATH 415, WEEKS 7 & 8: Conservative and Hamiltonian Systems, Non-linear Pendulum

AP Physics C Summer Homework. Questions labeled in [brackets] are required only for students who have completed AP Calculus AB

Learning Objectives for Math 165

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

STABILITY. Phase portraits and local stability

MATH 251 Examination I October 10, 2013 FORM A. Name: Student Number: Section:

Solutions to Math 53 First Exam April 20, 2010

Solving Differential Equations: First Steps

It is convenient to think that solutions of differential equations consist of a family of functions (just like indefinite integrals ).

LECTURE 4-1 INTRODUCTION TO ORDINARY DIFFERENTIAL EQUATIONS

MATH 353 LECTURE NOTES: WEEK 1 FIRST ORDER ODES

Math 216 Final Exam 14 December, 2017

Mathematical Models. MATH 365 Ordinary Differential Equations. J. Robert Buchanan. Spring Department of Mathematics

Mathematical Models. MATH 365 Ordinary Differential Equations. J. Robert Buchanan. Fall Department of Mathematics

Unit 7: Oscillations

Ordinary Differential Equations (ODEs)

a x a y = a x+y a x a = y ax y (a x ) r = a rx and log a (xy) = log a (x) + log a (y) log a ( x y ) = log a(x) log a (y) log a (x r ) = r log a (x).

Computer Problems for Methods of Solving Ordinary Differential Equations

1 The pendulum equation

28. Pendulum phase portrait Draw the phase portrait for the pendulum (supported by an inextensible rod)

Problem set 7 Math 207A, Fall 2011 Solutions

MAXIMA AND MINIMA CHAPTER 7.1 INTRODUCTION 7.2 CONCEPT OF LOCAL MAXIMA AND LOCAL MINIMA

Introduction to Differential Equations

V 1 V 2. r 3. r 6 r 4. Math 2250 Lab 12 Due Date : 4/25/2017 at 6:00pm

Additional Homework Problems

Solutions to Math 53 Math 53 Practice Final

Final Exam Sample Problems, Math 246, Spring 2018

Chapter 1: Introduction

Lab #2 - Two Degrees-of-Freedom Oscillator

Updated 2013 (Mathematica Version) M1.1. Lab M1: The Simple Pendulum

Pre-Calculus Exam 2009 University of Houston Math Contest. Name: School: There is no penalty for guessing.

Math 251 December 14, 2005 Answer Key to Final Exam. 1 18pt 2 16pt 3 12pt 4 14pt 5 12pt 6 14pt 7 14pt 8 16pt 9 20pt 10 14pt Total 150pt

Daba Meshesha Gusu and O.Chandra Sekhara Reddy 1

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

Math 216 Final Exam 14 December, 2012

Question: Total. Points:

SECTION A. f(x) = ln(x). Sketch the graph of y = f(x), indicating the coordinates of any points where the graph crosses the axes.

ANSWERS Final Exam Math 250b, Section 2 (Professor J. M. Cushing), 15 May 2008 PART 1

Lecture Notes for Math 251: ODE and PDE. Lecture 30: 10.1 Two-Point Boundary Value Problems

Infinite series, improper integrals, and Taylor series

Solutions to the Homework Replaces Section 3.7, 3.8

The Princeton Review AP Calculus BC Practice Test 2

Coordinate Curves for Trajectories

Math 2214 Solution Test 1D Spring 2015

PHYSICS 1 Simple Harmonic Motion

Basic Theory of Differential Equations

MA26600 FINAL EXAM INSTRUCTIONS December 13, You must use a #2 pencil on the mark sense sheet (answer sheet).

(e) 2 (f) 2. (c) + (d). Limits at Infinity. 2.5) 9-14,25-34,41-43,46-47,56-57, (c) (d) 2

Practice Problems For Test 3

1. (10 points) Find the general solution to the following second-order differential equation:

Calculus 1 Exam 1 MAT 250, Spring 2011 D. Ivanšić. Name: Show all your work!

Exam 2 Study Guide: MATH 2080: Summer I 2016

3. On the grid below, sketch and label graphs of the following functions: y = sin x, y = cos x, and y = sin(x π/2). π/2 π 3π/2 2π 5π/2

MB4018 Differential equations

2.4 Differences Between Linear and Nonlinear Equations 75

Chapter 2 Notes, Kohler & Johnson 2e

Note: Final Exam is at 10:45 on Tuesday, 5/3/11 (This is the Final Exam time reserved for our labs). From Practice Test I

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

AB CALCULUS SEMESTER A REVIEW Show all work on separate paper. (b) lim. lim. (f) x a. for each of the following functions: (b) y = 3x 4 x + 2

FINAL REVIEW FALL 2017

I II III IV V VI VII VIII IX Total

MA 266 Review Topics - Exam # 2 (updated)

First order differential equations

THE NATIONAL UNIVERSITY OF IRELAND, CORK COLÁISTE NA hollscoile, CORCAIGH UNIVERSITY COLLEGE, CORK. Summer Examination 2009.

Practice Problems For Test 3

Math 266: Ordinary Differential Equations

Final Exam Review. Review of Systems of ODE. Differential Equations Lia Vas. 1. Find all the equilibrium points of the following systems.

MATH 18.01, FALL PROBLEM SET #5 SOLUTIONS (PART II)

Spring 2015, MA 252, Calculus II, Final Exam Preview Solutions

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

Homework 2 Solutions Math 307 Summer 17

There are some trigonometric identities given on the last page.

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

Math 180, Lowman, Summer 2008, Old Exam Problems 1 Limit Problems

2.1 The Tangent and Velocity Problems

Math 266: Phase Plane Portrait

Differential equations

Math 273 (51) - Final

Tutorial-1, MA 108 (Linear Algebra)

SOLUTIONS TO MIXED REVIEW

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

M A : Ordinary Differential Equations

Chapter 6. Second order differential equations

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

1 Mathematical Models

MA Practice Exam #2 Solutions

Transcription:

Matlab Problem Sets 1 Math 246 Spring 2012 Sections 0112, 0122, 0132, 0142 R. Lipsman

2

Problem Set A Practice with MATLAB In this problem set, you will use MATLAB to do some basic calculations, and then to plot, differentiate, and integrate various functions. This problem set is the minimum you should do in order to reach a level of proficiency that will enable you to use MATLAB throughout the course. 1. Evaluate: 413 (a) (as a decimal), 768 + 295 (b) 2 123, both as an approximate number in scientific notation and as an exact integer, (c) π 2 and e to 35 digits, (d) the fractions 61 to ln(2). 2. Evaluate to 15 digits: (a) sin(0.1), 0.1 (b) sin(0.01), 0.01 (c) sin(0.001). 0.001 3. Graph the equations: 88, 13863 20000 (a) y = x 3 x on the interval 1.5 x 1.5, (b) y = tanx on the interval 2π x 2π, 253, and 365, and determine which is the best approximation (c) y 2 = x 3 x on the interval 2.5 x 2.5. (Hint: If the first argument to ezplot is a symbolic expression in two variables, MATLAB plots the locus of points where this expression is equal to 0.) 1

2 Problem Set A. Practice with MATLAB 4. MATLAB can factor polynomials as well as integers. Look up the syntax and solve these problems. (a) Factor x 3 + 5x 2 17x 21. (b) Find the prime factorization of 987654321. 5. Plot the functions x 8 and 4 x on the same graph, and determine how many times their graphs intersect. (Hint: You will probably have to make several plots, using various intervals, in order to find all the intersection points.) Now find the values of the points of intersection using the command fzero. 6. Compute the following limits: (a) lim x 0 tan x x, (b) (c) 1 1 lim and lim x 0 + x x 0 x, lim x xe x2 and (d) lim x 0 ln(1 x) + x x 2. lim x xe x, 7. Compute the following derivatives: ( ) d x 3 (a) dx x 2, + 1 (b) d (sin (sin (sinx))), dx d 3 (c) dx 3 (arctanx), d (d) dx ( 1 + x 2 ), d (e) dx (ex ln(x) ). 8. Compute the following integrals: (a) e 3x sinxdx, (b) (x + 1)lnxdx, 1 x (c) 1 x dx, (d) 0 e x2 dx,

3 (e) 1 0 1 + x4 dx. For this example, also compute the numerical value of the integral. 9. Use solve to solve the equation x 5 3x 2 + x + 1 = 0. (A.1) Find the numerical values of the five roots. Plot the graph of the 5th degree polynomial on the left-hand side of Equation (A.1) on the interval 2 x 2. Now explain your results in particular, reconcile your five roots with the fact that the graph touches the x-axis only twice. To verify this, you should include the x-axis in your graph and restrict the y-axis appropriately. 10. In one-variable calculus you learned that the local maxima and minima of a differentiable function y = f(t) are found among the critical points of f, that is, the points t where f (t) = 0. For example, consider the polynomial function on the interval [ 3/2, 5/2]. (a) Graph f(t) on that interval. y = f(t) = t 6 4t 4 2t 3 + 3t 2 + 2t (b) How many local max/min points do you see? It s a little hard to determine what is happening for values of t near t = 1. If need be, redraw your graph by restricting the t and/or y axis using the command axis. (c) Now use MATLAB to differentiate f and find the points t where f (t) = 0 on the interval [ 3/2, 5/2]. How many are there? Use fzero to hone in on their values. (d) Now verify that the critical point near t = 1 is indeed an inflection point by graphing f (t) on the interval 1.2 t 0.8. How does that graph establish that the point is an inflection point? 11. (a) Use solve to simultaneously solve the pair of equations { x 2 y 2 = 1, 2x + y = 2. (b) Use ezplotto plot the two curves on the same graph and visually corroborate your answer from part (a). 12. Use the command symsumto do the following problems: (a) Sum the famous infinite series n=1 1 n 2. (b) Sum the geometric series n=0 xn.

4 Problem Set A. Practice with MATLAB (c) Define a function f(x) = n=1 xn n. Sum the series to get a simple expression for f(x). (Note: MATLAB tells you for which x the series converges. In this and the next two parts, you may restrict your attention to the interval of convergence.) (d) Compute f (x) by differentiating the function you found in part (c). (e) Now sum the series n=1 d dx ( xn n ). What does this suggest about differentiating a function that is defined by a power series? 13. (a) Use contourto plot the curve defined by the equation 3y + y 3 x 3 = 5. (b) Now plot the level curves of 3y + y 3 x 3 for the levels 2, 0, 2, 5, 8. (c) Plot the level curve of the function f(x, y) = y lnx+xln y that passes through the point (1, 1). 14. Consider the expression u = e x sin x + e x cos x. (a) We want the values of the expression at the points π, 3 4 π, 1 2 π, 1 4 π, 0, 1 4 π, 1 2 π, 3 π, π. 4 Use the colon operator to create a list of these values and name it xpts. Make the list symbolic, rather than numerical data. (b) Use the command subs to create a list of the values of u at the points xpts. (c) Use the @ operator to define a function f(x) = e x sin x + e x cos x. (d) Find a list of the values of f at the points xpts. Convert these values to decimal form with five digits. (e) Use matrix notation to display table of the points xpts in the first column and the corresponding five-digit values of f in the second.

Problem Set B First Order Equations 1. Consider the initial value problem ty + y = 1 4 t2, y(3) = 1. (a) Solve using dsolve. Define the solution function y(t) in MATLAB, and then determine its behavior as t approaches 0 from the right and as t becomes large. This can be done by plotting the solution on intervals such as 0.5 t 5 and 0.2 t 20; you may choose other intervals to further investigate the behavior of the solution as t 0 + or t. (b) Change the initial condition to y(3) = 1/2. Determine the behavior of this solution, again by plotting on intervals such as those mentioned in part (a). (c) Find a general solution of the differential equation by solving ty + y = 1 4 t2, y(3) = c. Now find the solutions corresponding to the initial conditions y j (2) = 2 j 3, j = 2, 1, 0, 1, 2. 4 Plot the functions y j (x), j = 2, 1, 0, 1, 2, on the same graph. Describe the behavior of these solutions for small positive t and for large t. Find the solution that is not singular at t = 0. Identify its plot in the graph. 2. Solve the initial value problem y 3y = sin 2t, y(0) = c. Use MATLAB to graph solutions for c = 2 13j, j = 0, 0.2, 0.4,...1,...2. Display all the solutions on the same interval between t = 0 and an appropriately chosen 5

6 Problem Set B. First Order Equations right endpoint. Explain what happens to the solution curves as t increases. You should identify three distinct types of behavior. Which values of c correspond to which behaviors? Now, based on this problem, and the material in Chapters 5 and 6, discuss what effect small changes in initial data can have on the global behavior of solution curves. 3. Consider the differential equation y = t 3 y 3. (a) Use MATLAB to plot the direction field of the differential equation. Is there a constant solution? If y(0) > 0, what happens as t increases? If y(0) < 0, what happens as t increases? (b) The direction field suggests that the solution curves are symmetric with respect to the y-axis, that is, if y 1 (t) is a solution to the differential equation, then so is y 1 (t). Verify that this is so directly from the differential equation. (c) Use dsolve to solve the differential equation, thereby obtaining a solution of the form 1 y(t) = ( 1 2 t4 + c ). 1 2 Note that y(0) = 1 c. Use that as your intial data when applying dsolve. Let s consider the curves above the y-axis. The ones below it are their reflection. (What about the y-axis itself?) In graphing y(t), it helps to consider three separate cases: (i) c > 0, (ii) c = 0, and (iii) c < 0. (d) In each case, graph the solution for several specific values of c, and identify important features of the curves. In particular, in case (iii), compute the location of the asymptotes in terms of c. (e) Identify three different types of solution curves for the differential equation that lie above the y-axis. In each case, specify the t-interval of existence, whether the solution is increasing or decreasing, and the limiting (asymptotic) behavior at the ends of the interval. (f) Combine the direction field plotted in (a) with the graphs plotted in (d). 4. A tank with a 12-gallon capacity contains a mixture consisting of 2 gallons of water and an undetermined number S(0) of pounds of salt in the solution. Water containing 1 lb/gal of salt begins flowing into the tank at the rate of 3 gal/min. The well-mixed solution flows out at a rate of 1 gal/min. Derive the differential equation for S(t), the number of pounds of salt in the tank after t minutes, that models this physical situation. (Note: At time t = 0 there are 2 gallons of solution, but the volume increases with time.) Now draw the direction field of the differential equation on the rectangle 0 t 12, 0 S 12. From your plot,

(a) find the value A of S(0) below which the amount of salt is a constantly increasing function, but above which the amount of salt will temporarily decrease before increasing; (b) indicate how the nature of the solution function in case S(0) = 2 differs from all other solutions. Now use dsolve to solve the differential equation. Reinforce your conclusions above by (c) algebraically computing the value of A; (d) giving the formula for the solution function when S(0) = 2; (e) giving the amount of salt in the tank (in terms of S(0)) when it is at the point of overflowing; (f) computing, for S(0) > A, the minimum amount of salt in the tank, and the time it occurs; (g) explaining what principle guarantees the truth of the following statement: If two solutions S 1, S 2 correspond to initial data S 1 (0), S 2 (0) with S 1 (0) < S 2 (0), then for any t 0, it must be that S 1 (t) < S 2 (t). 7

8 Problem Set B. First Order Equations

Problem Set C Numerical Methods 1. Consider the initial value problem y = y 2 e 3t2, y(0) = 3. (C.1) Since dsolve is unable to solve this equation, we need to use qualitative and numerical methods. Observe that 0 < e 3t2 1, so that y 2 y 2 e 3t2 y 2 1. Therefore the solution φ(t) to (C.1) must satisfy φ 0 (t) φ(t) φ 1 (t), where φ 0 and φ 1 are the solutions to the respective initial value problems { y = y 2 y(0) = 3, y = y 2 1 y(0) = 3. (a) Solve for φ 0 and φ 1 explicitly (using dsolve) and conclude that φ(t) as t t, for some t [t 0, t 1 ], where t 0 (resp. t 1 ) is the point where φ 0 (resp. φ 1 ) blows up. (Hint: You should be able to eyeball t 0 easily from the symbolic solution for φ 0, but the symbolic solution for φ 1 might be complicated and it might be difficult to see easily the value of its singular point. If you are having difficulty seeing where φ 1 blows up from the solution formula that MATLAB provides, then solve y = φ 1 (t) for t in terms of y and symbolically compute the limit as y.) (b) Compute a numerical solution of (C.1), find an approximate value of t, and plot φ(t), together with φ 0 and φ 1 on the same graph, for 0 t < t. 2. We shall study solutions y = φ d (t) to the IVP y = (4y 3t 4/3 )(1 y 3 ), y(0) = d for nonnegative values of t. 9

10 Problem Set C. Numerical Methods (a) Plot numerical solutions φ d (t) for several values of d. Include values of d that are less than or equal to 0, between 0 and 1, equal to 1, and greater than 1. (b) Now, based on these plots, describe the behavior of the solution curves φ d (t) for positive t, when d 0, 0 < d < 1, d = 1, and d > 1. Identify limiting behavior and indicate where the solutions are increasing or decreasing. (Hint: For most cases, it will be clear where the solution curve is increasing or decreasing. However, it might not be so clear for small values of t, especially when 0 d 1. Plug the value t = 0 into the differential equation and relate the sign of y (0) to that of y(0) to determine the initial slope of a solution curve.) (c) Next combine your plots with a plot of the curve 4y = 3t 4/3. The graph should suggest that the solution curves for d > 1 are asymptotic to this curve. Explain from the differential equation why that is plausible. (Hint: Use the differential equation to consider the sign of y on and close to the curve 4y = 3t 4/3.) (d) Finally, superimpose a plot of the direction field of the differential equation to confirm your analysis. 3. Consider the IVP e y + (t 2 e 2y sin y) dy dt = 0, y(2) = 1.5. (a) Use ode45 to find approximate values of the solution at x = 1, 1.5, and 3. (b) Then plot the solution on the interval 0.5 t 4. (c) Now plot the numerical solution on several large intervals (e.g., 2 t 10, or 2 t 100, or even 2 t 1000). Make a guess about the nature of the solution as t. Try to justify your guess on the basis of the differential equation. (d) Similarly, plot the numerical solution on intervals ǫ t 2 for different choices of ǫ as a small positive number. What do you think is happening to the solution as t 0+? Once again, try to justify your guess on the basis of the differential equation. 4. Consider the Gompertz-threshold model, y = y(1 log y)(y 3). Draw the direction field. From that field and the qualitative approach for this equation, one learns that the solution with initial condition, y(0) = 2.7, approaches 0 as t approaches. Use the event detection feature of ode45 to find the time t at which y = 0.1.

Problem Set D Second Order Equations 1. This problem is based on Problem 32 in Boyce & DiPrima, Sect. 3.7. Consider a frictionless mass-spring system as in Figure 3.7.10 in Boyce & DiPrima (standard mass attached to a spring on a frictionless table). Suppose the restoring force of the spring is not given by Hooke s Law, but instead is of the form F = (ky + ǫy 3 ). If ǫ = 0, the assumption amounts to Hooke s Law, but in this problem we shall focus on ǫ 0 (either positive or negative). If we have air resistance present with damping coefficient γ, then the equation of motion (assuming the displacement is indicated by the variable y) becomes my + γy + ky + ǫy 3 = 0 (see Boyce & DiPrima, 9th edition, p. 205). Henceforth we shall normalize by assuming that m = 1, k = 2 and γ = 0.1. We shall also presume the initial conditions throughout this problem. y(0) = 0, y (0) = 1, (a) Plot the solution when ǫ = 0. What is the amplitude and period of the solution? (b) Let ǫ = 0.1. Plot a numerical solution. Is the motion periodic? Estimate the amplitude and period. (Hint: Use one of the tools in the graphics window, e.g., Tools:DataCursor, to estimate to two decimal points these values.) (c) Repeat part (b) for ǫ = 0.2, and then for ǫ = 0.3. (d) Plot your estimated values of the amplitude A and period T as functions of ǫ. How do A and T depend on ǫ? (e) Repeat parts (b) (d) for negative values of ǫ. 11

12 Problem Set D. Second Order Equations 2. The problem of finding the function u(x) satisfying { a(x)u (x) + a (x)u (x) = f(x), 0 x 1 u(0) = u(1) = 0. (D.1) arises in studying the longitudinal displacements in a longitudinally loaded elastic bar. The bar is of length 1, its left end is at x = 0, and its right end at x = 1. In the differential equation above, f(x) represents the external force on the bar (which is assumed to be longitudinal, i.e., directed along the bar), a(x) represents both the elastic properties and the cross-sectional area of the bar, and u(x) is the longitudinal displacement of the bar at the point x. This problem is an example of a boundary value problem; the conditions u(0) = u(1) = 0, which specify that the ends of the bar are fixed, are called boundary conditions. The function a(x) may be constant; this is the case if neither the elastic properties nor the cross-sectional area depends on the position x in the rod, i.e., if the rod is uniform. But if the rod is not uniform, then a(x) is not constant, and the equation has variable coefficients. Similarly, f(x) will be constant only if the external force is applied uniformly along the rod. (a) Take a(x) = 1 + 1 2 x and f(x) = 5 sin2 (2πx). Here the force is applied symmetrically and is strongest at x = 0.25 and x = 0.75, as if someone is hanging by both hands from a relatively short rod. MATLAB s symbolic solver dsolve used to be able to solve this problem symbolically, but alas, version R2009a fails to do so. So we shall study both this example and the one in the next part by employing both a numerical method (the shooting technique) and the boundary value solver bvp4c. We cannot apply ode45 directly, since it requires initial conditions. Nonetheless, we can use the shooting method to find the value of u (0) that leads to a solution satisfying the condition u(1) = 0. By trial and error, find u (0) to at least two decimal places, and graph the resulting solution on [0, 1]. What is the maximum displacement, and where does it occur? Based on the result, do you think the rod is more flexible where a(x) is larger or where it is smaller? (b) Now suppose a(x) = 1 + exp(x) and f(x) is the same as in part (a). Find and plot the corresponding solution u(x). Since MATLAB cannot solve this equation symbolically, we will use a numerical method. Mimicking part (a), by trial and error, find u (0) to at least two decimal places, and graph the resulting solution on [0, 1]. What is the maximum displacement, and where does it occur? (c) Repeat parts (a) and (b) using bvp4c instead of the shooting method. 3. In this problem, we study the effects of air resistance. (a) A paratrooper steps out of an airplane at a height of 1250 ft and after 6 seconds opens her parachute. Her weight, with equipment, is 200 lbs. Let y(t)

denote her height above the ground after t seconds. Assume that the air resistance is 0.005y (t) 2 lbs in free fall and 0.6y (t) 2 lbs with the chute open. At what height does the chute open? How long does it take to reach the ground? At what velocity does she hit the ground? (This model assumes that air resistance is proportional to the square of the velocity and that the parachute opens instantaneously.) (Hint: This problem can be solved most efficiently by using an ODE file to detect significant events. Pay attention to units. Recall that the mass of the paratrooper is 200/32, measured in lb sec 2 /ft. Here, 32 is the acceleration due to gravity, measured in ft/sec 2.) (b) Let v = y be the velocity during the second phase of the fall (while the chute is open). One can view the equation of motion as an autonomous first order ODE in the velocity: v = 32( 1 + 0.6 200 v2 ). Make a qualitative analysis of this first order equation, finding in particular the critical or equilibrium velocity. This velocity is called the terminal velocity. How does the terminal velocity compare with the velocity at the time the chute opens and with the velocity at impact? (c) Assume the paratrooper is safe if she strikes the ground at a velocity within 5% of the terminal velocity in (b). Except for the initial height, use the parameters in (a). What is the lowest height from which she may parachute safely? (Please do not try this at home!) 4. This problem is based on Problem 18 in Section 3.8, Boyce & DiPrima, 9th Edition. Consider the IVP u + 9u = cos(ωt), u(0) = 0, u (0) = 0. (a) Find the solution (using dsolve). For ω = 3 ǫ, ǫ = 0.5, 0.4, 0.3, 0.2, 0.1, plot the solution curves on the interval 0 t 15. Note that ω 0 = 3 is the natural frequency of the homogeneous equation. Describe how the solution curves change as ω gets closer to 3. (b) Note that the formula you found in part (a) is invalid when ω = 3. Find and plot the solution curve for ω = 3 on the interval 0 t 15. Based on the discussion of forced vibrations in your text, what phenomenon should be exhibited for this value of ω? Corroborate your answer by plotting on a longer interval. Then redo the plots in part (a) on the same longer interval to see that the phenomenon that you just identified for ω = 3 is not present for smaller values of ω. (c) Plot the solution for ω = 2.9 on a longer interval and compare it with the solution from part (b). What phenomenon is exhibited by the curve for ω = 2.9? 13

14 Problem Set D. Second Order Equations

Problem Set E Laplace Transform 1. Consider the following IVP: y +(3/2)y +y = g(t), y(0) = 0, y (0) = 0, g(t) = (a) Solve the equation for 0 t π by using dsolve on the IVP { t(π t), if 0 t < π 0, if t π. (E.1) y + 3 2 y + y = t(π t), y(0) = 0, y (0) = 0. (Be patient: dsolve takes a while to solve this problem.) Plot the solution on the interval 0 t π. (b) Find numerical values for y π = y(π) and y π = y (π) using the solution from part (a). Then use dsolve to solve the IVP y + 3 2 y + y = 0, y(π) = y π, y (π) = y π. Plot the solution on the interval π t 15. Combine this graph with your graph from part (a) to show the solution to the original IVP on the entire interval 0 t 15. (c) Now solve the equation using the Laplace Transform method. Plot the solution on [0, 15], and compare it with the solution from part (b). (d) Find the general solution of the associated homogeneous equation. What is the asymptotic behavior of those solutions as t? Knowing that the forcing term of the inhomogeneous equation is zero after t = π, what can you say about the long-term behavior of the solution of the inhomogeneous equation? Discuss both growth or decay and monotonicity or oscillation. 15

16 Problem Set E. Laplace Transform 2. Use the Laplace Transform method to solve the following IVPs. Then graph the solutions on the interval [0, 15]. Also graph the function on the right-hand side of the differential equation (the forcing function). In each part, discuss how the solution behaves in response to the forcing function. (a) y + 3y + 2y = h(t), y(0) = 1, y (0) = 0, { h(t) = 1, if 0 t 12 0, if t > 12. (b) y + 2y + 3y = u 3 (t), y(0) = 0, y (0) = 1 (c) y + 2 3y + 3y = g(t), y(0) = 0, y (0) = 0, { 1 g(t) = 2 t2, if 0 t 10 0, if t > 10. 3. Use the Laplace Transform method to solve the following IVPs. Then graph the solutions on the interval [0, 15]. In each part, discuss how the solution behaves in response to the impulse function. In part (a), work the problem first with b = 1 and then again with b = 3. Explain the differerent nature of the solution curves you see. (a) y + 9y = 2δ(t π) bδ(t 3π), y(0) = 0, y (0) = 0. (b) y + 3y = 5δ(t 2π), y(0) = 1, y (0) = 0 4. Use the Laplace Transform method to solve the following IVP. y + by + 3y = sin t + 4δ(t 2π), y(0) = 0, y (0) = 0. Note that there is an unspecified parameter, namely b, the cofficient of the term y in the differential equation. We shall examine the solution curve for different choices of b. (a) Choose b = 2. Graph the solution on the interval [0, 50]. Here, and in the following parts, discuss how the solution behaves in response to the impulse function.in part (a), work the problem first with b = 1 and then again with b = 2. Explain the differerent nature of the solution curves you see. (b) Now chooose b = 0.2. Graph the solution over a longer time interval. (c) Finally, choose b = 0.002. Lengthen the time interval even more. Expain the differences you see in the three solution curves correpsonding to parts (a) (c).

Problem Set F Systems of Differential Equations In Chapters 13 and 14 of DEwM you can find a number of suggestions for using MATLAB to solve these problems. The parameters in those suggestions may need to be modified according to the problem at hand. In particular, you may have to change the time interval and/or the set of initial conditions. Also, be aware that MATLAB may take a long time to generate phase portraits, especially when using ode45. You should start with a relatively short time interval and a few initial conditions to get an idea of what the phase portrait looks like. Then, based on what you see, you should increase the time interval and/or the number of initial conditions as appropriate to improve the picture. 1. In this problem, we study three systems of equations that are modifications of problems taken from Boyce & DiPrima: (1.1) ( ) 3 5 x = x 1 3 (Prob. 3, Sect. 7.5) (1.2) ( ) x 1 1 = x 5 3 (Prob. 5, Sect. 7.6) (1.3) ( ) 5 9/2 x = x 9/2 4 (Prob. 4, Sect. 7.8). (a) Use MATLAB to find the eigenvalues and eigenvectors of each linear system. Use your results to write down the general solution of the system. (b) For each system, find the general solution using dsolve, and plot several trajectories. On your graphs, draw the eigenvectors (if relevant), and indicate the direction of increasing time on the trajectories. State the type and stability of the origin as a critical point. You may find that the quality of your portraits can be enhanced by modifying the t-interval or the range of values assumed by the initial data. 17

18 Problem Set F. Systems of Differential Equations 2. Here we reconsider the pendulum models examined in Problems 3 6 of Problem Set D. (See also the discussion in Section 9.3 of Boyce & DiPrima.) (a) Consider first the undamped pendulum θ + (g/32)sinθ = 0, θ(0) = 0, θ (0) = b. Let x = θ and y = θ ; then x and y satisfy the system { { x = y x(0) = 0 y = (g/32)sinx y(0) = b We take g = 32 for simplicity here. Solve this system numerically and plot, on a single graph, the resulting trajectories for the initial velocities b = 0.5, 1, 1.5, 2, 2.5. Use a positive time range (e.g., 0 t 15), and use axis equalto improve your pictures. (b) Based on your pictures in part (a), describe physically what the pendulum seems to be doing in the three cases θ (0) = 1.5, 2, and 2.5. (c) The energy of the pendulum is defined as the sum of kinetic energy (1/2)mL 2 (θ ) 2 and potential energy mgl(1 cos θ), so E = 1 2 ml2 (θ ) 2 + mgl(1 cosθ) = 1 2 ml2 y 2 + mgl(1 cosx). Show, by taking the derivative de/dt, that E is constant when θ(t) is a solution to the equation. What basic physical principle does this represent? (d) Again to make matters simple we assume m = 1/32 so that the weight mg of the bob at the end of the pendulum is assumed to be 1. Use contour to plot the level curves for the energy. Choose the x and y ranges according to where most of the solutions from part (a) lie, and use the optional fourth argument to contour to increase the number of level curves plotted. Explain how your picture is related to the trajectory plot from part (a). (e) If the pendulum reaches the upright position (i.e., θ = π), what must be true of the energy? Now explain why there is a critical value E 0 of the energy, below which the pendulum swings back and forth without reaching the upright position, and above which it swings overhead and continues to revolve in the same direction. What is the critical value E 0? What is the value of b corresponding to E 0? What do you expect the pendulum do when b has this critical value? What did the plot in part (a) show? Explain. (f) Now consider the damped pendulum θ + 0.5θ + sin θ = 0, θ(0) = 0, θ (0) = b. Numerically solve the corresponding first order system (which you must determine) and plot the resulting trajectories for the initial velocities b = 0.5, 1,

1.5,..., 6. You will notice that each of the trajectories in your graph tends toward either the critical point (0, 0) or the critical point (2π, 0). Explain what this means physically. There is a value b 0 for which the trajectory tends toward the critical point (π, 0). Estimate, up to two-decimal accuracy, the value of b 0. What would this correspond to physically? (g) Recall the energy defined in part (c). Compute E and determine which of the following are possible: (1) E is increasing, (2) E is decreasing, (3) E is constant. Explain how the possibilities are reflected in the solutions to part (f). 3. Consider the competing species model (see Boyce & DiPrima, 8th edition, Prob. 4, Sect. 9.4 for a model example.) { dx dt = x(2 x y) for x, y 0. dy dt = y(1 (1/3)x y). (a) Find all critical points of the system. At each critical point, calculate the corresponding linear system and find the eigenvalues of the coefficient matrix; then identify the type and stability of the critical point. (b) Plot the vector field. (c) Use several initial data points (x 0, y 0 ) in the first quadrant to draw a phase portrait for the system. Identify the direction of increasing t on the trajectories you obtain. Use your vector field plot from part (b) to choose a representative sample of initial conditions. Then combine the vector field and phase portrait on a single graph. (d) Suppose the initial state of the population is given by x(0) = 0.1, y(0) = 0.1. Find the state of the population at t = 1, 2, 3, 4, 5,..., 20. (e) Explain why, practically speaking, peaceful coexistence is the only outcome; i.e., with the exception of the situation in which one or both species starts out without any population, the population distributions always tend toward a certain equilibrium point. Sketch on your final plot from part (c) the separatrices that connect the stable equilibrium point to the two unstable points at which one population is zero; these separatrices divide the solution curves that tend toward the origin as t from those that are unbounded as t. Since this time the separatrices are trajectories coming out of the saddle points, one can plot them by solving the equation for initial conditions very close to the saddle points. (f) The vertical line x = 7 4 cuts a separatrix. Find an approximation to two-decimal point accuracy of the value ȳ such that (7/4, ȳ) is on the separatrix. 19

20 Problem Set F. Systems of Differential Equations 4. Consider the predator-prey model { dx dt = x(1 2y) dy dt = y(3x 4) in which x 0 represents the population of the prey and y 0 represents the population of the predators. (a) Find all critical points of the system. At each critical point, calculate the corresponding linear system and find the eigenvalues of the coefficient matrix; then identify the type and stability of the critical point. (b) Plot the vector field. (c) Use several initial data points (x 0, y 0 ) in the first quadrant to draw a phase portrait for the system. Identify the direction of increasing t on the trajectories you obtain. Use your vector field plot from part (b) to choose a representative sample of initial conditions. Then combine the vector field and phase portrait on a single graph. (d) Explain from your phase portrait how the populations vary over time for initial data close to the unique critical point inside the first quadrant. What happens for initial data far from this critical point? (e) Suppose the initial state of the population is given by x(0) = 1, y(0) = 1. Find the state of the population at t = 1, 2, 3, 4, 5. (f) Use event detection to estimate within two decimal places the period of the solution curve that starts at (1, 1). Before you do, make a preliminary guess based on the results from part (e). 5. Consider a modified predator-prey system where the behavior of the prey is governed by a logistic/threshold equation (in the absence of the predator). Such a model is typified by the system found in Boyce & DiPrima, Sect. 9.5, Prob. 5. Here is a somewhat modified version. { dx dt = x( 1 + 4x (1/2)y x2 ) = y(x 3) dy dt where x 0 represents the population of the prey, and y 0 represents the population of the predators. (a) Find all critical points of the system. At each critical point, calculate the corresponding linear system and find the eigenvalues and eigenvectors of the coefficient matrix; then identify the critical points as to type and stability.

(b) Plot the vector field on a region small enough to distinguish the critical points but large enough to judge the possible solution behaviors away from the critical points. (c) Use several initial data points (x 0, y 0 ) in the first quadrant to draw a phase portrait for the system. Use the information from parts (a) and (b) to choose a representative sample of initial conditions. (d) Add any relevant separatrices to your combined phase portrait/vector field and mark the critical points. Then from your graph, explain how the population varies over time for initial data in various portions of the first quadrant. What happens to the two species in the long term? 21