Back

PDE Zoo: Wave, Heat, Laplace, Schrodinger and Burgers

Pick an equation and watch the same finite-difference grid behave completely differently. The wave equation conserves energy and oscillates; the heat equation only ever smooths and fades; the Laplace/Poisson equation skips time entirely and jumps to the steady shape; the Schrodinger equation keeps its total probability fixed while the wavepacket spreads; and Burgers, the one-dimensional cousin of Navier-Stokes, sharpens a smooth wave into a shock that viscosity then rounds off. For the cases with a known exact solution the analytic curve is drawn behind the numeric one and the gap between them is plotted as the error, so you can see how good the numerical method is. A Crank-Nicolson scheme advances each equation, and where an exact solution exists the analytic curve is drawn behind the numeric one so the discretisation error is visible.

Figure 1. The same finite-difference grid solving five classic PDEs. The wave equation carries a shape back and forth, the heat equation smooths it away, the Laplace/Poisson equation finds the steady shape, the Schrodinger equation spreads a quantum wavepacket, and Burgers (1D Navier-Stokes) steepens into a shock that viscosity rounds off. Where an exact solution is known it is drawn behind the numeric one, with the gap between them shown as the error. Method: explicit leapfrog and shared Crank-Nicolson tridiagonal solver; Canvas2D line plots (no WebGL; see spec Stack note); deterministic.
equation
parameter2

WHAT TO TRY

  • Step through the five equations on the same grid: wave oscillates and conserves energy, heat only smooths and fades, Laplace jumps straight to the steady shape, Schrodinger holds probability fixed while the packet spreads, and Burgers steepens into a shock.
  • Watch the conserved readout: it stays flat for wave, Schrodinger and Laplace but decays for heat. The conserved quantity is the fingerprint of the equation type.
  • Push the parameter (wave speed, diffusivity, viscosity): the max-error readout tells you when the explicit finite-difference step crosses its stability limit and the solution blows up.