B11 - numerical integration of ODEs
- considering an ODE:
where,
-
the trajectory is path
for -
let
-
note:
may be a solution to a PDE
forward euler method
- this is the forward euler method, and can be rewritten as:
-
this is an explicit scheme as
is an explicit function of -
considering a linear ODE:
where,
- the bracketed terms are the first two terms in the taylor series of
backward euler method
- the backward euler method simply uses:
-
this is an implicit scheme
-
if
motion
- considering a simple damped harmonic oscillator:
- rewriting this:
- rewriting these simultaneous equations in matrix form: