Volume and Mass Calculation
Calculating Volume Using Triple Integrals
The volume of a solid region in is given by the triple integral
The integrand is just 1, so you're summing up all the infinitesimal volume elements throughout the region. The real work is in setting up the limits of integration correctly.
Setting up the integral:
- Sketch or visualize the region and identify its bounding surfaces.
- Choose an order of integration (e.g., ). Pick the order that makes the innermost limits simplest to express.
- Write the innermost limits as functions of the remaining variables, the middle limits as functions of the outermost variable, and the outermost limits as constants.
- Evaluate from the inside out.
If the region has cylindrical or spherical symmetry, switching to cylindrical coordinates () or spherical coordinates () can dramatically simplify the integral. Remember to include the appropriate Jacobian factor: for cylindrical, or for spherical.
Determining Mass and Density
When an object has a density function describing mass per unit volume at each point, the total mass is
- If density is uniform (constant throughout), then and the mass integral reduces to .
- For non-uniform density, varies with position. Common examples include density that increases linearly along an axis (e.g., ) or density that depends on distance from the origin (e.g., ).
The setup process is the same as for volume: identify the region, choose coordinates and integration order, then substitute the density function into the integrand before evaluating.
Applying Volume and Mass Calculations
For irregular shapes bounded by multiple surfaces, the key challenge is expressing the integration limits correctly. Break the region into simpler sub-regions if a single set of limits doesn't cover it.
You can also combine volume and mass to find the average density of an object:
This is useful as a sanity check: your computed average density should fall between the minimum and maximum values of over the region.

Center of Mass and Moment of Inertia
Center of Mass Calculation
The center of mass is the weighted average position of all the mass in the object. Each coordinate is computed by integrating the corresponding position variable times the density, then dividing by total mass:
The denominator in each formula is just the total mass , so you typically compute that first and reuse it. The numerators , etc., are called the first moments of mass (, , respectively).
For objects with uniform density, cancels from numerator and denominator, and the center of mass becomes the centroid, which depends only on geometry. Use symmetry to your advantage: if the region is symmetric about a plane and the density respects that symmetry, the center of mass lies on that plane, saving you an integral.
Moment of Inertia Determination
The moment of inertia quantifies how mass is distributed relative to an axis of rotation. More mass farther from the axis means greater resistance to angular acceleration.
Here is the perpendicular distance from the point to the axis of rotation. The specific expression for depends on which axis you're rotating about:
- About the -axis:
- About the -axis:
- About the -axis:
Parallel axis theorem: If you know the moment of inertia about an axis through the center of mass, the moment about any parallel axis a distance away is
where is the total mass. This saves you from re-evaluating the full triple integral for every parallel axis.

Gravitational Potential
Calculating Gravitational Potential
The gravitational potential at a point due to a continuous mass distribution is the potential energy per unit mass a test particle would have at that location. It's computed by summing contributions from every mass element in the body:
Here is the gravitational constant, and are the integration variables running over the mass distribution . The point where you evaluate the potential is treated as a fixed parameter during integration.
The denominator is the distance between the field point and the source point, which makes this integral harder than typical mass or volume integrals. For bodies with symmetry, choosing the right coordinate system is critical. A solid sphere, for instance, is best handled in spherical coordinates, where the angular integrals often simplify or can be evaluated using known results.
Applying Gravitational Potential
Once you have , you can extract the gravitational force on a test particle of mass by taking the negative gradient:
This connects the scalar potential (one integral) to the vector force field (which would otherwise require three separate integrals, one per component). That's why working with the potential is often more efficient.
For classic symmetric distributions:
- Uniform sphere: Outside the sphere, the potential is identical to that of a point mass at the center: . Inside, the potential varies as , where is the sphere's radius.
- Uniform thin rod or plate: These typically require direct evaluation of the integral, but symmetry arguments reduce the number of nontrivial integration variables.
The gravitational potential energy of the entire mass distribution (the energy required to assemble it from infinity) involves a self-energy integral, which is a more advanced calculation where you integrate over the body, being careful to avoid double-counting.