Volume and Mass Calculation
Calculating Volume with Triple Integrals
In spherical coordinates, the volume element picks up a factor that accounts for the geometry of the coordinate system. That factor is what makes spherical coordinates so natural for regions bounded by spheres, cones, or spherical shells.
The volume element is:
To find the volume of a region , you integrate this element over the region:
Setting up the bounds correctly is the main challenge. Here's a reliable approach:
- Identify the radial bounds. Determine how varies. For a full sphere of radius , that's . For a spherical shell, it's .
- Identify the polar angle bounds. measures the angle down from the positive -axis. A full sphere uses . A cone of half-angle restricts this to .
- Identify the azimuthal bounds. sweeps around the -axis. A full revolution is . A wedge-shaped region restricts this range.
- Integrate in the order (or whichever order suits the bounds), always including the Jacobian factor.
Quick check: The volume of a sphere of radius should give . If you set up and get that result, your setup is correct.
Determining Mass and Density
Mass connects geometry to physics. If a solid has a mass density function (mass per unit volume at each point), the total mass is:
Note the notation: since is already used for the radial coordinate in spherical coordinates, many texts use for the density function to avoid confusion. Watch for this in your course materials.
- Constant density : the integral reduces to , so you just need the volume.
- Variable density: you must integrate the full expression. The density function often depends on position, such as for a radially varying material.
Leveraging Spherical Symmetry
When the density depends only on the distance from the origin, i.e., , the angular integrals separate out and can be evaluated independently. The integral gives , and the integral gives . This collapses the triple integral into a single integral:
This is a huge simplification. For example, if a solid sphere of radius has density , you only need to evaluate one integral instead of three nested ones. Always check whether your problem has this radial symmetry before grinding through a full triple integral.

Moments and Centers
Moment of Inertia Calculations
The moment of inertia quantifies how difficult it is to spin an object about a given axis. It depends not just on total mass, but on how that mass is distributed relative to the axis.
For rotation about the -axis, the moment of inertia is:
where is the perpendicular distance from the -axis. In spherical coordinates, the distance from the -axis is , so . Substituting the spherical volume element:
For a uniform solid sphere of mass and radius , this evaluates to . That's a standard result worth remembering as a sanity check.
To compute moment of inertia about a different axis (say the -axis), you'd replace with the squared distance from the -axis: .
Locating the Center of Mass
The center of mass is the average position of all the mass in the object. Its coordinates are:
In spherical coordinates, recall the conversions:
So, for example, the -coordinate of the center of mass becomes:
Symmetry shortcut: If the object and its density function are symmetric about the -plane, then without computing anything. Similarly, full rotational symmetry about the -axis forces . Always exploit symmetry before integrating.
For a solid with radial symmetry and a density that depends only on , the center of mass sits at the origin. The interesting cases arise when the region or the density breaks some of that symmetry (e.g., a hemisphere, or a sphere with density that depends on ).

Fields and Potentials
Gravitational Potential Energy
The gravitational potential at a point due to a continuous mass distribution is found by summing contributions from every small mass element. For a mass distribution with density , the gravitational potential at the origin is:
More generally, the potential at an arbitrary field point due to a source distribution is:
where the integration is over the source coordinates .
For a spherically symmetric mass distribution, the shell theorem provides a powerful shortcut:
- Outside the distribution (): the potential is , as if all the mass were concentrated at the center.
- Inside a uniform spherical shell: the potential is constant (no net gravitational force from the shell).
The gravitational self-energy (the energy required to assemble the mass from infinity) for a uniform sphere of mass and radius is:
This result comes from integrating shell-by-shell, bringing each infinitesimal shell in from infinity onto the already-assembled mass.
Electric Field and Charge Distribution
The electric field due to a continuous charge distribution follows the same mathematical structure as gravity, with charge density replacing mass density and replacing :
This is a vector integral, so in practice you often compute each component separately.
For spherically symmetric charge distributions, the calculation simplifies dramatically through Gauss's law:
By choosing a spherical Gaussian surface of radius , symmetry forces to point radially with constant magnitude on the surface, giving:
where is the total charge enclosed within radius . This turns a difficult vector triple integral into a single scalar integral for the enclosed charge, which is exactly the kind of simplification that makes spherical coordinates so valuable.