Let the step be h. Forward Euler method gives x1=x0+hv0, v1=v0+hF(x0). Applying the same map with −h gives x2=x1−hv1=x0−h2F(x0), which generally differs from x0. It is therefore not its own inverse under time reversal.
A kick–drift–kick leapfrog integrator instead hasThe step −h first recovers v1/2, then x0, then v0, so Φ−h=Φh−1. This assumes a position-dependent force and the same fixed step. Newtonian mechanics is reversible; respecting that structure helps avoid artificial directional bias and often improves long-term qualitative behaviour. The usual leapfrog also has a structure preserving symplectic geometry, which supports bounded oscillatory energy error, but reversibility by itself does not imply exact conservation of energy. Adaptive stepping requires special care to preserve these properties.
v1/2=v0+2hF(x0),x1=x0+hv1/2,v1=v1/2+2hF(x1).
For a second-order scalar partial differential equation, classification refers to its principal second-derivative form. An elliptic partial differential equation has a definite principal form, exemplified by Poisson's equation; it typically determines a spatial field from boundary data. A parabolic partial differential equation has a distinguished first-order evolution direction and diffusive second spatial derivatives, exemplified by ut=Duxx. Its initial data relax or spread with time. Thus the pseudo-time equation is parabolic, while its steady-state spatial equation is elliptic.
At a steady state in pseudo-time, ∂τΦ=0 and the evolution becomes Φxx=4πGρ, the desired Poisson equation. Deviations from a steady solution obey a diffusion equation, so nonconstant error modes decay. This turns an elliptic boundary-value solve into repeated relaxation steps using familiar time-evolution methods. Boundary data and source compatibility still matter; pseudo-time does not remove a nonexistent steady solution.
A backward Euler method with spatial second-order central differences givesThe source is fixed in pseudo-time; if it were evolving, its evaluation would also need specifying. Each pseudo-time step therefore requires a linear system solve rather than a purely local explicit update.
ΔτΦjn+1−Φjn=h2Φj+1n+1−2Φjn+1+Φj−1n+1−4πGρj.
Let r=Δτ/h2 and impose periodic indices modulo J. With Φn=(Φ0n,…,ΦJ−1n)T, the linear system iswhere S shifts one grid cell cyclically. For J≥3, A has diagonal 1+2r, adjacent and corner entries −r, and all other entries zero. It is a cyclic tridiagonal matrix, rather than a nonperiodic tridiagonal one.
AΦn+1=Φn−4πGΔτρ,A=(1+2r)I−r(S+S−1),
The periodic Laplacian annihilates the constant vector, so its steady equation requires j∑ρj=0. A strictly positive gravitational density violates this condition: summing the update gives Φˉn+1=Φˉn−4πGΔτρˉ, an indefinitely drifting mean. Periodic gravitational calculations normally solve for ρ−ρˉ and fix the arbitrary mean gravitational potential. The per-step matrix A itself remains invertible; the issue is existence of a periodic steady solution of Poisson's equation.
For an error Fourier mode ejn=eneiθj, the periodic discrete Laplacian has eigenvalue −4sin2(θ/2)/h2. The Backward Euler method therefore has amplification factorvon Neumann stability analysis thus imposes no upper limit on positive Δτ. The constant mode has g=1 and is not damped; compatible forcing and a gauge condition remain necessary as discussed in part (e). Large steps can accelerate relaxation of nonconstant modes, but require a suitably accurate linear solver and can worsen its conditioning. Unconditional linear stability is not a statement about time accuracy or cost.
g(θ)=1+4rsin2(θ/2)1,0<g≤1(r≥0).
Ancestors (10)
- S31
- 2019
- Past exam of the short options paper shared by Parts A and B of the physics course of the University of Oxford
- Short options paper shared by Parts A and B of the physics course of the University of Oxford
- Physics course of the University of Oxford
- Undergraduate course of the University of Oxford
- Course of the University of Oxford
- University of Oxford
- List of universities
- Home
Discussion (0)
New discussionThere are no discussions about this article yet.
Articles by others on the same topic (0)
There are currently no matching articles.