SlideShare une entreprise Scribd logo
1  sur  27
Analytic Analysis of Differential
Equations
 Generally real-world differential equations
are not directly solvable.
 That's when we use numerical
approximations.
 We're going to look at some simple ones to
get a better understanding of the differential
equations themselves.
 Differential Equations contain the
derivatives of unknown functions.
 Given some simple differential equations,
we can sometimes guess at the form of the
function.
 So we will work backwards – from the
solution to the differential equation.
A typical linear equation is the relationship
between temperature in Fahrenheit and Celsius.
C = (5/9)(F-32)
Using Octave to plot (C,F) for F=32 to 212:
octave:8> F=32:1:212;
octave:9> plot(F, (5/9)*(F-32))
Clearly this function is linear.
If this function was given as a differential
equation, it would just be the derivative of C with
respect to F. It's a constant function with this
initial value:
dC/dF=5/9, C(32)=0
So, if the differential equation is a constant
function, the solution is a linear function.
A slightly more complex function.
The position of an object, s, moving at constant
acceleration is given by:
s(t)=v0t+ 1/2at2
Exercise:
 Given an initial velocity of 20 m/s and
acceleration of 3 m/s2, use Octave to plot this
function for t=0 to 10 seconds.
 What is ds/dt? What do you expect that graph
to look like?
A little more complex -
The value of the differential equation is dependent
on the value of the function?
Let's look at the growth of bacteria.
Bacteria reproduce using binary fission and
double in number in each time frame assuming
they have enough food. So the change in the
number of bacteria is dependent on the number of
bacteria already present.
Exercise:
 Assume our example bacteria doubles every
ten minutes and has plenty to consume.
 Starting with one bacteria, use Octave to plot
the number of bacteria every ten minutes for
two hours. How many bacteria are there after
two hours?
This function is exponential.
Its general formula is:
x(t)=x0ekt
where x0 is the starting value and k is the growth
factor.
The differential function that gives us this
function is:
dx/dt = kx with x(0)=x0.
 So testing this out - another population
example:
 Population is not often based solely on
population growth, but also on predation.
 Assume there is an population of animals, x.
They have a growth rate, r, that depends on
their birth rate.
What differential equation describes the change
in population?
Answer: dx/dt = rx
We recognize this as describing an exponential
function. So with no limits, the growth is
exponential.
 More realistically, a population is better
modeled with two functions:
 For the prey organisms, x, growth is limited
by resources. There is a maximum number of
organisms, max, that can be maintained in an
area. As they approach that number, their
growth rate decreases linearly.
 This new information leads us to a new
differential equation...
dx/dt=r(1-x/max)x
Notice that as x approaches max, dx/dt
approaches 0. This function is called the
logistic function.
This is its solution:
x(t)=(max*x0*ert)/(x0*ert + max – x0)
I'll plot this one for you with the parameters:
max = 20, r = 1 and x0=1.
octave:71> t=0:1/32:8;
octave:72> r=1;
octave:73> x0=1;
octave:74> max=20;
octave:75> y = max*x0*exp(r*t)./(x0*exp(r*t)+max-x0);
octave:76> plot(t,y);
 This curve is called an S-curve.
 The function is called the logistic function
and also it's called a sigmoid function.
 It shows up in many different models.
 It is frequently used to model biological
switching.
 But organisms do not tend to live alone. If
they are prey, they live with predators.
 Now the growth of the prey, x, is affected by
the number of predators, y. And the growth
of the predators is affected by the number of
prey.
 Now we have a system of differential
equations that depend on each other.
dx/dt = rx - axy
dy/dt = -my + bxy
 r is the growth rate of the prey. If there are
no predators, they grow exponentially.
 m is the decay rate of the predators. If there
is no prey, they die off.
 Whenever they encounter each other, the
prey decrease by a and the predators increase
by b.
 We cannot write a formula to express the
solution to this system of equations.
 We could use numerical methods to
approximate a solution, but we can't find one
analytically.
Fitzhugh-Nagumo, is another system of
equations that we've seen:
dV/dt = (a-V)(V-1)V – v
dv/dt = ϵ(βV-γv-δ)
 You've approximated it numerically and you'll
be doing more of that.
 There is also another way to analyze its
behavior.
Phase Plane Analysis
•We are going to think of the solutions to the
equations as points on the (V,v) plane.
•For example, if V is .5 and v is .5, what is dv/dt?
dV/dt?
dV/dt=(0.1-0.5)(0.5-1)(0.5)-(.5)=-0.37750
dv/dt = 0.01(0.5*0.5 – 1*0.5 – 0) = -0.0025000
 So at the point (0.5, 0.5) on the (V,v) plane there
is a tangent that points in about the (-0.4, 0.0)
direction.
 In other words, if the system has the values (0.5,
0,5), its V value (the membrane potential) will be
decreasing, and v will not be changing very much.
 We can plot lots of tangents and see how the
functions behave over the plane.
 We can also see how the functions behave
when one is held at zero.
 The V nullcline is the curve that we find if
dV/dt is zero.
 The v nullcline is the curve that we find if
dv/dt is zero.
Exercise:
Find the formulas for the V and v nullclines in
terms of V.
0 = (a-V)(V-1)V – v
0 = ϵ(βV-γv-δ)
In Octave:
 Use V = -2 to 2
 Use axis to set the x axis to -2 to 2 and the
y axis to -1, 1.
 Plot the nullclines on one graph.
(a=0.1, beta=0.5, gamma=1, delta=0,
epsilon=0.01)
 We can look at a simulation of the Fitzhugh-
Nagumo phase plane at thevirtualheart.org.
 The applet on top shows the phase plane along
with the tangent lines. Click on a starting point
to see how the system behaves.
 The applet on the bottom plots V (U) and v over
time.
 http://thevirtualheart.org/java/fhnphase.html
Exercises:
 Try the parameter changes suggested on the
page.
 Try to determine, the minimum value of
delta that will make the system auto-
oscillatory.
 How does the intersection point of the two
nullclines relate to the behavior of the
system?

Contenu connexe

Similaire à DiffEqPresent.ppt

11Functions-in-several-variables-and-double-integrals.pdf
11Functions-in-several-variables-and-double-integrals.pdf11Functions-in-several-variables-and-double-integrals.pdf
11Functions-in-several-variables-and-double-integrals.pdf
CristianBatongbakal
 
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docxLecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
croysierkathey
 
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docxLecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
jeremylockett77
 
Using Eulers formula, exp(ix)=cos(x)+isin.docx
Using Eulers formula, exp(ix)=cos(x)+isin.docxUsing Eulers formula, exp(ix)=cos(x)+isin.docx
Using Eulers formula, exp(ix)=cos(x)+isin.docx
cargillfilberto
 
Project in Calcu
Project in CalcuProject in Calcu
Project in Calcu
patrickpaz
 
Teachingtools4kidsbasic/calculus
Teachingtools4kidsbasic/calculusTeachingtools4kidsbasic/calculus
Teachingtools4kidsbasic/calculus
OpenCourse
 

Similaire à DiffEqPresent.ppt (20)

Multiple scales
Multiple scalesMultiple scales
Multiple scales
 
Lambda Calculus by Dustin Mulcahey
Lambda Calculus by Dustin Mulcahey Lambda Calculus by Dustin Mulcahey
Lambda Calculus by Dustin Mulcahey
 
Grupo 13 taller parcial2_nrc2882
Grupo 13 taller parcial2_nrc2882Grupo 13 taller parcial2_nrc2882
Grupo 13 taller parcial2_nrc2882
 
11Functions-in-several-variables-and-double-integrals.pdf
11Functions-in-several-variables-and-double-integrals.pdf11Functions-in-several-variables-and-double-integrals.pdf
11Functions-in-several-variables-and-double-integrals.pdf
 
Limits and derivatives
Limits and derivativesLimits and derivatives
Limits and derivatives
 
Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docxLecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
 
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docxLecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
Lecture13p.pdf.pdfThedeepness of freedom are threevalues.docx
 
Math Assignment Help
Math Assignment HelpMath Assignment Help
Math Assignment Help
 
1-11.pdf
1-11.pdf1-11.pdf
1-11.pdf
 
Using Eulers formula, exp(ix)=cos(x)+isin.docx
Using Eulers formula, exp(ix)=cos(x)+isin.docxUsing Eulers formula, exp(ix)=cos(x)+isin.docx
Using Eulers formula, exp(ix)=cos(x)+isin.docx
 
REGRESSION ANALYSIS THEORY EXPLAINED HERE
REGRESSION ANALYSIS THEORY EXPLAINED HEREREGRESSION ANALYSIS THEORY EXPLAINED HERE
REGRESSION ANALYSIS THEORY EXPLAINED HERE
 
signal and system Dirac delta functions (1)
signal and system Dirac delta functions (1)signal and system Dirac delta functions (1)
signal and system Dirac delta functions (1)
 
Derivación e integración de funciones de varias variables
Derivación e integración de funciones de varias variablesDerivación e integración de funciones de varias variables
Derivación e integración de funciones de varias variables
 
Week 7
Week 7Week 7
Week 7
 
Project in Calcu
Project in CalcuProject in Calcu
Project in Calcu
 
APPLICATION OF PARTIAL DIFFERENTIATION
APPLICATION OF PARTIAL DIFFERENTIATIONAPPLICATION OF PARTIAL DIFFERENTIATION
APPLICATION OF PARTIAL DIFFERENTIATION
 
What are free particles in quantum mechanics
What are free particles in quantum mechanicsWhat are free particles in quantum mechanics
What are free particles in quantum mechanics
 
Teachingtools4kidsbasic/calculus
Teachingtools4kidsbasic/calculusTeachingtools4kidsbasic/calculus
Teachingtools4kidsbasic/calculus
 

Dernier

Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 

Dernier (20)

NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 

DiffEqPresent.ppt

  • 1. Analytic Analysis of Differential Equations
  • 2.  Generally real-world differential equations are not directly solvable.  That's when we use numerical approximations.  We're going to look at some simple ones to get a better understanding of the differential equations themselves.
  • 3.  Differential Equations contain the derivatives of unknown functions.  Given some simple differential equations, we can sometimes guess at the form of the function.  So we will work backwards – from the solution to the differential equation.
  • 4. A typical linear equation is the relationship between temperature in Fahrenheit and Celsius. C = (5/9)(F-32) Using Octave to plot (C,F) for F=32 to 212: octave:8> F=32:1:212; octave:9> plot(F, (5/9)*(F-32))
  • 5.
  • 6. Clearly this function is linear. If this function was given as a differential equation, it would just be the derivative of C with respect to F. It's a constant function with this initial value: dC/dF=5/9, C(32)=0 So, if the differential equation is a constant function, the solution is a linear function.
  • 7. A slightly more complex function. The position of an object, s, moving at constant acceleration is given by: s(t)=v0t+ 1/2at2 Exercise:  Given an initial velocity of 20 m/s and acceleration of 3 m/s2, use Octave to plot this function for t=0 to 10 seconds.  What is ds/dt? What do you expect that graph to look like?
  • 8. A little more complex - The value of the differential equation is dependent on the value of the function? Let's look at the growth of bacteria. Bacteria reproduce using binary fission and double in number in each time frame assuming they have enough food. So the change in the number of bacteria is dependent on the number of bacteria already present.
  • 9. Exercise:  Assume our example bacteria doubles every ten minutes and has plenty to consume.  Starting with one bacteria, use Octave to plot the number of bacteria every ten minutes for two hours. How many bacteria are there after two hours?
  • 10. This function is exponential. Its general formula is: x(t)=x0ekt where x0 is the starting value and k is the growth factor. The differential function that gives us this function is: dx/dt = kx with x(0)=x0.
  • 11.  So testing this out - another population example:  Population is not often based solely on population growth, but also on predation.  Assume there is an population of animals, x. They have a growth rate, r, that depends on their birth rate.
  • 12. What differential equation describes the change in population? Answer: dx/dt = rx We recognize this as describing an exponential function. So with no limits, the growth is exponential.
  • 13.  More realistically, a population is better modeled with two functions:  For the prey organisms, x, growth is limited by resources. There is a maximum number of organisms, max, that can be maintained in an area. As they approach that number, their growth rate decreases linearly.  This new information leads us to a new differential equation...
  • 14. dx/dt=r(1-x/max)x Notice that as x approaches max, dx/dt approaches 0. This function is called the logistic function. This is its solution: x(t)=(max*x0*ert)/(x0*ert + max – x0) I'll plot this one for you with the parameters: max = 20, r = 1 and x0=1.
  • 15. octave:71> t=0:1/32:8; octave:72> r=1; octave:73> x0=1; octave:74> max=20; octave:75> y = max*x0*exp(r*t)./(x0*exp(r*t)+max-x0); octave:76> plot(t,y);
  • 16.  This curve is called an S-curve.  The function is called the logistic function and also it's called a sigmoid function.  It shows up in many different models.  It is frequently used to model biological switching.
  • 17.  But organisms do not tend to live alone. If they are prey, they live with predators.  Now the growth of the prey, x, is affected by the number of predators, y. And the growth of the predators is affected by the number of prey.  Now we have a system of differential equations that depend on each other.
  • 18. dx/dt = rx - axy dy/dt = -my + bxy  r is the growth rate of the prey. If there are no predators, they grow exponentially.  m is the decay rate of the predators. If there is no prey, they die off.  Whenever they encounter each other, the prey decrease by a and the predators increase by b.
  • 19.  We cannot write a formula to express the solution to this system of equations.  We could use numerical methods to approximate a solution, but we can't find one analytically.
  • 20. Fitzhugh-Nagumo, is another system of equations that we've seen: dV/dt = (a-V)(V-1)V – v dv/dt = ϵ(βV-γv-δ)  You've approximated it numerically and you'll be doing more of that.  There is also another way to analyze its behavior.
  • 21. Phase Plane Analysis •We are going to think of the solutions to the equations as points on the (V,v) plane. •For example, if V is .5 and v is .5, what is dv/dt? dV/dt? dV/dt=(0.1-0.5)(0.5-1)(0.5)-(.5)=-0.37750 dv/dt = 0.01(0.5*0.5 – 1*0.5 – 0) = -0.0025000
  • 22.  So at the point (0.5, 0.5) on the (V,v) plane there is a tangent that points in about the (-0.4, 0.0) direction.  In other words, if the system has the values (0.5, 0,5), its V value (the membrane potential) will be decreasing, and v will not be changing very much.  We can plot lots of tangents and see how the functions behave over the plane.
  • 23.  We can also see how the functions behave when one is held at zero.  The V nullcline is the curve that we find if dV/dt is zero.  The v nullcline is the curve that we find if dv/dt is zero.
  • 24.
  • 25. Exercise: Find the formulas for the V and v nullclines in terms of V. 0 = (a-V)(V-1)V – v 0 = ϵ(βV-γv-δ) In Octave:  Use V = -2 to 2  Use axis to set the x axis to -2 to 2 and the y axis to -1, 1.  Plot the nullclines on one graph. (a=0.1, beta=0.5, gamma=1, delta=0, epsilon=0.01)
  • 26.  We can look at a simulation of the Fitzhugh- Nagumo phase plane at thevirtualheart.org.  The applet on top shows the phase plane along with the tangent lines. Click on a starting point to see how the system behaves.  The applet on the bottom plots V (U) and v over time.  http://thevirtualheart.org/java/fhnphase.html
  • 27. Exercises:  Try the parameter changes suggested on the page.  Try to determine, the minimum value of delta that will make the system auto- oscillatory.  How does the intersection point of the two nullclines relate to the behavior of the system?