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

Similar documents
MATH 1231 MATHEMATICS 1B Calculus Section 2: - ODEs.

Chapter1. Ordinary Differential Equations

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

MATH 1231 MATHEMATICS 1B Calculus Section 4.4: Taylor & Power series.

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

First-Order Differential Equations

Math Applied Differential Equations

MA 102 Mathematics II Lecture Feb, 2015

First Order Differential Equations Chapter 1

Math Applied Differential Equations

Math 225 Differential Equations Notes Chapter 1

Differential Equations

Math 308 Exam I Practice Problems

Lecture 19: Solving linear ODEs + separable techniques for nonlinear ODE s

Section 11.1 What is a Differential Equation?

MATH 1231 S2 2010: Calculus. Section 2: Techniques of integration.

Chapters 8.1 & 8.2 Practice Problems

Chapter 6 Differential Equations and Mathematical Modeling. 6.1 Antiderivatives and Slope Fields

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

First Order Linear DEs, Applications

Solutions to the Review Questions

Lecture 2. Introduction to Differential Equations. Roman Kitsela. October 1, Roman Kitsela Lecture 2 October 1, / 25

Calculus II. George Voutsadakis 1. LSSU Math 152. Lake Superior State University. 1 Mathematics and Computer Science

First Order ODEs, Part I

Introduction to First Order Equations Sections

These notes are based mostly on [3]. They also rely on [2] and [1], though to a lesser extent.

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

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

9.1 Solving Differential Equations

MATH 1231 MATHEMATICS 1B Calculus Section Sequences.

First Order Linear DEs, Applications

ES 111 Mathematical Methods in the Earth Sciences Lecture Outline 15 - Tues 20th Nov 2018 First and Higher Order Differential Equations

Solving Differential Equations: First Steps

Differential equations

Math 104: l Hospital s rule, Differential Equations and Integration

Solving differential equations (Sect. 7.4) Review: Overview of differential equations.

LECTURE 4-1 INTRODUCTION TO ORDINARY DIFFERENTIAL EQUATIONS

Ordinary Differential Equations (ODEs)

y0 = F (t0)+c implies C = y0 F (t0) Integral = area between curve and x-axis (where I.e., f(t)dt = F (b) F (a) wheref is any antiderivative 2.

Math 308 Exam I Practice Problems

Mathematical Methods - Lecture 7

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

MAT01B1: Separable Differential Equations

7.1. Calculus of inverse functions. Text Section 7.1 Exercise:

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

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 2a Prac Lectures on Differential Equations

for any C, including C = 0, because y = 0 is also a solution: dy

Differential Equations Class Notes

Solutions to the Review Questions

First Order Differential Equations and Applications

Math 212-Lecture 8. The chain rule with one independent variable

6.5 Separable Differential Equations and Exponential Growth

FLAP M6.1 Introducing differential equations COPYRIGHT 1998 THE OPEN UNIVERSITY S570 V1.1

MATH 353 LECTURE NOTES: WEEK 1 FIRST ORDER ODES

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

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.

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

C.3 First-Order Linear Differential Equations

UCLA: Math 3B Problem set 8 (solutions) Fall, 2016

Integration, Separation of Variables

2.12: Derivatives of Exp/Log (cont d) and 2.15: Antiderivatives and Initial Value Problems

MATH 320, WEEK 4: Exact Differential Equations, Applications

Homework 2 Solutions Math 307 Summer 17

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

First Order Differential Equations

Chapter 2: First Order ODE 2.4 Examples of such ODE Mo

Ordinary Differential Equations

Problem Max. Possible Points Total

(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

2.2 Separable Equations

2.3: Modeling with Differential Equations

3 Algebraic Methods. we can differentiate both sides implicitly to obtain a differential equation involving x and y:

Chapter 2 Notes, Kohler & Johnson 2e

MATH 4B Differential Equations, Fall 2016 Final Exam Study Guide

Math 201 Solutions to Assignment 1. 2ydy = x 2 dx. y = C 1 3 x3

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

6.0 INTRODUCTION TO DIFFERENTIAL EQUATIONS

Review Problems for Exam 2

Review Problems for Exam 2

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

Differential Equations & Separation of Variables

DIFFERENTIAL EQUATIONS

Ordinary Differential Equations

First order differential equations

h(y) dy = g(x) dx h(y)

MATH 319, WEEK 2: Initial Value Problems, Existence/Uniqueness, First-Order Linear DEs

Compartmental Analysis

Chapter 6: Messy Integrals

Prelim 1 Solutions V2 Math 1120

Unit #16 : Differential Equations

CHAPTER 1: FIRST ORDER ORDINARY DIFFERENTIAL EQUATION

Sect2.1. Any linear equation:

Differential Equations

Exam 1 Review: Questions and Answers. Part I. Finding solutions of a given differential equation.

Math 266, Midterm Exam 1

18.01 Calculus Jason Starr Fall 2005

Lecture 7: Differential Equations

First Order Differential Equations

Transcription:

MATH 1231 MATHEMATICS 1B 2010. For use in Dr Chris Tisdell s lectures. Calculus Section 3A: - First order ODEs. Created and compiled by Chris Tisdell S1: What is an ODE? S2: Motivation S3: Types and orders of ODEs S4: What is a solution? S5: First order ODEs (Separable; Linear; Exact). Images from Thomas calculus by Thomas, Wier, Hass & Giordano, 2008, Pearson Education, Inc. 1

1. What is a differential equation? A differential equation involves two things: 1. the derivative(s) of an unknown function 2. an equals sign. The following are examples of differential equations: y = y + x y = y + y d 2 y dx 2 + dy dx = 1 + y2 e x. Like most equations, we want to solve the above equations. In this case we are looking for an unknown function y = y(x) that satisfies each differential equation for particular values of x in an interval. 2

2. Motivation. When even the most foundational equations are applied to the modelling of phenomena, differential equations can arise. You may have seen Newton s 2nd law F = ma (1) which means that when a body with (constant) mass m is acted on by a net force F, the body has acceleration a (with the body moving in one dimension). From basic calculus we know that the velocity v and the acceleration a of the body are related by dv dt = a(t). Also, if the net force F depends on v (which it does in many applications) then we may rewrite (1) as or, equivalently, F (v) = m dv dt dv dt = F (v) m which we can then try to solve to find the velocity v = v(t) of the body at any time t. 3

An example of a particular net force F might be F (v) := mg kv where m is the mass of the body, g is the gravitational constant and k is a constant. (This arises when we analyse a body falling under gravity subject to wind resistance.) How are differential equations useful? By solving differential equations we can gain a deeper understanding of the physical processes that the equations are describing. The use of differential equations may empower us make precise predictions about the future behaviour of our models. Even if we can t completely solve a differential equation, we may still be able to determine useful properties about its solution (qualitative information). 4

5. What is a solution? When faced with an ODE, the really big question that we will want to answer is: How can we determine the solution to the ODE? However, first we need to understand what a solution to an ODE really means. A solution to an ODE is a function which is differentiable and which satisfies the given equation. More formally, consider the differential equation dy = f(x, y). (2) dx where f may be considered a real valued function of two variables that has domain D. We call a function y = y(x) a solution to (2) on an interval I if, for all x I: y(x) satisfies (2); and (x, y(x)) D. 5

Ex. Consider dy dx = 2y + x. (3) We show that y(x) = 2 x 1 4 is a solution to (3). The LHS of (3) is [ d x dx 2 1 ] = 1 4 2 whereas the RHS of (3) is [ 2y + x = 2 x 2 1 ] + x 4 = 1 2 Thus (3) holds for y(x) = x 2 1 4. Indep. learning ex: Can you find another solution to (3)? Show that y 1 (x) := x 2 is not a solution to (3). 6

4. Orders of ODEs The order of a differential equation is the highest derivative that appears in the equation. Since only ordinary derivatives, rather than partial derivatives, are involved, the equations are called ODEs. The order of an ODE is important as the order will play a role in choosing a particular technique to extract the solution. Here are some types of ODEs: dy dx = y + x2, first order y + y = 0, second order ( ) dy 2 + y = 0, first order dx y = 1, third order ( d 2 ) 3 y dx 2 + y = 1 second order. 7

6. First order equations. There is no universal method for solving ODEs of first (or any other) order. We will develop and apply a collection of techniques for solving certain types of equations. In this course we will be studying how to solve three basic classes of first order equations: separable equations linear equations exact equations. Each type of equation requires elements from basic calculus to extract the solution. 8

Separable Equations. The solution method is: 9

Ex: Solve for y = y(x) dy dx = x e y. 10

Why does the solution method work? Consider the separable ODE dy dx = g(x) h(y) (4) and denote the solution by y = y(x). let G and H be antiderivatives of g and h. Rearranging (4) we obtain h(y) dy dx = g(x) and so integration yields h(y) dy dx dx = g(x)dx. Now by the chain rule (substitution) we have h(y)dy = g(x)dx which gives us the solution (in implicit form): H(y) = G(x) + C. 11

Ex: Solve for y = y(x) for x > 0 dy dx = xy2. 12

Initial value problems If, in addition to an ODE, we are also given some extra piece(s) of information about the value of the solution at a particular point then we call this an initial value problem. The extra piece(s) of information about the value of the solution at a point are known as initial condition(s). Ex: In the previous exercise, if have an initial condition y(0) = 1 then we can determine our constant of integration c (and exclude the general solution y 0). 13

Ex: Solve the initial value problem dy dx = y(1 + x2 ) with initial value y(0) = 1. 14

Applications matter! How would you solve the problem y (y ) 3 = a, y(ξ) = ν where a, ξ and ν are known constants? This IVP arises in the analysis of rotationally symmetric bodies of smallest wave drag at hypersonic flow. The solution is y(x) = [ (4/3) a 1/3 (x ξ) + ν 4/3] 3/4. See J. T. Heynatz, Application of the Newton method to the so called integral equation method in transonic flow, Acta Mechanic 138 (1999), 123 127. 15

Applications matter! Heat transfer is the transition of thermal energy from a hotter object to a cooler object. For example, a hot aluminium ingot immersed in a large tub of water will cool down to the temperature of its surrounding water (ambient temperature). Such a process can be modelled by Newton s law of cooling dt = k(t A) dt where: T = T (t) is the temperature of the ingot at any time; A is the ambient temperature; and k > 0 is a constant. If A = 15 o C then solve the above ODE for any k and initial temperature T (0) = 50 o C. 16

17

Linear Equations. 18

The linear ODE has the solution where dy dx y(x) = 1 v(x) + P (x)y = Q(x) (5) [ ] v(x)q(x) dx + C v(x) := e P (x)dx. (6) 19

The solution comes from an integrating factor and the product rule. If (5) holds then dy dx e P (x)dx + P (x)e P (x)dx y = e P (x)dx Q(x) and using the product rule we obtain d [ ] ye P (x)dx = e P (x)dx Q(x). dx Integrating both sides then gives ye P (x)dx = e P (x)dx Q(x) dx + C. with a rearrangement leading to our form of the solution (6). Note that we have slightly abused the notation in our justification! 20

Ex: Solve dy dx 2y = e3x. 21

Ex: Solve subject to y(1) = 0. dy dx + y x = x 22

Ex: Solve, for x > 0, x dy dx + (x + 1)y = 2. 23

Sometimes an ODE already has an integrating factor present and there is not need for an exponential function. Ex: Solve t 2dy dt + 2ty = sin t. 24

Ex: Solve xy y x 2 = 0 25

Ex. An investor has a salary of $60,000 per year and expects to get an annual increase of $1000 per year. Suppose an initial deposit of $1000 is invested in a program that pays 8% per annum and additional deposits are added yearly at a rate of 5% of the salary. Find the amount invested after t years. We can approximate by assuming that the interest is calculated continuously and that deposits are made continuously. Are the above assumptions really reasonable?? Note: in the previous example we were given the ODE to solve. In this example we are faced with the more difficult scenario of constructing the ODE and then solving it. 26

Let x(t) = amount of money invested at time t (in years), then dx = 0.08x + 0.05(60000 + 1000t) dt rate of increase of investment = 8% of investment + 5% of salary Solving we have x(t) = 625t 90625 + Ce 0.08t. 2 Using t = 0, x = 1000 we obtain x(t) = 92625 2 e 0.08t (625t + 90625 ). 2 We can now predict, with accuracy, the amount invested at any future time. Eg, when t = 3 we have x = 11687.22, at t = 10 we have x = 51507.86 and when t = 30 we have x = 446448. 27

Exact equations. Many first order ODEs can be written in the form M(x, y) + N(x, y) dy = 0. (7) dx There are certain conditions under which the left hand side will be equal to the derivative (wrt x) of a function F (x, y), remembering that y = y(x). 28

Suppose we have a function F (x, y) = C, where C is a constant. (8) Applying the chain rule from Section 1, we obtain Now if d dx F [F (x, y)] = x + F y M = F x dy dx = 0. and N = F y, (9) then reversing the above steps, we could conclude that the solution to the differential equation (7) was F (x, y) = C. 29

Thus, the problem is to construct an F = F (x, y) such that (9) hold for the functions M and N from the original problem. It turns out that such an F will exist if M y = N x. (10) 30

To see this, let (x 0, y 0 ) be a point such that y(x 0 ) = y 0 and let F be defined by: F (x, y) := F (x, y) := x x 0 M(s, y) ds + x You can then show that x 0 M(s, y 0 ) ds + y y 0 N(x 0, s) ds y F y = N and F x = M. y 0 N(x, s) ds Furthermore, if M y = N x, with each derivative continuous, then you can show that the two forms of F above are one and the same! When solving problems, we usually construct our F from the equations F x = M and F y = N. 31

Ex. Solve (2x + y + 1)dx + (2y + x + 1)dy = 0. 32

Ex. Solve 2xy dx + (x 2 + 3y 2 )dy = 0. 33

Some additional applications. Verhulst s Logistic Growth Model: To model population growth or decay, we try dp dt = KP (P m P ), K, P m = consts. 34

Mixing Problems: At time t = 0 a tank contains 1kg of salt dissolved in 100 litres of water. If salty water containing 1/4 kg per litre at a rate of 3 litres per minute and the (stirred) solution is draining from the tank at 3 litres per minute then predict how much salt will be in the tank at time t. 35