An ideal bar, two metres long, has an initial temperature
distribution of
The left end (x = 0) is held at u = 100°.
The right end (x = 2) is held at u = 200°.
The temperature at any time and at any location in the bar is
governed by the partial differential equation
The complete solution is a Fourier sine series in x:
The plot is generated from the first five
non-trivial terms in the Fourier series.
The Maple file is available here.