Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2006/ia/paper-3/3a/solution

Take the unit normal to point outwards. The divergence of the field is
The divergence theorem turns the closed surface integral into a volume integral over :
For a direct check of the surface integral, on the outward component is , contributing . On it vanishes. On both and , . On , , whereas on the field component is and the outward normal is , giving a contribution . The six face contributions are therefore , again totaling 2. The positive bottom-face contribution is a consequence of its outward orientation.

New to topics? Read the docs here!