Heat equation in this visualization
The top plot shows the temperature along a rod from 0 to : faint at the start, yellow at time . Blue arrows show how fast each point is warming or cooling. The bar below shades the rod by temperature, and the bottom row gives the size of each sine mode on a log scale (cosine modes when the ends are insulated).
Why does a point change fastest where the curve bends most? For a small step , : times the gap between the average of the two neighbours and . Where the curve bends up, the point sits below its close neighbours' average, and it warms; where it cools. On a straight stretch , however hot it is. The probe can show this with two close neighbours and their average. Jumps and corners smooth out at once: for every the temperature is a smooth curve.
Why do fine wiggles disappear first? A single mode, with the ends held at 0 or with insulated ends, has , so it keeps its shape and only shrinks by the factor . Three times the wiggles bend nine times as much at the same height and decay nine times as fast. Every starting temperature is a sum of such modes, so in the bottom row the bars fall from the right: mode drops under 10% of its start after . On the log clock, each tenfold step in time clears modes about times wider. The red ruler gives that scale: a single mode whose half-wavelength is no longer than the ruler keeps at most of its amplitude.
What do the ends change? Held at 0, they are ice, and is measured from the ice temperature. Over time the lowest mode present takes over the shape. For a start that is never negative and not all zero, heat flows out through the ends, falls, and the shape becomes one sine arch sinking like . Through insulated ends no heat passes, so stays fixed. The modes are then cosines, and the mode, the mean temperature, never decays: the rod settles to its average. Either kind of end acts from ; a start that does not fit it at an end, like the uniform rod between ice, is pulled into line there at once.
Things to notice
- The arrows share one scale, set by the fastest point at this moment, and the legend gives the rate of its reference arrow. Compare arrow lengths within one moment, not across times.
- Temperatures below the ice are negative. With the ends held at 0, a start with both signs gets the net instead of a share.
Controls
- Diffuse leaves a faint snapshot at each tenfold step in time.
- Click the rod to move the probe there.
- Choose Draw and drag across the top plot to set the starting temperature; drawing takes back to 0.