---
name: symplectic-euler
description: "A first-order structure-preserving time step for a conservative mechanical system with position-dependent forces (springs, pendulums, particles, orbits). Keeps the energy error bounded over long runs at one force evaluation per step, but is only first order. Also called semi-implicit Euler or Euler-Cromer. Usually Störmer-Verlet is the better choice at the same cost."
---

# Symplectic Euler

> **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

Updates momentum and position one after the other, using the newest value of each: $p_{n+1} = p_n + h F(q_n)$, then $q_{n+1} = q_n + h M^{-1} p_{n+1}$ (or the adjoint order: position first, then momentum). For a separable Hamiltonian both updates are explicit. The method is symplectic, so the energy error stays bounded instead of drifting, but the error in the trajectory is first order.

## When to use

- Separable Hamiltonian systems (force depends on position only, constant masses) when a first-order structure-preserving step is enough, for example to show symplectic behaviour in teaching or as a component of a splitting scheme. For the simplest scheme of all, see `explicit-euler`.

## When not to use (and what to use instead)

| Situation | Use instead |
| --- | --- |
| Almost always, at the same cost | `stormer-verlet`: second order and time-reversible, still one force evaluation per step |
| Higher accuracy over long runs | `yoshida4` |
| Force depends on velocity, or the system is not Hamiltonian | `dormand-prince-rk45` |
| Stiff problem | `implicit-midpoint` or `backward-euler` |

## Key facts

Order 1, explicit (for separable $H$), symplectic, not time-reversible (its two variants are adjoint to each other; composing a half step of each gives Störmer-Verlet), conditionally stable, one force evaluation per step.

## Sources

- E. Hairer, C. Lubich, G. Wanner. *Geometric Numerical Integration*, 2nd ed. Springer, 2006. https://doi.org/10.1007/3-540-30666-8
