Solution

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

Inside the sphere, the electric field has the form , including at the origin. Thus it is a conservative vector field. Outside, use the gradient of a radial function to obtain
This is also an explicit potential of a conservative vector field, single-valued throughout the exterior region. Equivalently, the curl vanishes in both regions: for a radial coefficient , because is radial. The interior formula avoids any apparent issue at the origin. The vector-field potentials here have the opposite sign from the electric potential convention used in (b).

New to topics? Read the docs here!