Vector Fields
Section titled โVector FieldsโA vector field assigns a vector to every point in a region. In three dimensions, write
For a velocity field, the vector gives the local direction and speed of flow. For a force field, it gives the force at that location. A sketch places arrows at sample points; their direction and length represent the field.
The field points outward from the origin, while circles it counterclockwise. A gradient field has the form , where is a scalar potential.
A radial inverse-square field in space has the form
Its magnitude is . A negative gives attraction toward the origin.
Divergence and curl
Section titled โDivergence and curlโFor a field with first partial derivatives, divergence is a scalar:
To see why these matching partial derivatives occur, place a tiny rectangular box in the flow. Across its two faces perpendicular to , the amount leaving minus the amount entering is approximately . The other two face pairs contribute and . Divide the total by the small volume and let the box shrink: the remaining rate is divergence.
Positive divergence indicates more outward than inward flow near the point; negative divergence indicates the opposite. A source here means net local outflow in this mathematical sense. It does not mean that every arrow points directly away from that point.
Curl is a vector:
Curl comes from a different small measurement: circulation around the edges of a tiny oriented loop, divided by its area. For a horizontal rectangle, the two horizontal edges contribute approximately because they are traversed in opposite directions at slightly different heights. The vertical edges contribute . Their sum explains the vertical curl component . Loops in the other coordinate planes give the other two components.
The direction follows the right-hand rule: its component along a chosen normal measures circulation around a small loop with the compatible positive orientation. A field can follow curved paths without nonzero curl; local circulation depends on how neighboring velocities differ, not merely whether an individual trajectory curves.
For example, has divergence and curl . It rotates without producing net local outflow.
For sufficiently smooth functions,
The identities follow by cancellation of equal mixed partial derivatives.
Reading local behavior from derivatives
Section titled โReading local behavior from derivativesโDivergence and curl describe different aspects of a field near a point. They can both vanish, both be nonzero, or behave differently from each other. Neither gives the fieldโs magnitude. A constant nonzero field has zero divergence and zero curl because it has no local expansion or rotation, even though it can transport material across a surface.
Example. Find the divergence and curl of , then evaluate them at .
For divergence, differentiate each component with respect to its matching coordinate:
For curl, use the cross-coordinate derivatives:
At the point, the divergence is and the curl is . The first is a scalar, while the second has a direction as well as magnitude. Their values refer to behavior near that point, not the total flow or circulation over an entire region.
For an inverse-square field, the denominator has a third power because the numerator already has one power of distance. Taking the magnitude removes that numerator direction and leaves the inverse-square law. This is a useful check before differentiating a radial field.
Line Integrals
Section titled โLine IntegralsโThere are two different kinds of line integrals to keep separate.
For a wire with varying density, divide its length into short pieces. Each piece has approximate mass equal to its local density times its length. Summing and shrinking the pieces gives a scalar line integral. The curve tells us where the density is sampled; the arc-length element tells us how much wire is represented by a parameter step.
For a smooth curve , , this becomes
If is linear density, this gives the mass of a wire. With it gives length. Reversing the curveโs orientation does not change this integral.
Work asks a different question. On a short displacement , only the force component along that displacement contributes, giving approximate work . The displacement already includes its direction and length. Substituting produces the vector line integral:
For a force field this is work. In components it is . Reversing orientation changes its sign. For piecewise smooth curves, add the integrals over the pieces.
Example. On the quarter-circle , , evaluate and the work of .
The speed is , so the scalar integral is
For work, . Hence
Reversing the path keeps the scalar integral at but changes the work to .
Parametrize before substituting
Section titled โParametrize before substitutingโFor a vector line integral, replace every coordinate in the field by its parametrized expression, then take the dot product with the derivative of position. Mixing a field evaluated at a general point with a tangent evaluated along the curve leaves an expression that does not describe the stated path.
Example. Evaluate from to along the parabola , and compare it with the straight segment between the same endpoints.
For the parabola, use , with . Then and , giving
For the segment, use . The work becomes . The equal answers suggest a conservative field, but two agreeing paths alone do not prove path independence. In this case the differential is exactly , which explains why the endpoint values determine the result.
If a path has corners, give each segment its own parametrization and preserve the order of travel. A line integral over a path followed by its reverse cancels for work, while a scalar arc-length integral counts both traversals.
Independence of Path; Conservative Vector Fields
Section titled โIndependence of Path; Conservative Vector FieldsโA field is conservative if it has a potential: . On a piecewise smooth path from to , the fundamental theorem for line integrals gives
The reason a potential simplifies work is that it converts a field dotted with a tangent into an ordinary derivative. Along the path, the chain rule gives . Integrating that derivative telescopes to the final potential minus the initial potential, just as the fundamental theorem of calculus does on an interval.
Path details disappear because every small contribution is a change of the same scalar quantity. A closed trip ends at its starting potential and has zero net work, even if individual portions have nonzero work. To use this theorem, the same potential must be valid along the whole path; finding a local potential on a small region does not automatically settle a path that travels around a domain hole.
On an open connected region, a continuous field is conservative exactly when its line integrals are path independent, equivalently when every closed-path integral is zero. For a field with continuous first partials, being conservative implies zero curl. The reverse implication holds on a simply connected open domain, where loops can be contracted without leaving the domain.
In two dimensions, the curl test reduces to . Check the domain before using this as a sufficient condition.
Example. Find a potential for and evaluate its work from to .
Integrate the first component with respect to :
The integration term can depend on because it disappears under differentiation with respect to . Match the second component:
Thus , and a potential is . The work is along every allowed path.
Why the domain matters
Section titled โWhy the domain mattersโThe field
has everywhere in its domain, the punctured plane. But around the unit circle ,
The field is not conservative on the whole punctured plane. The hole prevents the simply connected version of the curl test from applying.
Finding a potential in three dimensions
Section titled โFinding a potential in three dimensionsโIntegrating one component determines a potential only up to a function of the remaining coordinates. Keep that function until the other component equations determine it. Replacing it with a numerical constant too early can make a conservative field appear inconsistent.
Example. Find a potential for and its work from to .
Start with . Integrating with respect to gives . Matching the second component requires , so
Finally, must equal . Thus is constant, and a potential is
The work is . A direct gradient check verifies all three components. Because this polynomial potential is defined throughout space, no domain hole complicates the endpoint calculation.
In mechanics, a potential energy function is often defined with the opposite sign, so force is its negative gradient. The mathematical potential used for the line-integral theorem is defined here by a positive gradient. State which convention is being used before interpreting work as a change in potential energy.
Greenโs Theorem
Section titled โGreenโs TheoremโSuppose a plane region is divided into many small rectangles. Add the counterclockwise circulation around every rectangle. Each interior edge appears twice, traversed in opposite directions, so its two contributions cancel. Only the circulation around the outer boundary remains, together with any boundaries around holes.
For one tiny rectangle, the circulation is approximately , by the local curl calculation. Adding those contributions and refining the subdivision gives an area integral. This explains both sides of Greenโs theorem: local circulation accumulates over area, while internal boundary contributions cancel.
Theorem. Suppose is a bounded plane region with positively oriented, piecewise smooth boundary , and have continuous first partial derivatives on an open set containing and its boundary. Then
Positive orientation means the region stays on your left as you follow its boundary. For a region without holes, this is counterclockwise. Around holes, the boundary is clockwise.
Greenโs theorem also has a flux form. For and outward unit normal ,
The circulation form integrates the tangential component; the flux form integrates the outward normal component. For a positive simple boundary, an area formula is
Example. Let be the counterclockwise ellipse . Find .
Here . The ellipse has area , so
Clockwise orientation would give .
Do not apply Greenโs theorem across a singularity. The punctured-plane field from Why the domain matters is undefined at the origin, so the theorem cannot be applied to the full disk it surrounds.
Circulation and outward flux use different derivatives
Section titled โCirculation and outward flux use different derivativesโFor a plane field, the circulation form uses the difference of cross partials. The flux form uses the sum of matching partials. Decide which quantity the question asks for before choosing a formula. A field can have positive outward flux and zero circulation around the same boundary.
Example. Let
Find its circulation around the positively oriented boundary of the annulus , then find its circulation around the outer circle alone, counterclockwise.
The field is undefined at the origin, but the annulus excludes an entire neighborhood of that point. It is smooth on an open set containing the annulus and both boundary circles, so Greenโs theorem applies there.
The inverse-square-denominator part has scalar curl zero away from the origin. The polynomial part contributes . The total circulation around the annulus boundary is therefore
This boundary includes the inner circle clockwise. To recover the outer integral alone, compute the inner contribution. On the counterclockwise unit circle, the rational part contributes . The polynomial part contributes , using . Clockwise orientation changes their sum to .
Thus , giving . Applying Greenโs theorem directly to the full outer disk would miss the rational partโs circulation, because that disk includes the singularity. Applying it to the actual annulus is valid and keeps the missing boundary contribution explicit.
For a region with a hole, include every boundary component with the positive orientation relative to the region. The integral over the outer curve alone is not generally equal to the integral of curl over the remaining region. The inner boundary accounts for the part removed, with its clockwise orientation producing the needed sign.
Surface Integrals
Section titled โSurface IntegralsโA thin shell is spread over a surface rather than a plane region. Its mass still comes from adding density times small patch area, but the area is measured along the tilted or curved shell. First evaluate the density at the point of the shell, then use the surface-area element derived in Chapter 4.
The scalar being accumulated and the area stretching are separate parts of the setup. Changing the surface may change both: the densityโs coordinate values change, and a unit area in the parameter plane can correspond to a larger patch of shell.
For a regular parametrization covering once,
Use it for quantities such as the mass of a thin shell with area density . For , it gives the surface area. Orientation does not affect a scalar surface integral.
For a graph ,
Example. A shell is the patch above , with area density . Find its mass.
The surface factor is and the density becomes . Thus
Using only the projected area would miss the factor .
Matching the area element to the surface
Section titled โMatching the area element to the surfaceโA surface integral has two substitutions: evaluate the scalar quantity on the surface, and replace surface area by the appropriate parameter-area factor. A graph formula and a parametric formula describe the same geometry, but their integration domains and area factors belong to different coordinate descriptions.
Example. Find the mass of the spherical shell with area density , where .
Use spherical surface parameters with fixed radius:
The area factor is , while the density becomes . Hence
The substitution evaluates the inner integral. The density is largest near the poles and zero at the equator, so multiplying the total area by a single pointโs density would not work. Symmetry does show that the center of mass is the origin, even though the density is not constant.
Applications of Surface Integrals; Flux
Section titled โApplications of Surface Integrals; FluxโImagine fluid crossing a small flat window. Motion parallel to the window carries fluid along it without crossing. Motion normal to it crosses most efficiently. If the local velocity is and the chosen unit normal is , the signed crossing speed is the scalar projection .
Over a short time , the volume passing through a small patch of area is approximately . Divide by time, add the patches, and take a limit. This gives the flux integral
Here is the chosen unit normal. Positive flux means flow in the chosen normal direction; negative flux means flow opposite it. For a velocity field, the integral gives volume flow rate.
For a parametrized surface, the vector area element combines the normal and area factor:
Choose the sign to match the requested orientation. You do not need to normalize the cross product because its magnitude already supplies the area factor.
For an upward-oriented graph ,
For downward orientation, negate this vector. A surface needs a consistent choice of normal to define flux globally. The usual formulas apply to orientable, piecewise smooth surfaces.
Example. Find the upward flux of through above the disk .
An upward vector area element is . On the surface,
Thus
Choosing the normal sign
Section titled โChoosing the normal signโAn orientation is a choice attached to the whole surface. For a graph, check the vertical component of the cross product; for a cylinder or sphere, check whether it points toward or away from the axis or center. One sample point often determines the sign for a connected regular patch, provided the chosen normal varies continuously.
Example. Find the outward flux of through the curved cone for . Orient it outward from the solid inside the cone and below .
Parametrize the surface by , with and one full turn of . The cross product in parameter order is
This points toward the coneโs interior, as its radial components point toward the axis. Reverse it to obtain the outward vector area factor . A zero cross product at the single vertex does not affect this piecewise surface integral.
On the cone, the field is . Its dot product with the outward area factor is , giving
The integrand is negative below and positive above it. The chosen outward normal has a downward component, so upward flow can contribute negatively even when the horizontal components point outward. The net result combines both effects.
After studying the divergence theorem, this can be checked by adding the top disk. The divergence is , so the closed-cone flux is . The top disk contributes , leaving for the side.
Do not multiply by an additional surface-area factor after using the cross product as the vector area element. Its length already contains that factor. Using a unit normal instead is equally valid, but then the scalar area element must be supplied separately.
The Divergence Theorem
Section titled โThe Divergence TheoremโThe local box interpretation of divergence extends to a whole solid by cancellation. Divide the solid into small boxes and add their outward fluxes. A shared face is outward from one box and inward from its neighbor, so those contributions cancel. The surviving faces approximate the solidโs outer boundary.
Inside each box, divergence times volume approximates its net outward flux. The sum of those local measurements becomes a volume integral. The divergence theorem therefore connects an accumulation of local outflow within a solid to the net flow across the boundary enclosing it.
Theorem. Let be a bounded solid with piecewise smooth closed boundary oriented outward. If has continuous first partial derivatives on an open set containing and its boundary, then
Interior flux cancels between adjacent small pieces: flow leaving one piece enters the next. Only the outer boundary remains. This explains why divergence measures local net outward flow.
The surface must be closed. For an open surface, add a cap to make a closed boundary, apply the theorem, then subtract the capโs flux with its outward orientation.
Example. Find the outward flux of through the sphere , where .
The divergence is . Therefore
As a direct check, on the sphere, so the flux is times the surface area .
A field singular inside the solid does not satisfy the theoremโs hypotheses. Remove the singular region and include its new boundary before applying the theorem.
Closing an open surface with a cap
Section titled โClosing an open surface with a capโThe divergence theorem applies to the whole boundary of a solid. If the requested surface is only part of that boundary, make the subtraction explicit. The capโs outward normal is determined by the enclosed solid, which may be opposite to the direction that first looks convenient in the picture.
Example. Find the outward flux of through the paraboloid patch with , outward from the solid below that patch and above .
Close the patch with the disk at . Its radius is because that plane meets the paraboloid where . The outward direction on the curved patch is upward, while the bottom disk points downward.
The divergence is . Horizontal slices of the solid have area , so the total closed-surface flux is
On the bottom disk, , giving cap flux . Thus the requested curved-patch flux is .
To check directly, the upward vector area factor is . On the patch its dot product with the field is . Polar integration gives
Both approaches require the same geometry, but the divergence route reduces the field differentiation and the integral to a single height variable. The cap subtraction is essential: the theorem first gives flux through the whole closed boundary.
For a solid with an internal cavity, the outward normal on the cavity wall points into the cavity. It points away from the material of the solid, even though it points toward the cavityโs center. This is the three-dimensional counterpart of clockwise orientation around a hole in Greenโs theorem.
Stokesโ Theorem
Section titled โStokesโ TheoremโGreenโs theorem used small loops lying in a plane. A curved surface can also be divided into small oriented patches, each approximately flat. Curl dotted with the patch normal measures local circulation per unit area in that patchโs plane. Adding the patch circulations cancels every shared edge when neighboring orientations agree, leaving only the surface boundary.
This is why a surface integral of curl can replace a line integral around a space curve. The compatible orientation is part of the cancellation: reversing a patch alone would make its shared edges reinforce instead of cancel. Stokesโ theorem gives the precise relation.
Theorem. Let be an oriented, piecewise smooth surface with boundary . If has continuous first partial derivatives on an open set containing , then
where the boundary direction matches the surface normal by the right-hand rule.
Curl measures circulation per unit area in the small-patch limit. As with divergence, contributions along internal boundaries cancel when patches are joined.
For a horizontal disk with upward normal, its boundary runs counterclockwise viewed from above. Reversing the normal reverses the induced boundary direction. When choosing another spanning surface, preserve the boundary and its orientation, and check that the field is smooth on the replacement surface.
Example. Find the circulation of around the circle in , counterclockwise viewed from above.
Choose the flat disk in with upward normal. Since
the circulation is
The -component of the original field contributes no work along this horizontal boundary.
Choosing a convenient spanning surface
Section titled โChoosing a convenient spanning surfaceโStokesโ theorem allows the spanning surface to change because the circulation is tied to its oriented boundary. A curved surface can often be replaced by a flat disk or triangle with a simpler normal. The replacement still needs to lie in a region where the field is sufficiently smooth.
Example. The curve is the intersection of the paraboloid with the plane . For , find the circulation around clockwise as viewed from above.
The curve is the boundary of a patch of the paraboloid, but the flat plane patch has a simpler normal. First find its projection by equating the heights:
The projected region is a disk centered at with area . For the plane graph , the upward vector area factor is . That normal induces counterclockwise orientation from above, so we will negate the resulting integral to match the requested direction.
The curl is
Its dot product with the upward factor is on the plane. By symmetry about , the average of over the disk is . Thus the upward-oriented surface integral is . For the clockwise boundary, the answer is
The replacement surface has the same geometric boundary and lies in a region where the polynomial field is smooth. Those facts permit the replacement; matching the orientation determines the sign. The original curve need not be parametrized to perform this calculation.
Reference
Section titled โReferenceโTopic and section order follows Anton, Bivens, and Davis, Calculus: Early Transcendentals, 12th edition, Chapter 15, renumbered as Chapter 5 here. Explanations and worked examples on this page are original study notes.