fhat. GitHub Workspace

Backward Euler

Large, stable time steps for stiff systems.

errorO(h)costnonlinear solve / stepimplicit · L-stable

Also known as implicit Euler

Placeholderv0.1.1Example

Use with your agent

Use the fhat method "backward-euler" (https://fhat.dev/methods/backward-euler/SKILL.md) for this problem. Check first whether it applies.

Placeholder (demo). Description only: there is no reference implementation or verification for this entry yet. It belongs to a demonstration set of textbook methods.

What it does

Uses the slope at the end of the step: yn+1=yn+h f(tn+1,yn+1)y_{n+1} = y_n + h\, f(t_{n+1}, y_{n+1}). Each step solves a nonlinear equation for yn+1y_{n+1}, typically with Newton's method and the Jacobian of ff. It is L-stable: rapidly decaying components are damped strongly for any step size, so the step can be chosen for the slow dynamics alone.

When to use

  • Stiff ODEs where explicit methods would need a step far smaller than the time scale of interest.
  • When robustness matters more than accuracy, or as a first, damping step before a higher-order method.

When not to use (and what to use instead)

Situation Use instead
Non-stiff problem rk4 or dormand-prince-rk45 (far more accurate per unit of work)
Conservative or oscillatory system: backward Euler artificially damps energy implicit-midpoint (symplectic, A-stable) or stormer-verlet
Stiff and you need higher accuracy A higher-order stiff solver such as BDF or Radau IIA methods (not in this library)

Key facts

Order 1, implicit, L-stable, not symplectic, not time-reversible. The cost per step depends on the nonlinear solver.

Sources

The methods shown are examples. More research methods are coming.