B5 - implicit methods
linear ODEs
- considering the previous example:
- writing the next time step on the RHS:
for - as
, ie. always stable
non linear ODEs
- as there is no explicit formula for the value,
, it needs to be linearised - taylor expanding
around
- for a damped ODE:
, and the method is always stable - this is a generic method of solving nonlinear ODEs
PDEs
- trying to express RHS as an averaged value of the current and the next time steps:
- substituting finite difference approximations of the first and second derivatives:
where,
couples with and