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

Similar documents
Solutions of the Sample Problems for the First 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.

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.

Final Exam Sample Problems, Math 246, Spring 2018

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

Math 308 Exam I Practice Problems

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

Math 308 Exam I Practice Problems

Practice Final Exam Solutions

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

Solutions to Math 53 First Exam April 20, 2010

Solutions of Math 53 Midterm Exam I

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

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

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

Problem Set. Assignment #1. Math 3350, Spring Feb. 6, 2004 ANSWERS

(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

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

Math Applied Differential Equations

Practice Final Exam Solutions

Math 308, Sections 301, 302, Summer 2008 Review before Test I 06/09/2008

Math 246, Spring 2011, Professor David Levermore

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

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

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

Matrix Theory and Differential Equations Homework 2 Solutions, due 9/7/6

Introduction to First Order Equations Sections

Math 266, Midterm Exam 1

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

Math 307 E - Summer 2011 Pactice Mid-Term Exam June 18, Total 60

FINAL EXAM CALCULUS 2. Name PRACTICE EXAM

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

1. Why don t we have to worry about absolute values in the general form for first order differential equations with constant coefficients?

FINAL EXAM SOLUTIONS, MATH 123

Basic Theory of Differential Equations

Exam 2 Solutions, Math March 17, ) = 1 2

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

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

Math 1A Chapter 3 Test Typical Problems Set Solutions

Chapter 1: Introduction

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

Math 122 Fall Handout 15: Review Problems for the Cumulative Final Exam

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

Ordinary Differential Equations: Worked Examples with Solutions. Edray Herber Goins Talitha Michal Washington

2.4 Differences Between Linear and Nonlinear Equations 75

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

Final exam practice 4 (solutions) UCLA: Math 3B, Winter 2019

Practice Midterm 1 Solutions Written by Victoria Kala July 10, 2017

Sample Questions, Exam 1 Math 244 Spring 2007

MATH 307: Problem Set #3 Solutions

Chapter 9b: Numerical Methods for Calculus and Differential Equations. Initial-Value Problems Euler Method Time-Step Independence MATLAB ODE Solvers

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

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

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

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

Mathematics 3C Summer 3B 2009 Worksheet Solutions NAME: MY WEBSITE: kgracekennedy/sb093c.html

2015 Math Camp Calculus Exam Solution

Calculus II - Fall 2013

Modeling with First-Order Equations

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

First-Order Ordinary Differntial Equations II: Autonomous Case. David Levermore Department of Mathematics University of Maryland.

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 5, 2017 FORM A. Name: Student Number: Section:

Math 116 Second Midterm November 14, 2012

Differential Equations Spring 2007 Assignments

Modeling with First-Order Equations

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

Modeling with differential equations

Math 122 Fall Handout 11: Summary of Euler s Method, Slope Fields and Symbolic Solutions of Differential Equations

Math 217 Practice Exam 1. Page Which of the following differential equations is exact?

Homework 2 Solutions Math 307 Summer 17

First-Order Ordinary Differntial Equations: Classification and Linear Equations. David Levermore Department of Mathematics University of Maryland

UCLA: Math 3B Problem set 7 (solutions) Fall, 2017

Lecture Notes for Math 251: ODE and PDE. Lecture 6: 2.3 Modeling With First Order Equations

Math 307 A - Spring 2015 Final Exam June 10, 2015

Solutions to the Review Questions

First order differential equations

Math 2250 Lab 3 Due Date : 2/2/2017

Math 2214 Solution Test 1D Spring 2015

MT410 EXAM 1 SAMPLE 1 İLKER S. YÜCE DECEMBER 13, 2010 QUESTION 1. SOLUTIONS OF SOME DIFFERENTIAL EQUATIONS. dy dt = 4y 5, y(0) = y 0 (1) dy 4y 5 =

SOLUTIONS TO EXAM 2, MATH 10550

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

FINAL EXAM CALCULUS 2. Name PRACTICE EXAM SOLUTIONS

Solutions to the Review Questions

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

DON T PANIC! If you get stuck, take a deep breath and go on to the next question. Come back to the question you left if you have time at the end.

Math 232, Final Test, 20 March 2007

Math Applied Differential Equations

8. Set up the integral to determine the force on the side of a fish tank that has a length of 4 ft and a heght of 2 ft if the tank is full.

Numerical Methods for the Solution of Differential Equations

Math Assignment 2

( ) ( ). ( ) " d#. ( ) " cos (%) " d%

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

Worksheet 9. Math 1B, GSI: Andrew Hanlon. 1 Ce 3t 1/3 1 = Ce 3t. 4 Ce 3t 1/ =

MA26600 FINAL EXAM INSTRUCTIONS Fall 2015

EXAM. Exam #1. Math 3350 Summer II, July 21, 2000 ANSWERS

Math 106 Answers to Exam 3a Fall 2015

Solutions to Math 41 Final Exam December 9, 2013

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

Transcription:

Solutions of Sample Problems for First In-Class Exam Math 246, Fall 202, Professor David Levermore () (a) Give the integral being evaluated by the following MATLAB command. int( x/(+xˆ4), x,0,inf) Solution. It is evaluating the definite integral 0 r + r 4 dr. where you can replace r by any other variable. (b) Sketch the graph that would be produced by the following MATLAB command. ezplot( 2/t, [, 6]) Solution. Your sketch should show a decreasing, concave up function that decreases from a value of 2 to a value of over the interval [, 6]. 3 (c) 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.ˆ2 + Y.ˆ2, [, 9, 25]) axis square Solution. Your sketch should show both x and y axes marked from 5 to 5 and circles of radius, 3, and 5 centered at the origin. (2) Find the explicit solution for each of the following initial-value problems and identify its interval of definition. (a) dz = cos(t) z, z(0) = 2. + t Solution. This equation is linear in z, so write it in the linear normal form dz + z + t = cos(t) + t. An integrating factor is given by ( t ) exp + s ds = exp ( log( + t) ) = + t, 0 Upon multiplying the equation by ( + t), one finds that d ( ) ( + t)z = cos(t), which is then integrated to obtain ( + t)z = sin(t) + c.

2 The integration constant c is found through the initial condition z(0) = 2 by setting t = 0 and z = 0, whereby c = ( + 0)2 sin(0) = 2. Hence, upon solving explicitly for z, the solution is z = 2 + sin(t). + t The interval of definition for this solution is t >. (b) du dz = eu +, u(0) = 0. Solution. This equation is autonomus (and therefore separable). Its separated differential form is du = dz. e u + This equation can be integrated to obtain z = e u + du = e u + e u du = log( + e u ) + c. The integration constant c is found through the initial condition u(0) = 0 by setting z = 0 and u = 0, whereby c = 0 + log( + e 0 ) = log(2). Hence, the solution is given implicitly by ( ) + e z = log( + e u u ) + log(2) = log. 2 This may be solve for u as follows: e z = + e u, 2 2e z = e u, u = log(2e z ). The interval of definition for this solution is z < log(2). (c) dv = 3t2 e v, v(2) = 0. Solution. This equation is separable. Its separated differential form is This can be integrated to obtain e v dv = 3t 2. e v = t 3 + c. The initial condition v(2) = 0 implies that c = e 0 + 2 3 = + 8 = 9. Therefore e v = t 3 + 9, which can be solved as v = log(9 t 3 ), with interval of definition t < 9 3.

Here we need 9 > t 3 for the log to be defined. The interval of definition is obtained by taking the cube root of both sides of this inequality. (3) Consider the differential equation = 4y2 y 4. (a) Find all of its stationary (equilibrium) solutions and classify each as being either stable, unstable, or semistable. Solution. The right-hand side of the equation factors as 4y 2 y 4 = y 2 (4 y 2 ) = y 2 (2 + y)(2 y), which implies that y = 2, y = 0, and y = 2 are all of its stationary solutions. A sign analysis of y 2 (2 + y)(2 y) then shows that > 0 when 2 < y < 0 or 0 < y < 2, < 0 when < y < 2 or 2 < y <. The phase-line portrait for this equation is therefore + + 2 0 2 unstable semistable stable (b) If y(0) =, how does the solution y(t) behave as t? Solution. It is clear from the answer to (a) that > 0 when 0 < y < 2, so that y(t) 2 as t if y(0) =. (c) If y(0) =, how does the solution y(t) behave as t? Solution. It is clear from the answer to (a) that > 0 when 2 < y < 0, so that y(t) 0 as t if y(0) =. (d) Sketch a graph of y versus t showing the direction field and several solution curves. The graph should show all the stationary solutions as well as solution curves above and below each of them. Every value of y should lie on at least one sketched solution curve. Solution. Will be given during the review session. 3

4 (4) Give the interval of definition for the solution of the initial-value problem dx + t 2 4 x = sin(t), x() = 0. (You do not have to solve this equation to answer this question!) Solution. This problem is linear in x and is alrea in normal form. The coefficient /(t 2 4) is continuous everywhere except where t = ±2, while the forcing / sin(t) is continuous everywhere except where t = nπ for some integer n i.e. everywhere except where t = 0, ±π, ±2π,. You can therefore read off that the interval of definition is (0, 2), the endpoints of which are points where / sin(t) and /(t 2 4) are undefined respectively that bracket the initial time t =. (5) A tank initially contains 00 liters of pure water. Beginning at time t = 0 brine (salt water) with a salt concentration of 2 grams per liter (g/l) flows into the tank at a constant rate of 3 liters per minute (l/min) and the well-stirred mixture flows out of the tank at the same rate. Let S(t) denote the mass (g) of salt in the tank at time t 0. (a) Write down an initial-value problem that governs S(t). Solution. Because water flows in and out of the tank at the same rate, the tank will contain 00 liters of salt water for every t > 0. The salt concentration of the water in the tank at time t will therefore be S(t)/00 g/l. Because this is also the concentration of the outflow, S(t), the mass of salt in the tank at time t, will satisfy = RATE IN RATE OUT = 2 3 S 00 3 = 6 3 00 S. Because there is no salt in the tank initially, the initial-value problem that governs S(t) is = 6 3 00 S, S(0) = 0. (b) Is S(t) an increasing or decreasing function of t? (Give your reasoning.) Solution. One sees from part (a) that = 3 (200 S) > 0 for S < 200, 00 whereby S(t) is an increasing function of t that will approach the stationary value of 200 g as t. (c) What is the behavior of S(t) as t? (Give your reasoning.) Solution. The argument given for part (b) alrea shows that S(t) is an increasing function of t that approaches the stationary value of 200 g as t.

(d) Derive an explicit formula for S(t). Solution. The differential equation given in the answer to part (a) is linear, so write it in the form + 3 S = 6. 00 An integrating factor is e 3 00 t, whereby d ( 3 e 00 t S ) = 6e 3 00 t. This is the integrated to obtain e 3 00 t S = 200e 3 00 t + c. The integration constant c is found by setting t = 0 and S = 0, whereby Then solving for S gives c = e 0 0 200 e 0 = 200. S(t) = 200 200e 3 00 t. (6) Suppose you are using the Runge-midpoint method to numerically approximate the solution of an initial-value problem over the time interval [0, 5]. By what factor would you expect the error to decrease when you increase the number of time steps taken from 500 to 2000? Solution. The Runge-midpoint method is second order, which means its (global) error scales like h 2 where h is the time step. When the number of time steps taken increases from 500 to 2000, the time step h decreases by a factor of /4. The error will therefore decrease (like h 2 ) by a factor of /4 2 = /6. (7) Give( an implicit ) general solution to each of the following differential equations. y (a) x + 3x dx + ( log(x) y ) = 0. Solution. Because ( ) y y x + 3x = ( ) = x log(x) y = x x, the equation is exact. You can therefore find H(x, y) such that x H(x, y) = y x + 3x, yh(x, y) = log(x) y. The first of these equations implies that H(x, y) = y log(x) + 3 2 x2 + h(y). Plugging this into the second equation then shows that log(x) y = y H(x, y) = log(x) + h (y). Hence, h (y) = y, which yields h(y) = 2 y2. The general solution is therefore governed implicitly by y log(x) + 3 2 x2 2 y2 = c, where c is an arbitrary constant. 5

6 (b) (x 2 + y 3 + 2x) dx + 3y 2 = 0. Solution. Because y (x 2 + y 3 + 2x) = 3y 2 x (3y 2 ) = 0, the equation is not exact. Seek an integrating factor µ(x, y) such that This means that µ must satisfy y ( (x 2 + y 3 + 2x)µ ) = x (3y 2 µ). (x 2 + y 3 + 2x) y µ + 3y 2 µ = 3y 2 x µ. If you assume that µ depends only on x (so that y µ = 0) then this reduces to µ = x µ, which depends only on x. One sees from this that µ = e x is an integrating factor. This implies that (x 2 + y 3 + 2x)e x dx + 3y 2 e x = 0 is exact. You can therefore find H(x, y) such that x H(x, y) = (x 2 + y 3 + 2x)e x, y H(x, y) = 3y 2 e x. The second of these equations implies that H(x, y) = y 3 e x + h(x). Plugging this into the first equation then yields Hence, h satisfies (x 2 + y 3 + 2x)e x = x H(x, y) = y 3 e x + h (x). h (x) = (x 2 + 2x)e x. This can be integrated to obtain h(x) = x 2 e x. The general solution is therefore governed implicitly by (y 3 + x 2 )e x = c, where c is an arbitrary constant. (8) A 2 kilogram (kg) mass initially at rest is dropped in a medium that offers a resistance of v 2 /40 newtons (= kg m/sec 2 ) where v is the downward velocity (m/sec) of the mass. The gravitational acceleration is 9.8 m/sec 2. (a) What is the terminal velocity of the mass? Solution. The terminal velocity is the velocity at which the force of resistence balances that of gravity. This happens when 40 v2 = mg = 2 9.8. Upon solving this for v one obtains v = 40 2 9.8 m/sec = 4 2 98 = 4 2 2 49 = 4 2 7 2 = 4 7 = 28 m/sec. (full marks)

(b) Write down an initial-value problem that governs v as a function of time. (You do not have to solve it!) Solution. The net downward force on the falling mass is the force of gravity minus the force of resistence. By Newton (ma = F), this leads to m dv = mg 40 v2. Because m = 2 and g = 9.8, and because the mass is initially at rest, this yields the initial-value problem dv = 9.8 80 v2, v(0) = 0. (9) 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 z = t(i)ˆ4 + y(i)ˆ2; t(i + ) = t(i) + h; y(i + ) = y(i) + (h/2)*(z + t(i + )ˆ4 + (y(i) + h*z)ˆ2); end (a) What is the initial-value problem being approximated numerically? Solution. The initial-value problem being approximated is = t4 + y 2, y(ti) = yi. (b) What is the numerical method being used? Solution. The Runge-Trapezoidal (improved Euler) method is being used. (c) What are the output values of t(2) and y(2) that you would expect for input values of ti =, yi =, tf = 5, n = 20? Solution. The time step is given by h = (tf - ti)/n = (5 - )/20 = /5 =.2. The initial time and data are given by t() = ti = and y() = yi =. One then has t(2) = t() + h = +.2 =.2, z = t() 4 + y() 2 = + = 2, y(2) = y() + (h/2) ( z + t(2) 4 + (y() + h z) 2) = +. ( 2 + (.2) 4 + ( +.2 2) 2). 7