The field points straight away from the origin at every point, so it carries a net flow out through the unit sphere. How large is that flow, measured as the flux with the outward unit normal? This page computes it in two ways that both give , once directly on the sphere and once with the divergence theorem, which adds the divergence over the ball of volume . It also explains why the inside determines the flow through the outside, and why the answer depends on the normal being outward and of length one.
Key terms
Surface integral
Definition Let be a surface with a continuously differentiable parametrization , in a closed bounded region of the plane, that is one to one on the interior of and whose normal vector is nonzero there. The area element of is
and for a function that is continuous on , the surface integral of over is
with short for . Another such parametrization of gives the same value. With the integral is the area of , and a piecewise smooth surface, such as the surface of a cube, is handled piece by piece.
In plain words Cut the surface into small patches, multiply the value of on each patch by the area of the patch, and add. The length of is the stretch factor that converts a small rectangle in the parameter plane into the area of the patch it maps to.
Example The unit sphere has the parametrization , , , with polar angle and azimuth . A computation gives , which has length , so . The inner integral is
and integrating this constant over gives the area of the sphere, .
Outward unit normal
Definition Let be the boundary surface of a bounded solid region . At each point where has a tangent plane, the outward unit normal is the vector of length that is perpendicular to the tangent plane and points away from . Where is part of a level surface with , it is , with the sign that points outward. For the sphere of radius centered at the origin,
In plain words The outward unit normal is an arrow of length one that sticks straight out of the surface. It only picks out a direction, because the size of each patch is already counted by .
Example On the unit sphere the position vector has length and points away from the ball, so it is the outward unit normal. On the sphere of radius the position vector has length , so the outward unit normal is , and using itself would double every flux computed with it. The inward unit normal is .
Flux
Definition Let be a piecewise smooth surface with a unit normal that varies continuously on each smooth piece, and let be continuous on . The flux of through in the direction of is
For a closed surface the standard choice is the outward unit normal, which gives the outward flux. When a parametrization has its normal vector pointing in the direction of , the product equals , so
Choosing the opposite normal changes the sign of the flux.
In plain words Flux measures how much of the field crosses the surface, counted in the chosen direction. Only the part of the field perpendicular to the surface matters. A field tangent to the surface crosses nothing, and a field crossing against counts as negative.
Example For on the unit sphere with outward normal ,
at every point of the sphere. So each patch contributes exactly its area, and the outward flux is the area of the sphere, . With the inward normal the flux is .
Divergence
Definition Let have continuous first partial derivatives on an open set in space. The divergence of is the function
At each point of that open set, it equals the limit of the outward flux through the sphere of radius centered at , divided by the volume of the ball inside, as .
In plain words Divergence measures how much the field spreads out from a point, as the net outward flow from a tiny ball per unit of its volume. It compares neighboring arrows, so it can be nonzero at a point where the arrow itself is zero.
Example For each of the three partial derivatives is , so
at every point, including the origin, where . The field , which only circles around the -axis, has divergence .
Cancellation across shared faces
Definition Suppose a solid region is cut into finitely many pieces with piecewise smooth boundaries, and is continuous on together with its boundary. When each piece uses its own outward unit normal , a face shared by two pieces is counted twice with opposite normals, so its two contributions cancel, and
For a small box with sides , and , the two faces perpendicular to the -axis together contribute about , and the other two pairs of faces behave the same way. So the outward flux of a small box is approximately , and adding over all the boxes gives a Riemann sum for the triple integral of the divergence. This is the counterpart in space of the cancellation along shared edges behind Green’s theorem.
In plain words Every inside wall between two boxes is crossed in opposite directions by its two boxes, so it adds nothing to the total. Only the outer walls remain, and together they form the boundary surface.
Example Take on the unit cube , cut by the plane . The field is parallel to the -axis, so only faces perpendicular to that axis carry flux. The left half sends out through , where , and through . The right half sends out through and through , where its outward normal points in the negative direction. The two contributions on the shared face cancel, and the sum is the outward flux of the whole cube. It matches the integral of over the cube, which is .
Divergence theorem
Definition Let be a bounded solid region whose boundary is a closed piecewise smooth surface, or several such surfaces as for a hollow ball, oriented by the outward unit normal . If has continuously differentiable components on an open set containing and , then
Both conditions matter. An open surface, such as a hemisphere without its base, is not the boundary of a solid, so it has to be closed off before the theorem applies. A singularity inside can break the formula. The inverse square field , with , has divergence at every point except the origin, where it is undefined, yet its outward flux through the unit sphere is , since there.
In plain words The net flow out through a closed surface equals the total spreading of the field inside it. Regions of positive divergence add outward flow, regions of negative divergence take it away, and the theorem adds them all.
Example For the unit sphere with the outward normal and , the components are polynomials, so they are continuously differentiable on all of space, and the enclosed region is the full unit ball . With ,
which matches the direct computation on the sphere.
Check yourself
- Use the divergence theorem to find the outward flux of through the sphere .
Show the answer
The components are polynomials, so they are continuously differentiable everywhere, and the sphere is the closed boundary of the ball of radius . The divergence is , and the ball has volume . So the outward flux is
- A student computes the outward flux of through the sphere of radius centered at the origin by taking . This gives and a flux of . Find the error and the correct flux, and check it with the divergence theorem.
Show the answer
On this sphere the vector has length , so it is not a unit normal. The outward unit normal is , which gives
The sphere has area , so the flux is . The divergence theorem agrees, since the divergence times the volume of the ball is .
- Find the upward flux of through the upper half of the unit sphere, the part with , without its base.
Show the answer
The hemisphere is not closed, so the divergence theorem does not apply to it alone. Add the disk given by and . Together they bound the solid half ball , whose outward normal is upward on and equal to on . The divergence is and has volume , so the total outward flux is .
On the disk , so , and the flux through is times the area , which is . Therefore
Forgetting the base would give the wrong value . As a direct check, on the hemisphere and . The hemisphere has area . With and , the inner integral of is
so the integral of over the hemisphere is , and the flux is .