For basic info on how to calculate integrals, see Integration primer. Just as we can integrate over a number line, we should be able to integrate over the surface of a unit sphere. To do so, we can use spherical coordinates.
A naive approach would be a double integral like so:
We know that the surface area of a sphere is
Let's try integrating the constant
That is definitely not
Notice how the top and bottom edge of the differential surface patch are different lengths! We need to account for the shape of the differential, otherwise we are just integrating over a perfectly rectangular plane! The height of the quadrilateral is
We can revisit our naive method, and add the correction factor of
And now we get the correct surface area of the unit sphere,
We can turn the spherical integral into a hemispherical one by changing range of integration for
The rendering equation contains a hemispherical integral:
The formulation of the rendering equation shown earlier looks different because it is integrating over Solid Angle domain. The relationship between differential solid angle and differential spherical coordinates is:
Thus:
A final note on spherical integrals: Why use this alternate integration domain and not just spherical coordinates?
Essentially, this is just because it makes the math much nicer. There is nothing stopping us from writing the rendering equation out with a parameterization using spherical coordinates. You can think of