Solution

ID: past-exam-of-the-mathematics-course-of-the-year-2-of-the-natural-sciences-course-of-the-university-of-cambridge/2019/paper-1/2/b/solution

First decompose the initial dependence using . Only the cosine indices and occur. Expand the remaining factor in a Fourier sine series:
For , two integrations by parts give
Thus even vanish, while for odd . The nonzero double-series coefficients are and . Their separate heat-mode decay factors give
At the bracket is , which recovers the initial profile with the displayed sine coefficients. Each term satisfies the mixed Dirichlet boundary conditions and Neumann boundary conditions.

New to topics? Read the docs here!