Math 310: Applied Differential Equations Homework 2 Prof. Ricciardi October 8, DUE: October 25, 2010

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

(e) Use Newton s method to find the x coordinate that satisfies this equation, and your graph in part (b) to show that this is an inflection point.

Modeling with differential equations

Math 308 Exam I Practice Problems

VANDERBILT UNIVERSITY. MATH 2610 ORDINARY DIFFERENTIAL EQUATIONS Practice for test 1 solutions

A population is modeled by the differential equation

M469, Fall 2010, Practice Problems for the Final

SMA 208: Ordinary differential equations I

Review Problems for Exam 2

Applications of First Order Differential Equation

DIFFERENTIATION RULES

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

Differential Equation (DE): An equation relating an unknown function and one or more of its derivatives.

Modeling using ODEs: Mixing Tank Problem. Natasha Sharma, Ph.D.

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

Math 128 Midterm 2 Spring 2009

Use separation of variables to solve the following differential equations with given initial conditions. y 1 1 y ). y(y 1) = 1

Integration, Separation of Variables

Section 6.8 Exponential Models; Newton's Law of Cooling; Logistic Models

MATH 104 Practice Problems for Exam 2

1.5. Applications. Theorem The solution of the exponential decay equation with N(0) = N 0 is N(t) = N 0 e kt.

Introduction to di erential equations

Compartmental Analysis

1.2. Introduction to Modeling

AP Calculus Testbank (Chapter 6) (Mr. Surowski)

33. The gas law for an ideal gas at absolute temperature T (in. 34. In a fish farm, a population of fish is introduced into a pond

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

Chapters 8.1 & 8.2 Practice Problems

Ch. 9: Be able to 1. Solve separable diff. eq. 2. Use initial conditions & constants. 3. Set up and do ALL the applied problems from homework.

Modeling with First Order ODEs (cont). Existence and Uniqueness of Solutions to First Order Linear IVP. Second Order ODEs

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

Homework 2 Solutions Math 307 Summer 17

LECTURE 4-1 INTRODUCTION TO ORDINARY DIFFERENTIAL EQUATIONS

Unit #16 : Differential Equations

Math 308 Exam I Practice Problems

(a) If the half-life of carbon-14 is 5,730 years write the continuous growth formula.

Math 132 Lesson R: Population models and the spread of rumors Application

Math 220 Final Exam Sample Problems December 12, Topics for Math Fall 2002

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.

Limited Growth (Logistic Equation)

Chapter 2: Growth & Decay

Solutions to the Review Questions

Difference Equations

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

Mathematical and Computational Methods for the Life Sciences

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

6.5 Separable Differential Equations and Exponential Growth

The final is comprehensive (8-9 pages). There will be two pages on ch 9.

Differential Equations Spring 2007 Assignments

The Fundamental Theorem of Calculus: Suppose f continuous on [a, b]. 1.) If G(x) = x. f(t)dt = F (b) F (a) where F is any antiderivative

MATH 1231 MATHEMATICS 1B Calculus Section 3A: - First order ODEs.

MA 138 Calculus 2 for the Life Sciences Spring 2016 Final Exam May 4, Exam Scores. Question Score Total

Semester Project Part 1: Due March 1, 2019

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

Population Changes at a Constant Percentage Rate r Each Time Period

MATH 104 Practice Problems for Exam 2

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

Find the orthogonal trajectories for the family of curves. 9. The family of parabolas symmetric with respect to the x-axis and vertex at the origin.

Chapter1. Ordinary Differential Equations

3 Single species models. Reading: Otto & Day (2007) section 4.2.1

Math 2373: Linear Algebra and Differential Equations

For logistic growth, we have

Differential Equations

Closing Wed: HW_9A,9B (9.3/4,3.8) Final: Sat, June 3 th, 1:30-4:20, ARC 147

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

Math Assignment 2

20D - Homework Assignment 1

Ordinary Differential Equations

Practice Problems For Test 1

Section 5.1: Logistic Functions

Exponential Growth and Decay

Differential equations

Ordinary Differential Equations

Math 2930 Worksheet Introduction to Differential Equations

1.1 Differential Equation Models. Jiwen He

Goals: To develop skills needed to find the appropriate differential equations to use as mathematical models.

Math Applied Differential Equations

MA 102 Mathematics II Lecture Feb, 2015

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

MATH Test II

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

Today. Introduction to Differential Equations. Linear DE ( y = ky ) Nonlinear DE (e.g. y = y (1-y) ) Qualitative analysis (phase line)

Growth Models 2/2/2015. Sequences. Sequences. Sequences. Example: How Many Terms are Enough? Sequences. Sequences and Population Sequences

Objective. Single population growth models

Chapter 1: Introduction

HW#1. Unit 4B Logarithmic Functions HW #1. 1) Which of the following is equivalent to y=log7 x? (1) y =x 7 (3) x = 7 y (2) x =y 7 (4) y =x 1/7

MATH 312 Section 3.1: Linear Models

MATH3203 Lecture 1 Mathematical Modelling and ODEs

Modeling with first order equations (Sect. 2.3). The mathematical modeling of natural processes.

Solutions for homework 1. 1 Introduction to Differential Equations

CHAPTER 3. Mathematical Models and Numerical Methods Involving First-Order Equations

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

Name Student ID. Good luck and impress us with your toolkit of ecological knowledge and concepts!

Some Cool ODEs. Overview. Key words. See also

Goals: To develop skills needed to find the appropriate differential equations to use as mathematical models.

SPS Mathematical Methods Lecture #7 - Applications of First-order Differential Equations

QUESTION 1: Find the derivatives of the following functions. DO NOT TRY TO SIMPLIFY.

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

Math 480 The Vector Space of Differentiable Functions

MA 137 Calculus 1 with Life Science Application A First Look at Differential Equations (Section 4.1.2)

Transcription:

Math 310: Applied Differential Equations Homework 2 Prof. Ricciardi October 8, 2010 DUE: October 25, 2010 1. Complete Laboratory 5, numbers 4 and 7 only. 2. Find a synchronous solution of the form A cos(ωt)+b sin(ωt) to the given forced oscillator equation using the method described in section 4.1 of your text: y + 1 y + 2y = 2 cos(2t) 4 3. Solve the following initial value problem: 4y + 12y + 9y = 0 where y(0) = 1 and y (0) = 1 2. 4. Two real function f and g are said to be linearly independent on an interval I if c 1 f(x) + c 2 g(x) = 0 implies c 1 = 0 and c 2 = 0 for all x I. (a) Use the Wronskian of f(x) = e x and g(x) = xe x to show that f and g are linearly independent on the interval I = (, ) (b) Use the definition to show that f(x) = x and g(x) = x are linearly independent on (, ) but linearly dependent on (0, ). And explain why we cannot use the Wronskian in this case. 5. Determine (but do not solve for the coefficients) the form of the particular solution of y 3y + 10y = x 3 + 3 cos(2x) 4xe 5x 7. Solve the initial value problem: 2y + 3y + y = t 2 + 3 sin(t) where y(π) = 0 and y (π) = 2 1

MATLAB sessions: Laboratory 5 61 Laboratory 5 Applications of First-Order Differential Equations (Ch. 3 of the Nagle/Saff/Snider text) First-order differential equations can be used to model real world phenomena that vary with respect to time. This section looks at some examples of this modelling. Our objectives are as follows. 1. Use differential equations in modelling changes in population by means of the exponential, logistic, and modified logistic population models. 2. Use differential equations in modelling various other growth and decay problems. 3. Use differential equations to model mixing problems. Population Growth Exponential growth A simple way of modelling the growth (or decline) of a population N is to assume that the rate of change in the population at any time t is proportional to the quantity N(t) that is present (or remaining). Formally, this rate is change is = rn. (L5.1) Separating variables and solving for N(t) with initial value N(t 0 ) = N 0 yields the exponential function N(t) = N(t 0 )e r(t t0). The proportionality constant r is the difference in the per capita birth and death rates (r = b d). If r > 0 the population is growing, if r < 0 the population is declining (what happens if r = 0?) Slowly reproducing species such as elephants, killer whales, and certain plants have a small r while rapidly reproducing organisms such as bacteria, lake trout, and small insects have a large r. Logistic growth Equation (L5.1) exhibits unbounded population growth at an exponential rate assuming unlimited resources. In comparison, logistic growth limits the size of the population. Let denote the maximum sustainable population size (also called carrying capacity) of the habitat of study. Then N is the number of new individuals that the habitat can accept and N the percentage of available for population growth. As the population approaches the carrying capacity, the percentage of available for growth is small as a result of overcrowding and more competition for limited resources. On the other hand the percentage Nmax N 1 for population sizes well below the carrying capacity. Formally the logistic population growth is then modelled by the ODE = rn N = rn ( 1 N ) = rn cn 2 (L5.2) with c = r/. Equation (L5.2) succinctly shows that logistic population growth is the combination of the process of inhibited growth with the process of competition among pairs of individuals at a rate c.

62 MATLAB sessions: Laboratory 5 Modified logistic growth We can modify the logistic equation (L5.2) by including the possibility that when the population size is too small, say less than N min, the inability to find a suitable mate leads to the extinction of the species. The modified logistic equation (also called Nagumo equation) is ( = rn 1 N ) ( ) N 1. (L5.3) N min Note that / < 0 for 0 < N < N min. Effect of stocking/harvesting We can expand upon either model by adding (to model stocking) or subtracting (to model harvesting or hunting) an amount α > 0 for each time period. For example a logistic model with harvesting reads ( = rn 1 N ) α. Problems 1. Generate the direction fields of the exponential, logistic, and modified logistic models for population growth and record any observable differences. Use = 20, N min = 10, r = 0.8. What are the long term trends in the population in each case? Use commands like those below. f = inline( 0.8*N, t, N ); dirfield(f,[0,10,0,30], arrow ) 2. Two bacteria are placed in a petri dish with unlimited resources and growth unchecked according to exponential law. If they divide every 20 minutes, how many bacteria are present after one day? Write an equation that models this problem and use MATLAB to find a numerical answer. 3. Suppose that the population of a species of fish in a certain lake is growing according to a logistic model with r = 0.3 and = 3000. Assume that initially there are 2500 fishes of that species in the lake. Determine the correct IVP for each of the scenarios below and in each case determine from the direction field of the differential equation the long term behavior of the fish population. (a) each year 150 fishes are harvested from the lake. f = inline(????, t, y ); % fill in correct ODE dirfield(f,[0,100,0,3100], arrow ); [t,n] = ode45(f,[0,100],2500); plot(t,n); (b) each year 25% of the fishes are harvested from the lake. (c) what is the maximum safe fixed amount to harvest each year in order to assure that there will always be some fish in the lake? 4. The population of a species of birds in a natural preserve has been recorded each year for the past thirteen years. We wish to determine the model which represents the behavior of this population best: year 1 2 3 4 5 6 7 8 9 10 11 12 13 population 34 40 46 51 55 58 60 62 63 63 64 64 64 >> years = 1:13; population = [34,40,46,51,55,58,60,62,63,63,64,64,64]; >> plot(years,population,.r, MarkerSize,20)

MATLAB sessions: Laboratory 5 63 65 60 55 50 45 40 35 30 0 2 4 6 8 10 12 14 (a) Which of the three population models (exponential, logistic, modified logistic) would you use? (b) Make a guess for the values of the parameter(s) in your model. (c) Solve the resulting IVP using ode45 and plot the solution together on top of the given population point plot above. Use an IC at t = 1. (d) If the plots do not reasonably coincide, adjust your model. (e) At each time t i = 1, 2,... we thus have two values for the population: the data N i from the above table and the value y(t i ) computed use ode45 for a specific guess of the parameter(s). Evaluate the quantity 13 i=1 parameter(s) (say to 3 decimal digits). (y i y(t i )) 2. If your result is much larger than 0.878 adjust your (f) Does it make sense to have a model giving a non-integer population size? Other Models, Parameter Estimation Differential equations similar to population models can be used to model other phenomena such as heating/cooling, spread of diseases, and mixing problems. Here are three examples. 5. Newton s law of cooling states that the rate dt at which the temperature T of an object changes with time is proportional to the difference of temperature between the object and the ambient medium. Mathematically we write dt = k ( T air T ). Milk is brought out of a refrigerator compartment kept at 40 degrees into a warm room of unknown temperature. After 4 minutes the temperature of the milk is 54 degrees and after 6 minutes the temperature of the milk is 59 degrees.

64 MATLAB sessions: Laboratory 5 (a) What is the temperature of the room? For this you may want to use the following program: function lab5pb5 tdata = [4;6]; Tdata = [54;59]; % data time/temperature k =??; Tair =??; % fill in initial guess param = fminsearch(@f,[k;tair],[],tdata,tdata); % optimal solution k = param(1), Tair = param(2), % optimal parameter values %--------------------------------------- function Fv = F(param,tdata,Tdata) k = param(1); Tair = param(2); T0 =??; % fill-in IC [t,t] = ode45(@f,[0;tdata],t0,[],k,tair); Fv = norm(t(2:end)-tdata,2)^2; %--------------------------------------- function dt = f(t,t,k,tair) dt =??; % fill-in correct ODE (b) When will the milk be within 1 degree of room temperature? Answer graphically or use the commands [t,t] = ode45(@f,[0,20],40,[],k,tair); i = find(t>tair-1); t(i(1)) 6. Spread of Disease. Suppose that an infectious disease is spreading among a population of N individuals. For simplicity we will assume that the incubation period is zero and that the changes in the progress of the decease are continuous. The population is comprised of 3 types of individuals: infected (i individuals), susceptible (s individuals), and removed (r individuals, either immune, dead, or removed into isolation). Susceptible individuals can become infected at a rate proportional to both susceptible and infected population sizes si (a second-order rate of change). Infected individuals become removed at a rate proportional to the infected population size only (a first-order rate of change). s a i b r Accordingly, the following equations hold: ds = asi, di dr = asi bi, = bi. (L5.4) Note that d (s + i + r) = 0, i.e., s + i + r = cst = N. From (L5.4) one easily obtain di asi bi = = b/a 1, (L5.5) ds asi s giving the rate of change of infected individuals with respect to those susceptible. (a) Solve analytically (L5.5) for i in terms of s. Use an IC i(s 0 ) = i 0. (b) Graph the solution for particular choices of b/a, s 0, and i 0. Use the following commands: f = inline(??/s-1, s, i ); i0 =??; s0 =??; [s,i] = ode45(f,[i0,2],s0); plot(s,i); hold on; [s,i] = ode45(f,[i0,1e-3],s0); plot(s,i); hold off; % choose constant b/a % select IC % forward solution % backward solution What do the graphs tell us about the relationship between the population size of infected individuals versus the population size of susceptible individuals?

MATLAB sessions: Laboratory 5 65 7. Mixing Problem ( 3.2). Suppose a brine solution containing 2 kg of salt per liter runs into a tank initially filled with 500 liters of water containing 50 kg of salt. The brine runs into the tank at a rate of 5 liters/min. The mixture, kept uniform by stirring, is flowing out at a rate of 5 liters/min. r in = 5 l/m c in = 2 kg/l volume V (t) concentration c(t) r out = 5 l/m c out = c(t) (a) Find the concentration c(10), in kg/l, of salt in the tank after 10 minutes. Hints: note that the volume is constant; identify the rate of change ds of the amount of salt s(t) in terms of r in, r out, c in, and c(t) and express c(t) in terms of s(t) to obtain an ODE in s(t). Use the following MATLAB commands. ode1 = inline(??, t, s ); % fill-in ODE [t1,s1] = ode45(ode1,[0,10],s0); concentration1 = s1(end)/500 (b) After 10 minutes a leak develops and an additional 1 l/min of mixture flows out of the tank. What will be the concentration, in kg/l, of salt in the tank 20 minutes after the leak develops? Hints: the initial amount of salt in this question is the amount after 10 minutes calculated in (a). Moreover the volume of the tank is now decreasing. Use the following MATLAB commands: ode2 = inline( 10-6*s/(510-t), t, s ); [t2,s2] = ode45(ode1,[10,??],s1(end)); concentration2 = s2(end)/(510-??) % explain the ODE % fill-in final time What happens at t = 510 min? What is the maximal amount of salt that was in the tank at any time before? What is the corresponding time? Hint: use the find command. (c) Assume that the tank has an horizontal cross-section A = 50 m 2, the leak is at the bottom of the tank, and the rate of flow due to the leak is proportional to the height of water in the tank, with an initial rate of 1 l/min. Write an IVP giving the rate of change dv of the volume V (t) of water in the tank in terms of r in, r out, and V (t). Repeat (b) with the corrected volume. Do you expect a higher or lower concentration of salt in the tank 20 minutes after the leak develops compared to the situation in (b)? Why? (d) Plot the concentration c(t) for 0 t 510 for all scenarios.