Line integrals, flux and circulation
Ten solved problems on path integrals, scalar arc length, oriented surface flux, closed boundaries, holes and the limits of integral theorems.
Line Integral, Flux and Circulation Exercises
These ten problems develop the methods in Flux and Circulation in Engineering Fields. They move from parametrizing a path to choosing a surface normal and checking whether an integral theorem applies. Coordinates and fields are dimensionless unless physical units are explicitly given, as in the wire-mass problem.
For each vector line integral, write the path and its direction. For each surface flux, specify the normal. A scalar arc-length integral uses positive distance and behaves differently when the direction is reversed. Review double integrals and coordinate changes if setting up the projected domain is the difficult step.
1. A Piecewise Path and a Potential
Problem. Integrate from to along the two straight segments through . Check the result using a potential, and find the value for the reversed path.
Solution. On the horizontal segment, use for . On the vertical segment, use for . Their contributions are
The total is . Independently, with , so the endpoint difference is . A straight path between those endpoints gives the same result because this potential is defined throughout the plane. Reversing the path changes the vector line integral to .
2. Same Endpoints, Different Integrals
Problem. For , compare the integral from to along the straight diagonal and along the broken path through . Then traverse forward and backward to form a closed loop.
Solution. On the diagonal, for . Hence
On the horizontal leg of , , so the field is zero. On its vertical leg, , so again. The broken-path integral is therefore zero.
The closed loop is counterclockwise and encloses a triangle of area . Its circulation is . Green’s theorem checks this independently: , and integrating that constant over the triangle gives . Equal endpoints alone do not imply equal line integrals.
3. Construct a Potential Before Integrating
Problem. Find the line integral of from to along any piecewise smooth path in the plane.
Solution. Integrating with respect to gives . Matching the second component requires , so one potential is
The integral is . This argument establishes path independence by constructing a globally defined potential; it does not rely only on a local curl test.
For a direct check, take , . The integrand becomes , whose integral is . Adding a constant to the potential would change neither the field nor the endpoint difference.
4. Wire Mass Uses Positive Arc Length
Problem. A straight wire joins m to m. Its linear density is
Find its mass. Does traversing the wire in the opposite direction change the answer?
Solution. Use m for . The speed of this parametrization is m, so . Therefore
The average density is 5 kg/m over a 5 m wire, which gives the same mass. A reversed parametrization has derivative m but the same positive magnitude, so the mass remains 25 kg. Treating as a signed displacement would incorrectly make the mass negative. The factor also matters: a dimensional length cannot be added directly to the number one.
5. Reparametrize a Curved Path
Problem. For , integrate along the parabola from to . Repeat with , , and state the result for the reversed curve.
Solution. The first parametrization gives
After substitution, position is and its derivative is . Both must change:
The new parameter traverses the same curve in the same direction, so it changes neither the integral nor its meaning. Its zero derivative at the starting endpoint causes no problem for these integrals. Reversing the direction gives . Substituting into the field while retaining the old derivative would not be a valid change of parameter.
6. Flux Through a Tilted Triangle
Problem. The surface is the part of above , , . Find the upward flux of and the downward flux.
Solution. Parametrize the surface by . The upward oriented area vector is
The flux is therefore an integral over the projected triangle:
The projected area is 2 and the linear function has average value there, giving the independent check . If a unit normal is used instead, it is and the surface element is . These factors cancel; normalizing the cross product without restoring the surface-area factor would lose a factor of . Reversing the normal gives .
7. A Closed Box: Check Every Face
Problem. Let on the box , , . Find the total outward flux by direct face integration and by the divergence theorem.
Solution. On , the outward normal is , the normal field component is 4 and the face area is 3. Its flux is 12. On , the component is 2 and the area is 6, giving another 12. On , the component is 3 and the area is 2, giving 6.
The opposite faces have outward normals , and . Their relevant field components are zero on , and , respectively. Thus all six faces together give .
The divergence is . The field is continuously differentiable throughout the box and its neighbourhood, so
The agreement checks signs and missing faces. The lower faces contribute zero because of this particular field, not because lower or inward-facing coordinate planes can generally be omitted.
8. An Open Hemisphere Needs Its Cap
Problem. Let be the upper hemisphere , , with the normal pointing away from the origin. Find the flux of through the curved surface only.
Solution. Add the disk , to close the upper half-ball. The divergence is 2 and the half-ball volume is , so the total closed-surface flux is .
The cap’s outward normal points downward, . Its normal field component is , giving cap flux . Hence
For a direct check, use polar angle measured from and azimuth . On the radius-2 sphere, and . Thus
Using the closed-surface answer for the hemisphere alone would miss the cap correction. The disk has a negative flux even though its area is positive; the sign comes from its outward normal.
9. A Hole Adds a Boundary
Problem. Remove the rectangle , from the interior of , . For , find circulation around the entire boundary with orientation induced by the surface normal.
Solution. The outer rectangle is traversed counterclockwise. The hole is traversed clockwise, so that the remaining material lies to the left along both boundary loops.
On the outer rectangle, horizontal sides contribute zero because . The right side gives ; the left side gives zero. For the hole, first compute the counterclockwise value: the right side gives 4 and the left side gives , for a total of 3. The required clockwise direction changes it to . Thus
Green’s theorem gives the same result because the scalar curl is :
Omitting the inner boundary gives 18, which corresponds to the unperforated rectangle. Reversing both loops changes the total to ; reversing just the inner loop produces incompatible boundary orientations. The field itself is smooth everywhere here, so the hole is a geometric feature rather than a singularity of this field.
10. A Singular Field Inside a Closed Surface
Problem. Consider for . Find its outward flux through the sphere of radius 2 centred at the origin. Explain why zero divergence away from the origin does not make that flux zero. Then apply the divergence theorem to the shell .
Solution. On a sphere of radius , the outward unit normal is and the normal field component is . Therefore
In particular, the radius-2 sphere has flux . Direct differentiation gives at every nonzero point, but the field is undefined at the origin. The classical divergence theorem cannot be applied to the full ball: its smoothness hypothesis fails inside that volume. Integrating the ordinary zero-divergence expression through that excluded point would be an invalid use of the theorem.
The shell avoids the singularity, and the field is smooth on an open neighbourhood of the shell. Its boundary has two components. The outer sphere contributes . On the inner sphere, “outward from the shell” points toward the origin, so its contribution is . Their sum is zero, matching the volume integral of divergence. This is consistent with the sphere result; it is a different volume with a different complete boundary.
Applications and checks
The geometric bookkeeping is part of the model. A wire mass integrates density against positive length; work integrates a force along a directed displacement; transport through a surface uses an oriented area. Their units and reversal rules help diagnose choosing the wrong integral before a long calculation begins.
When using a global theorem to simplify a calculation, record the whole boundary and the region on which the field is regular. An omitted cap changes a transport balance, a missing inner contour changes circulation, and an unexamined singularity invalidates a theorem’s application. The examples above compare direct parameterized integration with potentials or area and volume identities; numerical agreement checks the assigned mathematics, not the physical validity of an arbitrary engineering field.
The existing field-integral laboratory lets you explore radial transport and rotation separately. For the theorem statements and their domain requirements, see Poonen’s MIT notes, sections 18–20.
Back to contents