127. Differential Equations

A differential equation specifies a relationship between an unknown function and its derivatives

Solving for (an) unknown function(s) that satisfy this relationship

Initial or boundary conditions to select a unique solution

127.0.1. Linearity

The dependent variable and its derivatives each appear only to the first power, are not multiplied together, and are not inside any other function

Example

Linear

d𝑦d𝑡+𝑦=0

Non-Linear

d𝑦d𝑡+𝑦2=0d𝑦d𝑡+sin(𝑦)=0d𝑦d𝑡+𝑒𝑦=0

127.0.2. Homogeneity

Example

Homogeneous

d𝑦d𝑡+𝑦=0

Non-Homogeneous

d𝑦d𝑡+𝑦=1d𝑦d𝑡+𝑦=sin(𝑡)d𝑦d𝑡+𝑦=𝑒𝑡

127.0.3. Order & Degree

Example

Order

d𝑦d𝑥+𝑦=𝑥1st orderd2𝑦d𝑥2+𝑦=𝑥2nd order

Degree

(d2𝑦d𝑥2)3+𝑦=𝑥3rd degree

127.0.4. Autonomous

The independent variable does not appear explicitly in the equation (rate of change depends only on the dependent variable)

Example
  • Autonomous
d𝑦d𝑡=𝑦
  • Non-Autonomous
d𝑦d𝑡=𝑦+𝑡

127.0.5. Ordinary Differential Equation (ODE)

127.0.6. Partial Differential Equation (PDE)

127.0.7. Summary

Example

Non-coupled ODE

Exponential Population Growth

dd𝑡𝑃(𝑡)=𝑟𝑃(𝑡)
  • 𝑃(𝑡): population at time 𝑡

  • dd𝑡𝑃(𝑡): rate of change of the population at time 𝑡

  • 𝑟: growth rate constant

  • 𝑟𝑃(𝑡): growth contribution proportional to the current population

Example

Coupled ODE

Lotka-Volterra ODEs (predator-prey)

dd𝑡𝑥(𝑡)=𝛼𝑥(𝑡)𝛽𝑥(𝑡)𝑦(𝑡)dd𝑡𝑦(𝑡)=𝛿𝑥(𝑡)𝑦(𝑡)𝛾𝑦(𝑡)
  • 𝑥(𝑡) = prey population

  • 𝑦(𝑡) = predator population

  • dd𝑡𝑥(𝑡): The rate of change of the prey population at time 𝑡

  • dd𝑡𝑦(𝑡): The rate of change of the predator population at time 𝑡

  • 𝛼: Prey growth rate — how fast the prey multiply in the absence of predators

  • 𝛽: Predation rate — how effectively predators consume prey

  • 𝛿: Predator growth rate — how much predator population increases when consuming prey

  • 𝛾: Predator death rate — how fast predators die without enough food

  • 𝛼𝑥(𝑡): prey naturally reproduce at a rate proportional to how many exist now

  • 𝛽𝑥(𝑡)𝑦(𝑡): prey lost to predation, proportional to encounters with predators

  • 𝛿𝑥(𝑡)𝑦(𝑡): predators grow in number based on how much prey they consume

  • 𝛾𝑦(𝑡): predators die naturally when there isn’t enough food

127.1. Slope Field (Direction Field)

Example

IVP (Initial Value Problem)

{d𝑦d𝑥=𝑦𝑦(2)=1
Example

IVP (Initial Value Problem)

{d𝑦d𝑥=𝑥𝑦𝑦(−5)=1