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

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

Consider an ideal pendulum as shown below. l θ is the angular acceleration θ is the angular velocity

Differential Equations

dx n a 1(x) dy

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

Section 3.4. Second Order Nonhomogeneous. The corresponding homogeneous equation

Section 3.4. Second Order Nonhomogeneous. The corresponding homogeneous equation. is called the reduced equation of (N).

Introduction to First Order Equations Sections

B Ordinary Differential Equations Review

Ordinary Differential Equations (ODEs)

3.4.1 Distinct Real Roots

Math 3313: Differential Equations Second-order ordinary differential equations

Section 11.1 What is a Differential Equation?

Solution of Constant Coefficients ODE

Higher-order ordinary differential equations

Chapter 4: Higher-Order Differential Equations Part 1

MATH 312 Section 4.3: Homogeneous Linear Equations with Constant Coefficients

Introductory Differential Equations

Basic Theory of Linear Differential Equations

First-Order Differential Equations

Section 3.4. Second Order Nonhomogeneous. The corresponding homogeneous equation. is called the reduced equation of (N).

Basic Theory of Differential Equations

Midterm 1 NAME: QUESTION 1 / 10 QUESTION 2 / 10 QUESTION 3 / 10 QUESTION 4 / 10 QUESTION 5 / 10 QUESTION 6 / 10 QUESTION 7 / 10 QUESTION 8 / 10

Solutions to the Review Questions

Section 3.4. Second Order Nonhomogeneous. The corresponding homogeneous equation. is called the reduced equation of (N).

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

Chapter 2 Second Order Differential Equations

Chapter 3. Reading assignment: In this chapter we will cover Sections dx 1 + a 0(x)y(x) = g(x). (1)

ENGI Second Order Linear ODEs Page Second Order Linear Ordinary Differential Equations

Math 2a Prac Lectures on Differential Equations

First and Second Order ODEs

Chapter1. Ordinary Differential Equations

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

MATHEMATICS FOR ENGINEERS & SCIENTISTS 23

MB4018 Differential equations

2. Determine whether the following pair of functions are linearly dependent, or linearly independent:

STABILITY. Phase portraits and local stability

MATH 1231 MATHEMATICS 1B Calculus Section 1: - Integration.

Advanced Eng. Mathematics

First Order Differential Equations Chapter 1

Math 308 Exam I Practice Problems

4 Differential Equations

Differential Equations

Review For the Final: Problem 1 Find the general solutions of the following DEs. a) x 2 y xy y 2 = 0 solution: = 0 : homogeneous equation.

28. Pendulum phase portrait Draw the phase portrait for the pendulum (supported by an inextensible rod)

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

Math 225 Differential Equations Notes Chapter 1

Mathematics for Engineers II. lectures. Differential Equations

Math Assignment 5

Solutions to the Review Questions

Special Mathematics Higher order linear equations

Resonance and response

Essential Ordinary Differential Equations

MATH 312 Section 4.5: Undetermined Coefficients

Differential Equations Class Notes

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

First order differential equations

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

DIFFERENTIAL EQUATIONS

6.0 INTRODUCTION TO DIFFERENTIAL EQUATIONS

Math 4B Notes. Written by Victoria Kala SH 6432u Office Hours: T 12:45 1:45pm Last updated 7/24/2016

Applications of First Order Differential Equation

9.1 Solving Differential Equations

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

SMA 208: Ordinary differential equations I

Introduction to Differential Equations

M A : Ordinary Differential Equations

Math 266: Ordinary Differential Equations

y 2y = 4 x, Name Form Solution method

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

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

Applications of Linear Higher-Order DEs

MAT187H1F Lec0101 Burbulla

3. Identify and find the general solution of each of the following first order differential equations.

Partial Differential Equations for Engineering Math 312, Fall 2012

MATH20411 PDEs and Vector Calculus B

17.2 Nonhomogeneous Linear Equations. 27 September 2007

NORMAL MODES, WAVE MOTION AND THE WAVE EQUATION. Professor G.G.Ross. Oxford University Hilary Term 2009

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

Differential equations

Math 308 Exam I Practice Problems

Chapter 2 Notes, Kohler & Johnson 2e

ODE. Philippe Rukimbira. Department of Mathematics Florida International University PR (FIU) MAP / 92

These will be no tutorials for Math on Tuesday April 26.

CHAPTER 2. Techniques for Solving. Second Order Linear. Homogeneous ODE s

4.2 Homogeneous Linear Equations

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

2.3 Damping, phases and all that

Solutions of Math 53 Midterm Exam I

Section Mass Spring Systems

APPLIED MATHEMATICS. Part 1: Ordinary Differential Equations. Wu-ting Tsai

Linear and Nonlinear Oscillators (Lecture 2)

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

Table of contents. d 2 y dx 2, As the equation is linear, these quantities can only be involved in the following manner:

Existence Theory: Green s Functions

DIFFERENTIAL EQUATIONS

Solutions Definition 2: a solution

The Harmonic Oscillator

Math 1302, Week 8: Oscillations

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

Transcription:

MATH 1231 MATHEMATICS 1B 2007. For use in Dr Chris Tisdell s lectures: Tues 11 + Thur 10 in KBT Calculus Section 2: - ODEs. 1. Motivation 2. What you should already know 3. Types and orders of ODEs 4. What is a solution? 5. First order ODEs 6. Second order ODEs 7. MAPLE Lecture notes created by Chris Tisdell & Peter Brown. 1

1. Motivation. Why study differential equations? How are they useful?? 2

2. What you should already know. At school you studied the solutions of (at least) two ODEs: The growth decay ODE dp dt = kp, k = const.; P = P (t), used in population change and radioactive decay, Simple Harmonic Motion ODE d 2 x dt 2 = n2 x, n = const.; x = x(t), used to describe the motion of a weight on a spring or the approx. motion of a pendulum. 3

3. Types & 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. Here are some types of ODEs: 4

4. What is a solution? When given an ODE, the really big question that we will want to answer is: However, first we need to understand what a solution to an ODE means. A solution to an ODE is a function which is differentiable and which satisfies the given equation. Ex. Consider dy dx = 2 x y + x3. Show that y(x) = x4 2 5x2 is a solution. 5

Initial value problems Ex. Solve d2 y dx 2 = ex given y(0) = 3, y (0) = 2. In the above example, we were give an ODE and some extra piece of information, known as initial conditions. In the simple harmonic motion problem, you are often given the initial displacement and the initial velocity. That is, you are given x(0) and x (0). 6

When thinking of solving a given initial value problem, the following questions arise: a) Does the initial value problem actually have a solution? b) Does it have a unique solution? c) if initial values are given at x = a how far either side of a does the solution extend? Ex. Given dy dx = 1 x with y(1) = 2. The solution does not exist at x = 0. Ex. Solve y = y, y(0) = 0. There are two different solutions y(x) = 0 and y(x) = x2 4. 7

4. 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 four basic classes of first order equations: separable equations homogeneous equations linear equations exact equations. 8

Separable Equations. Are of the type: The solution method is: 9

Ex. Solve the initial value problem dy dx = y2 (1 + x 2 ) with initial value y(0) = 1. 10

Ex: Solve dy dx = x 1 y 2. (Ans: y = sin( x2 2 + C).) 11

Homogeneous Equations. Are of the type And have solution method: 12

Given an ODE, can I manipulate it so that it is of the form Ex. Is the ODE dy dx = y2 x 2 y 2 +x 2 homogeneous? Ex. What about dy dx = y2 +2xy+x 2 x 2 3y 2 +7x? More formally, we can write the given ODE as dy = F (x, y). dx This is homogeneous if for all real numbers λ, we have F (λx, λy) = F (x, y). 13

Ex. Solve dy dx = 2x + y. x 14

Ex. Solve, for x > 0, x 2 + y 2 2xy dy dx = 0. 15

Linear Equations. A linear first order equation has the form: dy + f(x)y = g(x) dx where f and g are given functions. Essentially they are characterised by the lack of any non-linear terms in y or y,e.g. there are no y 2 terms or e y terms or y terms, and no terms involving y times its derivative. 16

The solution method for linear equations is as follows. 17

Ex. Solve dy dx + 3y = e x. 18

Ex. Solve, for x > 0, dy dx + y x = x subject to y = 4 when x = 3. 19

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

Applications of ODEs Suppose we wish to measure the temperature of a very hot object, so hot in fact that our thermometer (which only works from 40 o to 100 o C) can t be used. How can we find out the temperature of the object? We have to assume Newton s law of cooling, which says that: the rate of decrease of temperature is proportional to the difference between the temperature of the object and its surroundings i.e. dt dt = k(t A) A = ambient temp. T = temp. after time t in mins k = unknown const. Further suppose we have the data, A = 20 o, T (6) = 80 o, T (8) = 50 o. 21

Observe that although the equation is linear, it is also separable and this is the easiest way to solve it. Separating the variables we have, 22

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

Let x(t) = amount of money invested at time t (in years), then dx dt = 0.08x + 0.05(60000 + 1000t) 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. 24

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

Modelling of phenomena. Many real life problems can be analysed and solved by attempting to convert them into mathematics and analysing the resultant equations. In doing so, a number of assumptions have to be made and a theoretical framework set up which attempts to reflect what is happening in the real world. Such a framework is called a mathematical model. The reliability of that model depends on how well it predicts what actually happens in the real world. Because derivatives are used to measure rates of change, it is not surprising that differential equations often turn up in modelling problems. In the quest for simplicity and solvability, our equations may lose some important aspects of the real world model. 26

In developing a mathematical model we try to: accurately describe the data we have decide exactly what information we wish to extract from our model decide which variables in the model are dependent and which are independent describe how the dependent variables change as the independent variables change (which may lead to a differential equation.) 27

Some Population Models Model 1: A population has initial size of 2 million and a growth rate of 2% per annum. Find a model for the population size. Let P be the population size. We can approximate the solution by the d.e. 28

Criticisms of the Model: 1) In this model we assume that the population can continue to grow indefinitely. 2) External factors such as disease, natural disaster etc have been ignored. 29

Model 2: We try to overcome criticism (1) by assuming that there is a maximum population P m which when exceeded causes a population decrease and when not exceeded causes a population increase. Try the d.e. 30

Criticisms 1) Observe that as P 0 we have dp dt kp m which means that when the population is very small, it still has a (possibly large) positive growth rate! 2) As before external factors are ignored. 31

Model 3: To overcome criticism (1), we try 32

Mixing Problems: Ex. A martini drink is, in essence, a mixture of the two liquids gin and vermouth. James Bond insists his martinis are prepared as follows. Initially, 40 cc of gin are placed in a large container. Then gin is poured into the container at the rate of 2 cc/sec, and at the same time vermouth at the rate of 6 cc/sec. The mixture is constantly shaken (not stirred) and flows out at a rate of 4 cc/sec. i) Find an expression for the volume of vermouth in the container at time t seconds after the pouring commences. ii) James likes his martini to have 2 parts of gin to 3 of vermouth how many seconds should elapse before he stops pouring and inserts a cocktail glass in the outflow from the container? 33

i) The volume of liquid in the container at time t is 40 + 4t cc. Let V be the volume of Vermouth in the tank at time t, so the proportion by volume of vermouth in the tank at time t is V (t) 40 + 4t. Then 34

ii) 35

Exact equations. Many first order ODEs can be written in the form dy y) = M(x, or as dx N(x, y) M(x, y) dx + N(x, y) dy = 0 ( ). This is reminiscent of the total differential of a function of two variables you saw in MATH1131. Suppose we have a function F (x, y) = C where C is a constant. Taking the total differential we have F F dx + x y dy = 0 Now if M = F x and N = F y, ( ) then reversing the above steps, we could conclude that the solution to the differential equation ( ) was F (x, y) = C. 36

Differentiating the first expression in ( ) with respect to y and second with respect to x and recalling that for nice functions the order in which we partially differentiate doesn t matter, we have M y = N x and this will be the condition for exactness. That is, given an ODE of the form M(x, y) dx + N(x, y) dy = 0 we say that it is exact if M y = N x. If it is exact, then from the above, it must have a solution of the form F (x, y) = C where M = F x and N = F y. So we can use these equations to reconstruct F (x, y) and so obtain our solution. 37

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

Ex. Solve dy dx = 2xy + 3x2 y 2 x 2 + 2x 3 y + 1 also be written as which could (2xy + 3x 2 y 2 ) dx + (x 2 + 2x 3 y + 1) dy = 0. 39

6. Second order ODEs The second order linear ODE with constant co efficients, has the form y + ay + by = f(x) where y is a function of x which we have to determine. If f(x) = 0, then we say that the equation y + ay + by = 0 ( ) is homogeneous. Note carefully that we are using this word in a different sense to that which we used it for in regard to first order equations. We will deal firstly with the homogeneous equation. 40

Firstly observe that if we have two solutions y 1 (x) and y 2 (x) to ( ), then any linear combination of these is also a solution, since Now in order to solve the homogeneous equations y + ay + by = 0, we seek a function y which does not change a great deal when differentiated. We try therefore y = Ae λx, where A is a non-zero constant. 41

Ex. Solve y 5y + 6y = 0. Try y = Ae λx. Substitution yields The quadratic is called the characteristic equation associated with the ODE. We normally go straight to the characteristic equation, solve it and simply write down the general solution. In general the characteristic equation for ay + by + cy = 0 is aλ 2 + bλ + c = 0. 42

Ex: Solve the initial value problem y 4y 5y = 0, with y(0) = 2, y (0) = 10. 43

Repeated Roots: Ex. Solve y 4y + 4y = 0. The char. eqn. has repeated root, λ = 2, so a solution is y 1 = Ae 2x. We now try the following trick. We look for a solution of the form y 2 = v(x)y 1 = v(x)e 2x. Substitution leads us to e 2x v (x) = 0 and so v(x) = Bx, thus y 2 (x) = Bxe 2x. The sort of technique we used above works in general and so if the characteristic equation has a single repeated root, λ, then the general solution is y = Ae λx + Bxe λx. 44

Ex. Solve y + 6y + 9y = 0 subject to y(0) = 0, y (0) = 5. 45

Complex Roots: Finally, the third possibility is that the roots are complex, and we know that complex roots of a real quadratic occur in pairs as λ = α ± iβ. Thus, as above we have solution y = Ce (α+iβ)x + De (α iβ)x = (C + D)e αx cos βx + i(c D)e αx sin βx. (By Euler s formula e iθ = cos θ + i sin θ.) Now the constants C and D are arbitrary, so to get real solutions, we choose C, D such that A = C + D and B = i(c D) are both real and so the general real solution is y = e αx (A cos βx + B sin βx). 46

Ex. Solve y 2y + 5y = 0. The characteristic equation has solution 47

To summarise, we solve the characteristic equation of which is y + ay + by = 0 λ 2 + aλ + b = 0. If roots are real and distinct, λ 1, λ 2, the general solution is roots are equal, λ, the general solution is roots are complex, λ = α ± iβ, the general solution is 48

The Non-Homogeneous Case: 49

Ex. Solve y 5y + 6y = 2x + 3. 50

Ex: Solve y 5y + 6y = 12e 5x. 51

We can construct a table of what to try as a particular solution for given f(x). f(x) P (x), a nth deg. polyn. P (x)e ax P (x) cos ax P (x) sin ax P (x)e ax sin bx or P (x)e ax cos bx 52

Respective Guess for y p. Q(x), nth deg. polyn. Q(x)e ax Q 1 (x) cos ax + Q 2 (x) sin ax Q 1 (x) cos ax + Q 2 (x) sin ax Q 1 (x)e ax cos bx + Q 2 (x)e ax sin bx ***Care must be taken however, when using the above table as the following examples will show. *** 53

Ex. Solve y 5y + 6y = 12e 2x. An even more unpleasant example is: Ex. Solve y 4y + 4y = 2e 2x. 54

Thus, as a general rule, if the right hand side of the equation has a function which is already in the kernel (i.e. one of the homogeneous solutions), we multiply by x until the resulting function is no longer a solution to the homogeneous equation. Ex. Solve y + y = cos x, such that y(0) = 3, y (0) = 0 55

Applications: Ex. An object falls from rest under gravity with wind resistance proportional to its speed. It s terminal velocity is 100m/s. How long does it take to fall 1000m? The governing equation is When x = 1000, we need to solve for t, which can be done using MAPLE and we get 18.546 seconds. 56

Forced Vibrations: All structures have natural frequencies of vibration. If an external agent causes them to vibrate at or near one of these frequencies, large oscillations build up and resonance occurs. This can cause such disasters as the collapse of bridges and other structures. To understand the mathematics of these forced vibrations, let us look at a fairly simple example of an object of mass m suspended from a spring length l 0 mounted from a point A. When the object is placed on the spring, it extends a distance e to the equilibrium position. At this point, we have mg = ke, by Hooke s law, where k is a constant (called the stiffness of the spring). 57

Let x be the displacement of the object from the equilibrium point, then using Newton s second law (and the fact that the tension T in the spring is proportional to the displacement from the equilibrium point), we have m d2 x = mg T = mg k(e + x). dt2 Now using mg = ke and writing m k = ω2 we obtain the homogeneous differential equation d 2 x dt 2 = ω2 x which has solution, 58

The top end A of the spring is now forced to vibrate so that its displacement at time t is given by y = a sin Ωt. In other words we introduce a new vibrating force into the system. The extension T now becomes T = k(e+x y) and so the differential equation becomes m d2 x = mg T = mg k(e + x y). dt2 Again we use mg = ke and replace giving k m by ω2 d 2 x dt 2 + ω2 x = ω 2 a sin Ωt. This is now a non-homogeneous equation. IF ω Ω then the homogeneous equation has solution, x h = A cos ωt + B sin ωt and we can try for a particular solution of the form x p = C cos Ωt + D sin Ωt. Substituting and solving we have the general solution This is simply another oscillating motion. 59

However, if ω = Ω, that is, when the driving vibration has the same frequency as the natural frequency of the system, then the form of the particular solution needs to be changed to Again, substituting and solving for C and D, we obtain the solution Hence as t increases the displacement increases without bound and the system becomes unstable. 60

7. MAPLE The following command is used in MAPLE to solve ODE s (if possible). >dsolve(deqn, y(x)); For example >dsolve(diff(y(x),x\$2)-y(x) = 1, y(x)); y(x) = 1 + C1 exp(x) + C2 exp( x) >dsolve({diff(v(t),t) + 2*t = 0, v(1) = 5}, v(t)); v(t) = t 2 + 6 61