![]()
MATH566 Lesson 23: Numerical ODE
|
ODE review
First-order ODE initial value problem
Differential operator approximation from polynomial interpolants
forward Euler scheme
backward Euler scheme
Leapfrog scheme
Schemes based upon numerical quadrature
Adams-Bashforth schemes
Adams-Moulton schemes
Forward Euler analysis
General analysis techniques: convergence = consistency + stability
![]()
ODE review
|
An -order ordinary differential equation given in explicit form
The problem is to determine the function ,
is not given directly but as an equality between two operators acting on
An order ODE is equivalent to a system of first-order ODEs
where
This leads to the central role of numerical solution of first-order ODEs.
![]()
First-order ODE initial value problem
|
The initial value problem (IVP) for is
IVP has a unique solution for if Lipschitz-continuous
goes to zero as .
Lipschitz is more restrictive than continuity ( such that (no relation between how ||, go to zero
![]()
Numerical ODE - derivative approximation
|
Approaches to numerical solution of ,
Approximation of the differentiation operator ,
Approximation of the nonlinear operator ,
Approximation of the equality between effect of two operators
Methods from approximating ,
Forward Euler (an explicit method, next value given directly)
Backward Euler (an implicit method, must solve an equation to find )
Leapfrog (centered finite difference)
![]()
Numerical ODE - Adams-Bashforth
|
Integrate over time step ,
Approximate on data set
The resulting schemes are known as Adams-Bashforth explicit methods
![]()
Numerical ODE - Adams-Moulton
|
Integrate over time step ,
Approximate on data set
The resulting schemes are known as Adams-Moulton implicit methods
![]()
Numerical analysis of forward Euler (FE)
|
Introduce error at step , ( denotes the exact value)
At each step forward Euler introduces an error (the one-step error)
After steps
Exact start . Obtain for , that FE is first-order of accuracy.
![]()
Numerical analysis of backward Euler (BE)
|
Introduce error at step , ( denotes the exact value)
At each step backward Euler introduces an error (the one-step error)
After steps
Exact start . Obtain for , that BE is first-order of accuracy.
![]()
Numerical analysis of leapfrog (LF)
|
Introduce error at step , ( denotes the exact value)
At each step leapfrog introduces an error (the one-step error)
After steps with , that LF is second-order of accuracy.
![]()
Accuracy is not the whole story!
|
Consider a small initial error in forward Euler (e.g., floating point)
After steps FE with a perturbed initial condition gives
For the error increases without bound. The forward Euler scheme is said to be unstable.
How to approach this? First, precisely define a convergent sequence of approximations for the solution of the IVP , over the time interval , , . A numerical method (scheme) is said to be convergent if
Analytical calculations of the above limit are however difficult.
![]()
An alternative characterization of convergence
|
Consider the model problem with solution
Now, consider a perturbation of the initial conditions
Error is maintained small if . How does a numerical scheme behave?
Forward Euler: . Exponential decay of analytical solution only if
The above is known as a stability condition.
In the limit of , the error also goes to zero. This is known as consistency.
In general a numerical scheme is convergent iff it is stable and consistent.