Sign in

Libre University uses your GitHub account. Signing in is only needed to sit a final test, so the score is kept on your profile.

Triple integrals

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 dA=rdrdθ 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 f(x,y,z) defined on the box B=[a,b]×[c,d]×[p,q]. Cut each of the three edges into equal pieces, of widths Δx, Δy and Δz. The cutting planes divide B into small boxes, each of volume ΔV=ΔxΔyΔz. Pick a sample point in each small box, multiply the value of f there by ΔV, and add. The triple integral of f over B is the limit of these sums as all three widths shrink to zero:

∭BfdV=lim∑i∑j∑kf(xijk*,yijk*,zijk*)ΔV

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 f is a density, each term fΔV is the mass of a small box and the integral is the total mass. If f=1, the integral ∭E1dV is the volume of the solid E.

Fubini's theorem carries over, with the same proof: for continuous f on a box, the triple integral equals each of the six iterated integrals, one per order of x, y and z. So

∭Bxyz2dV=∫01∫02∫03xyz2dzdydx

over B=[0,1]×[0,2]×[0,3]. The inner integral gives xy⋅9, the middle one 9x⋅2, and the outer one 18⋅12=9. Because the integrand is a product of one function of each variable, the answer is also the product 12⋅2⋅9 of three separate integrals. A midpoint sum over a million small boxes, 100 along each edge, gives 8.99978.

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 E lies over a region D of the xy plane, between a floor z=u1(x,y) and a roof z=u2(x,y). Then the innermost integral runs up the vertical segment through each point of D, and what remains is a double integral over D:

∭EfdV=∬D(∫u1(x,y)u2(x,y)fdz)dA

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 (x,y,z≥0) by the plane xa+yb+zc=1, which meets the axes at a, b and c. The floor is z=0 and the roof is the plane, z=c(1-xa-yb). The shadow D on the floor is where the roof is above zero: the triangle 0≤x≤a, 0≤y≤b(1-xa). Write s=1-xa for short. The inner integral of 1 gives the height c(s-yb), and integrating that from y=0 to y=bs gives c(bs2-bs22)=bcs22. Finally ∫0abc2(1-xa)2dx=bc2⋅a3, so

volume=abc6

The tetrahedron fills exactly one sixth of the box [0,a]×[0,b]×[0,c] that contains it. That agrees with the school formula, one third of base area times height, since the base triangle has area ab2 and the height is c.

Example. Let E be the tetrahedron in the first octant under the plane 2x+3y+z=6. Evaluate ∭ExdV.

The plane meets the axes at x=3, y=2 and z=6, so the volume is 3⋅2⋅66=6. The roof is z=6-2x-3y, so the inner integral is ∫06-2x-3yxdz=x(6-2x-3y). The shadow is 0≤x≤3, 0≤y≤6-2x3, and

∫0(6-2x)/3x(6-2x-3y)dy=x[(6-2x)y-3y22]0(6-2x)/3=x(6-2x)26

which is 23x(3-x)2. Then ∫0323(9x-6x2+x3)dx=23(812-54+814)=23⋅274=92. A midpoint sum on a 400×400×400 grid over the enclosing box, counting only the points inside the tetrahedron, gives 4.49997.

Now you. Let E be the tetrahedron in the first octant under the plane x+y+2z=4. Find its volume and evaluate ∭EydV.

Answer

The intercepts are 4, 4 and 2, so the volume is 4⋅4⋅26=163. Integrating in x first, from 0 to 4-y-2z, gives y(4-y-2z); then in z from 0 to 4-y2 gives y(4-y)24; and ∫04y(4-y)24dy=14⋅643=163, about 5.333.

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 xy plane with the height z kept as it is: a point is located by (r,θ,z), with

x=rcosθ,y=rsinθ,z=z

so r is the distance from the z axis and x2+y2=r2.

The volume element follows from the area element. Cutting space along cylinders of constant r, half planes of constant θ and horizontal planes of constant z produces small pieces whose base is a polar rectangle, of area close to rΔrΔθ, and whose height is Δz. Their volume is close to rΔrΔθΔz, and in the limit

dV=rdrdθdz

The factor r is there because a step Δθ sweeps an arc of length rΔθ, 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 h and base radius a. Its side is the surface z=har, so the cone is the solid between that surface and the plane z=h, over the disc r≤a. Then

V=∫02π∫0a∫hr/ahrdzdrdθ=2π∫0a(h-hra)rdr=2πh(a22-a23)=πa2h3

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 z=x2+y2 and below the paraboloid z=2-x2-y2.

In cylindrical coordinates the floor is z=r and the roof is z=2-r2. They meet where r=2-r2, that is r2+r-2=0, whose positive root is r=1. Inside that circle the roof is higher (at r=0 it is at 2 and the floor at 0), so the solid lies over the disc r≤1, and

V=∫02π∫01∫r2-r2rdzdrdθ=2π∫01(2r-r3-r2)dr=2π(1-14-13)=5π6

about 2.618. The integrand does not depend on θ, so the outer integral only multiplies by 2π. A Cartesian midpoint sum on a 400×400×400 grid gives 2.617, 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 z=x2+y2 and below the paraboloid z=6-x2-y2, to two decimal places.

Answer

The surfaces meet where r=6-r2, at r=2. Then V=2π∫02(6r-r3-r2)dr=2π(12-4-83)=32π3≈33.51.

Spherical coordinates

A ball has no preferred axis at all, and cylindrical coordinates describe it clumsily: the ball of radius a is -a2-r2≤z≤a2-r2, square roots again. What fits it is the distance from the origin. Spherical coordinates locate a point by three numbers: ρ≥0, its distance from the origin; φ, the angle between the positive z axis and the line from the origin to the point, running from 0 at the north pole to π at the south pole; and θ, the same angle around the z 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 z=ρcosφ and at distance r=ρsinφ from the axis, by right angled trigonometry in the vertical half plane through the point. Feeding that r into the cylindrical formulas gives

x=ρsinφcosθ,y=ρsinφsinθ,z=ρcosφ

and x2+y2+z2=ρ2. The ball of radius a is now simply 0≤ρ≤a, 0≤φ≤π, 0≤θ≤2π: 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 z axis, a line of latitude, whose radius is the distance r=ρsinφ from the axis, so that edge has length ρsinφΔθ. Multiplying the three edges,

ΔV≈Δρ⋅ρΔφ⋅ρsinφΔθ,dV=ρ2sinφdρdφdθ

The ρ2 says that pieces of the same angular size are bigger further out; the sinφ says that lines of latitude shrink towards the poles. The Jacobian determinant of the previous lesson, written out for (ρ,φ,θ), gives the same ρ2sinφ 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:

V=∫02π∫0π∫0aρ2sinφdρdφdθ=a33⋅[-cosφ]0π⋅2π=a33⋅2⋅2π=43πa3

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 a and height 2a, so volume 2πa3, and two thirds of it is 43πa3.

Cutting the φ integral short gives the solid shaped like an ice cream cone: the part of the ball inside the cone φ≤α around the positive z axis. The only change is the middle factor, ∫0αsinφdφ=1-cosα, so its volume is 23πa3(1-cosα). For a=1 and α=π4 that is 2π3(1-22)≈0.6134, and a Cartesian midpoint sum with 300 points along each edge gives 0.6135. At α=π2 the cone opens flat and the formula gives the hemisphere, 23πa3.

Mass and centre of mass

Since ρ now names a coordinate, write δ(x,y,z) for the density of a solid, in kilograms per cubic metre. Summing the masses δΔV of small boxes gives the mass m=∭EδdV. The centre of mass is the average position, each point weighted by its mass:

x‾=1m∭ExδdV,y‾=1m∭EyδdV,z‾=1m∭EzδdV

This is x‾=∑mixi∑mi 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 a resting on its flat face.

Put the flat face on the xy plane, centred at the origin, so the solid is 0≤ρ≤a, 0≤φ≤π2, 0≤θ≤2π. It is unchanged by rotation about the z axis, so x‾=y‾=0 and only the height is in question. The density cancels, the volume is 23πa3, and with z=ρcosφ,

∭EzdV=∫02π∫0π/2∫0aρ3cosφsinφdρdφdθ=a44⋅12⋅2π=πa44

using ∫0π/2sinφcosφdφ=[sin2φ2]0π/2=12. So z‾=πa44÷2πa33=3a8. A glass paperweight shaped as a hemisphere of radius 4 cm balances at a point 1.5 cm above its base. A Cartesian midpoint sum for a=1 gives 0.37499.

Now you. Find the centre of mass of the uniform ice cream cone 0≤ρ≤a, 0≤φ≤π3, as a multiple of a.

Answer

The volume is 23πa3(1-cosπ3)=πa33. The moment is ∭zdV=a44⋅[sin2φ2]0π/3⋅2π=a44⋅38⋅2π=3πa416. So z‾=3πa416÷πa33=9a16=0.5625a, 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, I=∑midi2, where di is the distance of the particle mi from the axis. For a solid the sum becomes I=∭Ed2δdV.

For a uniform ball of radius a about a diameter, take the diameter as the z axis. The distance from it is r=ρsinφ, so d2=ρ2sin2φ and

I=δ∫02π∫0π∫0aρ4sin3φdρdφdθ=δ⋅a55⋅43⋅2π=8πδa515

where ∫0πsin3φdφ=∫-11(1-u2)du=43 by the substitution u=cosφ. The mass is M=43πa3δ, and dividing,

I=8πδa515⋅34πa3δM=25Ma2

The lesson on rotation in Classical Mechanics quotes this value, together with 12Ma2 for a solid cylinder about its axis; the cylinder's comes the same way in cylindrical coordinates, where d=r and δ∫0h∫02π∫0ar3drdθdz=12πδa4h, which is 12Ma2 since M=πa2hδ. 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, δ=δ0(1-ρa), the same integrals give 415Ma2, about 0.267Ma2. The Earth's measured value, 0.3307Ma2, 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.