Differential Equation

an equation that contains an unknown function and one or more of its derivatives.

  • order
    highest derivative
  • solution
    function that satisfy the equation
  • initial condition
  • initial value problem

direction field

sketch lines as a grid with direction from derivative from the equation

Euler’s method

  • step size

first order equation

separable equation

below old class note

ordinary differential equation ODE

  • general form

order of differential equation

the order of the highest order derivative

solution

any function that satisfy the equation

general solution

collection of all solution

initial value problem

  • initial condition

use the general solution and the initial condition

direction field

solving first-order differential equation

numerical approximation

  • Euler’s method example code
f[x0_, y0_] := x0 y0
step[{x0_, y0_}] := {x0 + 0.01, y0 + 0.01 f[x0, y0]}
{x100, y100} = Nest[step, {1, 1}, 100]

separable equation

use separation of variable

  1. consider
  2. integrate both side
  • explicit solution
  • implicit solution relationship between variable

linear equation

where are continuous,

standard form

multiply both side to construct chain rule form where is the integration factor

substitution

Bernoulli equation

solution

substitution reduce the Bernoulli equation to linear equation

Ricatti equation

solution

  • one solution
  • substitution reduce the Ricatti equation to linear equation

existence and uniqueness theorem

is continuous on and satisfy Lipschitz condition

Lipschitz condition

metric space

  • denote distance
  • can be defined using

limit

sequence converge to limit in

  • the limit is unique

Cauchy sequence

complete metric space

every Cauchy sequence converge to some point in

fixed point

point stand for function for operator

initial value problem integral form

for let operator : then is a fixed point for operator

Banach fixed point theorem

is complete metric space is a contraction has a unique fixed point in

  • contraction is a contraction if

Picard iteration

sequence where with

one-dimensional (smooth) dynamical system

continuously differentiable function

  • flow of dynamic system

autonomous equation

assume satisfy condition of existence and uniqueness theorem

time-shift immunity

if the solution of is then the solution of is

equilibrium

,

  • asymptotically stable move towards from both side
  • unstable move away from from both side

phase line

draw the sign graph of

linearization (approximate linear dynamic)

let

  • blow up and unstable
  • shrink down and asymptotically stable
  • cannot linearize, need higher order

differential equation to dynamical system

where

dynamical system to differential equation

and convert to initial value problem with autonomous equation

discrete dynamical system

map

invertible

fixed point

not change when apply

stability

linearization

  • dynamics
  • unstable
  • asymptotically stable

Poincaré map

time-periodic non-autonomous system

where

periodic time-shift immunity

if the solution of is then the solution of is

Poincaré map for the system

define function : , let be the solution to

periodic solution

fixed point of Poincaré map

stability

  • asymptotically stable
  • unstable

example code

P[h_,x0_] := NDSolveValue[
x'[t] == x[t](1-x[t]) - h x[t] Sin[t] && x[0] == x0,
x[2 Pi], {t, 0, 2 Pi}]

second-order linear equation

second-order homogeneous linear equation with constant coefficient

solution

a linear combination of two solution where is not constant (linearly independent)

auxiliary equation

under the hood: try

  • two distinct real root
  • double real root two solution
  • two complex root
    • alternatively where
    • alternatively: real-valued solution
      • complex-valued solution

second-order non-homogeneous linear equation

solution

  • let then satisfy
  • find one particular solution therefore

linear differential operator

given ,

linear operator

apply operator on function linear

find a particular solution

polynomial

use the degree of as the degree of the particular solution

exponential

where is polynomial same as the polynomial method but multiply the same exponential

  • when is one root of auxiliary equation, multiply the polynomial solution by
  • when is double root of auxiliary equation, multiply the polynomial solution by

trigonometric

same as polynomial but degree needs to be the maximum between and need two polynomial

  • when is one root of auxiliary equation, multiply the polynomial solution by

combination of above case

split to that match above case

higher order differential equation

-th order where are continuous on

existence and uniqueness

above equation with has unique solution are continuous,

system in matrix form

Wronskian

determinant

linear dependency and Wronskian

linearly independent in

  • linearly dependent function linearly dependent in

homogeneous linear equation with constant coefficient

auxiliary equation

complex root counting multiplicity

general solution

linear combination of solution time repeatedly if a solution has multiplicity or more

autonomous planar system of differential equation

with respect to

initial value problem

  • autonomous can start wherever wanted, let

integral curve

parameterized curve of

velocity vector

phase plane

-plane

  • phase space higher dimension

phase portrait

phase plane with several solution

equilibrium

  • equilibrium solution

solution

  • convert to differential equation with one variable
  • conserved quantity / integral of motion
    • reduce to non-autonomous first order equation

non-autonomous planar system

where are periodic in with period

periodic time-shift immunity

similar to periodic time-shift immunity in one dimension if is solution to then is solution to

Poincaré map for non-autonomous periodic dynamical system

  • also known as stroboscopic map

example: mass on spring with external forcing

forced duffing equation

period

Poincaré map for forced duffing equation

P[b_,F_,γ_][{x0_, y0_}]:=
 NDSolveValue[
     x'[t]==y[t]&&y'[t]==-by[t]+x[t]-x[t]^3+F Sin[γ t]&&x[0]==x0&&y[0]==y0,
     {x[2Pi/γ],y[2Pi/γ]},
     {t,0,2Pi/γ}
     ]

chaos

sensitive dependence on initial condition

  • two initial condition close to each other deviate exponentially fast
  • the exact state of the system is fundamentally unpredictable though the system is deterministic
  • chaotic attractor of the two initial condition look identical

Poincaré map for autonomous system

Henon-Heiles system

  • conserved quantity
  • hyperplane on consider an initial condition on corresponding to value for , when the solution reach again still conserve it is enough to know to know the rest define Poincaré map for
poincareMap[h_][{x0_,y0_}]:=Module[{stopTime},
    NDSolveValue[
        x1'[t]==y1[t]
        &&y1'[t]==-x1[t]-2x1[t] x2[t]
        &&x2'[t]==y2[t]
        &&y2'[t]==-x1[t]^2-x2[t]+2[t]^2
        &&x1[0]==0
        &&y1[0]=Sqrt[2h-y0^2-x0^2+2/3 x0^3]
        &&x2[0]=x0
        &&y2[0]=y0
        &&WhenEvent[x1[t]==0&&y1[t]>0,stopTime=t;"StopIntegration"],
        {x2[stopTime],y2[stopTime]},
        {t,0,Infinity}
        ]
    ]

linear system

planar linear system

where continuous

homogeneity

  • homogeneous
  • otherwise non-homogeneous

convert linear differential equation to linear system

linear differential equation define get a linear system

existence and uniqueness

If , are continuous functions in an interval and then for any initial vector there exists a unique solution of in that satisfies the initial condition .

linearity

linear combination of solution are also solution

linear dependency

linearly dependent vector

Wronskian

for solution

linear dependency and Wronskian

  • solution are linearly dependent in

fundamental solution

collection of linearly independent solution

fundamental matrix

corresponding matrix

  • invertible
  • general solution for the linear system
  • solution for the initial value problem with
  • that is another fundamental matrix
  • is a fundamental matrix
  • let , then

linear system with constant coefficient

where is constant

find a solution

where satisfy

eigenvalue problem

is the solution to eigenvalue equation is non-zero eigenvector corresponding to is a root of characteristic polynomial

  • is a complex eigenvalue is eigenvalue
    • is eigenvector corresponding to is eigenvector corresponding to

linearly independent eigenvector and general solution

has linearly independent eigenvector corresponding to real eigenvalue general solution for is

real distinct eigenvalue

are real distinct eigenvalue of corresponding eigenvector are linearly independent a fundamental matrix is

complex eigenvalue

eigenvalue with eigenvector eigenvalue with eigenvector solution

matrix exponential

property

  • , series converge
    • trace of

diagonal matrix

diagonal matrix

matrix exponential and linear system

unique solution to the initial value problem with is

  • derivative

exponential matrix as fundamental matrix

linear system has fundamental matrix

generalized eigenvector

a non-zero vector generalized eigenvector of associated with ,

  • generalized eigenvector are also standard eigenvector
  • is eigenvalue of with eigenvector

generalized eigenvector given characteristic polynomial

has characteristic polynomial linearly independent generalized eigenvector

compute

  • find generalized eigenvector
  • compute solution for
  • fundamental matrix

planar linear system

where

characteristic polynomial

equilibrium type with different T-D

real distinct eigenvalue

  • real eigenvalue

transformation

define by

  • case 1a. (or ) all arrow point away from origin
    • unstable node
  • case 1b. (or ) all arrow point towards origin
    • stable node
  • case 1c. (or ) all arrow point towards origin on -axis, point away from origin on -axis
    • saddle
  • case 1d. (or ) all arrow point away from -axis parallel to -axis
  • case 1e. (or ) all arrow point towards -axis parallel to -axis

complex conjugate eigenvalue

conjugate eigenvalue with corresponding eigenvector where

  • complex eigenvalue

polar coordinate transformation

  • case 2a. (or ) arrow rotate around origin moving away
    • unstable spiral
  • case 2b. (or ) arrow rotate around origin moving towards
    • stable spiral
  • case 2c. (or ) solution are closed curve with period
    • center
rotation direction
  • rotation direction on -plane
    • , clockwise
  • rotation direction on -plane
    • same direction as on -plane

real repeated eigenvalue

generated eigenvalue of

  • real eigenvalue
  • case c1. (or both and are eigenvalue of ) all arrow point away from origin
    • unstable node
  • case c2. (or only is eigenvalue of ) all arrow point away from origin
    • turn to the right with
    • turn to the left with
    • unstable

almost linear system

  • almost linear system at
    • is an equilibrium of
    • is an almost linear system at the origin where
  • almost linear system at the origin
    • is an equilibrium of
    • is continuous around
    • are continuous near
  • jacobian of

planar system

equilibrium

point

stability

  • stable in English, given a bigger disk, one can always find a smaller disk, so that if you start from the smaller disk, you don’t go out of the bigger disk
  • asymptotically stable stable and
  • unstable not stable
open disk

linearization theorem (Hartman-Grobman theorem)

transform the dynamics of system to the dynamics of system where

  • system is almost linear at
  • is hyperbolic
  • coordinate transformation near ,

hyperbolic linear system

hyperbolic matrix

all eigenvalue have non-zero real part

hyperbolic equilibrium

equilibrium of is hyperbolic matrix

energy method

mechanical system

potential

antiderivative of

energy function

conserved quantity

level set

fix to

  • graph of is only defined where
  • the two parts above and below -axis mirror each other
  • intersection with -axis are where
    • curve is vertical at intersection

potential plane

-plane example using phase plane

equilibrium

linearization

are continuous near system is almost linear at equilibrium

  • Jacobian corresponding to
  • , minimum at linear system is a center linearization does not hold use Taylor series quadratic term level curve are approximate ellipse
  • , maximum at linear system is a saddle by linearization theorem, level curve also saddle

Lyapunov’s Method

isolated equilibrium

open disk of radius centered at does not contain other equilibrium

positive/ negative definite/ semidefinite function in

is open disk centered at is continuous in

  • positive definite function in
  • positive semidefinite function in
  • negative definite function in
  • negative semidefinite function in
  • positive definite (/ semidefinite) function in negative definite (/ semidefinite) function in

directional derivative of along vector field (derivative of along the flow of )

planar system real-valued function

Lyapunov’s stability theorem

planar system is an isolated equilibrium

  • positive definite function in an open disk centered at is negative definite in is asymptotically stable
    • explanation increase going away from origin decrease along vector field going away from origin will always go towards origin along vector field
  • positive definite function in an open disk centered at is negative semidefinite in is stable

Lyapunov function

a function that satisfy the condition of either part of Lyapunov’s stability theorem

Lyapunov’s instability theorem

planar system is an isolated equilibrium

  • continuous function in an open disk centered at is positive definite in open disk centered at , is unstable
    • explanation increase along vector field going away from origin is higher somewhere than the origin will go away from origin at some point
  • alternatively, instability for restrict system mean instability for whole system

non-constant periodic solution

limit cycle

closed curve

  • planar system
  • is a non-constant -periodic solution
    • non-constant mean the periodic solution is not a single point
  • at least one other solution , or
    • distance
    • explanation this solution go to the closed curve as time roll back or go forward

example of limit cycle

  • coordinate transformation
  • is constant for the specific
  • dynamic in radial direction have equilibrium when
    • stability can be determined using phase line
    • each equilibrium correspond to a circular limit cycle

limit cycle enclose equilibrium

enclose at least one equilibrium

  • enclose equilibrium the equilibrium cannot be saddle

Bendixson’s negative criterion

  • planar system
  • simply connected domain
  • have continuous partial derivative in
  • does not change sign in
  • system have no non-constant periodic orbit in

Poincaré-Bendixson Theorem

  • planar system
  • solution
  • isolated region
    • closed bounded
    • solution stay in forever
  • have continuous partial derivative in
  • no equilibrium in
  • is either periodic or approach a limit cycle in

bifurcation in one-dimensional system

is changing parameter

implicit function theorem

  • smooth function
  • , unique defined on ,

persistence of equilibrium

  • is a smooth function
  • , is an equilibrium when
  • , unique smooth function defined on
    • is equilibrium

fold bifurcation (saddle-node bifurcation)

smooth curve near in English: curve of equilibria (bifurcation diagram) near look like parabola example curve of equilibria

condition

  • is a smooth function
  • , is an equilibrium when
  • equilibrium do not persist
  • transversality condition
  • system undergo fold bifurcation at

stability

check

  • stability depend on sign of , regardless of
  • equilibrium is stable equilibrium is unstable
  • equilibrium is unstable equilibrium is stable

proof

  1. , , implicit function theorem smooth function near ,
  2. define
  3. Evaluate at .
  4. Then we take the derivative of the relation with respect to . We find Evaluating at and using that we find Since and we can solve for to find

bifurcation in planar system

is the parameter

persistence of equilibrium

equilibrium persist where is equilibrium when

fold bifurcation (saddle-node bifurcation)

  • supercritical bifurcation stable limit cycle + unstable spiral
  • subcritical bifurcation unstable limit cycle + stable spiral