Compartmental Analysis

Similar documents
MATH 312 Section 3.1: Linear Models

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

Math 308, Sections 301, 302, Summer 2008 Lecture 5. 06/6/2008

Differential Equations Spring 2007 Assignments

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

sections June 11, 2009

Math , Spring 2010: Exam 2 Solutions 1. #1.) /5 #2.) /15 #3.) /20 #4.) /10 #5.) /10 #6.) /20 #7.) /20 Total: /100

MAT01B1: Separable Differential Equations

Chapters 8.1 & 8.2 Practice Problems

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

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

Homework #5 Solutions

Ordinary Differential Equations

Mixing Problems. Solution of concentration c 1 grams/liter flows in at a rate of r 1 liters/minute. Figure 1.7.1: A mixing problem.

dy dx and so we can rewrite the equation as If we now integrate both sides of this equation, we get xy x 2 C Integrating both sides, we would have

Math 2214 Solution Test 1D Spring 2015

MA 214 Calculus IV (Spring 2016) Section 2. Homework Assignment 2 Solutions

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

1 What is a differential equation

of 8 28/11/ :25

Math 308 Exam I Practice Problems

Find the orthogonal trajectories for the family of curves.

Math Applied Differential Equations

2.5 Linear Applications 99 Two-Tank Mixing. Two tanks A and B are assumed to contain A 0 and B 0 liters of brine at t = 0. Let the input for the rst t

DIFFERENTIAL EQUATIONS

(competition between 2 species) (Laplace s equation, potential theory,electricity) dx4 (chemical reaction rates) (aerodynamics, stress analysis)

University of Regina Department of Mathematics and Statistics Math 111 All Sections (Winter 2013) Final Exam April 25, 2013

LECTURE 4-1 INTRODUCTION TO ORDINARY DIFFERENTIAL EQUATIONS

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

Math 2Z03 - Tutorial # 3. Sept. 28th, 29th, 30th, 2015

9.3: Separable Equations

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

dy x a. Sketch the slope field for the points: (1,±1), (2,±1), ( 1, ±1), and (0,±1).

2.5 Linear Applications

Math 308 Exam I Practice Problems

MA 226 FINAL EXAM. Show Your Work. Problem Possible Actual Score

Laplace Transform Problems

XXIX Applications of Differential Equations

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

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

2.2. THE PRODUCT AND QUOTIENT RULES 179. P dv dt + V dp. dt.

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

Math 315: Differential Equations Lecture Notes Patrick Torres

Final Exam Review Part I: Unit IV Material

Exercise 1: RC Time Constants

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

Sample Questions, Exam 1 Math 244 Spring 2007

4. Some Applications of first order linear differential

Homework 2 Solutions Math 307 Summer 17

CHAPTER 1: FIRST ORDER ORDINARY DIFFERENTIAL EQUATION

Solution to Homework 2

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

Solutions to the Review Questions

Table of Information and Equation Tables for AP Physics Exams

ODE Math 3331 (Summer 2014) June 16, 2014

First-order transient

Differential equations

Calculus concepts and applications

2r 2 e rx 5re rx +3e rx = 0. That is,

If you need more room, use the backs of the pages and indicate that you have done so.

UNIVERSITY OF WATERLOO FINAL EXAMINATION FALL TERM 2005

Modeling with differential equations

ELECTRONICS E # 1 FUNDAMENTALS 2/2/2011

8.a: Integrating Factors in Differential Equations. y = 5y + t (2)

Physics 208, Spring 2016 Exam #3

Solutions x. Figure 1: g(x) x g(t)dt ; x 0,

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

Applications of Second-Order Differential Equations

Name: Lab Partner: Section:

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

Section 1: Electric Fields

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

first name (print) last name (print) brock id (ab17cd) (lab date)

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

AP Calculus AB Section 7.3: Other Differential Equations for Real-World Applications Period: Date: Practice Exercises Score: / 5 Points

Dr. Julie J. Nazareth

Name: October 24, 2014 ID Number: Fall Midterm I. Number Total Points Points Obtained Total 40

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. D) u = - x15 cos (x15) + C

Chapter 2: Linear Constant Coefficient Higher Order Equations

Lesson 10 MA Nick Egbert

Solutions to the Review Questions

Lab 4 RC Circuits. Name. Partner s Name. I. Introduction/Theory

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

Section 2.5 Mixing Problems. Key Terms: Tanks Mixing problems Input rate Output rate Volume rates Concentration

Integrated Calculus II Exam 2 Solutions 3/28/3

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.

Review Problems for Exam 2

SMA 208: Ordinary differential equations I

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

20D - Homework Assignment 4

Math 2300 Calculus II University of Colorado Final exam review problems

FE Review 2/2/2011. Electric Charge. Electric Energy ELECTRONICS # 1 FUNDAMENTALS

Definition of differential equations and their classification. Methods of solution of first-order differential equations

Math Applied Differential Equations

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

Math Assignment 2

Handout 5: Current and resistance. Electric current and current density

D1.3 Separable Differential Equations

REUNotes08-CircuitBasics May 28, 2008

Transcription:

Compartmental Analysis Math 366 - Differential Equations Material Covering Lab 3 We now learn how to model some physical phonomena through DE. General steps for modeling (you are encouraged to find your own): - Fix the variables and decide which variable(s) are dependent and which are independent. - Determine whether any rate of change is interesting to study the phenomenon. - Look for any possible relation between the variables, this step may be useful to reduce the number of variables. - Look for any relation involving the rates of change of the variables (that is to say their derivatives). A relation of this kind is a DE. - Look for initial conditions. - Solve the IVP. - Graph the function. Comment on the result. In this section we study simple systema with only one compartment (or block). Mixing Problems Let x t be the amount of substance dissolved in a fluid contained in a tank at time t. We usually know the initial amount of the dissolved substance x 0. Let V t be the volume of the fluid in the tank at time t. Assumption: the solution in the tank is kept well stirred so the concentration of the substance is uniform. This means that the concentration at time t is given by x t V t Let R in be the rate at which the substance enters the tank and R out be the rate at which the substance exits the tank. [See picture on the board] We have the following relation dx = R in KR out Example: A large tank is filled to capacity with 500 gallons of pure water. Brine containing 2 pounds of salt per gallon is pumped into the tank at a rate of 5 gal/min. The well-mixed solution is pumped out at the same rate. Find the mass x t of salt in the tank at time t. Do not forget to define a suitable interval. Sulution: on the board. Let us check on Maple ode d ics d x 0 = 0 d d t x t = 0 K x t 00 d x t = 0 K 00 x t x 0 = 0 (..) (..2)

dsolve ode, ics plot 000 K 000 e K 00 t, t = 0..000 000 x t = 000 K 000 e K 00 t (..3) 800 600 400 200 0 0 200 400 600 800 000 t Reading: Examples and 2 on the textbook. Population Models Let p t be the population at time t. Assumption: even if the population is always an integer we assume that p t is a continuous and differentiable function. We also assume that the growth rate dp So we get the following DE dp = kp. [see the board for general solution] We get is proportional to the population present at time t.

p t = p 0 $e k$t. This is called the Malthusian model. Example: The population of a town grows according to the Malthausian model. The initial population of 500 increases to 575 in 0 years. What will be the population in 30 years? How fast is the population growing at t = 30 years? Solution: on the board plus computations on Maple. Read example 3 Section 3.2. A more sophisticated model is the logistic model. We make the assuption that the growth rate is negatively affected by some constrains which can be taken into account by assuming that there is a upper bound p for the population. More precisely we get an equation of the form dp = A$p$ p Kp [General solution on the board] We get p t = p KA$p $t C c$e In case we have an initial population p 0 we get that c = p p 0 K. Example: Suppose a student carrying a flu virus returns to an isolated college campus of 000 students. If it is assumed that the rate at which the virus spreads is proportional not only to the number p of infected students but also to the number of students not infected, determine the number of infected students after 6 days if it is further observed that after 4 days x 4 = 50. Solution: on the board. Heating and Cooling (of Buildings) Newton's law of Cooling Let T t be the temperature inside a building at time t and let M t the temperature outside the building at time t. Empirical law: the rate of change of the temperature inside the building is proportional to the difference between the temperature outside the building and the temperature inside the bulding. The corresponding DE is dt t = K$ M t K T t Remark: notice that the constant K must be positive (see Exam ) and it is the reciprocal of the time constant K. The above DE can be refining by taking into account the following components. - People, lights, and machines contribute to increase the rate of change of the temperature, we label this contribution H t. Notice that H t will always be positive. - Heater (or cooler) contribute to increase (or decrease) the rate of change of T. We label this contribution U t. Notice that U t will be positive if we have a heating system or negative if we have a cooling system.

The modified DE equation is: dt t = K$ M t K T t C H t C U t. However, no matter what DE we are using, we can always rewrite it as dt t C K$T t = Q t. [Solve the g eneral equation on the board] Final solution is T t = e KKt $ e Kt $Q t C C. Read examples, 2, and 3 on your textbook (especially example 2 which is useful for exercise 6 on Lab 3). Example: On a mild Saturday morning while people are working inside, the furnace keeps the temperature inside the building at 2 + C. At noon the furnace is turned off and the people go home. The temperature outside is a constant 2 + C for the rest of the afternoon. If the time constant for the building is 3hr, when will the temperature inside the building reach 6 + C? If some windows are left open and the time constant drop to 2hr, when will the temperature inside reach 6 + C? Solution: with reference to the above equation, we have Q t = K$M t C H t C U t. Since during the period we are considering, the bulding is empty and everything is turned off, we have H t = 0 and U t = 0, moreover M t = 2 + C is constant. So we can write Q t d 2$K t/2 K (2.) In the first case we have K d 3 and we have the general solution T t d e KK$t $ int e K$t $Q t, t C C t/e KK t 3 e K t Q t C C (2.2) (2.3) T t Let us redefine the function T t d e K 3 t 3 $ 2 e t C C e K 3 t t/e K 3 t 2 e 2 e 3 t C C 3 t C C We need to make sure that the initial condition T 0 = 2 is satisfied so we need to solve: solve T 0 = 2, C 9 So the solution to the IVP is (2.4) (2.5) (2.6)

T t d e K 3 t $ 2 e simplify expand T t 3 t C 9 t/e K 3 t 2 e 2 C 9 e K 3 t Remark: exponential term will eventually "die off". 3 t C 9 (2.7) (2.8) Finally we need to solve solve T t = 6, t at 5 digits K3 ln 4 9 (2.9) 2.4328 If the time constant is 3hr, the building reaches 6 + C at 2:26pm. (2.0) In the second case we have Q t d 2$K2 t/2 K2 (2.) K2 d 2 and we have the general solution T2 t d e KK2$t $ int e K2$t $Q t, t C C t/e KK2 t 2 e K2 t Q t C C (2.2) (2.3) T2 t Let us redefine the function T2 t d e K 2 t 2 $ 2$e t C C e K 2 t t/e K 2 t 2 e 2 e 2 t C C 2 t C C We need to make sure that the initial condition T 0 = 2 is still satisfied so we need to solve: solve T2 0 = 2, C 9 So the solution to the IVP is T2 t d e K 2 t 2 $ 2 e t C 9 (2.4) (2.5) (2.6)

simplify expand T2 t t/e K 2 t 2 e 2 C 9 e K 2 t 2 t C 9 (2.7) (2.8) Finally we need to solve solve T2 t = 6, t at 5 digits K2 ln 4 9 (2.9).629 (2.20) If the time constant is 2hr, the building reaches 6 + C at :37pm. Let us plot the two graphs together for comparison: plot T t, T2 t, 2, t = 0..5 2 20 9 8 7 6 5 4 3 2 0 2 3 4 5 t T(t) T2(t) Outside Temperature

Newtonian Mechanics For simplicity's sake, we consider motions of a point along a linear path with coordinate x. We express Newton's second law of motion as dp = F t, x, v where p is the momentum of the point which is m$v (where m is the mass and v = dx is the velocity) F represents the net sum of all the forces acting on the point, F may depend on time t, position x, and velocity v. Remark : we need to be careful in considering all the forces acting on the point. Remark 2: dp = d m$v = m$ dv = m$a since the mass m is considered constant. Read Examples, 2, 3, and 4 Sec. 3.5 on you textbook. Example: An object of mass 5 kg is given an initial downward velocity of 50 m/sec and then allowed to fall under the influence of gravity. Assume the force in newtons due to air resistance is K0 v, where v is the velocity of the object in m/sec. Assume the object is initially 500m above the ground. a) Write a DE describing the motion. b) Determine the terminal velocity of the object. c) Solve the IVP. d) Determine when the object will strike the ground. e) Plot the graph of motion from the beginning till the object hits the ground. Solution: to be done in class. Electrical Circuits We consider two simple circuits. RL-circuits L$ di C R$I = E t where E is the voltage (unit: volt, V), I is the current (unit: ampere, A), L is the inductance (unit: henry, H)), R is the resistance (unit: ohm, Ω). General solution: to be done in class. RC-circuits R$ dq C q C = E t where we used the identity I = dq q is the charge (unit: coulomb C) C is the capacitance (unit: farad F)

General solution: to be done in class. Remark: in case E t is constant, the problems can be solve by separation of variables. Read Examples and 2 Sec. 3.5 on your textbook.