Solution

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

With the same separation of variables ansatz, gives
On , integration yields and . The choice , gives a polynomial that extends smoothly to all real :
It is nonconstant and real everywhere, and , including on the axes.

New to topics? Read the docs here!