A solid ball whose density varies from point to point has a definite mass, and a double integral, which sums over a flat region, has no way to compute it.
The previous lesson fitted coordinates to regions of the plane, with polar coordinates and their area element for discs, but all of it happened in the plane. This lesson repeats the construction one dimension up: sums over small boxes, evaluated as three single integrals one inside another, then carried into the two coordinate systems that fit round solids. It assumes the double integral as an iterated integral (integrate in one variable with the other held fixed, then integrate the result) and polar coordinates.
Sums over small boxes
Take a function defined on the box . Cut each of the three edges into equal pieces, of widths , and . The cutting planes divide into small boxes, each of volume . Pick a sample point in each small box, multiply the value of there by , and add. The triple integral of over is the limit of these sums as all three widths shrink to zero:
A continuous function on a closed box always has one, by the same argument as in two variables.
The graph of a function of three variables lives in four dimensions, so the picture to keep is density instead of volume under a graph: if is a density, each term is the mass of a small box and the integral is the total mass. If , the integral is the volume of the solid .
Fubini's theorem carries over, with the same proof: for continuous on a box, the triple integral equals each of the six iterated integrals, one per order of , and . So
over . The inner integral gives , the middle one , and the outer one . Because the integrand is a product of one function of each variable, the answer is also the product of three separate integrals. A midpoint sum over a million small boxes, along each edge, gives .
Solids described by bounds
A solid that is not a box is handled as the region between two curves was in the plane. Suppose the solid lies over a region of the plane, between a floor and a roof . Then the innermost integral runs up the vertical segment through each point of , and what remains is a double integral over :
The rule for the limits is the one from the plane, extended by one level: the outermost limits are constants, the middle ones may depend on the outer variable, and the innermost ones may depend on both others.
The standard test case is the tetrahedron cut from the first octant () by the plane , which meets the axes at , and . The floor is and the roof is the plane, . The shadow on the floor is where the roof is above zero: the triangle , . Write for short. The inner integral of gives the height , and integrating that from to gives . Finally , so
The tetrahedron fills exactly one sixth of the box that contains it. That agrees with the school formula, one third of base area times height, since the base triangle has area and the height is .
Example. Let be the tetrahedron in the first octant under the plane . Evaluate .
The plane meets the axes at , and , so the volume is . The roof is , so the inner integral is . The shadow is , , and
which is . Then . A midpoint sum on a grid over the enclosing box, counting only the points inside the tetrahedron, gives .
Now you. Let be the tetrahedron in the first octant under the plane . Find its volume and evaluate .
Answer
The intercepts are , and , so the volume is . Integrating in first, from to , gives ; then in from to gives ; and , about .
Cylindrical coordinates
A solid with an axis of symmetry (a cylinder, a cone, a bowl) has round cross sections, which want polar coordinates. Cylindrical coordinates are polar coordinates in the plane with the height kept as it is: a point is located by , with
so is the distance from the axis and .
The volume element follows from the area element. Cutting space along cylinders of constant , half planes of constant and horizontal planes of constant produces small pieces whose base is a polar rectangle, of area close to , and whose height is . Their volume is close to , and in the limit
The factor is there because a step sweeps an arc of length , long far from the axis and short near it.
For a first check, take the solid cone with its vertex at the origin, opening upwards, of height and base radius . Its side is the surface , so the cone is the solid between that surface and the plane , over the disc . Then
which is one third of the base area times the height, as Euclid proved in the Elements by a much longer route.
Example. Find the volume of the solid above the cone and below the paraboloid .
In cylindrical coordinates the floor is and the roof is . They meet where , that is , whose positive root is . Inside that circle the roof is higher (at it is at and the floor at ), so the solid lies over the disc , and
about . The integrand does not depend on , so the outer integral only multiplies by . A Cartesian midpoint sum on a grid gives , the missing digit being lost at the curved edges, where a grid of cubes fits badly.
Now you. Find the volume of the solid above the cone and below the paraboloid , to two decimal places.
Answer
The surfaces meet where , at . Then .
Spherical coordinates
A ball has no preferred axis at all, and cylindrical coordinates describe it clumsily: the ball of radius is , square roots again. What fits it is the distance from the origin. Spherical coordinates locate a point by three numbers: , its distance from the origin; , the angle between the positive axis and the line from the origin to the point, running from at the north pole to at the south pole; and , the same angle around the axis as in cylindrical coordinates. On the Earth, is longitude and is ninety degrees minus latitude.
This convention, from the axis and around it, is that of most mathematics texts. Physics texts and the standard ISO 80000-2 swap the two letters; the geometry is identical, and in either notation the sine in the volume element belongs to the angle measured from the axis.
The point at distance and angle from the axis is at height and at distance from the axis, by right angled trigonometry in the vertical half plane through the point. Feeding that into the cylindrical formulas gives
and . The ball of radius is now simply , , : a box in the new coordinates.
For the volume element, look at the small piece of space cut out by increasing each coordinate a little from . It is nearly a rectangular box, because the three coordinate directions meet at right angles, and its three edges can be measured one at a time. Increasing by moves the point straight outwards, a distance . Increasing by moves it along a circle of radius centred at the origin (a meridian), so the edge is an arc of length . Increasing by moves it along a horizontal circle around the axis, a line of latitude, whose radius is the distance from the axis, so that edge has length . Multiplying the three edges,
The says that pieces of the same angular size are bigger further out; the says that lines of latitude shrink towards the poles. The Jacobian determinant of the previous lesson, written out for , gives the same after a page of algebra.
The volume of a ball
With the ball described as a box in spherical coordinates, its volume is an integral whose limits are all constants and whose integrand is a product, so it splits into three single integrals:
Archimedes reached the same result around 225 BC, in On the Sphere and Cylinder, in the form that a ball is two thirds of the cylinder that just contains it: that cylinder has radius and height , so volume , and two thirds of it is .
Cutting the integral short gives the solid shaped like an ice cream cone: the part of the ball inside the cone around the positive axis. The only change is the middle factor, , so its volume is . For and that is , and a Cartesian midpoint sum with points along each edge gives . At the cone opens flat and the formula gives the hemisphere, .
Mass and centre of mass
Since now names a coordinate, write for the density of a solid, in kilograms per cubic metre. Summing the masses of small boxes gives the mass . The centre of mass is the average position, each point weighted by its mass:
This is from mechanics, with the sum over particles become an integral. A constant density cancels, and the centre of mass then depends only on the shape.
Example. Find the centre of mass of a uniform solid hemisphere of radius resting on its flat face.
Put the flat face on the plane, centred at the origin, so the solid is , , . It is unchanged by rotation about the axis, so and only the height is in question. The density cancels, the volume is , and with ,
using . So . A glass paperweight shaped as a hemisphere of radius cm balances at a point cm above its base. A Cartesian midpoint sum for gives .
Now you. Find the centre of mass of the uniform ice cream cone , , as a multiple of .
Answer
The volume is . The moment is . So , higher than the hemisphere's because the narrow cone puts less material near the base.
Moment of inertia
A body turning about an axis resists changes of spin in proportion to its moment of inertia, , where is the distance of the particle from the axis. For a solid the sum becomes .
For a uniform ball of radius about a diameter, take the diameter as the axis. The distance from it is , so and
where by the substitution . The mass is , and dividing,
The lesson on rotation in Classical Mechanics quotes this value, together with for a solid cylinder about its axis; the cylinder's comes the same way in cylindrical coordinates, where and , which is since . The number in front measures how far out the mass sits. If a ball's density instead falls steadily from the centre to zero at the surface, , the same integrals give , about . The Earth's measured value, , lies between the two, one of the main pieces of evidence that it has a dense core.
What has been built
This course has taken the two operations of calculus, differentiation and integration, from functions of one variable to functions of several. On the differential side: partial derivatives, the tangent plane and linear approximation, the chain rule, the gradient, and the search for maxima and minima with and without constraints. On the integral side: sums over small rectangles and boxes, evaluated as iterated single integrals, in whatever coordinates fit the region, with the Jacobian factor paying for the change. Every integral so far has been over a flat region or a solid, a piece of the plane or of space of full dimension.
Vector Calculus, which follows, integrates over things of lower dimension. An integral along a curve adds up the work a force does on a particle moving along a path; an integral over a surface adds up the flow of a fluid or an electric field through it. Then come the theorems of Green, Stokes and Gauss, which say that an integral over a region equals an integral over its boundary: over a plane region and its edge, a surface and the curve around it, a solid and the surface enclosing it. They are the Fundamental Theorem of Calculus in higher dimensions, and they are the language in which Maxwell's equations and the laws of fluid flow are written.