6.6 Curl, divergence, Stokes' theorem and Gauss's theorem
Curl measures how much a field spins and divergence how much it spreads; Stokes' theorem says the circulation around the edge of a surface is the flux of the curl through it, the divergence theorem says the flux out of a closed surface is the integral of the divergence inside, and both are the fundamental theorem of calculus one dimension up.
Taught in 375/376Apostol, not taughtBeyond the courseApostol Vol. 2, 12.11 to 12.20 (12.11 Stokes, 12.12 curl and divergence, 12.14 further properties, 12.16 reconstruction from the curl, 12.19 divergence theorem, 12.20 applications)MATH 376 Week 7: lectures of 2, 4 and 6 March, worksheets 13, 14, 17, 27 and 28, homework 5 problems 4 and 5, homework 6, Midterm 2 problems 3 and 4, Final problems 2 and 3, practice Midterm 2 problems 3 and 4, practice Final problems 7(c) and 7(d)Smith's Prize examination, Cambridge, 1854Ostrogradsky, Demonstration d'un theoreme du calcul integral (1826)
In 6.1 the fundamental theorem of calculus became a statement about a curve: the integral of ∇f along a path is the change of f between its ends. Green’s theorem (6.4) was the next step: the circulation around a loop is the spin inside it. This chapter takes both steps into space. A loop that is the edge of a curved surface, and a closed surface that is the skin of a solid, each get a theorem. The first is Stokes’ theorem and the second is the divergence theorem, also called Gauss’s theorem. They are what Maxwell’s equations are written with (6.8), and they are the end of Unit 6 in MATH 376.
Before you start
6.4: Green’s theorem. 6.5: flux, and ndS=(ru×rv)dudv with a sign check. 5.5: mixed partials of a C2 function are equal. 6.2: the line integral of a gradient around a closed path is 0.
Quick checkGreen's theorem for a positively oriented Jordan curve C bounding R says ∮CPdx+Qdy equals which integral over R?
It is the spin density Qx−Py. The version with a plus sign and x, y derivatives of the matching components is the divergence form, which comes up in this chapter as well, but it is a different statement.Review: Green's theorem
Quick checkIn a flux integral through a surface parametrized by r(u,v), which expression stands for ndS when ru×rv points the way n does?
Quick checkFor a C2 function f, what is ∂y(fz)−∂z(fy)?
Both terms are the mixed second partial fzy=fyz (equal because f is C2), so the difference is 0. This single fact is behind curl grad =0 below.Review: equality of mixed partials
The picture: a wheel in the flow, and a skin round a solid
Start with the rotation field and press Play: the wheel turns at the rate the curl predicts. Switch to the shear field (y,0,0). Every arrow points the same way and nothing circles the origin, but the wheel turns, because the flow is faster at the top of the wheel than at the bottom. Then choose the vortex: the flow circles the origin and the wheel does not turn. So curl does not mean ‘the field goes round something’. It means ‘a small wheel at this point would spin’. Last, choose the layers field and tilt the axis: the spin is the dot product of the curl with the axis.
The torus with F=(x,y,z): the arrows leave the whole surface and the flux is 6π2Ra2, which is three times the volume of the solid. That is the divergence theorem for this field, because divF=3.
The idea, in words
Look at a tiny cube in a flowing fluid. Count what leaves through the six faces minus what enters through the opposite faces. On the faces perpendicular to the x axis the net outflow is (P(x+Δx)−P(x))ΔyΔz≈PxΔxΔyΔz. Do the same for the other two directions and the net outflow per unit volume is Px+Qy+Rz, the divergence. Now take a tiny circle in a plane and add up the part of the field along it. On a small square in the xy-plane the circulation is (Q(x+Δx)−Q(x))Δy−(P(y+Δy)−P(y))Δx≈(Qx−Py)ΔxΔy, the curl in the z direction. Big surfaces and big solids are built from tiny squares and cubes. On each piece the circulation (or the flux) equals the local density times the size. When you add the pieces, the edges (or faces) inside cancel in pairs, and only the outer boundary survives. That is the entire content of both theorems.
Why· Why the inner edges cancel
Two neighbouring squares share an edge. One walks it left to right, the other right to left, so the line integrals along that edge are negatives of each other. Two neighbouring cubes share a face. One has the outward normal pointing into the other, so the flux through the shared face counts + for one cube and − for the other. Everything that is not on the outer boundary cancels. This is the same cancellation as in the telescoping sum (f(x1)−f(x0))+(f(x2)−f(x1))+⋯=f(xn)−f(x0), which is why these theorems are the fundamental theorem of calculus in higher dimensions.
Where this came from· Stokes' theorem: a letter, an exam question, a footnote
In a letter of July 1850 William Thomson, later Lord Kelvin, told George Stokes about the relation between the line integral around a loop and the surface integral over a surface it bounds. Stokes put it as question 8 in the Smith’s Prize examination at Cambridge in February 1854, a competitive examination for the best mathematics students of the university. James Clerk Maxwell sat that examination and was placed joint first. When Maxwell printed the theorem in his Treatise on Electricity and Magnetism (1873) he added a footnote saying that Stokes had used it as that examination question, and that footnote is the usual explanation of why it carries Stokes’ name, although the idea came to Stokes from Thomson. Neither Thomson nor Stokes published a proof; the first published proof is attributed to Hermann Hankel in 1861, in a work on the general theory of fluid motion. What the theorem says is what 6.8 uses it for: the circulation of a field around a loop equals the flux of its curl through any surface the loop bounds.
Where this came from· The divergence theorem: Lagrange, Gauss, Ostrogradsky
Lagrange had a special case in 1762, in his work on fluid mechanics. Around 1813 Gauss met surface integrals while studying the attraction of an ellipsoid, and proved special cases of the theorem, adding more in 1833 and 1839. The first proof of the general theorem is usually credited to the Russian mathematician Mikhail Ostrogradsky, who presented it to the Paris Academy of Sciences in 1826 as part of his work on the flow of heat (it was printed a few years later). Green found the planar analogue in 1828. Today it is called the divergence theorem, or the Gauss theorem, or the Gauss and Ostrogradsky theorem, depending on the book. The shape of the problem is the one in the heat chapter 6.8: how much heat leaves a body is the total of the heat produced inside it.
Curl and divergence
Name the components of a vector field F=(P,Q,R), not Fx,Fy,Fz: the subscript x looks like a partial derivative and invites errors. Write Py for ∂P/∂y and so on. The symbol ∇=(∂x,∂y,∂z) is a vector whose entries are derivative operators; it has no meaning alone, but it combines with F the way a vector would.
Definition T
Curl
The curl of a differentiable vector field F=(P,Q,R) is the vector field
It is the cross product formula of 6.5 with ∂x,∂y,∂z in the place of a1,a2,a3 and P,Q,R in the place of b1,b2,b3. So the middle component has the flipped sign: Pz−Rx, not Rx−Pz. The third component Qx−Py is the integrand of Green’s theorem.
In one lineFor F=(P,Q,R), curlF=∇×F=(Ry−Qz,Pz−Rx,Qx−Py): a vector field that records how much, and about which axis, F spins at each point.
Why it existsIt is the spin density of the field: the circulation per unit area around a tiny loop, so it is what Stokes' theorem integrates.
Definition T
Divergence
The divergence of F=(P,Q,R) is the scalar field divF=∇⋅F=∂x∂P+∂y∂Q+∂z∂R. It is positive where the field spreads out (a source) and negative where it gathers (a sink).
In one lineFor F=(P,Q,R), divF=∇⋅F=Px+Qy+Rz: a scalar field that records how much F spreads out from each point.
Why it existsIt is the net outflow per unit volume, so it is what the divergence theorem integrates.
Definition T
Vorticity
For a velocity field of a fluid the curl is called the vorticity. A rigid rotation with angular velocity ω has vorticity 2ω.
In one lineThe vorticity of a velocity field v is curlv.
Why it existsIt is the name fluid dynamics gives to the curl, and it is zero exactly when the flow has no local spin.
Definition T
Irrotational field
A field with curlF=0 everywhere is irrotational. By the identity below every gradient field is irrotational; on a simply connected domain such as all of R3 every irrotational field is a gradient (Apostol, label A), and then the fluid flow is called a potential flow.
In one lineA field with curl 0 everywhere on its domain. A flow with this property is called a potential flow.
Why it existsOn a simply connected domain these are exactly the gradient fields, so the name tells you a potential exists.
Definition T
Solenoidal field
A field with divF=0 everywhere is solenoidal (or divergence-free). A fluid whose velocity field is solenoidal is incompressible, and the magnetic field B is solenoidal (6.8).
In one lineA field with divergence 0 everywhere on its domain; a flow with this property is incompressible.
Why it existsIt means no net source or sink anywhere: whatever flows into a region flows out, the property of an incompressible fluid and of the magnetic field.
Definition A
Laplacian
The Laplacian of a C2 scalar field f is ∇2f=div(∇f)=fxx+fyy+fzz. A function with ∇2f=0 is called harmonic.
In one lineFor a scalar field f the Laplacian is ∇2f=div∇f=fxx+fyy+fzz.
Why it existsIt is the divergence of the gradient, and the operator in the heat equation and in Poisson's equation (6.8).
Worked example MATH 376 worksheet 13 problems 1, 2 and 7
Compute the divergence of F=(exsiny,excosy,z2), and the curl of F=(x2,y2,z2) and of F=(−y,x,z).
Solution.
Name the components of the first field.P=exsiny, Q=excosy, R=z2. Names first, then derivatives; Fx would clash with a partial derivative.
Differentiate.Px=exsiny, Qy=−exsiny, Rz=2z. The derivative of cosy in y is −siny.
Add.divF=exsiny−exsiny+2z=2z.
Curl of (x2,y2,z2).Ry−Qz=0−0, Pz−Rx=0−0, Qx−Py=0−0. Each component depends on one variable only, so every cross derivative vanishes. So the curl is 0, and indeed F=∇3x3+y3+z3.
Curl of (−y,x,z).Ry−Qz=0−0=0, Pz−Rx=0−0=0, Qx−Py=1−(−1)=2. ∂xx=1 and ∂y(−y)=−1.
Answer.divF=2z; the curl of (x2,y2,z2) is 0; the curl of (−y,x,z) is (0,0,2).
Worked example MATH 376 worksheet 28 problem 8; worksheet 14 problems 1 and 2
Find the curl and divergence of F=(yz,xz,xy), the vorticity of the velocity field v=(yz,xz,xy+z2), and the divergence of the heat flow q=−∇T for T=x2+y2+z2.
Solution.
Curl of F. With P=yz, Q=xz, R=xy: Ry−Qz=x−x=0, Pz−Rx=y−y=0, Qx−Py=z−z=0. So curlF=0.
Divergence of F.Px+Qy+Rz=0+0+0=0. yz has no x, xz no y, xy no z. (This F is ∇(xyz), and xyz is harmonic.)
Vorticity of v. The same three differences for R=xy+z2: Ry−Qz=x−x=0, Pz−Rx=y−y=0, Qx−Py=z−z=0. The vorticity is 0: a potential flow, with v=∇(xyz+z3/3).
Heat flow.∇T=(2x,2y,2z), so q=(−2x,−2y,−2z) and divq=−2−2−2=−6. Negative divergence means the flow gathers: heat flows in toward each point, a sink.
Answer. curl 0 and div 0; vorticity 0; divq=−6.
Your answerLet F=(x2y,yz2,xz). What is divF at the point (1,2,3)?
Differentiate x2y in x, yz2 in y and xz in z, then substitute.
Px=2xy=4, Qy=z2=9, Rz=x=1, so divF=4+9+1=14 at (1,2,3).
Quick checkWhat is the second component of curl(P,Q,R)?
It is the middle term of the determinant, which carries a minus sign from the cofactor expansion: −(Rx−Pz)=Pz−Rx. Check with F=(z,0,0): it should spin about the y axis, and Pz−Rx=1.
Identities
Theorem TMATH 376 lecture of 2 March, Lemma 5.13; homework 5 problem 5; Apostol 12.12 and 12.14
Identities for curl and divergence
Let F,G be C1 vector fields, f a C1 function, and a,b numbers. Then div(aF+bG)=adivF+bdivG and the same for curl, and the product rules hold. If F is C2 then divcurlF=0, and if f is C2 then curl∇f=0.
In one lineCurl and divergence are linear; div(curlF)=0 for C2 fields; curl(∇f)=0 for C2 functions; div(fF)=fdivF+∇f⋅F and curl(fF)=fcurlF+∇f×F.
Why it is trueThe two zero identities explain why potentials have no spin and why a magnetic field has no source, and the product rules are used to compute with fields.
The hypothesis C2 matters: the two zero identities use the equality of mixed partials (5.5), which needs continuous second partials. Without it the cancellation can fail at a point.
ProofMATH 376 homework 5 problem 5; lecture Lemma 5.13
The idea: Expand, group the terms by function, and see that every second derivative appears twice with opposite signs, as a pair of mixed partials.
curlF=(Ry−Qz,Pz−Rx,Qx−Py).
Definition of the curl of F=(P,Q,R).
divcurlF=∂x(Ry−Qz)+∂y(Pz−Rx)+∂z(Qx−Py).
Definition of the divergence, applied to the three components of the curl.
=Ryx−Qzx+Pzy−Rxy+Qxz−Pyz.
Differentiate each term; Ryx means ∂x(∂yR).
=(Ryx−Rxy)+(Pzy−Pyz)+(Qxz−Qzx).
Regroup so that each bracket has the same function.
=0+0+0=0.
Equality of mixed partials: each bracket is two mixed partials of one C2 function.This is the step that uses C2.
curl∇f=(fzy−fyz,fxz−fzx,fyx−fxy).
For curl∇f, take P=fx, Q=fy, R=fz in the curl formula.
=(0,0,0).
Equality of mixed partials again.The two zero identities are the same fact. In 6.7 they will both be 'd squared is zero'.
Product rule for the divergence: ∂x(fP)=fPx+fxP, and similarly for y and z.
The bracket fyR−fzQ is the first component of ∇f×F=(fyR−fzQ,fzP−fxR,fxQ−fyP), and the other two components are the same with the letters cycled. So curl(fF)=fcurlF+∇f×F. ■
The same product rule in the first component of curl(fF): ∂y(fR)−∂z(fQ)=f(Ry−Qz)+(fyR−fzQ).Linearity of div and curl is the same kind of remark: each partial derivative of aP1+bP2 is a times one plus b times the other, so each component of div and curl is linear. Problem 'Prove that div and curl are linear' at the end writes it out.
Worked example new (identities, MATH 376 lecture Lemma 5.13)
Check the product rule div(fF)=fdivF+∇f⋅F for f=xyz and F=(x,yz,z2).
Solution.
Left side.fF=(x2yz,xy2z2,xyz3), and ∂x(x2yz)=2xyz, ∂y(xy2z2)=2xyz2, ∂z(xyz3)=3xyz2. So div(fF)=2xyz+5xyz2.
Right side, first term.divF=1+z+2z=1+3z, so fdivF=xyz+3xyz2.
Right side, second term.∇f=(yz,xz,xy), so ∇f⋅F=xyz+xyz2+xyz2=xyz+2xyz2.
Compare.xyz+3xyz2+xyz+2xyz2=2xyz+5xyz2.
Answer. Both sides are 2xyz+5xyz2.
Worked example MATH 376 homework 5 problem 4 (the cross product part) and new (vector potentials; compare Apostol 12.15 exercise 5 and 12.16)
Is there a field A with curlA=(x,y,−2z)? What about (x,y,z)? Is there a vector v with (1,2,1)×v=(3,1,5)?
Solution.
Test the divergence.div(x,y,−2z)=1+1−2=0, but div(x,y,z)=3=0. If G=curlA then divG=divcurlA=0. So (x,y,z) is not a curl.
Find A for the first. Try A=(P,Q,0). We need −Qz=x, Pz=y, Qx−Py=−2z. So Q=−xz, P=yz, and then Qx−Py=−z−z=−2z. Choose the third component of A to be 0 and integrate in z.
Check.A=(yz,−xz,0) has Ry−Qz=0+x=x, Pz−Rx=y−0=y, Qx−Py=−z−z=−2z.
The cross product question.(1,2,1)×v is orthogonal to (1,2,1) for every v, but (1,2,1)⋅(3,1,5)=3+2+5=10=0. So no such v exists. The same shape as the field question: a curl has divergence zero, a cross product is orthogonal to its factors.
Answer.(x,y,−2z) is the curl of (yz,−xz,0); (x,y,z) is not a curl; no such v.
Beyond the course: for understanding· The converse: when is a field with curl zero a gradient?
The converses of the two zero identities are true on a nice domain (label A/B). On a star-shaped domain such as all of R3 or a ball: curlF=0 implies F is a gradient, and divG=0 implies G is a curl. The domain matters. The field F=x2+y2(−y,x,0) on R3 minus the z-axis has curlF=0, but its circulation around the unit circle in z=0 is ∫02π(sin2t+cos2t)dt=2π=0, so it is not a gradient (this is homework 5 problem 4.1: the answer to ‘curl zero implies conservative?’ is false). The field G=(x,y,z)/ρ3 on R3 minus the origin, with ρ=x2+y2+z2, has divG=0, but its flux out of the unit sphere is 4π (shown below), whereas the flux of a curl through a closed surface is always 0 (also below). So G is not a curl, although its divergence is zero. Holes in the domain are what stops the converses, and counting them is what 6.7 and a course in topology do.
Stokes’ theorem
We need to say which way round the edge of the surface goes, given which side of the surface is called positive.
Definition T
Induced orientation
Let S be an oriented surface with boundary curve ∂S. The induced orientation of ∂S is the one for which, if you walk along ∂S with your head pointing along n, the surface S is on your left. Equivalently: right-hand fingers along ∂S, thumb along n. For a flat region in the xy-plane with n=(0,0,1) this is the counterclockwise direction seen from above, the positive orientation of Green’s theorem.
In one lineIf S is an oriented surface with unit normal n, its boundary curve ∂S is given the direction for which, walking along it with your head pointing in the direction of n, the surface is on your left. This is the right-hand rule: curl the fingers of the right hand along ∂S and the thumb points along n.
Why it existsThe line integral on the left of Stokes' theorem changes sign with the direction of travel and the surface integral on the right changes sign with n; this rule makes the two signs agree.
Let r:T→S be a smooth one-to-one parametrization of a surface S, where T is bounded by a piecewise smooth Jordan curve Γ. Let C=∂S=r(Γ) be the boundary curve, oriented as the image of Γ traversed counterclockwise, and n the unit normal with which it is compatible (the induced orientation). Let F be a vector field of class C1 on an open set containing S. Then
The lecture states it with C2; the textbook needs only C1. The last equality holds when ru×rv points the way n does, by the flux theorem.
In one lineIf S is a piecewise smooth oriented surface whose boundary curve ∂S carries the induced orientation and F is C1 on an open set containing S, then ∮∂SF⋅dr=∬S(curlF)⋅ndS.
Why it is trueIt turns a line integral around a loop into a surface integral over any surface the loop bounds (or the reverse), whichever is easier, and it is Green's theorem for surfaces in space.
What fails without each hypothesis, one by one.
Hypothesis
Why it is needed
What goes wrong without it
S is orientable with a continuous n
The right side needs one unit normal at each point
The Moebius strip has no such n
∂S is a piecewise smooth, closed curve
The left side is a line integral over a closed curve
An open curve bounds no surface in this sense
∂S is oriented compatibly with n
It fixes the sign of the left side
The two sides differ by a minus sign
F is C1 at every point of S, the inside included
The proof differentiates F across the whole surface
The example below
For the last row, take F=x2+y2(−y,x,0), which is not defined on the z-axis, and curlF=0 where it is defined. Its circulation around the unit circle in z=0 is 2π. The upper unit hemisphere has this circle as its boundary, and ∬curlF⋅ndS=0. The two sides disagree, because the hemisphere meets the z-axis at (0,0,1) where F is not defined. This is the same failure as for Green’s theorem on the punctured plane in 6.4.
Why it is true: the proof for a graph
ProofMATH 376 lecture of 2 March (the affine case and a tiling argument); the same idea is Apostol 12.11
The idea: Write the line integral over the boundary of the surface as a line integral in the xy-plane, using that z depends on x and y along the curve. Apply Green's theorem there. Differentiate with the chain rule, and watch the terms with second derivatives of g cancel. What is left is the dot product of the curl with the normal (-g_x, -g_y, 1).
The boundary C of S is the image of ∂D under (x,y)↦(x,y,g(x,y)), with ∂D run counterclockwise.
Setup: S is the graph z=g(x,y) over a region D bounded by a piecewise smooth Jordan curve, with g of class C2 and the upward normal; F=(P,Q,R) is C1, and P,Q,R below are evaluated at (x,y,g(x,y)).Orientation check, which is where signs go wrong. The upward normal and the right-hand rule make C run counterclockwise as seen from above. The map (x,y)↦(x,y,g) does not change the x and y coordinates, so ∂D must be run counterclockwise too, which is the positive orientation Green's theorem needs.
Flux formula of 6.5: ndS=(−gx,−gy,1)dxdy for the upward normal of a graph.
∮CF⋅dr=∮∂D(P+Rgx)dx+(Q+Rgy)dy.
Along C we have z=g(x,y), hence dz=gxdx+gydy (chain rule), so Pdx+Qdy+Rdz becomes a form in dx and dy alone.
=∬D[∂x(Q+Rgy)−∂y(P+Rgx)]dxdy.
Green's theorem (6.4) on D, applied to the C1 pair p=P+Rgx and q=Q+Rgy (this is where g∈C2 is used).
∂x(Q+Rgy)=Qx+Qzgx+(Rx+Rzgx)gy+Rgyx and ∂y(P+Rgx)=Py+Pzgy+(Ry+Rzgy)gx+Rgxy.
Chain rule for functions of (x,y,g(x,y)): for instance ∂x[Q(x,y,g)]=Qx+Qzgx.
The difference is (Qx−Py)+(Qz−Ry)gx+(Rx−Pz)gy.
Subtract. The terms Rgyx and Rgxy cancel because mixed partials of g are equal, and the terms Rzgxgy cancel.This cancellation is the same cancellation as in 'curl of a gradient is zero'.
=−(Ry−Qz)gx−(Pz−Rx)gy+(Qx−Py), so the two sides are equal. ■
Compare with the second line: the integrands are the same.
Proof workshopRebuild the proof of Stokes' theorem for a graphMATH 376 lecture of 2 March; Apostol 12.11
Tap the lines in the order a proof would write them. Each line can only use what is already above it.
Dot the curl with the normal of the graph, which is minus g sub x, minus g sub y, one.
Start with the right-hand side: you need its integrand before anything can be compared.
Along the curve z is a function of x and y, and the chain rule gives its differential.
Write down both sides before you transform one of them.
Green's theorem for the planar line integral over the boundary of D.
You need the line integral written as a planar one first.
The chain rule for a function of x, y and g of x and y, giving extra terms with z derivatives times g sub x or g sub y.
The Green integrand must be written down before you can differentiate it.
Mixed partials of g are equal, and the two R sub z terms are identical products.
You need the differentiated expression first.
Collect the surviving terms and compare with the first line.
Finish the cancellation first.
Why· The picture behind the proof, and the general surface
Project the surface straight down onto the xy-plane. The boundary curve of S projects to the boundary of D, and Green’s theorem lives on D. The surface’s slope enters through gx and gy: they are exactly the components of the normal that tilt the flat spin Qx−Py into the spin about the tilted normal. A general surface is cut into pieces, each a graph over some plane. On each piece the theorem holds by the argument above, and the inner edges cancel in pairs because neighbouring pieces traverse them in opposite directions (the ‘why the inner edges cancel’ box). The lecture’s own proof does the same with tiny affine pieces: for a field that is a linear function and a surface that is a linear graph both sides are constants times the area, and then the general case is a limit of sums.
Worked example MATH 376 lecture of 2 March, Example 5.14 (the affine case of the lecture's proof)
Check Stokes' theorem for the field F=(a1x+a2y+a3z,0,0) on the linear graph S={(u,v,b1u+b2v):(u,v)∈T}, where T is a rectangle.
Solution.
Curl.P=a1x+a2y+a3z, Q=R=0, so curlF=(Ry−Qz,Pz−Rx,Qx−Py)=(0,a3,−a2). Only the derivatives of P in z and y survive.
Surface side. The graph normal is N=(−b1,−b2,1), pointing up, so (curlF)⋅N=−a3b2−a2, a constant. The surface integral is −(a2+a3b2)area(T).
Line side, set up. Only Pdx is non-zero, and on S we have x=u, y=v, z=b1u+b2v, so P=(a1+a3b1)u+(a2+a3b2)v. The boundary of S is the image of the boundary of T run counterclockwise, and dx=du along it.
Line side, evaluate.∮∂Tudu=0 because udu is the exact differential of u2/2. And ∮∂Tvdu=−area(T) by Green’s theorem with P=v, Q=0, where Qu−Pv=−1. So the line integral is −(a2+a3b2)area(T).
Answer. Both sides equal −(a2+a3b2)area(T). The lecture’s proof does this computation for affine fields on linear pieces, which is all you need on a tiny patch where F and the surface look affine, then adds the patches: the inner edges cancel in pairs and the outer edge is left.
How to use Stokes’ theorem
The exam standard for ‘use Stokes to compute’ is to name every object. Quoting the theorem and writing the determinant for the curl is only the first two lines.
Why· Full-credit template for 'use Stokes' theorem to compute'
Name the surface S: give an equation and the parameter region. Choose the simplest surface with boundary C (usually the flat disc or polygon).
Name the normal n: give its components.
Name the boundary and its direction: check the right-hand rule. Walking along C with your head along n, S must be on your left.
Name the fieldF=(P,Q,R) with the component formulas.
State the hypotheses and check them:S orientable and piecewise smooth, C its boundary, F of class C1 on an open set containing all of S, not only C.
Compute the curl of the full field, component by component, writing each partial derivative.
DotcurlF with n.
Integrate over S with the right dS or ndS, showing antiderivatives.
Conclude in a sentence.
Worked example MATH 376 Midterm 2 problem 3, 5 points; see [A.3](/vol2/a3-midterm-2/)
Use Stokes' theorem to compute ∮CF⋅dα for F(x,y,z)=(y,−x,z2) and C the circle x2+y2=4 in the plane z=0, counterclockwise when viewed from above.
Solution.
Surface.S={(x,y,0):x2+y2≤4}, the flat disc of radius 2. It is the simplest surface with boundary C.
Normal.n=(0,0,1). Counterclockwise from above and the right-hand rule: thumb up.
Boundary.∂S=C, counterclockwise from above, matching the problem.
Field.P=y, Q=−x, R=z2; all are polynomials, so F is C1 on R3 and Stokes’ hypotheses hold on any surface.
Curl.Ry−Qz=∂y(z2)−∂z(−x)=0; Pz−Rx=∂z(y)−∂x(z2)=0; Qx−Py=−1−1=−2. So curlF=(0,0,−2).
Dot.(curlF)⋅n=−2.
Integrate.∮CF⋅dα=∬S(−2)dS=−2area(S)=−2⋅4π=−8π.
Check by the line integral.α(t)=(2cost,2sint,0), α′=(−2sint,2cost,0), F(α)=(2sint,−2cost,0), F⋅α′=−4sin2t−4cos2t=−4, and ∫02π(−4)dt=−8π. Both ways agree.
Answer.−8π.
Worked example MATH 376 practice Midterm 2 problem 3; see [A.5](/vol2/a5-practice-exams/). Worksheet 14 problem 5 is the same with vertices $(3, 0, 0)$, $(0, 3, 0)$, $(0, 0, 3)$ and gives $\frac{27}2$; homework 6 problem 1 is the field $(yz, xz, xy)$ and gives $0$.
Use Stokes' theorem for ∮C(z,x,y)⋅dα, where C is the boundary of the triangle with vertices (1,0,0), (0,1,0), (0,0,1), oriented counterclockwise as viewed from the direction of (1,1,1).
Solution.
Surface.S is the triangle in the plane x+y+z=1, a graph z=1−x−y over D={x,y≥0,x+y≤1}. Each vertex satisfies x+y+z=1.
Normal.N=(−gx,−gy,1)=(1,1,1), pointing toward the viewer at (1,1,1). Right-hand rule: counterclockwise as seen from (1,1,1) matches a normal that points toward that viewer.
Curl.P=z, Q=x, R=y: Ry−Qz=1, Pz−Rx=1, Qx−Py=1, so curlF=(1,1,1).
Dot and integrate.ndS=NdA, so (curlF)⋅N=3 and ∬D3dA=3⋅21=23.
Check along the three edges.(1,0,0)→(0,1,0): α=(1−t,t,0), F=(0,1−t,t), F⋅α′=1−t, integral 21. The other two edges give 21 each by symmetry. The sum is 23.
Answer.23. With vertices (3,0,0), (0,3,0), (0,0,3) the base D has area 29, so the answer is 3⋅29=227. With F=(yz,xz,xy) the curl is 0 (every component is z−z or similar), so the circulation is 0.
Worked example MATH 376 worksheet 13 problem 8 and worksheet 27 problem 10
Use Stokes' theorem for ∮CF⋅dα with F=(−y,x,z) and C the unit circle x2+y2=1 at height z=0 and at height z=3, counterclockwise from above.
Solution.
Curl.curlF=(0,0,2) from the example above. It does not depend on z.
Surface. The flat unit disc in the plane of the circle, with n=(0,0,1).
Dot and integrate.(curlF)⋅n=2, and ∬S2dS=2π.
Check.α=(cost,sint,3), α′=(−sint,cost,0), F⋅α′=sin2t+cos2t=1, integral 2π.
Answer.2π at both heights. The third component of F is orthogonal to α′ on a horizontal circle, so it does not matter.
Worked example new (choosing the surface; two surfaces with the same boundary)
Let F=(y,z,x) and C the unit circle in the plane z=0, counterclockwise from above. Compute ∮CF⋅dr using (a) the flat disc and (b) the paraboloid z=1−x2−y2, z≥0, as the surface.
Solution.
Curl.P=y, Q=z, R=x: Ry−Qz=0−1, Pz−Rx=0−1, Qx−Py=0−1. So curlF=(−1,−1,−1).
(a) The disc.n=(0,0,1), (curlF)⋅n=−1, and the integral is −π.
(b) The paraboloid. It is the graph of g=1−x2−y2 over the unit disc with the upward normal N=(2x,2y,1), and its boundary is the same circle. Same boundary, compatible orientation: upward normal, counterclockwise from above.
(b) Dot.(curlF)⋅N=−2x−2y−1.
(b) Integrate.∬D(−2x−2y−1)dA=−π. By symmetry ∬xdA=∬ydA=0 over the disc, and ∬1dA=π.
Direct check. On C, z=0, so F⋅α′=yx′ and ∮ydx=∫02πsint(−sint)dt=−π.
Answer.−π by all three. Two surfaces with the same boundary give the same flux of the curl, which is why you may replace a curved surface by a flat one.
Worked example MATH 376 lecture of 2 March (Stokes for the hemisphere)
Let F=(−y,x,0). Compute the circulation around the unit circle in the plane z=0, and the flux of curlF through the upper unit hemisphere with outward normal.
Solution.
Circulation.α=(cost,sint,0), F⋅α′=sin2t+cos2t=1, so ∮=2π.
Curl.curlF=(0,0,2).
Hemisphere. The outward N=sinφ(sinφcosθ,sinφsinθ,cosφ) from 6.5, with 0≤φ≤π/2. So (curlF)⋅N=2sinφcosφ.
Integrate.∫02π∫0π/22sinφcosφdφdθ=2π⋅1=2π.
Answer.2π both ways. The boundary of the upper hemisphere with outward normal is the equator traversed counterclockwise from above, as the right-hand rule says.
Worked example MATH 376 worksheet 14 problem 6
Ampere's law: a long straight wire has cross-section the disc of radius 2 and current density J=(0,0,20r), where r is the distance from the axis. Find the circulation of B around the edge of the cross-section, given ∇×B=μ0J.
Solution.
Surface.S is the cross-sectional disc of radius 2, with n=(0,0,1) along the current; its boundary C is the edge, with the induced direction.
Stokes, then Ampere.∮CB⋅dr=∬S(∇×B)⋅ndS=μ0∬SJ⋅ndS.
Dot.J⋅n=20r.
Integrate in polar coordinates.∫02π∫02μ0⋅20r⋅rdrdθ=2πμ0⋅20⋅38=3320πμ0. The extra r is the Jacobian dS=rdrdθ of polar coordinates.
Answer.3320πμ0. The circulation of the magnetic field around the wire equals μ0 times the current through it.
Your answerUse Stokes' theorem to find the circulation of F=(−y,x,z3) counterclockwise around the ellipse 4x2+y2=1 in the plane z=0.
The curl is constant. The area of the ellipse with semi-axes a and b is πab.
curlF=(0,0,2), so with the flat elliptical disc and n=(0,0,1) the circulation is 2⋅area=2⋅π⋅2⋅1=4π.
Quick checkWhich orientation of the boundary circle of the upper hemisphere (outward normal) makes Stokes' theorem true?
Right-hand rule: the thumb points out of the sphere, up at the pole, so the fingers curl counterclockwise as seen from above. Reversing the direction changes the sign of the line integral and not of the surface integral. The same rule for a flat disc: a circle that runs clockwise as seen from above needs the downward normal (0,0,−1).
The mistake of taking the curl of a restricted field
Worked example MATH 376 Final problem 3, 5 points; see [A.4](/vol2/a4-final/) and [A.1](/vol2/a1-what-you-lost-points-on/)
Find ∮CF⋅dα for F=(yzcos(xyz),xzcos(xyz),xycos(xyz)) and C the unit circle in z=0, counterclockwise.
Solution.
Method 1: a gradient.∇sin(xyz)=(yzcos(xyz),xzcos(xyz),xycos(xyz))=F. So F is a gradient field on R3 and the integral around the closed curve C is 0 (6.2).
Method 2: Stokes with the full curl. Write w=xyz. Then Ry=xcosw−x2yzsinw and Qz=xcosw−x2yzsinw, so the first component is 0. In the same way Pz−Rx=0 and Qx−Py=0. So curlF=0 and the flux through the unit disc is 0.
Method 3: directly. On C we have z=0 and α′=(α1′,α2′,0). Substituting after the dot product is safe: F⋅α′=0⋅α1′+0⋅α2′+xy⋅0=0.
Answer.0 by any of the three.
Watch out· Restrict AFTER you differentiate
On the 376 final, a student answered 0, which was correct, but the method was not: they wrote F(x,y,0)=(0,0,xy) and took the curl of that, getting (x,−y,0). The curl contains derivatives in the z direction (Qz and Pz), and a z-derivative needs the values of the field at nearby heights. Setting z=0 first throws them away. The true curl is 0 everywhere, while the restricted curl at (1,1,0) is (1,−1,0). Their answer survived only because the disc in z=0 has n=(0,0,1), which uses only Qx−Py, and x- and y-derivatives are tangent to the plane and survive the restriction. It fails as soon as the normal has an x or y component: for F=(0,z,0) the true curl is (−1,0,0), and the flux through the unit disc in the plane x=0 with n=(1,0,0) is −π, while restricting to z=0 would give F=0 and flux 0. Restrict to a curve or surface only after all derivatives are taken; restricting inside a line integral is safe because no derivative is taken there.
Deducing one theorem from another
Worked example MATH 376 Midterm 2 problem 4(b), 3 points (scored 0.5); see [A.3](/vol2/a3-midterm-2/) and [A.1](/vol2/a1-what-you-lost-points-on/)
Deduce Green's theorem from Stokes' theorem.
Solution.
Hypotheses of Green.D⊂R2 is bounded by a positively oriented piecewise smooth Jordan curve C, parametrized by α(t)=(x(t),y(t)), and (P,Q) is C1 on an open set containing D. What we are given.
Surface.S=D×{0}, the copy of D in the plane z=0, flat and so piecewise smooth, with boundary C×{0}.
Normal.n=(0,0,1). Counterclockwise from above and the right-hand rule: the orientations are compatible.
Field.F(x,y,z)=(P(x,y),Q(x,y),0). Lift the planar field into space with a zero third component. It is C1 on an open set containing S.
The line integral. On C×{0}, dα=(dx,dy,0), so F⋅dα=Pdx+Qdy and ∮C×{0}F⋅dα=∮CPdx+Qdy. The third component drops out.
The curl.R=0 and P,Q do not depend on z, so Ry−Qz=0 and Pz−Rx=0. Hence curlF=(0,0,Qx−Py) and (curlF)⋅n=Qx−Py.
The surface element.S is parametrized by r(x,y)=(x,y,0) with rx×ry=(0,0,1) of length 1, so dS=dxdy.
Apply Stokes.∮CPdx+Qdy=∬S(curlF)⋅ndS=∬D(Qx−Py)dxdy. All hypotheses were checked above. This is Green’s theorem.
Answer. Stokes’ theorem on the flat surface D×{0} with n=(0,0,1) for the field (P,Q,0) is Green’s theorem. ‘Deduce’ means specialize: say what S, n and F are, and compute the curl.
Watch out· Midterm 2 problem 4(b) lost 2.5 of 3 points: quoting is not deducing
On the 376 midterm, a student wrote ∮CF⋅dα=∬ScurlF⋅dS and the determinant for the curl, and then stopped. That is the statement of the theorem, not an argument: the rubric item applied was ‘stated Green’s theorem or Stokes’ theorem, otherwise no helpful steps’. The question said to deduce one theorem from another, and the work is in the specializing: which surface, which normal and why that orientation, which field in which dimension, what the curl of that field is, and what dS is. Also, they used Fx,Fy,Fz for components; writing P,Q,R (or F1,F2,F3) avoids confusion with partial derivatives.
Worked example MATH 376 practice Midterm 2 problem 4(b); see [A.5](/vol2/a5-practice-exams/)
Let a,b∈R2 and P the parallelogram {sa+tb:s,t∈[0,1]}. Deduce from Stokes' theorem that its signed area is det(a,b).
Solution.
Setup. Write a=(a1,a2), b=(b1,b2), D=a1b2−a2b1. Embed P in the plane z=0 with n=(0,0,1).
Choose a field with curl (0,0,1).F=(−2y,2x,0) has curlF=(0,0,21−(−21))=(0,0,1). Then (curlF)⋅n=1 and the flux is the area.
Stokes.area(P)=∬P1dS=∮∂PF⋅dr, with ∂P traversed 0→a→a+b→b→0, which is counterclockwise when D>0.
Side 1 (r=ta): F⋅r′=−2ta2a1+2ta1a2=0. Side 4 (r=(1−t)b, r′=−b) is 0 in the same way, because F is perpendicular to the position vector.
Side 2 (r=a+tb, r′=b): F⋅r′=2−(a2+tb2)b1+(a1+tb1)b2=2a1b2−a2b1=2D. The terms with t cancel.Side 3 (r=(1−t)a+b, r′=−a) also gives 2D.
Add.0+2D+2D+0=D.
Answer. The signed area is det(a,b): positive if the traversal is counterclockwise, negative if clockwise, and 0 if a and b are parallel.
What curl means, now proved
Proposition BApostol 12.12 (curl and rotation); the paddle-wheel picture
Curl is circulation per unit area
Let F be C1 near p and n a unit vector. Let Dε be the flat disc of radius ε with centre p perpendicular to n, and Cε=∂Dε with the induced orientation. Then ε→0limπε21∮CεF⋅dr=(curlF)(p)⋅n.
In one lineFor a C1 field F, a point p and a unit vector n, the circulation of F around the circle of radius ε about p in the plane perpendicular to n (counterclockwise from the tip of n), divided by its area πε2, tends to (curlF)(p)⋅n as ε→0.
Why it is trueIt is the definition-free meaning of curl, and the reason the paddle wheel turns at half of the curl along its axis.
ProofApostol 12.12
The idea: Stokes turns the circulation into a flux of the curl, and a continuous function over a small disc is close to its value at the centre.
∮CεF⋅dr=∬Dε(curlF)⋅ndS.
Stokes' theorem on the flat oriented disc Dε with normal n.
Then ∬Dε[(curlF)⋅n−(curlF)(p)⋅n]dS≤ηπε2.
The curl is continuous because F is C1: given η>0 there is ε0 with ∣(curlF)(q)⋅n−(curlF)(p)⋅n∣<η for q∈Dε, ε<ε0.
So πε21∮CεF⋅dr−(curlF)(p)⋅n≤η for all small ε. ■
The integral of the constant (curlF)(p)⋅n over the disc is that constant times the area πε2.
This is why the wheel in the picture at the top spins at half of curlF⋅n (the rim moves at the average of the field on the rim, so the angular speed is the circulation divided by the rim length 2πε and by the radius ε, giving circulation per area over 2), and why the curl is largest along the axis in which the circulation density is largest. The curl vector points along the axis of fastest rotation, and its length is that rotation rate (twice the angular speed).
The divergence theorem
Definition T
Solid region
A solid regionE⊂R3 is a bounded set with non-empty interior whose boundary ∂E is a piecewise smooth surface. A ball, a cube, the region under a paraboloid and a torus (the doughnut, not only the skin) are solid regions.
In one lineA bounded region E of space with non-empty interior whose boundary ∂E is a piecewise smooth surface.
Why it existsIt is the shape the divergence theorem integrates over: a body with a skin.
Definition T
Closed surface
A surface is closed if it has no boundary curve: it encloses a solid. A sphere, a torus and the surface of a cube are closed; a hemisphere, a bowl and a cube with its top removed are not. (In 4.1 ‘closed set’ means that the set contains its boundary points, which is a different use of the word.)
In one lineA surface without a boundary curve of its own, such as the boundary of a solid region: a sphere, the surface of a cube or a torus. An open surface such as a bowl or a cube without a lid has a boundary curve.
Why it existsStokes' theorem is about surfaces with an edge and the divergence theorem about surfaces without one, and mixing them up is a common error (practice Final 7(d)).
Theorem TMATH 376 lecture of 4 March, Theorem 5.16; Midterm 2 problem 4(a); Apostol 12.19
The divergence theorem
Let E⊂R3 be a solid region whose boundary S=∂E is a closed, orientable, piecewise smooth surface, and let n be the outward unit normal. Let F be C1 on an open set containing E. Then ∬SF⋅ndS=∭EdivFdV. (The lecture states it with C2.)
In one lineIf E is a solid region with boundary a closed piecewise smooth surface S=∂E with outward unit normal n, and F is C1 on an open set containing E, then ∬SF⋅ndS=∭EdivFdV.
Why it is trueIt trades a flux through a closed surface for a volume integral of the divergence (or the reverse), and it says that what a field produces inside a body is what leaves through its skin.
Midterm 2 problem 4(a) asked only for this statement, and the marks were for the hypotheses: a solid region, a closed piecewise smooth boundary, the outward normal, and a C1 field on a neighbourhood of all of E. What fails without each one:
Hypothesis
What goes wrong without it
S is closed and bounds a solid
An open surface (a cube without a lid) has no solid inside it. Take F=(0,0,1) and the upper unit hemisphere: divF=0, but the flux is π. Close it first.
outward normal
With the inward normal, the left side changes sign.
F is C1 on all of E, the inside included
F=r/ρ3 has divergence 0 away from the origin and flux 4π out of the unit sphere, because it is not defined at the origin.
Why it is true: the proof for a standard region
ProofApostol 12.19; MATH 376 lecture of 4 March (the affine case on a box)
The idea: Do the third component of the field alone, in the z direction: the fundamental theorem of calculus in z turns the volume integral into a difference of values of R on the top and bottom, and that difference is exactly the flux of (0, 0, R) through the top and bottom. The first two components are the same with the axes renamed.
A standard region is of this form in all three directions, and a box is the simplest case (g1 and g2 constant).
Setup: E={(x,y,z):(x,y)∈D,g1(x,y)≤z≤g2(x,y)} for a region D and continuous, piecewise C1 functions g1≤g2, and the field (0,0,R) with R of class C1.
Fubini (6.3) with z innermost, then the fundamental theorem of calculus in z.
The flux of (0,0,R) through the top is ∬DR(x,y,g2)dA.
The top is the graph of g2 with the upward (outward) normal, ndS=(−g2x,−g2y,1)dA (6.5); the dot product with (0,0,R) keeps only the 1.
The flux through the bottom is −∬DR(x,y,g1)dA.
The bottom is the graph of g1 and outward means downward, so ndS=−(−g1x,−g1y,1)dA.
The flux through the side wall is 0.
The side wall is vertical, so its outward normal is horizontal and (0,0,R)⋅n=0.
So ∬S(0,0,R)⋅ndS=∭ERzdV.
Add the three fluxes and compare with the second line.If the region is not of this form, cut it into pieces that are; the shared faces carry opposite normals and cancel.
∬SF⋅ndS=∭E(Px+Qy+Rz)dV. ■
Repeat with x innermost for the field (P,0,0) and with y innermost for (0,Q,0), which a standard region allows, and add the three results.
Proof workshopGive the reason for each line: the divergence theorem for the z componentApostol 12.19
Each line of the proof is shown in order. Choose the reason that justifies it, then press Check.
∭ERzdV=∬D(∫g1(x,y)g2(x,y)Rzdz)dA.
=∬D[R(x,y,g2)−R(x,y,g1)]dA.
The flux of (0,0,R) through the top surface z=g2 is ∬DR(x,y,g2)dA.
The flux through the bottom surface z=g1 is −∬DR(x,y,g1)dA.
The flux through the vertical side wall is 0.
So ∬S(0,0,R)⋅ndS=∭ERzdV.
Worked example MATH 376 lecture of 4 March, Example 5.15
Check the divergence theorem on the box V=[a1,b1]×[a2,b2]×[a3,b3] for F=(αx+βy+γz,0,0).
Solution.
Volume side.divF=α, a constant, so ∭VαdV=αVol(V).
Four faces contribute nothing. The faces with normals ±e2 and ±e3 have F⋅n=0, because F points along e1, which is orthogonal to those normals.
The two remaining faces. The face x=b1 has n=e1 and the face x=a1 has n=−e1. Parametrize both by (y,z) in the rectangle W=[a2,b2]×[a3,b3]. The flux is ∬W(αb1+βy+γz)dydz−∬W(αa1+βy+γz)dydz.
Cancel. The terms βy+γz are identical in the two integrals and cancel, leaving α(b1−a1)area(W)=αVol(V). Width in x times the area of the face is the volume of the box.
Answer. Both sides are αVol(V). This is the box case of the proof above with the faces written out: the top and bottom of the proof are the faces x=b1 and x=a1 here, and the shared faces of neighbouring small boxes cancel in the general case.
Why· The picture: the torus and the divergence
In the picture at the top of the chapter the torus has flux 6π2Ra2 for F=(x,y,z). Divergence 3 times volume 2π2Ra2. For the field (y,−x,z) the torus flux is 2π2Ra2, because its divergence is 0+0+1=1. For (0,0,1) it is 0: the field enters through the bottom of the torus and leaves through the top in equal measure. Try all four fields on the torus in the picture and compare with divF×volume.
Worked example MATH 376 Midterm 2 problem 4(a), 2 points; see [A.3](/vol2/a3-midterm-2/)
State the divergence theorem, with all hypotheses.
Solution.
Region. Let E⊂R3 be a solid region whose boundary S=∂E is a piecewise smooth closed surface. Hypothesis on the region: ‘solid’ means bounded with an interior, ‘closed’ means no edge.
Orientation. Let n be the outward-pointing unit normal field on S.
Field. Let F be a C1 vector field on an open set containing E. It must be defined and continuously differentiable on all of E, boundary included.
Conclusion. Then ∬SF⋅ndS=∭EdivFdV, where divF=∂xF1+∂yF2+∂zF3.
Answer. The four lines in order: region, orientation, field, conclusion. The same pattern for Stokes’ theorem (practice Midterm 2 problem 4(a)): oriented surface, boundary orientation by the right-hand rule, C1 field, conclusion.
Worked example MATH 376 Final problem 2, 5 points (scored 4); see [A.4](/vol2/a4-final/)
Compute the flux of F=(3x+sin(yz),3y+exz,3z+cos(xy)) through the surface max(∣x∣,∣y∣,∣z∣)=1 with the outward normal.
Solution.
Read the surface.max(∣x∣,∣y∣,∣z∣)=1 means ∣x∣,∣y∣,∣z∣≤1 with at least one equal to 1. The maximum is 1 exactly when no coordinate exceeds 1 in absolute value and one reaches it.
Identify it. It is the surface of the solid cube E=[−1,1]3, side 2, six faces. Sketch it before computing.
Divergence.∂x(3x+sin(yz))=31, ∂y(3y+exz)=31, ∂z(3z+cos(xy))=31. So divF=1. sin(yz) has no x, exz has no y, cos(xy) has no z.
Hypotheses.E is a solid, S=∂E is closed and piecewise smooth (six squares), n is outward, and F is C1 on R3.
Apply.∬SF⋅ndS=∭E1dV=Vol(E)=2⋅2⋅2=8.
Cross-check by faces. On x=1 with n=(1,0,0), F⋅n=31+sin(yz). On x=−1 with n=(−1,0,0), F⋅n=31−sin(yz). The sin(yz) terms cancel when the two faces are added, leaving 2⋅31⋅4=38. The other two pairs of faces also give 38, with exz and cos(xy) cancelling. Total 8.
Answer.8. For max(∣x∣,∣y∣,∣z∣)=2 the answer is 43=64. The trap about this problem is in the Traps section below.
Worked example MATH 376 worksheet 17 problem 4 and worksheet 27 problem 11
Find the flux of F=(2x+y,3y+z,4z+x) out of a closed surface enclosing a solid of volume 10, and the flux of F=(x,y,z) out of the ball of radius R both ways.
Solution.
First field.divF=2+3+4=9, constant. ∂x(2x+y)=2, ∂y(3y+z)=3, ∂z(4z+x)=4.
Apply. The flux is 9⋅10=90.
Ball, by the theorem.div(x,y,z)=3, so the flux is 3⋅34πR3=4πR3.
Ball, directly. On the sphere n=(x,y,z)/R, so F⋅n=R, constant, and the flux is R⋅4πR2=4πR3. Constant F⋅n times the area.
Answer.90 and 4πR3. If the divergence is a constant c, the flux out of any closed surface is c times the enclosed volume.
Worked example MATH 376 homework 6 problems 2 and 3
Use the divergence theorem to find the flux of F=(x3,y3,z3) out of the sphere x2+y2+z2=a2, and of F=(x,y,z) out of the boundary of V={0≤z≤4−x2−y2}.
Solution.
First field, divergence.divF=3x2+3y2+3z2=3ρ2 with ρ2=x2+y2+z2.
Spherical coordinates.dV=ρ2sinφdρdφdθ over the ball: ∫02πdθ∫0πsinφdφ∫0a3ρ2⋅ρ2dρ. The integrand is a product of a function of ρ, a function of φ and a constant in θ, with constant limits, so it splits.
Evaluate.2π⋅2⋅53a5=512πa5.
Second field.divF=3, and V is bounded above by the paraboloid and below by the disc x2+y2≤4 in z=0, so ∂V is closed. In cylindrical coordinates dV=rdzdrdθ: 3∫02π∫02∫04−r2rdzdrdθ=3⋅2π∫02(4r−r3)dr=3⋅2π⋅4=24π.
Answer.512πa5 and 24π (three times the volume 8π).
Your answerUse the divergence theorem to find the outward flux of F=(xy,yz,zx) through the surface of the cube [0,2]3.
By symmetry the three terms of the integral are equal. ∫02xdx=2, and the other two variables each contribute a factor 2.
divF=y+z+x, and ∭[0,2]3(x+y+z)dV=3⋅(∫02xdx)⋅2⋅2=3⋅2⋅4=24.
Your answerFind the outward flux of F=(x,2y,3z) through the sphere of radius 3 centred at the origin.
divF=1+2+3=6, constant, and the ball has volume 34π⋅27=36π. The flux is 6⋅36π=216π.
When the surface is not closed
If S is not closed, add flat pieces S′ so that S∪S′ bounds a solid, apply the theorem, and subtract the flux through S′: flux through S = flux through S∪S′ minus flux through S′ (with the outward normal on all of S∪S′).
Worked example MATH 376 worksheet 14 problem 7
Find the flux of v=(x2,y2,z2) out of the open box 0≤x,y,z≤1 with no lid (the lid is the face z=1).
Solution.
Close it. The full cube [0,1]3 has a closed boundary. divv=2x+2y+2z, and ∭[0,1]3(2x+2y+2z)dV=3⋅2⋅21=3. Each term integrates to 2⋅21⋅1⋅1=1.
The lid. On z=1 the outward normal is (0,0,1) and v⋅n=z2=1, so the flux through the lid is 1⋅area=1.
Subtract. The flux through the open box is 3−1=2.
Answer.2. Gauss does not apply to the open box directly. This is the closing technique.
Worked example new (compare 6.5, where the same flux is computed directly)
Find the upward flux of F=(x,y,z) through the cap z=4−x2−y2, z≥0, by closing it with a disc.
Solution.
Close. The cap and the disc x2+y2≤4 in the plane z=0 bound the solid V under the paraboloid, with outward normal up on the cap and down on the disc.
Volume integral.divF=3 and Vol(V)=∫02π∫02(4−r2)rdrdθ=2π⋅4=8π. So the flux out of the closed surface is 24π.
Disc. On the bottom disc n=(0,0,−1) and F⋅n=−z=0. z=0 there. So the disc contributes 0.
Subtract. The cap’s flux is 24π−0=24π.
Answer.24π. In 6.5 the direct computation with N=(2s2cosθ,2s2sinθ,s) gives 2π∫02(s3+4s)ds=2π(4+8)=24π, the same.
Worked example MATH 376 worksheet 14 problem 8
A sphere of radius 2 and the field v=r/∥r∥ (so v=n on the sphere). Find the outward flux and the average divergence inside.
Solution.
Flux. On the sphere v⋅n=n⋅n=1, so the flux is the area 4π⋅22=16π.
Average divergence. The volume of the ball is 34π⋅8=332π. If the divergence theorem applied, the average divergence would be 32π/316π=23.
Check the singularity.div(r/ρ)=2/ρ, which is not defined at the origin but is integrable: ∫02ρ24πρ2dρ=8π⋅24=16π. The field is not C1 at the origin, so the theorem as stated does not apply; the direct volume integral over the shells is what supports the value.
Answer. Flux 16π and average divergence 23.
Singular fields and the excised ball
Worked example MATH 376 lecture of 4 March (the counterexample); new (the excision)
Let G=(x,y,z)/ρ3 with ρ=x2+y2+z2. Show divG=0 away from the origin, and find the outward flux of G through the unit sphere and through the surface of the cube [−1,1]3.
Solution.
Divergence.∂x(xρ−3)=ρ−3−3x2ρ−5, and the same for y and z. Adding: 3ρ−3−3ρ2ρ−5=0.
Unit sphere. There n=(x,y,z) and G⋅n=ρ2/ρ3=1, so the flux is 4π. The divergence theorem would predict 0, and it does not apply since G is undefined at the origin, inside the ball.
The cube. Let Bε be the ball of radius ε<1 about the origin and E the region between the sphere of radius ε and the cube. On E the field is C1 with divG=0, so the flux out of ∂E is 0. The theorem applies to the region with the hole.
Split the boundary.∂E is the cube (outward normal) and the small sphere (with normal pointing into the hole, the outward normal of E). So (flux out of the cube) − (flux out of the small sphere) =0.
Small sphere. The flux out of the sphere of radius ε is ε21⋅4πε2=4π.
Answer. The flux through the cube is 4π, and the same for every closed surface that encloses the origin. Moving the origin outside the surface makes the flux 0. This is Gauss’s law for a point charge in 6.8.
Worked example new (symmetry; the torus of 6.5)
Find the outward flux of F=(x+yz,y+zx,z+xy) through the surface of the cube [−1,1]3, and the flux of F=(x,y,z) out of the torus with radii R>a.
Solution.
Divergence.∂x(x+yz)=1, ∂y(y+zx)=1, ∂z(z+xy)=1. So divF=3, and the flux is 3⋅8=24. The terms yz, zx, xy do not contain the variable being differentiated, so they drop out; face by face they cancel in pairs, as in the exam problem.
Torus. The solid torus has volume 2π2Ra2 (cross-section area πa2 times the length 2πR of the core circle, by Pappus; or ∫∫∫rdrdzdθ) and divF=3, so the flux is 6π2Ra2.
Compare with 6.5. The direct computation in 6.5 with ru×rv gave ∬F⋅N=6π2Ra2. The two methods agree.
Answer.24 and 6π2Ra2.
Worked example MATH 376 lecture of 6 March, Example 5.19
Use the divergence theorem to show that the volume of the ball of radius R is 34πR3.
Solution.
Choose a field with divergence 1.F=31(x,y,z), so divF=31+31+31=1 and ∭E1dV=Vol(E). Any field with divergence 1 would do; this one is symmetric.
Flux through the sphere. On the sphere of radius R, n=(x,y,z)/R so F⋅n=31R, constant. The area is 4πR2.
Apply.Vol(E)=31R⋅4πR2=34πR3. The area formula of 6.5 is used, so this is a check of that formula against the volume formula.
Answer.34πR3. The same idea gives the volume of any solid as 31∬r⋅ndS.
What divergence means, now proved
Proposition BApostol 12.20
Divergence is flux per unit volume
Let F be C1 near p, Bε the ball of radius ε about p, Sε=∂Bε with the outward normal. Then ε→0limVol(Bε)1∬SεF⋅ndS=(divF)(p).
In one lineFor a C1 field F and a point p, the outward flux of F through the sphere Sε of radius ε about p, divided by the volume of the ball, tends to (divF)(p) as ε→0.
Why it is trueIt is the definition-free meaning of divergence: net outflow per unit volume, the picture of the 'idea in words' made exact.
The proof is the same as for the curl: the divergence theorem turns the flux into ∭BεdivFdV, and since divF is continuous it differs from (divF)(p) by less than any given η on small balls, so the average over Bε is within η of (divF)(p).
Corollary AApostol 12.15 exercises 12 and 14 (the tangent and normal forms of Green's theorem)
Green's theorem in normal form
With r(t)=(x(t),y(t)) counterclockwise, the outward unit normal is n=(y′,−x′)/∥r′∥ and ds=∥r′∥dt. So ∮CF⋅nds=∮C(Py′−Qx′)dt=∮C(−Q)dx+Pdy, and Green’s theorem for the pair (−Q,P) gives ∬D(Px−(−Q)y)dA=∬D(Px+Qy)dA. For F=(x,y) and the circle of radius R: F⋅n=R, so the left side is R⋅2πR=2πR2, and the right side is 2⋅πR2.
In one lineFor a positively oriented Jordan curve C bounding D and a C1 planar field F=(P,Q), ∮CF⋅nds=∬D(Px+Qy)dA, where n is the outward unit normal and ds is arc length.
Why it is trueIt is the divergence theorem in two dimensions, and it shows that Green's theorem has two forms: one with curl and one with divergence.
Quick checkA solid region has a closed boundary and the divergence of F is −3 everywhere inside. Which is possible for the outward flux?
Flux = divergence times volume for a constant divergence. A negative divergence means the field gathers inside, so the outward flux is negative.
Quick checkStokes' theorem relates the flux of a vector field through a closed surface to the divergence of the field in the volume enclosed. True or false?
A closed surface has no boundary curve, so Stokes' theorem has nothing to say about it. The statement attributes the divergence theorem to Stokes (practice Final 7(d)).
Quick checkWhich condition is the one that fails for F=r/ρ3 on the unit ball when the divergence theorem is applied?
F is not defined at the origin, which lies inside the ball. Its divergence is 0 elsewhere, but the flux through the unit sphere is 4π.
Quick checkYou must compute the flux of a field with constant divergence 5 out of a cube of side 2 with a face missing. What do you do first?
The theorem needs a closed surface. Add the missing face, use 5⋅8=40 for the closed cube, and subtract the flux through the added face, which is easy because it is flat.
Which theorem, which side
Theorem
Left side
Right side
Orientation rule
Fundamental theorem for gradients (6.2)
∫Cdφ along a path
φ(B)−φ(A)
direction A→B
Green (plane)
∮CPdx+Qdy
∬D(Qx−Py)dA
C counterclockwise
Stokes (space)
∮∂SF⋅dr
∬S(curlF)⋅ndS
right-hand rule between ∂S and n
Divergence (space)
∬∂EF⋅ndS
∭EdivFdV
n outward
Stokes with a flat S in z=0 and n=(0,0,1) is Green. Choosing the easy side:
You are asked for
Ask
Then
a line integral around a closed curve in space
Does C bound an easy surface (a disc, a polygon)? Is curlF simpler than F?
Stokes with the simplest surface. If curlF=0 on a simply connected domain, the answer is 0.
the flux of F through a closed surface
Is divF constant or simple? Is the solid easy to integrate over?
Divergence theorem. If divF=0 and F is C1 inside, the answer is 0.
the flux of F through an open surface
Can I close it with flat pieces?
Close, apply the theorem, subtract. Or compute directly with ru×rv (6.5).
the flux of a curl through a surface
Is it a curl? Where does the surface end?
Stokes: it equals the circulation round the edge, and the answer depends only on the edge. The flux of a curl through a closed surface is 0.
a field with a singular point
Is the singular point inside or outside?
Outside: use the theorems. Inside: cut out a small ball (or disc) around it and use the theorem on the rest.
symmetric regions and odd integrands
Does the integrand change sign under x↦−x?
The integral over a symmetric region is 0.
Quick checkThe flux of curlA through the surface of any solid is
By the divergence theorem the flux is ∭divcurlAdV=∭0dV=0, as long as A is C2 on the whole solid. Equivalently by Stokes, a closed surface has no edge and the circulation round an empty edge is 0.
Where it is used
Used inside maths· Inside maths: harmonic functions and the fundamental theorem of calculus
If ∇2f=0 (a harmonic function) on a solid E, then the flux of ∇f out of ∂E is ∭Ediv∇fdV=∭E∇2fdV=0. This is the first step in the proof that a harmonic function has no interior maximum and satisfies the mean value property: its average over a sphere equals its value at the centre. In one variable the divergence theorem on an interval [a,b] with ‘outward normal’ +1 at b and −1 at a reads f(b)−f(a)=∫abf′(x)dx, the fundamental theorem. In two variables it is Green’s theorem in normal form. All of them say the integral of a derivative over a region is the integral of the function over its boundary, which is the single sentence of 6.7.
Used in the real world· Used in the real world: the circulation of a hurricane
Meteorologists model a hurricane’s winds by a Rankine vortex: inside the eyewall radius R the air rotates rigidly with angular velocity Ω, and outside it the speed falls like 1/r. Take R=30 km and the strongest wind 50 m/s at the eyewall. Then Ω=50/30000=1.67×10−3 s−1, so the vorticity inside the eyewall is 2Ω=3.3×10−3 s−1 (twice the angular velocity, from the example). Outside, v=ΩR2/r and the curl is 0 (the field is the vortex of the picture). Stokes’ theorem gives the circulation around any loop enclosing the eyewall as ∮v⋅dr=vorticity×area=2Ω⋅πR2=2πRvmax=2π⋅30000⋅50=9.4×106 m2/s, and it is the same for every larger loop, because the extra area carries no vorticity. A forecaster who measures the winds around a loop of 100 km radius and finds the circulation 9.4×106 m2/s has measured the total spin of the core without going into it.
The divergence theorem is the audit of conservation. If the velocity of an incompressible liquid in a pipe network is v, then divv=0, so the flux out of any closed surface is 0: what enters a junction leaves it. A leak detector that adds the measured flows ∬v⋅ndS over the faces of a control volume and finds 0.025 m3/s of net outflow from a cube of side 0.5 m, volume 0.125 m3, has measured an average divergence of 0.2 s−1: some of the liquid is appearing there, by a leak from outside or a source, at 0.2 per second per unit volume.
Your answerA Rankine vortex has eyewall radius 30 km and maximum wind 50 m/s at the eyewall. What is the circulation (in m2/s) of the wind around a circle of radius 100 km about the centre? Give the exact value in terms of π.
Stokes: circulation = vorticity times the area where the vorticity is non-zero. Check with 2πrv at the eyewall.
Inside the eyewall the vorticity is 2Ω=2⋅50/30000, and outside it is 0. By Stokes the circulation is vorticity times the area of the eyewall disc: 30000100⋅π⋅300002=3000000π≈9.42×106. Directly: 2πRvmax=2π⋅30000⋅50.
Python labThe divergence theorem on a lopsided surface, and when it fails
import numpy as npa, b, c = 1.0, 1.3, 0.8 # ellipsoid x^2/a^2 + y^2/b^2 + z^2/c^2 = 1def F(x, y, z): return (x * y + z**2, y * z + x**2, z * x + y**2 + 0.5 * z**3)def divF(x, y, z): return y + z + x + 1.5 * z**2 # by hand: y + z + (x + 1.5 z^2)n = 400ph = (np.arange(n) + 0.5) * np.pi / n; th = (np.arange(2 * n) + 0.5) * np.pi / nPH, TH = np.meshgrid(ph, th, indexing="ij"); w = (np.pi / n) ** 2x, y, z = a * np.sin(PH) * np.cos(TH), b * np.sin(PH) * np.sin(TH), c * np.cos(PH)N = (b * c * np.sin(PH)**2 * np.cos(TH), a * c * np.sin(PH)**2 * np.sin(TH), a * b * np.sin(PH) * np.cos(PH)) # r_phi x r_theta, outwardflux = sum(f * m for f, m in zip(F(x, y, z), N)).sum() * wm = 200 # inside: x = a t sin(ph) cos(th) ..., Jacobian a b c t^2 sin(ph)t = (np.arange(m) + 0.5) / mT, P2, T2 = np.meshgrid(t, ph[::2], th[::2], indexing="ij")X, Y, Z = a * T * np.sin(P2) * np.cos(T2), b * T * np.sin(P2) * np.sin(T2), c * T * np.cos(P2)vol = (divF(X, Y, Z) * a * b * c * T**2 * np.sin(P2)).sum() * (1 / m) * (2 * np.pi / n) ** 2print("flux out of the ellipsoid :", round(flux, 5))print("integral of div F inside :", round(vol, 5))def point_source(x0): # F = (r - x0)/|r - x0|^3, flux through the unit sphere (n = position) X0, Y0, Z0 = x0; k = 400 p = (np.arange(k) + 0.5) * np.pi / k; q = (np.arange(2 * k) + 0.5) * np.pi / k A, B = np.meshgrid(p, q, indexing="ij") nx, ny, nz = np.sin(A) * np.cos(B), np.sin(A) * np.sin(B), np.cos(A) dx, dy, dz = nx - X0, ny - Y0, nz - Z0; d3 = (dx**2 + dy**2 + dz**2) ** 1.5 return ((dx * nx + dy * ny + dz * nz) / d3 * np.sin(A)).sum() * (np.pi / k) ** 2for x0 in [(0, 0, 0), (0.5, 0.2, 0), (2, 0, 0)]: print("source at", x0, ":", round(point_source(x0), 4))print("4 pi =", round(4 * np.pi, 4))
Try this.Run it. The flux of the field out of the ellipsoid (computed from a grid of 320000 small patches) and the integral of the divergence over its inside (computed with 200 by 200 by 400 small boxes) agree to about four digits, 0.8364. Neither is a number you could guess, and they match, so the divergence theorem is doing real work here. The second part uses the field of a point source, F = (x, y, z) divided by its distance cubed, with the source at x0 and the unit sphere around the origin: a source at the centre gives 4*pi = 12.566. Move the source to (0.5, 0.2, 0), still inside, and the flux is the same 12.566. Move it outside, to (2, 0, 0), and the flux is 0. The divergence is 0 everywhere except at the source, so the flux only counts the sources inside. Try the source at (0.99, 0, 0), barely inside, and at (1.01, 0, 0), barely outside, and see how sharply the flux changes. Change a, b, c, or the field F and its divergence (compute the divergence by hand first).
Traps
Watch out· Name the theorem you are using, and the right one
Stokes’ theorem is about a surface with an edge: circulation round the edge equals flux of the curl. The divergence theorem is about a closed surface: flux through the skin equals the integral of the divergence inside. A statement such as ‘Stokes’ theorem relates the flux through a closed surface to the divergence in the volume enclosed’ (practice Final problem 7(d)) describes the divergence theorem and is false for Stokes. Write which theorem and why its hypotheses hold before you use it.
Watch out· Read the set literally and sketch it
On the 376 final, a student read the set max(∣x∣,∣y∣,∣z∣)=1 of problem 2 as a unit cube in the first octant, because the absolute values were dropped, and their answer was 1 instead of 8 (4 of 5 points). The set is the surface of the cube [−1,1]3, of side 2. Their own computation was consistent for the cube they drew, so the slip was in reading the problem, and the regrade request was declined for that reason. Sketch the set before choosing a method, and say in words what it is. On that problem the structure of the field was also a hint: the terms x/3, y/3, z/3 give divergence 1 and the other terms drop out, which points straight at the divergence theorem.
Watch out· Hypotheses are part of the answer
Stokes needs F to be C1 on an open set containing the whole surface S, the inside included, not only the curve. The divergence theorem needs F to be C1 on all of the solid. A field with a singularity inside (the angle field for Stokes, r/ρ3 for Gauss) can have curl or divergence 0 and still have a non-zero circulation or flux. The marks in a ‘state the theorem’ question are for the hypotheses: solid region, closed piecewise smooth boundary, outward normal, C1 on a neighbourhood.
Watch out· Check orientation: the right-hand rule, and outward
The boundary direction in Stokes and the normal must be linked by the right-hand rule, and the divergence theorem needs the outward normal. If you reverse one and not the other the answer has the wrong sign. For ‘counterclockwise from above’ use the upward normal; for ‘counterclockwise as viewed from the direction of (1,1,1)’ use the normal pointing toward that viewer. Reversing both the surface orientation and the curve keeps the equation true.
Watch out· Compute the whole curl, with the flipped middle sign
The middle component of the curl is Pz−Rx. A wrong sign there is invisible when the normal is (0,0,1), because only the third component is used, and it ruins a problem with a tilted normal. Write all three differences with their partial derivatives, and test the formula on a field you know (F=(z,0,0) should have curl (0,1,0)).
Problems
checknew (MATH 376 worksheet 13 style)
Compute the curl and the divergence of F=(x2y,y2z,z2x).
∇f=(2x,2y,2z). The curl is (0−0,0−0,0−0)=0, as it must be for any gradient. The divergence is 2+2+2=6=∇2f.
checkMATH 376 practice Final problem 7(c)
True or false: if f,g are C2 vector fields on R3, then div(f+g)=divf+divg.
Solution
True. Write f=(f1,f2,f3), g=(g1,g2,g3). div(f+g)=∂x(f1+g1)+∂y(f2+g2)+∂z(f3+g3), and a partial derivative of a sum is the sum of the partial derivatives, so this is divf+divg.
checkMATH 376 homework 6 problem 4 (statement 1)
True or false: reversing the orientation of S in Stokes’ theorem keeps the equation true.
Solution
True. Reversing the orientation replaces n by −n, so the surface integral changes sign. The right-hand rule then requires the opposite direction on ∂S, so the line integral also changes sign. Both sides flip.
checkMATH 376 homework 6 problem 4 (statements 3 and 4)
True or false: (a) if F=∇f then ∮CF⋅dα=0 for every closed curve C. (b) The divergence theorem says that for a closed piecewise smooth surface S bounding a solid E, with outward normal n and F of class C1 on a neighbourhood of E, ∬SF⋅ndS=∭EdivFdV.
Solution
(a) True. By the fundamental theorem for line integrals (6.2) ∮C∇f⋅dα=f(end)−f(start)=0 on a closed curve. It also follows from Stokes, since curl∇f=0 whenever C bounds a surface. (b) True, this is the theorem as stated above, with all four hypotheses (the exact wording in the original homework is not in the sources, so compare it with your copy).
useMATH 376 homework 6 problem 4 (statements 2 and 5)
True or false: (a) the integral ∬S(curlF)⋅ndS depends only on the area of S. (b) The flux of F through S depends only on the area of S.
Solution
Both false. (a) Take F=(0,x,0), so curlF=(0,0,1). The flat unit disc in the xy-plane with n=(0,0,1) gives (curlF)⋅n=1 and the integral π. The flat unit disc in the yz-plane with n=(1,0,0) has the same area and (curlF)⋅n=0, so the integral 0. (b) Take F=(0,0,1). A disc of area A in the xy-plane with n=(0,0,1) has flux A, and the same disc in the yz-plane with n=(1,0,0) has flux 0. Direction matters.
useMATH 376 worksheet 14 problem 5 style
Use Stokes’ theorem to compute the work of F=(x2,2x,z) around the boundary C of the square [0,1]2 in the plane z=0, counterclockwise from above. Check by a line integral.
Solution
P=x2, Q=2x, R=z. curlF=(0−0,0−0,2−0)=(0,0,2). With S the flat square, n=(0,0,1): the circulation is 2⋅area=2. Check: bottom (y=0, r=(t,0)) F⋅r′=t2, integral 31; right (r=(1,t)) F=(1,2,0), r′=(0,1,0), integral 2; top (r=(1−t,1), r′=(−1,0,0)) F⋅r′=−(1−t)2, integral −31; left (r=(0,1−t)) F=(0,0,0), integral 0. Total 31+2−31+0=2.
usenew (divergence theorem with a paraboloid, compare homework 6 problem 3)
Find the outward flux of F=(x3,y3,z3) through the surface of the solid cylinder x2+y2≤1, 0≤z≤2 (both discs included).
Solution
divF=3x2+3y2+3z2. In cylindrical coordinates ∭(3r2+3z2)rdzdrdθ=2π∫01∫02(3r3+3z2r)dzdr=2π∫01(6r3+8r)dr=2π(46+4)=11π.
usenew (closing a surface)
Find the upward flux of F=(x,y,1) through the upper unit hemisphere x2+y2+z2=1, z≥0, by closing it with the unit disc in z=0.
Solution
divF=2, the solid half-ball has volume 32π, so the flux out of the closed surface is 34π. The bottom disc has n=(0,0,−1) and F⋅n=−1, so its flux is −π. The hemisphere’s flux is 34π−(−π)=37π.
usenew (a field and its curl: Stokes on a curved surface)
Let F=(z,x,y) and let S be the part of the paraboloid z=4−x2−y2 with z≥0, upward normal. Find the flux of curlF through S by Stokes, and check it directly.
Solution
curlF=(1,1,1). The boundary is the circle x2+y2=4, z=0, counterclockwise from above. Use the flat disc: n=(0,0,1), (curlF)⋅n=1, so the flux is 4π. Directly on the paraboloid: N=(2x,2y,1), (curlF)⋅N=2x+2y+1, and the integral over x2+y2≤4 is 0+0+4π=4π. Along the circle: α=(2cost,2sint,0), F=(0,2cost,2sint), α′=(−2sint,2cost,0), F⋅α′=4cos2t, integral 4π.
proveMATH 376 homework 5 problem 5
Prove that div and curl are linear, and that divcurlF=0 for C2 fields F.
Solution
Let F=(P1,Q1,R1), G=(P2,Q2,R2) and a,b real. div(aF+bG)=∂x(aP1+bP2)+∂y(aQ1+bQ2)+∂z(aR1+bR2), and each partial derivative is linear, so this equals adivF+bdivG. The first component of curl(aF+bG) is ∂y(aR1+bR2)−∂z(aQ1+bQ2)=a(R1,y−Q1,z)+b(R2,y−Q2,z), and the other two components are the same with the letters cycled. For the last claim see the proof in the section on identities: expand and apply the equality of mixed partials (this uses C2).
provenew (circulation is path independent: Stokes shows the surface does not matter)
Let S1 and S2 be two oriented surfaces with the same boundary curve C, with orientations inducing the same direction on C. Show that ∬S1(curlF)⋅ndS=∬S2(curlF)⋅ndS for C1 fields F defined on both. Deduce that the flux of a curl through a closed surface is 0.
Solution
By Stokes, both integrals equal ∮CF⋅dr. For a closed surface S, cut it along a closed curve C into two surfaces S1 and S2 whose outward orientations induce opposite directions on C. The flux through S is the flux through S1 plus that through S2, which equals the circulation along C in one direction plus the circulation in the other, so 0. (Or: it is ∭divcurlFdV=0 by the divergence theorem.)
provenew (flux of a gradient)
If ∇2f=0 on a solid E with closed boundary S (and f is C2), show that ∬S∇f⋅ndS=0. Is the converse true?
Solution
By the divergence theorem the flux is ∭Ediv∇fdV=∭E∇2fdV=0. The converse is false for a single solid: the flux can be 0 while ∇2f is positive in one part of E and negative in another (the integral of ∇2f over E is 0 while ∇2f is not).
provenew (area from Green in normal form)
Use Green’s theorem in normal form with F=(x,y) to show that the area of a region D bounded by a positively oriented curve C is 21∮CF⋅nds. Check for the ellipse x=acost, y=bsint.
Solution
With F=(x,y), Px+Qy=2, so ∮CF⋅nds=2area(D). For the ellipse, nds=(y′,−x′)dt=(bcost,asint)dt and F⋅nds=(abcos2t+absin2t)dt=abdt, so 21∮=21ab⋅2π=πab.
stretchnew (Gauss's law for several sources, compare 6.8)
Let G1=(r−p1)/∣r−p1∣3 and G2=(r−p2)/∣r−p2∣3 be two point sources at p1 and p2, and S a closed surface through neither. Show that the outward flux of G1+2G2 through S is 4π times (the number of sources inside weighted by 1 and 2).
Solution
Each Gi has divergence 0 away from pi and is C1 there. For a source outside S the divergence theorem applies on the solid inside and the flux is 0. For a source inside, remove a small ball around it; the theorem on the rest gives that the flux through S equals the flux through the small sphere, which is 4π as computed in the text. Flux is linear in the field, so the flux of G1+2G2 is 4π(ϵ1+2ϵ2) where ϵi=1 if pi is inside and 0 if outside.
stretchnew (vorticity, compare worksheet 14 problem 1)
A velocity field is v=(−ωy,ωx,0) with ω a constant. Find the circulation of v around the circle of radius ρ in the xy-plane, directly and by Stokes, and compare with the vorticity.
Solution
Directly: r=(ρcost,ρsint,0), v⋅r′=ωρ2, circulation 2πωρ2. By Stokes: curlv=(0,0,2ω), flux through the disc 2ω⋅πρ2. The vorticity 2ω is twice the angular velocity, and circulation divided by area is 2ω.
Summary
Curl=(Ry−Qz,Pz−Rx,Qx−Py), the determinant with ∇ in the second row, with the flipped middle sign. It is circulation per unit area about the axis, and a paddle wheel spins at half of curlF⋅n. Divergence=Px+Qy+Rz is flux per unit volume.
curl∇f=0 and divcurlF=0 for C2 data, both because mixed partials are equal. The converses hold on simply connected or star-shaped domains and fail on domains with holes: the angle field and r/ρ3.
Stokes:∮∂SF⋅dr=∬ScurlF⋅ndS, with ∂S and n linked by the right-hand rule and F of class C1 on all of S. Proof for a graph: Green plus the chain rule, with the second derivatives of g cancelling.
To use Stokes, name the surface, the normal, the boundary orientation, the field, check the hypotheses, compute the full curl, dot, integrate. Never take the curl of a field restricted to the curve or the surface. ‘Deduce’ means specialize.
Divergence theorem:∬∂EF⋅ndS=∭EdivFdV, closed surface, outward normal, F of class C1 on all of E. Proof: Fubini and the fundamental theorem of calculus in each direction. Read the set literally (a max-norm sphere is a cube).
Close an open surface with flat pieces and subtract their flux. Cut a small ball around a singular point. If the divergence is a constant c, the flux is c times the volume.
Green, Stokes and Gauss are one idea, the fundamental theorem of calculus one dimension higher: the integral of a derivative over a region is the integral of the function over its boundary, because inner boundaries cancel. 6.7 states it for all dimensions.
Watch and read
The same ideas explained by someone else. Use these when an explanation here does not land.
MATH 376: Week 7, Apostol 12.11 to 12.20: the end of the multivariable half of the course and Midterm 2 problems 3 and 4. Everything is worked below: computing curl and divergence (worksheet 13 problems 1, 2 and 7, worksheet 14 problems 1 and 2, worksheet 28 problem 8), the identities div curl = 0 and curl grad = 0 (homework 5 problem 5), Stokes with a disc, a triangle, a circle and a curved surface (Midterm 2 problem 3, practice Midterm 2 problem 3, worksheet 13 problem 8, worksheet 14 problem 5, worksheet 27 problem 10, homework 6 problem 1), Ampere's law (worksheet 14 problem 6), the mistake of taking the curl of a restricted field (Final problem 3), the deduction of Green's theorem from Stokes' theorem (Midterm 2 problem 4(b)) and the area of a parallelogram from Stokes (practice Midterm 2 problem 4(b)), the divergence theorem for a cube, a ball, a paraboloid solid, and an open box (Final problem 2, Midterm 2 problem 4(a), worksheet 14 problems 7 and 8, worksheets 17 and 27, homework 6 problems 2 and 3), and the true or false questions (homework 5 problem 4, homework 6 problem 4, practice Final problems 7(c) and 7(d)).
MATH 521 and 561: Both theorems are the same statement, the generalized Stokes theorem of 6.7: the integral of d omega over a region is the integral of omega over its boundary. 561 proves it on manifolds with boundary.
MATH 322 and PHYS 322: Gauss's law, Faraday's law and Ampere's law are these two theorems applied to the electric and magnetic fields, and Maxwell's equations in 6.8 are their local forms.
Fluid mechanics and weather: Vorticity is the curl of the velocity field, and the circulation around a hurricane's eye is computed with Stokes' theorem. Incompressible flow is divergence zero, and the divergence theorem is the statement that what flows into a region flows out.