1D Force Field

Interactive simulation — adjust parameters and watch the visualization update in real time.

Live graphs

How it works

One-dimensional conservative dynamics from a potential U(x). The force is F = −dU/dx, so total energy E = ½mv² + U(x) is conserved (up to small numerical drift). A harmonic well gives elliptical phase orbits; a double well allows periodic motion in one basin or more complex trajectories with enough energy.

Key equations

F = −dU/dx  ·  mẍ = F
E = ½mv² + U(x)  ·  double well: U ∝ x⁴/4 − x²/2