Search the atlas

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.

Diagonal and broken paths between the same points; outward normals on a hemisphere and its bottom cap; a rectangular region with counterclockwise outer boundary and clockwise hole boundary.
Geometries for problems 2, 8 and 9. The hemisphere panel is a cross-section: its two arrows show outward normal directions, not field magnitudes. The rectangular region is drawn to a common horizontal and vertical scale; its hole is 1 by 1. Open the vector diagram.

1. A Piecewise Path and a Potential

Problem. Integrate F=(2x,y)\mathbf F=(2x,y) from (0,0)(0,0) to (2,1)(2,1) along the two straight segments through (2,0)(2,0). Check the result using a potential, and find the value for the reversed path.

Solution. On the horizontal segment, use r1(t)=(t,0)\mathbf r_1(t)=(t,0) for 0≤t≤20\le t\le2. On the vertical segment, use r2(s)=(2,s)\mathbf r_2(s)=(2,s) for 0≤s≤10\le s\le1. Their contributions are

∫C1F⋅dr=∫022t dt=4,∫C2F⋅dr=∫01s ds=12.\begin{aligned} \int_{C_1}\mathbf F\cdot d\mathbf r&=\int_0^2 2t\,dt=4,\\ \int_{C_2}\mathbf F\cdot d\mathbf r&=\int_0^1 s\,ds=\frac12. \end{aligned}

The total is 9/29/2. Independently, F=∇ϕ\mathbf F=\nabla\phi with ϕ=x2+y2/2\phi=x^2+y^2/2, so the endpoint difference is ϕ(2,1)−ϕ(0,0)=9/2\phi(2,1)-\phi(0,0)=9/2. 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 −9/2-9/2.

2. Same Endpoints, Different Integrals

Problem. For F=(y,0)\mathbf F=(y,0), compare the integral from (0,0)(0,0) to (1,1)(1,1) along the straight diagonal C1C_1 and along the broken path C2C_2 through (1,0)(1,0). Then traverse C2C_2 forward and C1C_1 backward to form a closed loop.

Solution. On the diagonal, r(t)=(t,t)\mathbf r(t)=(t,t) for 0≤t≤10\le t\le1. Hence

∫C1F⋅dr=∫01t dt=12.\int_{C_1}\mathbf F\cdot d\mathbf r =\int_0^1 t\,dt=\frac12.

On the horizontal leg of C2C_2, y=0y=0, so the field is zero. On its vertical leg, dx=0dx=0, so F⋅dr=y dx=0\mathbf F\cdot d\mathbf r=y\,dx=0 again. The broken-path integral is therefore zero.

The closed loop is counterclockwise and encloses a triangle of area 1/21/2. Its circulation is 0−1/2=−1/20-1/2=-1/2. Green’s theorem checks this independently: ∂Fy/∂x−∂Fx/∂y=−1\partial F_y/\partial x-\partial F_x/\partial y=-1, and integrating that constant over the triangle gives −1/2-1/2. Equal endpoints alone do not imply equal line integrals.

3. Construct a Potential Before Integrating

Problem. Find the line integral of F=(2xy,x2+2y)\mathbf F=(2xy,x^2+2y) from (0,0)(0,0) to (2,1)(2,1) along any piecewise smooth path in the plane.

Solution. Integrating ∂ϕ/∂x=2xy\partial\phi/\partial x=2xy with respect to xx gives ϕ=x2y+g(y)\phi=x^2y+g(y). Matching the second component requires g′(y)=2yg'(y)=2y, so one potential is

ϕ(x,y)=x2y+y2.\phi(x,y)=x^2y+y^2.

The integral is ϕ(2,1)−ϕ(0,0)=4+1=5\phi(2,1)-\phi(0,0)=4+1=5. 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 r(t)=(2t,t)\mathbf r(t)=(2t,t), 0≤t≤10\le t\le1. The integrand becomes 12t2+2t12t^2+2t, whose integral is 4+1=54+1=5. 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 (0,0)(0,0) m to (3,4)(3,4) m. Its linear density is

λ(x)=2 kgm(1+x1 m).\lambda(x)=2\,\frac{\mathrm{kg}}{\mathrm m} \left(1+\frac{x}{1\,\mathrm m}\right).

Find its mass. Does traversing the wire in the opposite direction change the answer?

Solution. Use r(t)=(3t,4t)\mathbf r(t)=(3t,4t) m for 0≤t≤10\le t\le1. The speed of this parametrization is ∣r′(t)∣=5|\mathbf r'(t)|=5 m, so ds=5 m dtds=5\,\mathrm m\,dt. Therefore

m=∫Cλ ds=∫0110(1+3t) dt  kg=25 kg.m=\int_C\lambda\,ds =\int_0^1 10(1+3t)\,dt\;\mathrm{kg} =25\,\mathrm{kg}.

The average density is 5 kg/m over a 5 m wire, which gives the same mass. A reversed parametrization has derivative (−3,−4)(-3,-4) m but the same positive magnitude, so the mass remains 25 kg. Treating dsds as a signed displacement would incorrectly make the mass negative. The factor x/(1 m)x/(1\,\mathrm m) also matters: a dimensional length cannot be added directly to the number one.

5. Reparametrize a Curved Path

Problem. For F=(x2,y)\mathbf F=(x^2,y), integrate along the parabola r(t)=(t,t2)\mathbf r(t)=(t,t^2) from t=0t=0 to t=1t=1. Repeat with t=s2t=s^2, 0≤s≤10\le s\le1, and state the result for the reversed curve.

Solution. The first parametrization gives

∫CF⋅dr=∫01(t2+2t3) dt=13+12=56.\int_C\mathbf F\cdot d\mathbf r =\int_0^1(t^2+2t^3)\,dt =\frac13+\frac12=\frac56.

After substitution, position is r(s)=(s2,s4)\mathbf r(s)=(s^2,s^4) and its derivative is (2s,4s3)(2s,4s^3). Both must change:

∫01(2s5+4s7) ds=13+12=56.\int_0^1(2s^5+4s^7)\,ds =\frac13+\frac12=\frac56.

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 −5/6-5/6. 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 z=2−x−yz=2-x-y above x≥0x\ge0, y≥0y\ge0, x+y≤2x+y\le2. Find the upward flux of F=(0,0,z)\mathbf F=(0,0,z) and the downward flux.

Solution. Parametrize the surface by r(x,y)=(x,y,2−x−y)\mathbf r(x,y)=(x,y,2-x-y). The upward oriented area vector is

rx×ry=(1,1,1).\mathbf r_x\times\mathbf r_y=(1,1,1).

The flux is therefore an integral over the projected triangle:

Φ↑=∫02∫02−x(2−x−y) dy dx=∫02(2−x)22 dx=43.\begin{aligned} \Phi_\uparrow &=\int_0^2\int_0^{2-x}(2-x-y)\,dy\,dx\\ &=\int_0^2\frac{(2-x)^2}{2}\,dx=\frac43. \end{aligned}

The projected area is 2 and the linear function zz has average value 2/32/3 there, giving the independent check 2(2/3)=4/32(2/3)=4/3. If a unit normal is used instead, it is (1,1,1)/3(1,1,1)/\sqrt3 and the surface element is dS=3 dx dydS=\sqrt3\,dx\,dy. These factors cancel; normalizing the cross product without restoring the surface-area factor would lose a factor of 3\sqrt3. Reversing the normal gives Φ↓=−4/3\Phi_\downarrow=-4/3.

7. A Closed Box: Check Every Face

Problem. Let F=(x2,2y,z)\mathbf F=(x^2,2y,z) on the box 0≤x≤20\le x\le2, 0≤y≤10\le y\le1, 0≤z≤30\le z\le3. Find the total outward flux by direct face integration and by the divergence theorem.

Solution. On x=2x=2, the outward normal is +i^+\hat{\mathbf i}, the normal field component is 4 and the face area is 3. Its flux is 12. On y=1y=1, the component is 2 and the area is 6, giving another 12. On z=3z=3, the component is 3 and the area is 2, giving 6.

The opposite faces have outward normals −i^-\hat{\mathbf i}, −j^-\hat{\mathbf j} and −k^-\hat{\mathbf k}. Their relevant field components are zero on x=0x=0, y=0y=0 and z=0z=0, respectively. Thus all six faces together give 12+12+6=3012+12+6=30.

The divergence is 2x+32x+3. The field is continuously differentiable throughout the box and its neighbourhood, so

∭V(2x+3) dV=3∫02(2x+3) dx=30.\iiint_V(2x+3)\,dV =3\int_0^2(2x+3)\,dx=30.

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 SS be the upper hemisphere x2+y2+z2=4x^2+y^2+z^2=4, z≥0z\ge0, with the normal pointing away from the origin. Find the flux of F=(x,y,1)\mathbf F=(x,y,1) through the curved surface only.

Solution. Add the disk z=0z=0, x2+y2≤4x^2+y^2\le4 to close the upper half-ball. The divergence is 2 and the half-ball volume is 16π/316\pi/3, so the total closed-surface flux is 32π/332\pi/3.

The cap’s outward normal points downward, −k^-\hat{\mathbf k}. Its normal field component is −1-1, giving cap flux −4π-4\pi. Hence

Φcurved+Φcap=32π3,Φcurved=32π3−(−4π)=44π3.\begin{aligned} \Phi_{\rm curved}+\Phi_{\rm cap}&=\frac{32\pi}{3},\\ \Phi_{\rm curved}&=\frac{32\pi}{3}-(-4\pi) =\frac{44\pi}{3}. \end{aligned}

For a direct check, use polar angle θ\theta measured from +z+z and azimuth φ\varphi. On the radius-2 sphere, F⋅n^=2sin⁡2θ+cos⁡θ\mathbf F\cdot\hat{\mathbf n}=2\sin^2\theta+\cos\theta and dS=4sin⁡θ dθ dφdS=4\sin\theta\,d\theta\,d\varphi. Thus

Φcurved=2π∫0π/2(8sin⁡3θ+4cos⁡θsin⁡θ) dθ=44π3.\Phi_{\rm curved} =2\pi\int_0^{\pi/2} (8\sin^3\theta+4\cos\theta\sin\theta)\,d\theta =\frac{44\pi}{3}.

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 1<x<21<x<2, 1/2<y<3/21/2<y<3/2 from the interior of 0≤x≤30\le x\le3, 0≤y≤20\le y\le2. For F=(0,x2)\mathbf F=(0,x^2), find circulation around the entire boundary with orientation induced by the +z+z 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 dy=0dy=0. The right side gives ∫029 dy=18\int_0^2 9\,dy=18; the left side gives zero. For the hole, first compute the counterclockwise value: the right side gives 4 and the left side gives −1-1, for a total of 3. The required clockwise direction changes it to −3-3. Thus

Γtotal=18−3=15.\Gamma_{\rm total}=18-3=15.

Green’s theorem gives the same result because the scalar curl is 2x2x:

∬D2x dA=∫034x dx−∫122x dx=18−3=15.\begin{aligned} \iint_D2x\,dA &=\int_0^3 4x\,dx-\int_1^2 2x\,dx\\ &=18-3=15. \end{aligned}

Omitting the inner boundary gives 18, which corresponds to the unperforated rectangle. Reversing both loops changes the total to −15-15; 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 F=r/∣r∣3\mathbf F=\mathbf r/|\mathbf r|^3 for r≠0\mathbf r\ne\mathbf0. 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 1≤∣r∣≤21\le|\mathbf r|\le2.

Solution. On a sphere of radius RR, the outward unit normal is r^\hat{\mathbf r} and the normal field component is 1/R21/R^2. Therefore

ΦR=1R2(4πR2)=4π,R>0.\Phi_R=\frac1{R^2}(4\pi R^2)=4\pi, \qquad R>0.

In particular, the radius-2 sphere has flux 4π4\pi. Direct differentiation gives ∇⋅F=0\nabla\cdot\mathbf F=0 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 +4π+4\pi. On the inner sphere, “outward from the shell” points toward the origin, so its contribution is −4π-4\pi. 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