Solution

ID: past-exam-of-the-mathematics-course-of-the-year-1-of-the-natural-sciences-course-of-the-university-of-cambridge/2024/paper-2/20/c/i/solution

For the two travelling profiles, the initial conditions imply
Since , is constant. One may therefore choose
where the constants cancel in the sum. The D'Alembert formula then gives
This agrees exactly with the restricted-domain solution from part (b). The whole-line cosine profile already has zero spatial derivative at both and for every time, so its restriction satisfies the Neumann boundary conditions without further modification.

New to topics? Read the docs here!