mas222: differential equations semester 1: ordinary differential equations lecturer: jonathan potts...

42
MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts ([email protected]) Website: http://jonathan-potts.staff.shef.ac.uk/mas222.html

Upload: merilyn-sullivan

Post on 05-Jan-2016

222 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

MAS222: Differential Equations

Semester 1: Ordinary Differential Equations

Lecturer: Jonathan Potts ([email protected])Website: http://jonathan-potts.staff.shef.ac.uk/mas222.html

Page 2: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Chapter 1. Course information• MAS222 is a level 2 course over 2 semesters. The first semester consists of lectures

(two per week) and tutorial classes (1 per week). You are required to attend all of these.

• This is a techniques course, so requires practice. For this, we have provided tutorial sheets and 3 assignment sheets. In the lectures, I will explain when you should be ready to answer these.

• Note: for those who have already downloaded tutorial sheets 2-9, these may change slightly. I’ve now taken the links down. So please re-download them as they re-appear.

• Course website: http://jonathan-potts.staff.shef.ac.uk/mas222.html, containing lecture notes, tutorial sheets, assignment sheets, slides etc.

• Please bring the lecture notes with you to all the lectures. There are empty boxes throughout the notes that need to be filled in either (i) with information written on the board in the lectures, or (ii) given to you as exercises during the lectures.

• My email: [email protected]• I am away weeks 3 and 4, so Alex Best will be covering my lectures then.

Page 3: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Chapter 2. Introduction to

Ordinary Differential Equations (ODEs)

Page 4: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Introduction to Ordinary Differential Equations (ODEs)

• A differential equation relates a function and its derivatives• Examples:

Page 5: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Introduction to Ordinary Differential Equations (ODEs)

• A differential equation relates a function and its derivatives• Examples:

Page 6: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Introduction to Ordinary Differential Equations (ODEs)

• A differential equation relates a function and its derivatives• Examples:

Here, u is the dependent variable (the variable being differentiated)

x and t are independent variables (the variables we are differentiating by)

Page 7: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Introduction to Ordinary Differential Equations (ODEs)

• A differential equation relates a function and its derivatives• Examples:

Here, u is the dependent variable (the variable being differentiated)

x and t are independent variables (the variables we are differentiating by)

One independent variable => equation is an ODE (subject of semester 1)

More than one => equation is a Partial differential equation (PDE) (semester 2)

Page 8: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Derivative as the gradient function of a curve

Nb. The symbol represents a function of , so can be evaluated at any point . Once evaluated, it is a (real) number. It is very important in mathematics to be aware of what type of object each symbol represents.

Page 9: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Modelling with ODEs• Example 1. A population of organisms.

Page 10: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Modelling with ODEs• Example 1. A population of organisms.• First attempt at a model:

Page 11: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Modelling with ODEs• Example 1. A population of organisms.• First attempt at a model:

• Second attempt:

Page 12: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Modelling with ODEs• Example 1. A population of organisms.• First attempt at a model:

• Second attempt:

• Third attempt:

Page 13: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Solving ODEs: initial conditions

• Frequently, exact solutions are impossible• But sometimes they are easy to find• E.g. the simple population model • Solution: • This is called a general solution. But what is ?• Need some more information about the system: e.g. an initial

condition• Suppose the initial population is of 100 individuals: .• Then . This is a particular solution (particular to this initial condition)

Page 14: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Initial conditions and chaos

• In the previous example, a small change in initial conditions only leads to a small change in the behaviour of the system• If then • If then • Right-hand plot has

…but this is not always the case…

Page 15: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

• Consider the following system:

Initial conditions and chaos

Page 16: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Classification of ODEs

• To figure out the best techniques for understanding a particular ODE, it is important to be able to classify it: i.e. ask yourself “what sort of ODE do I have here?”• Four ways of classifying ODEs are by • Order: the order of the highest derivative• Degree: the power to which the highest derivative is raised, after rationalisation• Linearity: the ODE is a sum of terms linear in the independent variable or its derivatives• Homogeneity: if the ODE is linear, it can be written as follows:

Then it is homogeneous if and inhomogeneous otherwise

Page 17: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Solving ODEs: Linear, first order, homogeneous• Such equations look like this: • The general solution is

• Example 5. A population of animals with constant death rate and fluctuating birth rate :

• Solution.

Page 18: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Solving ODEs: Linear, first order, homogeneous

• Qualitative behaviour is governed by the sign of • Left-hand plot shows an example where , and the right-hand where

Page 19: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Solving ODEs: Linear, first order, inhomogeneous• Such equations look like this: • The general solution is

• The term is called the integrating factor• Example 6. Find the solution of the following ODE, with initial

condition :

• Solution.

Page 20: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Separable first order ODEs (possibly non-linear)

• These are often the simplest type of ODE to solve• They are of the form: • This rearranges to • If you can integrate both sides, then you’re done• But beware! Integration is a Dark Art. Many objects, even ones that

seem relatively innocuous, are difficult or impossible to integrate exactly • If you don’t believe me, try calculating . Not so easy, is it?

Page 21: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Separable first order ODEs: ExampleNewton's Law of Cooling states that the rate of change of a body's temperature is proportional to the difference between the temperature of the body and the ambient temperature (assumed constant). You may recall meeting this in MAS110.i. Write down a differential equation representing the law, and find its

general solution as a function of a body's initial temperature (at time ).

ii. Describe the solution in some detail.iii. Calculate how long it takes for the temperature of the body to

reduce to half its initial value in the case that .

Page 22: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Find the solution to the following population model (Example 1):

where . Explain how the long-term behaviour of the solution depends on the parameters , and .

The long term behaviour is as follows:(i) If (i.e. ), then as .(ii) If (i.e. ), then as .

In both cases, determines the speed of approach to the final value

Separable first order ODEs: Example

Page 23: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

You should now be able to do tutorial

sheet 1

Page 24: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Chapter 3. Qualitative analysis

of ODEs

Page 25: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Qualitative analysis of ODEs

• Many systems of ODEs are too difficult to solve exactly• However, we can gain much insight by examining qualitative

behaviour, i.e. things like:• What happens to the solution as the dependent variable tends to infinity?

Does it tend to infinity too, or to some constant value? • How does the answer depend on initial or boundary conditions?• Do small perturbations in the system affect the outcome in a “big” way?

• E.g. recall Example 5 from your notes:

• : :

Page 26: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Direction fields

• Your first example of a graphical method for qualitative understanding of ODEs• Suppose • Pick a point and draw a vector with gradient • Repeat for many different pairs

• Example. Newton’s law of cooling:

Page 27: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Direction fields: Newton’s law of cooling

𝑇 𝑎

Page 28: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Direction fields: another example

• Consider the following equation for population growth with seasonally fluctuating births

Page 29: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Autonomous equations and phase lines

• An autonomous ODE is one that does not depend explicitly on the independent variable, e.g. • We can obtain qualitative information of first order autonomous ODEs

by drawing the phase line, as follows• Find the values where (called the equilibrium points)• For the line segments between adjacent equilibrium points, determine the

sign of • Draw a line with equilibrium points marked on it, and arrows to represent the

sign of between these points

Page 30: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Phase line example• Draw the phase line of • Zeros are where .• means that • means that • means that • means that • This means that is a stable equilibrium, and are unstable equilibria• i.e. if the initial condition is close to then , but this is not true for

Page 31: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

You should now be able to do tutorial

sheet 2

Page 32: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Chapter 4. Planar, first order,

autonomous systems of ODEs

Page 33: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Definition

• A planar system of ODEs is one where there are two dependent variables• If each of the ODEs is first order and autonomous, the system is

known as a planar, first order, autonomous system and has the following form

• Notice that the system at time can be described by the position of the point , which lies on a plane, hence the word “planar”

Page 34: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Example of a planar system

• Recall Newton’s second law of motion ( stands for “mass” and for “force”):

• Now write • Then we can express the above second order ODE as a planar system

of first order ODEs

Page 35: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Another example of a planar system

• The simple pendulum can be modelled as follows

where is the mass of the pendulum bob, is the length of the pendulum rod and is the angle of deviation from the vertical• Write and • Then we can express the above second order ODE as a planar system

of first order ODEs

Page 36: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

The simple pendulum

Above image from https://en.wikipedia.org/wiki/Phase_portrait

Video: https://vimeo.com/53710539

Page 37: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Nullclines

• A full phase portrait can be a lot of work to plot• But much information can be gained by examining the nullclines of

the system

• Nullclines are where or , so represent respectively where or is stationary

Page 38: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Example 12

• A simple model for the concentration of a specific self-regulating protein in a cell is given by

,

• Here, represents the concentration of protein and the concentration of mRNA• If you don’t know about cell transcription, look up the “central dogma

of molecular biology” on the internet. There are some really nice videos like https://www.youtube.com/watch?v=9kOGOY7vthk

Page 39: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Example 12• Nullclines:

• Look at the signs of and in each of the four regions• The blue line is the -nullcline and red is

the -nullcline

Page 40: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Example 12• Nullclines:

• Look at the signs of and in each of the four regions• The blue line is the -nullcline and red is

the -nullcline

(right)

(left)

(down) (up)

Page 41: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

Example 12• Nullclines:

• Look at the signs of and in each of the four regions• The blue line is the -nullcline and red is

the -nullcline• The intersection of these two lines is an

equilibrium point

(right)

(left)

(down) (up)

Page 42: MAS222: Differential Equations Semester 1: Ordinary Differential Equations Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk) Website:

You should now be able to do tutorial

sheet 3