We need to find the outward flux of a 3D vector field across a surface without setting up a separate surface integral for every face or curved wall.
1
Flux Equals Total Source Inside
The outward flux across a closed boundary equals the total fluid generated by all the sources and drains inside the region.
Flux Equals Total Source Inside
Because fluid cannot appear out of nowhere, whatever is pumped in by faucets or removed by drains inside an enclosed space has to cross the outer walls:
Total Flux through the outside=Total Source on the inside
Moving a faucet or drain anywhere inside the box changes which wall the water exits through without changing the total outward flux at all. The total flux changes only when a faucet or drain crosses the boundary wall to the outside.
Moving a faucet or drain inside only shifts which walls the water crosses, while dragging one outside changes the total flux.
2
Divergence as Faucet Strength at a Point
Instead of a list of faucets, we are given a vector field F=⟨P,Q,R⟩. The divergence of F measures the faucet strength at any single point by adding the rates at which the flow speeds up in the x,y, and z directions.
Divergence as Faucet Strength at a Point
Comparing opposite walls of a tiny box in all three directions gives the total expansion rate at that point:
divF=∇⋅F=faucet strength at (x,y,z)∂x∂P+∂y∂Q+∂z∂R
A positive divergence (∇⋅F>0) means fluid is expanding out of that point like a faucet, while a negative divergence (∇⋅F<0) means fluid is compressing into it like a drain. For F=⟨2x,3y,z⟩, adding the three partial derivatives gives a constant faucet strength everywhere in space:
∇⋅F=∂x∂(2x)+∂y∂(3y)+∂z∂(z)=2+3+1=6
3
Why Interior Walls Cancel: The Divergence Theorem
Now let's connect the faucet strength at a single point to the flux across a large 3D shape. The Divergence Theorem says we can find the outward flux of F across a closed surface S by integrating the divergence ∇⋅F over the solid region E inside.
Why Interior Walls Cancel: The Divergence Theorem
When we chop the solid into tiny boxes, the flux going out of one box into a neighbor is the exact opposite of the flux going from that neighbor back in. Every shared interior wall cancels out, leaving only the outer boundary S:
In this formula, n always points outward because positive divergence (∇⋅F>0) pushes fluid out of the region. If a problem asks for the inward flux instead, compute the outward flux with the theorem as usual and flip the sign of the answer at the end.
Whenever an interior wall splits the 3D region in two, the flux leaving one piece across that wall cancels the flux leaving the other, so interior walls always cancel to zero and only the outer boundary remains.
Wherever an inside wall splits a region, the flow leaving one piece equals the flow entering the other, so the shared wall always cancels out.
4
Constant Divergence: Flux Through a Sphere
First, let's find the outward flux of F=⟨2x,3y,z⟩ through the surface of a sphere of radius R=3:
∬S⟨2x,3y,z⟩⋅ndS
Constant Divergence: Flux Through a Sphere
Text solution
Switch from the surface to the volume insideInstead of parametrizing the sphere in spherical coordinates, we integrate the divergence ∇⋅F=2+3+1=6 over the solid sphere E.
Flux=∬SF⋅ndS=∭E6dV
Factor out the constant and multiply by the sphere's volumeBecause every unit of volume pumps out 6 units of fluid, we pull 6 out front and multiply by the volume of a sphere of radius 3.
Flux=6∭E1dV=6×(34π×33)=6×36π=216π
So the total outward flux through the sphere is 216π.
5
Variable Divergence in a Cylinder
Now let's see what happens when the vector field has extra terms that don't affect the divergence and the faucet strength changes from point to point. We want to find the outward flux of
F=⟨xy2+sin(yz),yx2+exz,z(x2+y2)+cos(xy)⟩
through the closed cylinder x2+y2≤4,0≤z≤5.
Variable Divergence and Decoy Terms in a Cylinder
Text solution
Take the divergence to clear out the terms that don't changeEach partial derivative checks how fast a component changes along its own direction, so terms missing that variable pass straight through the box unchanged and drop out.
Set up the triple integral in cylindrical coordinatesSince the divergence grows from zero on the center z-axis toward the outer wall, we integrate over the cylinder using x2+y2=r2 and dV=rdzdrdθ.
So the outward flux through the closed cylinder is 80π.
Inside the cylinder, those unchanging terms give zero net flux through any tiny box, while the remaining outward expansion is zero on the center z-axis and grows stronger toward the outer wall.
Flow passing straight through the box always cancels out on opposite walls, while outward expansion starts at zero on the center axis and grows stronger toward the side wall.
6
Closing an Open Surface with a Flat Disk
The Divergence Theorem only works on a completely closed surface, because if a side is missing, water generated inside can escape through the opening without crossing the surface. Suppose we want the downward, outward flux of
F=⟨x+sin(y),y+cos(z),z+x2+y2⟩
through the curved surface of the lower hemisphere x2+y2+z2=4,z≤0, which is open at the top at z=0.
Closing an Open Surface with a Flat Disk
Text solution
Close the open top with a flat disk and find the total fluxAdding the flat circular disk at z=0 encloses the solid hemisphere E of radius 2, where ∇⋅F=1+1+1=3 is constant.
What we want∬HemisphereF⋅ndS+Easy flat surface∬DiskF⋅ndS=Total Faucets Inside∭E∇⋅FdV=3×(32π×23)=16π
Compute the outward flux through the flat diskOn the top disk at z=0, pointing out of the enclosed hemisphere means pointing straight up with n=⟨0,0,1⟩, which picks out the z-component at z=0.
F⋅⟨0,0,1⟩=z+x2+y2=x2+y2(at z=0)
Flux through Disk=∬Disk(x2+y2)dA=∫02π∫02r2⋅rdrdθ=2π[4r4]02=2π(4)=8π
Subtract the disk's flux from the totalOut of the 16π total leaving the closed shape, 8π escapes out the top disk, so the rest exits through the hemisphere.
Flux through Hemisphere=16π−8π=8π
So the downward, outward flux through the open hemisphere is 8π.
Key concepts
Whenever you need to find the 3D flux ∬SF⋅ndS, check whether the surface S is closed before parametrizing anything. On a closed surface, the Divergence Theorem replaces the surface integral with the total faucet strength inside the solid volume E:
∬SF⋅ndS=∭E(∂x∂P+∂y∂Q+∂z∂R)dV
Taking the divergence immediately clears away terms that don't depend on their own coordinate, like sin(yz) in P or cos(xy) in R. From there, look at what remains of ∇⋅F:
Key concept
If ∇⋅F is a constant (such as ∇⋅⟨2x,3y,z⟩=6), skip the integral and multiply that constant by the solid's volume.
Key concept
If ∇⋅Fdepends on position (such as 2(x2+y2)=2r2 inside a cylinder), integrate it over the 3D solid, remembering the extra r in dV=rdzdrdθ for cylindrical coordinates.
Key concept
Because faucets push fluid out, the theorem always gives outward flux; if a question asks for inward flux, flip the sign at the very end.
When not to use the theorem directly: If the surface is open (such as the lower hemisphere x2+y2+z2=4,z≤0 with an open top at z=0), fluid escapes out the opening, so ∭E∇⋅FdV does not equal the flux through the curved surface alone. Close the opening with a flat disk first, find ∭E∇⋅FdV for the combined closed surface, and subtract the surface integral over the flat disk (using the normal n that points out of the enclosed solid, like ⟨0,0,1⟩ on a top disk at z=0).
7
Practice
1
Find the outward flux of F=⟨3x,−y,2z⟩ through the surface of the sphere x2+y2+z2=9.
Watch the minus sign on −y; adding 3+1+2=6 leads to the wrong answer 216π.From x2+y2+z2=9=32, the radius is R=3 (be careful not to plug in R=9, which gives 3888π).
Find the faucet strength ∇⋅F first. Do you need to set up an integral if it is constant?
Take the divergence of F:
∇⋅F=∂x∂(3x)+∂y∂(−y)+∂z∂(2z)=3−1+2=4
(Watch the minus sign on −y; adding 3+1+2=6 leads to the wrong answer 216π.) Since the divergence is a constant 4, multiply 4 by the volume of the sphere. From x2+y2+z2=9=32, the radius is R=3 (be careful not to plug in R=9, which gives 3888π):
Flux=4×(34π(3)3)=4×36π=144π
2
Find the inward flux of F=⟨2x+sin(yz),5y+exz,−z+x2y2⟩ through the closed rectangular box 0≤x≤2,0≤y≤3,0≤z≤4.
The Divergence Theorem always gives outward flux, so stopping at +144 is the most common mistake here. Flip the sign for the inward flux.
Which terms in F drop out in the divergence, and which direction does the problem ask for?
Taking the divergence clears out sin(yz),exz, and x2y2 because they don't contain the variable we are differentiating by:
∇⋅F=2+5−1=6
Since ∇⋅F=6 is constant, the outward flux is 6 times the volume of the 2×3×4 box:
Outward Flux=6×(2×3×4)=144
The Divergence Theorem always gives outward flux, so stopping at +144 is the most common mistake here. Flip the sign for the inward flux:
Inward Flux=−144
3
Find the outward flux of F=⟨2xy2+cos(yz),2yx2+exz,z(x2+y2)+sin(xy)⟩ through the closed cylinder x2+y2≤9,0≤z≤2.
Make sure to include the extra r in dV=rdzdrdθ (forgetting that r and integrating 3r2 gives the wrong answer 108π).
After the terms without the matching variable drop out of ∇⋅F, group the remaining terms into x2+y2 to switch to cylindrical coordinates.
The terms cos(yz),exz, and sin(xy) drop out in the partial derivatives:
∇⋅F=2y2+2x2+(x2+y2)=3(x2+y2)=3r2
Set up the triple integral over the cylinder of radius 3 and height 2 in cylindrical coordinates, making sure to include the extra r in dV=rdzdrdθ (forgetting that r and integrating 3r2 gives the wrong answer 108π):
Find the upward, outward flux of F=⟨2x+ey,2y+sin(z),2z+2(x2+y2)⟩ through the upper hemisphere x2+y2+z2=9,z≥0, which is open at the bottom at z=0.
On the bottom disk at z=0, pointing out of the upper hemisphere means pointing straight down, so n=⟨0,0,−1⟩ (using ⟨0,0,1⟩ gives +81π for the disk and leads to the wrong answer 27π).
Close the open bottom at z=0 with a flat disk. Which way does the outward normal n point on the bottom of an upper hemisphere?
Close the surface with the flat disk x2+y2≤9 at z=0. Since ∇⋅F=2+2+2=6, the total outward flux through the upper hemisphere plus the bottom disk is 6 times the volume of the hemisphere of radius 3:
Total Flux (Hemisphere + Disk)=6×(32π(3)3)=108π
On the bottom disk at z=0, pointing out of the upper hemisphere means pointing straight down, so n=⟨0,0,−1⟩ (using ⟨0,0,1⟩ gives +81π for the disk and leads to the wrong answer 27π). At z=0, this gives F⋅n=−(2z+2(x2+y2))=−2(x2+y2):
Flux through Disk=∫02π∫03(−2r2)⋅rdrdθ=2π[−42r4]03=−81π
Subtract the disk's flux from the total closed flux: