Numerical u(x,t) — finite-difference Exact Hirota reference (dashed) Still-water baseline

KdV Two-Soliton Collision — Finite-Difference Solver (2D)

This 2D companion to the 3D KdV soliton sim swaps the exact closed-form Hirota formula for a genuine numerical PDE solver: the same equation, u_t + 6uu_x + u_xxx = 0, is integrated forward step-by-step on a fixed grid using the Zabusky–Kruskal leapfrog finite-difference scheme — the historical method that first revealed solitons in 1965. Watch a fast, tall soliton overtake a slow, short one exactly as in the exact solution, while two independent live readouts — conservation of ∫u dx and the pointwise deviation from the exact Hirota reference — prove the raw numerics are actually converging to the right physics rather than merely animating a formula.