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/13/d/solution

With , integrating gives
The other two partial derivatives require . The origin condition fixes the remaining constant to zero. Hence the scalar potential is
Its value at gives , so

New to topics? Read the docs here!