Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2020/ib/paper-2/5d/solution

Let be distance from the common centre. By Gauss's law, the electric field is radial and equals
Taking the electric potential to vanish at infinity and requiring continuity across each shell gives
The electrostatic energy is the integral of the electric-field energy density:
Only the two nonzero-field regions contribute, so
Therefore

New to topics? Read the docs here!