Solution

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

For separation of variables, take and divide the reaction-diffusion equation by this product wherever it is nonzero:
Each spatial term depends on a different variable and must be constant. Write and similarly for the other two factors. The Dirichlet boundary conditions give . A zero separation constant permits only a linear function and hence the zero solution; a positive value of likewise permits no nonzero function vanishing at both endpoints. The nontrivial choices are therefore
The temporal ordinary differential equation is
so, absorbing its constant multiplier into ,
The superposition principle and completeness of the Fourier sine series give the stated threefold expansion with these factors. For an initial density , orthogonality also determines the constants:

New to topics? Read the docs here!