∴ by divergence theorem, we get
Since, V is the volume of the sphere we transform the above triple integral into spherical polar coordinates (r, θ, φ).
For the spherical polar coordinates (r, θ, φ), we have
x2 + y2 + z2 = r2 and dx dy dz = dV
∴ dV = r2sin θ dr dθ d φ
Also, 0 ≤ r ≤ a, 0 ≤ θ ≤ π and 0 ≤ φ ≤ 2π
Therefore (1) reduces to,