Slides from completed lectures

advertisement
MAS222: Differential Equations
Semester 1: Ordinary Differential Equations
Lecturer: Jonathan Potts (j.potts@Sheffield.ac.uk)
Website: http://jonathan-potts.staff.shef.ac.uk/mas222.html
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: j.potts@sheffield.ac.uk
• I am away weeks 3 and 4, so Alex Best will be covering my lectures then.
Chapter 2. Introduction to
Ordinary Differential Equations
(ODEs)
Introduction to Ordinary Differential
Equations (ODEs)
• A differential equation relates a function and its derivatives
• Examples:
Introduction to Ordinary Differential
Equations (ODEs)
• A differential equation relates a function and its derivatives
• Examples:
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)
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)
One independent variable =>
equation is an ODE (subject
of semester 1)
More than one => equation is
a Partial differential equation
(PDE) (semester 2)
x and t are independent
variables (the variables we
are differentiating by)
Derivative as the gradient function of a curve
𝑑𝑒
Nb. The symbol 𝑑𝑑 represents a function of 𝑑, so can be evaluated at any point 𝑑 = 𝑑0 . Once evaluated, it is a (real) number.
It is very important in mathematics to be aware of what type of object each symbol represents.
Modelling with ODEs
• Example 1. A population of organisms.
Modelling with ODEs
• Example 1. A population of organisms.
• First attempt at a model:
Modelling with ODEs
• Example 1. A population of organisms.
• First attempt at a model:
• Second attempt:
Modelling with ODEs
• Example 1. A population of organisms.
• First attempt at a model:
• Second attempt:
• Third attempt:
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: 𝑛 0 = 100.
• Then 𝑛 𝑑 = 100𝑒 𝑏𝑑 . This is a particular solution (particular to this
initial condition)
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 𝑛 0 = 99 then 𝑛 𝑑 = 99𝑒 𝑏𝑑
• If 𝑛 0 = 100 then 𝑛 𝑑 = 100𝑒 𝑏𝑑
• Right-hand plot has 𝑏 = 0.01
…but this is not always the case…
Initial conditions and chaos
• Consider the following system:
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 𝑏 π‘₯ = 0 and inhomogeneous otherwise
Solving ODEs: Linear, first order, homogeneous
• Such equations look like this:
𝑑𝑦
𝑑π‘₯
+𝑝 π‘₯ 𝑦 =0
• The general solution is 𝑦 π‘₯ = Aexp − 𝑝 π‘₯ 𝑑π‘₯
• Example 5. A population of animals with constant death rate 𝐢 and
2πœ‹π‘‘
fluctuating birth rate 𝐡 1 + sin
:
𝑇
• Solution.
Solving ODEs: Linear, first order, homogeneous
• Qualitative behaviour is governed by the sign of 𝐡 − 𝐢
• Left-hand plot shows an example where 𝐡 − 𝐢 < 0, and the right-hand where 𝐡 − 𝐢 > 0
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 𝑦 0 = 0:
• Solution.
Separable first order ODEs (possibly non-linear)
• These are often the simplest type of ODE to solve
•
•
𝑑𝑒
They are of the form: = 𝑔 π‘₯
𝑑π‘₯
1
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
3
π‘₯
𝑒 𝑑π‘₯.
Not so easy, is it?
Separable first order ODEs: Example
Newton'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 𝑇0
(at time 𝑑 = 0).
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 𝑇0 > 2π‘‡π‘Ž .
Separable first order ODEs: Example
Find the solution to the following population model (Example 1):
𝑑𝑛
= 𝐡𝑛 − 𝐢0 𝑛 − 𝐢𝑛2
𝑑𝑑
where 𝑛 0 = 𝑛0 . Explain how the long-term behaviour of the solution 𝑛 𝑑
depends on the parameters 𝐡, 𝐢0 and 𝐢.
The long term behaviour is as follows:
(i) If 𝐸 < 0 (i.e. 𝐡 < 𝐢0 ), then 𝑛(𝑑)
(ii) If 𝐸 > 0 (i.e. B > 𝐢0 ), then 𝑛 𝑑
0 as 𝑑
∞.
πœ– = 𝐸/𝐢 as 𝑑
∞.
In both cases, 𝐸 determines the speed of approach to the final value
You should now be able to
do tutorial sheet 1
Chapter 3. Qualitative analysis
of ODEs
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:
• 𝐡 < 𝐢:
𝐡 > 𝐢:
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:
𝑑𝑇
𝑑𝑑
= −π‘˜(𝑇 − π‘‡π‘Ž )
Direction fields: Newton’s law of cooling
π‘‡π‘Ž
Direction fields: another example
• Consider the following equation for population growth with
seasonally fluctuating births
𝑑𝑛
𝑑𝑑
=𝑛 2−
1
sin
2
𝑑 −𝑛
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 𝑔 𝑒 = 0 (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
Phase line example
𝑑𝑒
𝑑𝑑
• Draw the phase line of = − 2 + 𝑒 𝑒(1 − 𝑒)
• Zeros are where 𝑒 = −2, 0, 1.
𝑑𝑒
• 𝑒 < −2 means that < 0
𝑑𝑑
•
•
𝑑𝑒
−2 < 𝑒 < 0 means that > 0
𝑑𝑑
𝑑𝑒
0 < 𝑒 < 1 means that < 0
𝑑𝑑
𝑑𝑒
𝑒 > 1 means that > 0
𝑑𝑑
•
• This means that 𝑒 = 0 is a stable equilibrium, and 𝑒 = −1, 2 are unstable
equilibria
• i.e. if the initial condition is close to 0 then 𝑒(𝑑)
for 𝑒 = −2, 1
𝑑 ∞
0, but this is not true
You should now be able to
do tutorial sheet 2
Chapter 4. Planar, first order,
autonomous systems of ODEs
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”
Example of a planar system
• Recall Newton’s second law of motion (π‘š stands for “mass” and 𝐹 for
“force”):
𝑑2 π‘₯
𝑑π‘₯
π‘š 2 = 𝐹 π‘₯,
𝑑𝑑
𝑑𝑑
𝑑π‘₯
• Now write 𝑦 =
𝑑𝑑
• Then we can express the above second order ODE as a planar system of
first order ODEs
𝑑π‘₯
=𝑦
𝑑𝑑
𝑑𝑦 1
= 𝐹 π‘₯, 𝑦
𝑑𝑑 π‘š
Another example of a planar system
• The simple pendulum can be modelled as follows
𝑑2 πœƒ
π‘šπ‘™ 2 = −π‘šπ‘” sin πœƒ
𝑑𝑑
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
𝑑π‘₯
=𝑦
𝑑𝑑
𝑑𝑦 𝑔
= sin(π‘₯)
𝑑𝑑
𝑙
The simple pendulum
Above image from https://en.wikipedia.org/wiki/Phase_portrait
Video: https://vimeo.com/53710539
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 𝑓 𝑒, 𝑣 = 0 or 𝑔 𝑒, 𝑣 = 0, so represent
respectively where 𝑒 or 𝑣 is stationary
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
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
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
𝑒 < 0 (down)
𝑒>0
(up)
𝑣 > 0 (right)
𝑣 < 0 (left)
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
𝑒 < 0 (down)
𝑒>0
(up)
𝑣 > 0 (right)
𝑣 < 0 (left)
You should now be able to
do tutorial sheet 3
Stability analysis on the plane
• We can gain insight by examining the qualitative nature of
equilibrium points
• Recall that in 1D, we asked whether they are stable or unstable
𝑑𝑒
𝑑𝑑
• e.g. fixed points of = sin(𝑒) are stable if 𝑒 = (2π‘˜ + 1)πœ‹ and
unstable if 𝑒 = 2π‘˜πœ‹, for integer π‘˜
• In 2D, there is also the question of
stability, but there is additional
richness in classification
Linear systems
We can gain much insight by examining the simple case of linear systems,
which look like this:
𝑑𝑒
= π‘Ž11 𝑒 + π‘Ž12 𝑣
𝑑𝑑
𝑑𝑣
= π‘Ž21 𝑒 + π‘Ž22 𝑣
𝑑𝑑
…and can be written concisely like this:
𝑑𝒔
= 𝐴𝒔
𝑑𝑑
π‘Ž11 π‘Ž12
𝑒
where 𝐴 = π‘Ž
and 𝒔 =
π‘Ž
𝑣
21
22
Notice that the origin, 𝑒 = 𝑣 = 0, is the only equilibrium point, as long as
det(𝐴) ≠ 0
Linear systems
• We begin by finding the eigenvectors of the system
• These are the vectors π’˜ for which π΄π’˜ = πœ†π’˜
•
π‘‘π’˜
Hence,
𝑑𝑑
= πœ†π’˜
• Hence, π’˜ 𝑑 = π’˜πŸŽ 𝑒 πœ†π‘‘
• So if the system lies on an eigenvector at some point in time, it will remain
there and move along the vector, towards the origin if πœ† < 0 and away if
πœ†>0
• We can see immediately that the sign of πœ† plays a key role in understanding
the stability of the origin
• Furthermore, we can see that πœ† =
of 𝐴 and 𝐷 is the determinant
1
(𝑇
2
± 𝑇 2 − 4𝐷) where 𝑇 is the trace
Linear systems
πœ†=
1
(𝑇 ± 𝑇 2 − 4𝐷)
2
Phase portraits for linear systems
• Here’s our system again:
𝑑𝒔
= 𝐴𝒔
𝑑𝑑
π‘Ž11 π‘Ž12
𝑒
where 𝐴 = π‘Ž
and 𝒔 =
π‘Ž
𝑣
21
22
• Suppose we have two distinct eigenvalues, πœ†1 and πœ†2 , with corresponding
(non-parallel) eigenvectors π’˜πŸ and π’˜πŸ
• Then any solution can be written as a linear combination of the eigenvectors:
𝒔 𝑑 = 𝛼(𝑑)π’˜πŸ + 𝛽(𝑑)π’˜πŸ
• With some algebra, we can show that 𝒔 𝑑 = 𝛼0 𝑒 πœ†1 𝑑 π’˜πŸ + 𝛽0 𝑒 πœ†2𝑑 π’˜πŸ
• We can then plot trajectories for various initial conditions 𝒔 0 = 𝛼0 π’˜πŸ +
𝛽0 π’˜πŸ
Phase portraits for linear systems
• Let’s illustrate this with an example matrix:
−3 1
𝐴=
−2 0
• Here, 𝑇 = −3, 𝐷 = 2, and so πœ† =
1
𝑇 ± 𝑇 2 − 4𝐷 = −1, −2
2
1
• The eigenvector for πœ† = −1 is
and for
2
1
πœ† = −2, it is
1
• Hence we can plot the trajectories using
our favourite graph-plotting language:
Phase portraits for linear systems: spirals
• Now let’s examine trajectories when the eigenvalues are not real
• In this case, they will be complex conjugates (why?), which we can
write as πœ† = 𝜎 ± π‘–πœ”
𝜎+π‘–πœ”−π‘Ž11
1
1
• The corresponding eigenvectors are
and
where 𝑧 =
π‘Ž12
𝑧
𝑧
πœŽπ‘‘
π‘–πœ”π‘‘ 1
−π‘–πœ”π‘‘ 1
• Thus the trajectories are 𝒔 𝑑 = 𝑒 𝛼0 𝑒
+ 𝛽0 𝑒
𝑧
𝑧
• But these must be real-valued, meaning 𝛼0 = 𝛽0
• Then 𝑒 𝑑 = 𝑒0
𝑒 πœŽπ‘‘ cos(πœ”π‘‘),
𝑣 𝑑 =
cos(πœ”π‘‘+πœƒ)
πœŽπ‘‘
𝑣0 𝑒
,
cos(πœƒ)
where 𝑧 = π‘Ÿπ‘’ π‘–πœƒ
• We can now see where the spirals come from, that they spiral out if
𝜎 > 0 and in if 𝜎 < 0, and that we have closed loops if 𝜎 = 0
You should now be able to
do tutorial sheet 4
Chapter 5. Linearisation of
nonlinear planar systems
Non-linear planar systems
• “When your life is complicated… be wise, linearise”
• Non-linear systems are notoriously complicated
• But much insight can be gained by examining linear approximations
• Let’s see how this works, with a generic planar system:
𝑒 = 𝑓 𝑒, 𝑣
𝑣 = 𝑔 𝑒, 𝑣
• Let (𝑒𝑒 , 𝑣𝑒 ) be an equilibrium point, i.e. 𝑓(𝑒𝑒 , 𝑣𝑒 ) = 𝑔(𝑒𝑒 , 𝑣𝑒 ) = 0
• To linearise, we use a Taylor expansion around this point, to give the
linear approximation:
where π‘₯ 𝑑 = 𝑒 𝑑 − 𝑒𝑒 and y 𝑑 = 𝑣 𝑑 − 𝑣𝑒
Non-linear planar systems
• The linearised system can be written succinctly as follows
𝒙 = 𝐽𝒙
π‘₯
𝑓𝑒 𝑓𝑣
• Where 𝒙 = 𝑦 and 𝐽 =
is called the Jacobian of the system
𝑔𝑒 𝑔𝑣 𝑒 ,𝑣
𝑒 𝑒
• Here, 𝑓𝑒 =
πœ•π‘“
, 𝑓𝑣
πœ•π‘’
=
πœ•π‘“
,
πœ•π‘£
𝑔𝑒 =
πœ•π‘”
,
πœ•π‘’
𝑔𝑣 =
πœ•π‘”
.
πœ•π‘£
• The subscript 𝑒𝑒 , 𝑣𝑒 means that the derivatives are evaluated at 𝑒𝑒 , 𝑣𝑒
• We’ll show this by an example (13) on the board
Phase portrait for example 13
Example 14
This is the protein example from example 12,
so recall that u(t) represents the concentration
of protein at time t and v(t) the concentration
of mRNA
You should now be able to
do tutorial sheet 5
Chapter 6. Stability in
nonlinear planar systems
The effect of nonlinear terms on stability
• We have already done stability analysis for linear systems
• …and we know how to linearise nonlinear systems
• So what can we learn about a nonlinear system by performing
stability analysis of the linearised system?
• …and what may be missing in our analysis?
• Example:
• Here, the origin is the only equilibrium point. Linear analysis predicts
that this is a centre, but in fact it is a spiral
The effect of nonlinear terms on stability
• Previous example: if linear stability analysis (LSA) suggests that an equilibrium
point is a centre then it may actually be a spiral
• In general, if LSA predicts a centre, a degenerate node, or a star then the
result may not be correct
• However, LSA gives a reliable representation of the stability of the equilibrium
point as long as the trace of the Jacobian matrix is non-zero
You should now be able to
do tutorial sheet 6 and
assignment 1
Chapter 7. Second order ODEs
Linear second order ODEs
• These are of the following form:
• Let’s start by considering the case where 𝑓 π‘₯ = 0 and the
coefficients are constant, so
• If we try to find a solution of the form 𝑦 = 𝑒 π‘šπ‘₯ then we find that
π‘Žπ‘š2 + π‘π‘š + 𝑐 = 0. This is called the auxiliary equation
• By understanding the roots of the auxiliary equation, we can calculate
the solution to the whole system
Second order ODEs with constant coefficients
• Case I: 𝑏 2 − 4π‘Žπ‘ > 0. Solution is 𝑦 = 𝐴𝑒 π‘š1 π‘₯ + 𝐡𝑒 π‘š2 π‘₯ where π‘š1 and
π‘š2 are the (real) solutions to π‘Žπ‘š2 + π‘π‘š + 𝑐 = 0
• Case II: 𝑏 2 − 4π‘Žπ‘ = 0. Solution is 𝑦 = 𝐴𝑒 π‘š1 π‘₯ + 𝐡π‘₯𝑒 π‘š1 π‘₯ where π‘š1 is
the sole (real) solution to π‘Žπ‘š2 + π‘π‘š + 𝑐 = 0
• Case III: 𝑏 2 − 4π‘Žπ‘ < 0. Solution is 𝑦 = 𝑒 𝜎π‘₯ [𝐴cos(πœ”π‘₯) + 𝐡sin(πœ”π‘₯)]
where σ ± π‘–πœ” are the solutions to π‘Žπ‘š2 + π‘π‘š + 𝑐 = 0
Sturm-Liouville problems
• Sturm-Liouville problems are particular cases of linear second order ODEs,
defined on an interval
• They are existence problems – i.e. they give a set of equations and ask
“when does a solution exist?” – but we can also usually find the solution
where it exists
• Before we give definitions of various types of Sturm-Liouville problems, we
start with some examples
• Example 19. Find the values of the constant πœ† for which the following ODE
(defined on [0,1]) has solutions with boundary conditions 𝑦 0 = 𝑦 1 =
0:
𝑦 ′′ + πœ†π‘¦ = 0
• Example 20. Find the eigenvalues and eigenfunctions of the above ODE
with the following boundary conditions:
𝑦′ 0 = 0, 𝑦 1 + 𝑦 ′ 1 = 0.
The regular Sturm-Liouville problem
• Examples 19 and 20 were both examples of regular Sturm-Liouville
problems
• The general form of such a problem is as follows:
• In examples 19 and 20, p(x)=r(x)=1, q(x)=0, a=0 and b=1
The regular Sturm-Liouville problem
• If they exist, the values of πœ† form a set πœ†1 < πœ†2 < β‹― < πœ†π‘› < β‹―
where πœ†π‘› ∞ as 𝑛 ∞. These are called the eigenvalues of the
system
• Each eigenvalue has a corresponding eigenfunction 𝑦𝑛 (π‘₯)
You should now be able to
do tutorial sheet 7
Orthogonality of eigenfunctions
• For each pair of distinct eigenfunctions 𝑦𝑛 (π‘₯) and π‘¦π‘š (π‘₯), we have
𝑏
π‘Ÿ π‘₯ 𝑦𝑛 π‘₯ π‘¦π‘š π‘₯ 𝑑π‘₯ = 0
π‘Ž
• This is called the orthogonality property of eigenfunctions
• Let’s derive this on the board
Self-adjoint form of ODEs
• A second order ODE is self-adjoint if it is of the following form
[𝑝(π‘₯)𝑦(π‘₯)′ ]′ +𝑠 π‘₯ 𝑦 π‘₯ = 0
(1)
• Regular Sturm-Liouville equations are self-adjoint
• Any arbitrary second-order linear homogeneous ODE can be written
in self-adjoint form. The general form is
𝑦 ′′ + 𝑃 π‘₯ 𝑦 ′ + 𝑄 π‘₯ 𝑦 = 0
• We make this self-adjoint by multiplying through by 𝑝 π‘₯ = 𝑒 𝑃 π‘₯
• Letting 𝑠 π‘₯ = 𝑝 π‘₯ 𝑄 π‘₯ puts this into the form of equation (1).
𝑑π‘₯
Reduction of order
• This is a method for finding additional solutions to a second-order
linear ODE, given we already know one solution
• Recall the formula for an arbitrary second-order linear ODE
𝑦 ′′ + 𝑃 π‘₯ 𝑦 ′ + 𝑄 π‘₯ 𝑦 = 0
• Suppose we know a solution 𝑦 π‘₯ = 𝑣(π‘₯)
• Then the method of reduction of order tells us that the following is
also a solution
π‘₯
𝑑
𝑐2
𝑦 π‘₯ =𝑣 π‘₯
exp − 𝑃 𝑠 𝑑𝑠 𝑑𝑑 + 𝑐𝑣(π‘₯)
2
𝑣 𝑑
where 𝑐2 and 𝑐 are constants.
Normal (or canonical) form
• Sometimes, it is useful to transform a second order ODE so that there
is no first derivative
• This can make it easier to solve
• To do this, start with the general linear form
𝑦 ′′ + 𝑃 π‘₯ 𝑦 ′ + 𝑄 π‘₯ 𝑦 = 0
• Then, by setting 𝑦 π‘₯ = 𝑒 π‘₯ 𝑣(π‘₯), show that we can choose 𝑣(π‘₯)
such that
𝑒′′ + 𝑓(π‘₯)𝑦 = 0
• We demonstrate this with Example 22
Chapter 7 recap
• We have seen various techniques for solving equations of the type
𝑦 ′′ + 𝑃 π‘₯ 𝑦 ′ + 𝑄 π‘₯ 𝑦 = 0 (*)
(linear, second order, homogeneous)
• For constant 𝑃 π‘₯ and 𝑄 π‘₯ , and when (*) is defined on (−∞, ∞), we
can solve these exactly, using the auxiliary equation
• For general 𝑃 π‘₯ and 𝑄 π‘₯ , we may be able to use normal form to find
a solution to equation (*)
• Other solutions, if they exists, may be found using reduction of order
• In certain cases (regular Sturm-Liouville problems), we may also be
able to solve equation (*) on an interval [a,b] with boundary conditions
• However, we need to put (*) into self-adjoint form first
Not-quite-“regular Sturm-Liouville” problems
• As is often the case in maths, it is important to check all required
conditions before applying a method
• Sometimes problems may look like regular Sturm-Liouville problems,
perhaps because the ODE is of the form
𝑝𝑦 ′ ′ + πœ†π‘Ÿ + π‘ž 𝑦 = 0
• But either the boundary conditions are violated or p(x), q(x) or r(x)
may be of the wrong form
• Common violation 1: p(a) or p(b) are zero (instead of p(x) being
strictly positive)
• Common violation 2: The interval on which the problem is defined is
unbounded – i.e. a or b is infinite rather than real
Chapter 7 recap
• We have seen various techniques for solving equations of the type
𝑦 ′′ + 𝑃 π‘₯ 𝑦 ′ + 𝑄 π‘₯ 𝑦 = 0 (*)
(linear, second order, homogeneous)
• For constant 𝑃 π‘₯ and 𝑄 π‘₯ , and when (*) is defined on (−∞, ∞), we
can solve these exactly, using the auxiliary equation
• For general 𝑃 π‘₯ and 𝑄 π‘₯ , we may be able to use normal form to find
a solution to equation (*)
• Other solutions, if they exists, may be found using reduction of order
• In certain cases (regular Sturm-Liouville problems), we may also be
able to solve equation (*) on an interval [a,b] with boundary conditions
• However, we need to put (*) into self-adjoint form first
• Beware of problems that look like regular Sturm-Liouville but aren’t
You should now be able to
do tutorial sheet 8 and
Assignment 3
Chapter 8. Second order ODEs:
series solutions
Taylor series (revision)
• You met these earlier in this module (linearisation section), back in MAS111,
and they also appear in MAS211
• So you hopefully get the idea that Taylor series are really important!
• Section 8.1 gives a recap of all the ideas needed here. Here’s a brief
overview:
• A power series about
a point π‘₯0 is a function of the form
∞
π‘Žπ‘› (π‘₯ − π‘₯0 )𝑛 = π‘Ž0 + π‘Ž1 π‘₯ − π‘₯0 + π‘Ž2 π‘₯ − π‘₯0
𝑓0 π‘₯ =
𝑛=0
• We can change coordinates∞so that π‘₯0 = 0. Let ξ = π‘₯ − π‘₯0 then
π‘Žπ‘› ξ𝑛 = π‘Ž0 + π‘Ž1 ξ + π‘Ž2 ξ2 + β‹―
𝑓 ξ =
𝑛=0
• Re-labelling ξ as π‘₯ gives us∞(equation 206 in the notes)
π‘Žπ‘› π‘₯ 𝑛 = π‘Ž0 + π‘Ž1 π‘₯ + π‘Ž2 π‘₯ 2 + β‹―
𝑓 π‘₯ =
𝑛=0
2
+β‹―
Taylor series (revision)
• We can test for convergence of equation (206) using the ratio test
• This says that (206) converges if
• i.e. need π‘₯ <
π‘Žπ‘›
lim
𝑛 ∞ π‘Žπ‘›+1
π‘Žπ‘›+1 π‘₯ 𝑛+1
lim
π‘Žπ‘› π‘₯ 𝑛
𝑛 ∞
exists and is less than 1
, the radius of convergence
• If we differentiate equation (206) repeatedly, we find that
𝑓 0 = π‘Ž0
𝑓 ′ 0 = π‘Ž1
𝑓 ′′ 0
= π‘Ž2
2!
…
𝑓 (𝑛) 0
= π‘Žπ‘›
𝑛!
• Check this for yourself!
Taylor series (revision)
• This leads to the Maclaurin series of a function 𝑓(π‘₯) (equation 208)
∞
𝑓𝑛 0 𝑛
𝑓 π‘₯ =
π‘₯
𝑛!
𝑛=0
• This is a special case of the Taylor series of a function 𝑓(π‘₯) about a
point π‘₯0 , which is
𝑓 π‘₯ =
𝑛 π‘₯
𝑓
0
∞
𝑛=0
𝑛!
(π‘₯ − π‘₯0 )𝑛
(*)
• If (*) does exist, and converges for all π‘₯ in a neighbourhood of π‘₯0 , then
we say 𝑓(π‘₯) is analytic at π‘₯ = π‘₯0
Application of Taylor series to ODEs
• Recall the general form for homogeneous linear second-order ODEs
𝑦 ′′ + 𝑃 π‘₯ 𝑦 ′ + 𝑄 π‘₯ 𝑦 = 0
• Then π‘₯ = π‘₯0 is called an ordinary point of the ODE if 𝑃 π‘₯ and Q π‘₯ are
analytic at π‘₯0 . Otherwise, it is a singular point.
• Singular points occur in important ODEs, such as
• Legendre’s equation: 1 − π‘₯ 2 𝑦 ′′ − 2π‘₯𝑦 ′ + 𝑛 𝑛 + 1 𝑦 = 0, which is used for solving,
amongst other things, gravitational potential associated to a point mass.
• Bessel’s equation: π‘₯ 2 𝑦 ′′ + π‘₯𝑦 ′ + π‘₯ 2 − 𝜈 2 𝑦 = 0, which is used to solve the
Schrӧdinger equation in spherical or cylindrical coordinates.
• Examples 24 and 25 show how to use power series to give solutions near
ordinary points, which we’ll go through on the board
Application of Taylor series to ODEs
• Recall the general form for homogeneous linear second-order ODEs
𝑦 ′′ + 𝑃 π‘₯ 𝑦 ′ + 𝑄 π‘₯ 𝑦 = 0
• Then π‘₯ = π‘₯0 is called an ordinary point of the ODE if 𝑃 π‘₯ and Q π‘₯ are
analytic at π‘₯0 . Otherwise, it is a singular point.
• Singular points occur in important ODEs, such as
• Legendre’s equation: 1 − π‘₯ 2 𝑦 ′′ − 2π‘₯𝑦 ′ + 𝑛 𝑛 + 1 𝑦 = 0, which is used for solving,
amongst other things, gravitational potential associated to a point mass.
• Bessel’s equation: π‘₯ 2 𝑦 ′′ + π‘₯𝑦 ′ + π‘₯ 2 − 𝜈 2 𝑦 = 0, which is used to solve the
Schrӧdinger equation in spherical or cylindrical coordinates.
• Examples 24 and 25 show how to use power series to give solutions near
ordinary points, which we’ll go through on the board
You should now be able to
do tutorial sheet 9
Frobenius solutions
• Here’s our study equation again:
𝑦 ′′ + 𝑃 π‘₯ 𝑦 ′ + 𝑄 π‘₯ 𝑦 = 0
• A regular singular point is singular, but not that singular
• More precisely, π‘₯ = π‘₯0 is a regular singular point if it is singular, i.e. 𝑃 π‘₯ and
Q π‘₯ are not analytic, but (π‘₯ − π‘₯0 )𝑃 π‘₯ and (π‘₯ − π‘₯0 )2 Q π‘₯ are analytic at π‘₯0
• Near regular singular points, we can find Frobenius solutions, of the form
∞
π‘Žπ‘› (π‘₯ − π‘₯0 )𝑛+𝛼
y π‘₯ =
𝑛=0
where π‘Ž0 ≠ 0.
• Examples 26-28 show how to find such solutions
Frobenius solutions continued
• From examples 26-28, observe that we get at most two Frobenius solutions
to second order ODEs, corresponding to 𝛼1 and 𝛼2
• We have three cases:
• Case I: 𝛼1 − 𝛼2 is not an integer (example 28). Two solutions: y π‘₯ =
∞
(𝑖) (π‘₯ − π‘₯ )𝑛+𝛼𝑖 for i=1,2
π‘Ž
0
𝑛=0 𝑛
• Case II: 𝛼1 = 𝛼2 . Here, the Frobenius method gives a single solution (example 26).
The other may be found using reduction of order.
• Case III: 𝛼1 − 𝛼2 is a non-zero integer (example 27). Two solutions may emerge, but if
not you can use reduction of order.
You should now be able to
do tutorial sheet 10
THE END
Download