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

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

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

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

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

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

Final Exam Sample Problems, Math 246, Spring 2018

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

FIRST-ORDER ORDINARY DIFFERENTIAL EQUATIONS III: Numerical and More Analytic Methods David Levermore Department of Mathematics University of Maryland

Spring 2015 Sample Final Exam

19 February Contents General Guidelines Tanks and Mixtures Loans Motion Population Dynamics 9

Math 180, Exam 2, Practice Fall 2009 Problem 1 Solution. f(x) = arcsin(2x + 1) = sin 1 (3x + 1), lnx

Answer Key. Calculus I Math 141 Fall 2003 Professor Ben Richert. Exam 2

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

(a) x cos 3x dx We apply integration by parts. Take u = x, so that dv = cos 3x dx, v = 1 sin 3x, du = dx. Thus

MATH 135 Calculus 1 Solutions/Answers for Exam 3 Practice Problems November 18, 2016

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

Math 308 Week 8 Solutions

Math 106 Answers to Exam 3a Fall 2015

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

Math 308 Exam I Practice Problems

MATH 307 Introduction to Differential Equations Autumn 2017 Midterm Exam Monday November

Review for the Final Exam

Solutions to Math 53 First Exam April 20, 2010

Unit IV Derivatives 20 Hours Finish by Christmas

Unit IV Derivatives 20 Hours Finish by Christmas

Sample Questions, Exam 1 Math 244 Spring 2007

Practice Final Exam Solutions

Multiple Choice Answers. MA 113 Calculus I Spring 2018 Exam 2 Tuesday, 6 March Question

Practice Final Exam Solutions

Your exam contains 5 problems. The entire exam is worth 70 points. Your exam should contain 6 pages; please make sure you have a complete exam.

Math 147 Exam II Practice Problems

2. Which of the following is an equation of the line tangent to the graph of f(x) = x 4 + 2x 2 at the point where

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

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

MATH 151, SPRING 2018

DRAFT - Math 101 Lecture Note - Dr. Said Algarni

= π + sin π = π + 0 = π, so the object is moving at a speed of π feet per second after π seconds. (c) How far does it go in π seconds?

MATH 408N PRACTICE FINAL

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

Math Practice Exam 3 - solutions

Math 308 Exam I Practice Problems

Solutions to Exam 2, Math 10560

ORDINARY DIFFERENTIAL EQUATIONS: Introduction and First-Order Equations. David Levermore Department of Mathematics University of Maryland

MATH 151, FALL SEMESTER 2011 COMMON EXAMINATION 3 - VERSION B - SOLUTIONS

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).

FINAL EXAM CALCULUS 2. Name PRACTICE EXAM SOLUTIONS

LECTURE 4-1 INTRODUCTION TO ORDINARY DIFFERENTIAL EQUATIONS

MATH 10550, EXAM 2 SOLUTIONS. 1. Find an equation for the tangent line to. f(x) = sin x cos x. 2 which is the slope of the tangent line at

Math 1431 Final Exam Review

By providing my signature below I acknowledge that this is my work, and I did not get any help from anyone else:

Topics and Concepts. 1. Limits

Math 131 Exam 2 November 13, :00-9:00 p.m.

Solutions of Math 53 Midterm Exam I

FIRST-ORDER ORDINARY DIFFERENTIAL EQUATIONS I: Introduction and Analytic Methods David Levermore Department of Mathematics University of Maryland

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

Math Fall 08 Final Exam Review

Applied Calculus I Practice Final Exam Solution Notes

Math 131 Exam 2 Spring 2016

2015 Math Camp Calculus Exam Solution

Problem set 7 Math 207A, Fall 2011 Solutions

First Order Linear DEs, Applications

MATH 32A: MIDTERM 2 REVIEW. sin 2 u du z(t) = sin 2 t + cos 2 2

(b) Find the range of h(x, y) (5) Use the definition of continuity to explain whether or not the function f(x, y) is continuous at (0, 0)

Page Problem Score Max Score a 8 12b a b 10 14c 6 6

Math 116 Second Midterm November 14, 2012

Practice Questions From Calculus II. 0. State the following calculus rules (these are many of the key rules from Test 1 topics).

1.1. BASIC ANTI-DIFFERENTIATION 21 + C.

ORDINARY DIFFERENTIAL EQUATION: Introduction and First-Order Equations. David Levermore Department of Mathematics University of Maryland

Final exam practice 1 UCLA: Math 3B, Winter 2019

Lecture for Week 6 (Secs ) Derivative Miscellany I

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

Calculus IV - HW 2 MA 214. Due 6/29

SOLUTIONS TO EXAM 2, MATH 10550

Math 266, Midterm Exam 1

Final Exam Solutions

Fall 2009 Math 113 Final Exam Solutions. f(x) = 1 + ex 1 e x?

Math 116 Second Midterm March 19, 2012

I. Horizontal and Vertical Tangent Lines

Spring 2017 Midterm 1 04/26/2017

Chapter 4. Section Derivatives of Exponential and Logarithmic Functions

Math 216 First Midterm 19 October, 2017

1. First-order ODE s

MIDTERM 2. Section: Signature:

DEPARTMENT OF MATHEMATICS AND STATISTICS UNIVERSITY OF MASSACHUSETTS. MATH 233 SOME SOLUTIONS TO EXAM 2 Fall 2018

Sample Questions Exam II, FS2009 Paulette Saab Calculators are neither needed nor allowed.

AP Calculus BC Class Starter January 22, 2018

First Order Linear DEs, Applications

MATH 1241 Common Final Exam Fall 2010

MATH 2300 review problems for Exam 1 ANSWERS

Solutions to Math 41 Final Exam December 10, 2012

The Princeton Review AP Calculus BC Practice Test 2

AP Calculus BC Chapter 4 AP Exam Problems. Answers

Volumes of Solids of Revolution Lecture #6 a

MATH 294???? FINAL # 4 294UFQ4.tex Find the general solution y(x) of each of the following ODE's a) y 0 = cosecy

MTH 234 Exam 1 February 20th, Without fully opening the exam, check that you have pages 1 through 11.

MA 125 CALCULUS I FALL 2006 December 08, 2006 FINAL EXAM. Name (Print last name first):... Instructor:... Section:... PART I

Please do not start working until instructed to do so. You have 50 minutes. You must show your work to receive full credit. Calculators are OK.

Math 229 Mock Final Exam Solution

Transcription:

First In-Class Exam Solutions Math 246, Professor David Levermore Thursday, 20 September 208 () [6] In the absence of predators the population of mosquitoes in a certain area would increase at a rate proportional to its current population such that it would triple every six weeks. There are 80,000 mosquitoes in the area when a flock of birds arrives that eats 40,000 mosquitoes per week. (a) [4] Give an initial-value problem that governs M(t), the number of mosquitoes in the area after the flock of birds arrives. (Do not solve the initial-value problem!) (b) [2] Is the flock large enough to control the mosquitoes? (Why or why not?) Solution (a). The population tripling every six weeks means that the growth rate r satisfies e r6 = 3, whereby r = log(3). Therefore the initial-value problem that M 6 satisfies is dm = log(3)m 40, 000, M(0) = 80, 000. 6 dt Solution (b). Because the differential equation is autonomous (as well as linear), the monotonicity of M(t) can be determined by a sign analysis of its right-hand side. We see from part (a) that dm dt = 6 log(3) ( M ) 240, 000 log(3) 240, 000 < 0 for M < is log(3), 240, 000 > 0 for M > log(3). This can be visualized with the phase-line portrait, which is + M 240,000 log(3) Because log(x) is an increasing function and 3 > e, we know that log(3) > log(e) =. Because 3 is close to e we know that log(3) is close to log(e) =. Certainly we have log(3) < 4, which is equivalent to 3 M(0) = 80, 000 < 240, 000 log(3). This implies that M(t) is a decreasing function of t. enough to control the mosquitoes. Therefore the flock is large Remark. Because 3 is about 0% larger than e, we might expect that log(3) is also about 0% larger than log(e) =. (In fact, 3.0363832 and log(3).0986229.) e This can be made precise as follows. The concavity of the function f(x) = log(x) over x > 0 implies that the graph of f(x) lies below any tangent line. In particular, the graph of f(x) lies below the tangent line approximation to f(x) at the point x = e. This says that for any x > 0 we have f(x) f(e) + f (e)(x e).

2 We expect that this tangent line approximation is pretty good when x is close to e. By setting f(x) = log(x) and x = 3, which is close to e, we obtain log(3) log(e) + e (3 e) = + 3 e = 3 e. Because log(3).0986229 and 3.0363832, this is a pretty good upper bound! e In particular, because e > 27 we see that 0 log(3) 3 e < 0 9 < 4 3. You were not expected to make such an argument on the exam. Any argument that log(3) is closer to than 4 because 3 is close to e was fine. 3 (2) [22] Find an explicit solution for each of the following initial-value problems and give its interval of definition. (a) dx dt = (x x2 )3t 2, x(0) = 2. Solution (a). This is a nonautonomous, separable equation. Its right-hand side is defined everywhere. Because x x 2 = x( x), its only stationary points are x = 0 and x =. Because x x 2 is differentiable at these stationary points, no other solution can touch them. Because its initial value 2 lies to the right of the stationary point, the solution x(t) of the initial-value problem will lie to the right of the stationary point for so long as it exists. In other words, the solution x(t) must satisfy x(t) > for every t in its interval of definition. To determine this interval of definition we must find x(t). The differential equation has the separated differential form x x dx = 2 3t2 dt, whereby x x dx = 3t 2 dt = t 3 + c 2. By the residual (cover up) method we have the partial fraction identity x x = 2 x( x) = x + x. This identity plus the fact that x = x and x = x when x > yield x x dx = 2 x dx + x dx = log( x ) log( x ) + c 2 ( ) x = log(x) log(x ) + c 2 = log + c 2. x By setting c = c c 2 we obtain the implicit general solution ( ) x log = t 3 + c. x

3 The initial condition x(0) = 2 implies that ( ) 2 log = 0 3 + c, 2 whereby c = log(2). Hence, the solution is governed implicitly by ( ) x log = t 3 + log(2). x Upon exponentiating both sides we obtain x x = elog(2)+t3 = 2e t3, which becomes the linear expression in x given by x = 2e t3 (x ). This can be solved to arrive at the explicit solution x = 2et3 2e t3. Because the denominator is positive at the initial time t = 0, the interval of definition is determined by 2e t3 > 0. Because e t3 > implies 2 t3 > log(2), we see that the interval of definition is t > ( log(2) ) 3, or equivalently, in interval notaion ( ( log(2) ) 3, ). (b) ( + z 2 ) dy dz + 6zy = 3, y(0) = 2. + z2 Solution (b). This is a nonhomogeneous linear equation. Its normal form is dy dz + 6z + z y = 3 2 ( + z 2 ). 2 Its coefficient 6z/(+z 2 ) and forcing 3/(+z 2 ) 2 both are continuous everywhere. Therefore the interval of definition of the solution is (, ). An integrating factor is ( z ) 6s exp + s ds = exp ( 3 log( + z 2 ) ) = ( + z 2 ) 3, 2 0 whereby the equation has the integrating factor form d ( ( + z 2 ) 3 y ) = ( + z 2 ) 3 3 dz ( + z 2 ) = 3 + 2 3z2. By integrating both sides of this equation we find that ( + z 2 ) 3 y = 3 + 3z 2 dz = 3z + z 3 + c.

4 The initial condition y(0) = 2 implies that ( + 0 2 ) 3 2 = 3 0 + 0 3 + c, whereby c = 2. Therefore the solution is y = 3z + z3 + 2 ( + z 2 ) 3. This foumula confirms that its interval of definition is (, ). (3) [2] Consider the differential equation dv dt = (v2 )(v 3) 2 (v 2 + )(v + 3). 2 (a) [7] Sketch its phase-line portrait over the interval 4 v 4. Identify with points where it has no solution. Identify with its stationary points and classify each as being either stable, unstable, or semistable. (b) [5] For each stationary point identify the set of initial-values v(0) such that the solution v(t) converges to that stationary point as t. Solution (a). This equation is autonomous. Its right-hand side is undefined at v = 3 and is differentiable elsewhere. Its stationary points are found by setting (v 2 )(v 3) 2 (v 2 + )(v + 3) 2 = 0. Because v 2 = (v + )(v ), the stationary points are v =, v =, and v = 3. (Notice that v 2 + > 0.) Because the right-hand side is differentiable at each of these stationary points, no other solutions will touch them. (Uniqueness!) A sign analysis of the right-hand side shows that the phase-line portrait is + + + + + + v 4 3 3 4 undefined stable unstable semistable Remark. The terms stable, unstable, and semistable are applied only to solutions. The point v = 3 is not a solution, so these terms should not be applied to it. Solution (b). As t increases the solutions v(t) will move in the direction of the arrows that are shown in the phase-line portrait given in the solution to part (a). Moreover, uniqueness implies that a nonstationary solution will not touch any stationary one. The phase-line portrait shows that for the stable stationary point we have v(t) as t if and only if v(0) is in the interval ( 3, ). The phase-line portrait shows that for the unstable stationary point we have v(t) as t if and only if v(0) =. The phase-line portrait shows that for the semistable stationary point 3 we have v(t) 3 as t if and only if v(0) is in the interval (, 3].

5 (4) [2] Consider the following MATLAB function M-file. function [t,u] = solveit(ti, ui, tf, n) t = zeros(n +, ); u = zeros(n +, ); t() = ti; u() = ui; h = (tf - ti)/n; hhalf = h/2; for k = :n t(k + ) = t(k) + h; fnow = (u(k))ˆ3 + exp(t(k)*u(k)); uplus = u(k) + h*fnow; fplus = (uplus)ˆ3 + exp(t(k+)*uplus); u(k + ) = u(k) + hhalf*(fnow + fplus); end Suppose the input values are ti = 2, ui = 0, tf = 6, and n = 40. (a) [4] What initial-value problem is being approximated numerically? (b) [2] What is the numerical method being used? (c) [2] What is the step size? (d) [4] What will be the output values of t(2) and u(2)? Solution (a). The initial-value problem being approximated numerically is du dt = u3 + exp(tu), u(2) = 0. Remark. An initial-value problem consists of both a differential equation and an initial condition. Both must be given for full credit. Solution (b). The solution is being approximated by the Runge-trapezoidal method. (This is clear from the hhalf*(fnow + fplus) in last line of the for loop.) Solution (c). Because tf = 6, ti = 2, and n = 40, the step size is tf ti h = = 6 2 = 4 n 40 40 = 0 = 0.. Remark. The correct values for tf, ti, and n had to be plugged in to get full credit. Solution (d). Because h = 0., we have hhalf = 0.05. Because ti = 2 and ui = 0, we have t() = ti = 2, and x() = xi = 0. Setting k = inside the for loop then yields t(2) = t() + h = 2 + 0. = 2., fnow = (u()) 3 + exp(t() * u()) = 0 3 + exp(2 0) = 0 + =, uplus = u() + h * fnow = 0 + 0. = 0., fplus = uplus 3 + exp(t(2) * uplus) = (0.) 3 + exp(2. 0.) = (0.) 3 + exp(0.2), u(2) = u() + hhalf*(fnow + fplus) = 0 + 0.05 ( + (0.) 3 + exp(0.2) ). Remark. This expression for u(2) did not have to be simplified to get full credit.

6 (5) [6] Give the interval of definition for the solution of the initial-value problem dk dt + cos(t) sin(t) k = t t 2 6, k( 5) = 4. (Do not solve the equation to answer this question, but give reasoning!) Solution. This problem is linear in k. It is already in normal form. The interval of definition can be read off as follows. First, notice that the coefficient cos(t)/ sin(t) is undefined at t = nπ for every integer n and is continuous elsewhere. Next, notice that the forcing t/(t 2 6) is undefined at t = ±4 and is continuous elsewhere. Therefore the interval of definition is ( 2π, 4) because the initial time t = 5 is in ( 2π, 4), both the coefficient and forcing are continuous over ( 2π, 4), the coefficient is undefined at t = 2π, the forcing is undefined at t = 4. (6) [6] Sketch the graph that would be produced by the following Matlab commands. [X, Y] = meshgrid( 5:0.:5, 5:0.:5) contour(x, Y, X Y.ˆ2, [ 4, 0, 4]) axis square Solution. The meshgrid command says the sketch should show both x and y axes marked from 5 to 5. The contour command plots the graph of the curve x y 2 = c for the values c = 4, c = 0, and c = 4, which are the graphs of the three parabolas x = y 2 4, x = y 2, x = y 2 + 4. A sketch will be shown during discussion.

(7) [8] Suppose you have used a numerical method to approximate the solution of an initial-value problem over the time interval [, 0] with 900 uniform time steps. What step size is needed to reduce the global error of your approximation by a factor of 625 if the method you had used was each of the following? (Notice that 625 = 54.) (a) Runge-Kutta method (b) Runge-midpoint method (c) Runge-trapezoidal method (d) explicit Euler method Remark. Notice that the step size used in the original calculation is h = t F t I N = 0 = 900 00. Solution (a). The Runge-Kutta method is fourth order, so its error scales like h 4. To reduce the error by a factor of, we must reduce h by a factor of 625 Because the original h was, we must set 00 h = 00 5 = 500. 625 7 4 = 5. Solution (b). The Runge-midpoint method is second order, so its error scales like h 2. To reduce the error by a factor of, we must reduce h by a factor of 625 Because the original h was, we must set 00 h = 00 25 = 2500. 2 =. 625 25 Solution (c). The Runge-trapezoidal method is second order, so its error scales like h 2. To reduce the error by a factor of, we must reduce h by a factor of 625 Because the original h was, we must set 00 h = 00 25 = 2500. 2 =. 625 25 Solution (d). The explicit Euler method is first order, so its error scales like h. To reduce the error by a factor of, we must reduce h by a factor of. Because the 625 625 original h was, we must set 00 h = 00 625 = 62500. Remark. The number of time steps needed to reduce the error by a factor of 625 is respectively (a) 900 5, (b) 900 25, (c) 900 25, (d) 900 625. Had you computed these then the associated step sizes can be expressed as (a) 0 0 0, (b), (c) 900 5 900 25 900 25, (d) 0 900 625. The arithmetic did not have to be carried out for full credit.

8 (8) [8] A tank has a square base with 5 meter edges, a height of 3 meters, and an open top. It is initially empty when water begins to fill it at a rate of 7 liters per minute. The water also drains from the tank through a hole in its bottom at a rate of 4 h liters per minute where h(t) is the height of the water in the tank in meters. (a) [6] Give an initial-value problem that governs h(t). (Recall m 3 = 000 lit.) (Do not solve the initial-value problem!) (b) [2] Does the tank overflow? (Why or why not?) Solution (a). Let V (t) be the volume (lit) of water in the tank at time t minutes. We have the following (optional) picture. height 3 m inflow 7 lit/min water height h(t) m water volume V (t) lit outflow 4 h(t) lit/min initial conditions h(0) = 0 m, V (0) = 0 lit. base area 25 m 2 We want to write down an initial-value problem that governs h(t). Because the tank has a base with an area of 25 m 2, the volume of water in the tank is 25h(t) m 3. Because m 3 = 000 lit, V (t) = 000 25h(t) = 25000h(t) lit. Because dv dt = RATE IN RATE OUT = 7 4 h, and V = 25000h, the initial-value problem that governs h(t) is 25000 dh dt = 7 4 h, h(0) = 0. Each term in the differential equation has units of lit/min. Solution (b). The differential equation is autonomous. Its right-hand side is defined for h 0 and is differentiable for h > 0. It has one stationary point at h = 49. Its 6 phase-line portrait for h > 0 is + h 49 6 This portrait shows that if h(0) = 0 then h(t) 49 as t. Because the height 6 of the tank is 3 and 49 > 3, the tank will overflow. 6

(9) [20] For each of the following differential forms determine if it is exact or not. If it is exact then give an implicit general solution. Otherwise find an integrating factor. (You do not need to find a general solution in the last case.) (a) ( cos(x + y) e x) dx + ( cos(x + y) + 2 + y 2) dy = 0. Solution (b). This differential form is exact because y ( cos(x + y) e x ) = sin(x + y) = x ( cos(x + y) + 2 + y 2 ) = sin(x + y). Therefore we can find H(x, y) such that x H(x, y) = cos(x + y) e x, y H(x, y) = cos(x + y) + 2 + y 2. Integrating the first equation with respect to x shows which implies that H(x, y) = sin(x + y) e x + h(y), y H(x, y) = cos(x + y) + h (y). Plugging this expression for y H(x, y) into the second equation gives cos(x + y) + h (y) = cos(x + y) + 2 + y 2, which shows h (y) = 2 + y 2. Taking h(y) = 2y + 3 y3, an implicit general solution is sin(x + y) e x + 2y + 3 y3 = c. (b) (y 3 + 4x 3 y) dx + (5xy 2 + 3x 4 ) dy = 0. Solution (b). This differential form is not exact because y (y 3 + 4x 3 y) = 3y 2 + 4x 3 x (5xy 2 + 3x 4 ) = 5y 2 + 2x 3. We seek an integrating factor ρ that satisfies y [ (y 3 + 4x 3 y)ρ ] = x [ (5xy 2 + 3x 4 )ρ ]. Expanding the partial derivatives yields (y 3 + 4x 3 y) y ρ + (3y 2 + 4x 3 )ρ = (5xy 2 + 3x 4 ) x ρ + (5y 2 + 2x 3 )ρ. Grouping the ρ terms together gives (y 3 + 4x 3 y) y ρ = (5xy 2 + 3x 4 ) x ρ + (2y 2 + 8x 3 )ρ. If we set x ρ = 0 then this reduces to y y ρ = 2ρ, which yields the integrating factor ρ = y 2. Remark. Because the differential form was not exact, all we were asked to do was find an integrating factor. If we had been asked to find an implicit general solution then we would seek H(x, y) such that x H(x, y) = y 5 + 4x 3 y 3, y H(x, y) = 5xy 4 + 3x 4 y 2. These equations can be integrated to find H(x, y) = xy 5 + x 4 y 3. Therefore an implicit general solution is xy 5 + x 4 y 3 = c. 9