Put a wing in a wind tunnel and measure the air velocity on a big loop drawn around it. Add up the component of velocity along the loop, all the way around. That single number, the circulation, tells you the lift on the wing: no circulation, no lift. In the last two lessons you met 2.7 Divergence: Sources & Sinks and 2.8 Curl & Vorticity as local measurements, defined through the flux and circulation around infinitesimally small boxes and loops. This lesson makes those loops finite. We learn to add a quantity up along a curve (line integrals: work and circulation) and across a surface (flux integrals: how much fluid passes through a net). Together with the double and triple integrals of 2.5 Multiple Integrals, these are the raw materials for the big integral theorems of the next lesson and for every conservation law in fluid dynamics.
The recipe is the same every time, and it’s worth stating up front: parametrize, substitute, integrate. A curve or surface becomes a function of one or two parameters, the integrand gets rewritten in those parameters, and what’s left is an ordinary single or double integral that you already know how to do (by hand or numerically).
Transcript
- Why does a wing lift? The cleanest answer is a single number: the circulation of the air around it. Today we learn how to add things up along curves and across surfaces.
- A curve becomes something we can compute with once we parametrize it. A function r of t spits out a point for every time t, so the curve is the path of a moving dot.
- Its derivative, r prime of t, is the velocity of the dot. It is tangent to the curve, and its length is the speed.
- In a tiny time d t the dot travels a tiny length d s, equal to speed times d t. Adding up d s gives arc length, and that is the template for every line integral.
- First kind of line integral: a scalar function f, like the density of a wire. Stand a curtain on the curve with height f. The integral of f d s is the area of that curtain.
- To compute it, substitute the parametrization and turn d s into speed times d t. You get an ordinary integral in t, and the answer does not depend on how fast you walk.
- Second kind: a vector field, say the wind. As you walk the curve, only the part of the wind along your direction of travel pushes you forward or holds you back.
- Add up force dotted with displacement, F dot d r, along the whole path. That total is the work done by the field. Green bits help you, red bits fight you.
- Reverse the direction of travel and every displacement flips sign, so the work flips sign too. Vector line integrals care about orientation; scalar ones do not.
- When the curve is closed, the line integral gets a special name: circulation. It measures how much the field flows around the loop.
- In this rotating flow the field lines up with the loop everywhere, so the circulation is big. It equals two times the enclosed area: exactly the curl of two, times area, that we found in the curl lesson.
- Now go from A to B by two different routes. In the rotating flow the lower route rides with the current and the upper route fights it, so the two amounts of work differ.
- The work depends on the path. Fields like this are called non conservative, and they are exactly the ones with circulation.
- Now a gradient field: the field is the gradient of a potential f, whose level curves are drawn in violet. Take the same two routes from A to B.
- Both routes give the same work: f at B minus f at A. This is the fundamental theorem for line integrals, and the proof is one line of chain rule: along the path, the rate of change of f is the gradient dotted with r prime.
- So for a gradient field, work is path independent, and around any closed loop the circulation is zero. Conservative, path independent, zero circulation: three names for one property.
- Circulation uses the tangential part of the field. Use the normal part instead and you measure flux: how much fluid crosses the curve per unit time.
- In this source flow, fluid streams out through every piece of the loop, so the outward flux is positive. For a velocity field, flux is the volume per second leaking out.
- Surfaces work the same way, with two parameters instead of one. A function r of u and v bends a flat square of parameters into a curved sheet in space.
- Nudging u traces one tangent vector, r sub u. Nudging v traces another, r sub v. Their cross product is normal to the surface, and its length is the area of the tiny parallelogram they span.
- So the area element is the length of that cross product times d u d v, and the flux of a field through the surface adds up F dotted with the cross product over the parameter square. It is a double integral, like the ones from the multiple integrals lesson.
- Finally, the payoff. Here is air flowing past a spinning cylinder, a stand-in for a wing. The flow is a uniform stream plus a clockwise swirl, so air rushes faster over the top.
- Measure the circulation on any loop around the body. Because the field is irrotational outside the body, every loop gives the same number, gamma.
- The Kutta Joukowski theorem says the lift per unit span is air density, times free stream speed, times that circulation. No circulation, no lift.
- Wings are shaped to create exactly this circulation, and panel methods in aerodynamics solve for it numerically, one line integral at a time.
- To recap. Parametrize, substitute, and integrate in t. Tangential part gives work and circulation, normal part gives flux, and gradient fields are path independent.
- Next time, Green, Stokes and Gauss show that circulation and flux on a boundary are really curl and divergence, added up inside.
Parametrized curves
A parametrized curve is a function (or ),
Think of as time and as the position of a moving dot. The curve is the trail it leaves. This is exactly the output of your ODE solvers: RK4 applied to produces a parametrized curve, sampled at the time steps.
Some standard parametrizations:
| Curve | Parametrization |
|---|---|
| segment from to | , |
| circle of radius about , counterclockwise | , |
| graph | , |
| helix in 3D |
The derivative is the velocity. It is tangent to the curve, and its length is the speed. In a small time , the dot moves a small distance
which is just Pythagoras on the little step . Adding up these pieces gives the arc length , which you may remember from Calc II. The unit tangent vector is .
A parametrization also gives the curve an orientation: the direction of increasing . The same set of points can be traversed either way. For closed curves in the plane, the default (“positive”) orientation is counterclockwise, with the enclosed region on your left.
Line integrals of scalar fields
Suppose a thin wire lies along the curve and has linear density (kilograms per meter). Chop the wire into small pieces of length ; each has mass about . Summing and refining gives the line integral of with respect to arc length:
The geometric picture from the video: stand a curtain on the curve whose height above each point is . The integral is the area of the curtain. When it is simply the length of .
Worked example: a straight wire
Compute where is the segment from to .
Parametrize: for . Then , so , and :
Check with the arc-length parametrization , , which has speed 1: . ✓
A wire is bent into the upper half of the circle and its density is (heavier at the top).
- Find the length of the wire using a line integral.
- Find its total mass.
- Without integrating, explain why .
Show worked solution
Parametrize , . Then and .
- Length , half the circumference . ✓
- Mass .
- The wire is symmetric about the -axis, and takes opposite values at mirror-image points, so the contributions cancel. (Indeed .) This is why the center of mass lies on the -axis.
Line integrals of vector fields: work
Now let be a force field (or the wind) and walk along . Over a tiny displacement , the field does work : only the component of along the direction of travel counts. The total work is
Writing shows the same thing as a scalar line integral of the tangential component: . In components, with , you will also see the notation
Worked example: two paths, two fields
Compute from to along (a) the line and (b) the parabola , for and .
Parametrize (a) as with , and (b) as with , both for .
Field .
- (a) , so and .
- (b) , so and .
Field .
- (a) , so and . The path runs radially outward, perpendicular to this rotating field.
- (b) , so and .
For the two paths agree; for they don’t. That difference is the subject of the section after next.
Circulation and flux in the plane
When is a closed curve, the line integral of a velocity field gets a special name and a special symbol:
It measures how much the flow goes around the loop. Its partner uses the outward normal instead of the tangent:
For a velocity field, is the area of fluid per unit time crossing the curve outward (in 3D it would be volume per unit time). How do we get from a parametrization? For a counterclockwise curve, the tangent step is ; rotating it a quarter turn clockwise points outward, giving . So with ,
Worked example: rotation, source and vortex on a circle
Take the counterclockwise circle , so and .
Solid-body rotation . On the circle , which is parallel to :
Notice , which is exactly the curl of this field. Curl is circulation per unit area, and for this field the ratio is 2 for loops of any size.
Point source . On the circle . Then , so for every radius. The same fluid that leaves a small circle must leave a big one. Its circulation is zero.
Point vortex . Now , so for every radius, and .
That last result is a puzzle worth keeping. A direct computation shows the point vortex has zero curl away from the origin: with and , both and equal . Yet its circulation around the origin is , not 0. All of that circulation is concentrated at the one point where the field blows up. We’ll come back to this when we discuss path independence.
Things to try in the lab:
- Solid-body rotation. Use the circle preset, then draw loops of different shapes and sizes. The ratio stays at 2 no matter what you draw. Switch to shear flow : the ratio is , the curl of that field, even though the flow lines are straight.
- Point vortex. Drag the handle so the loop slides across the red dot at the origin. jumps between (origin inside) and (origin outside), no matter how you deform the loop. Do the same with the point source and watch the flux.
- Uniform wind. Every closed loop has and : whatever enters on one side leaves on the other.
- Wind + clockwise vortex. This is the flow around a lifting body. Increase and read off the Kutta–Joukowski lift. A loop that doesn’t enclose the body gives zero circulation and zero lift.
- Hit Reverse direction: circulation flips sign, but the outward flux doesn’t (outward is outward either way).
Conservative fields and path independence
Back to the puzzle from the two-path example: why did give the same work along both paths? Because is a gradient field, and gradient fields obey a beautiful shortcut.
Derivation. It is the chain rule from 2.2 Linearization, the Chain Rule & the Jacobian. Along the curve, is an ordinary function of with derivative
So the line integral is by the ordinary fundamental theorem of calculus. ∎
For from to : , along any path, matching both calculations.
Consequences. For a field on a connected region, the following are equivalent:
- for some potential (conservative);
- depends only on the endpoints (path independent);
- around every closed curve.
(1 ⇒ 2) is the theorem. (2 ⇔ 3): two paths from to combine into a loop (out along one, back along the other), and the loop integral is their difference. (2 ⇒ 1): define along any path; path independence makes this well defined, and differentiating it recovers .
The name “conservative” comes from mechanics: if a force is , the work done around any closed path is zero, so kinetic plus potential energy is conserved. Gravity and springs are conservative; friction and drag are not.
A practical test. Since the curl of a gradient is zero (2.8 Curl & Vorticity), a conservative field must have , i.e. in 2D. Conversely:
The two-path example confirms the test: has , while has . And for , the loop “out along the parabola, back along the line” has circulation . The region between the curves has area , and . Circulation equals curl times area again! That’s not a coincidence; it’s Green’s theorem, coming in 2.10 Green, Stokes & the Divergence Theorem.
Worked example: finding a potential
Show is conservative, find a potential, and compute the work from to .
Test: and , equal on all of (no holes), so is conservative.
Integrate in , treating as constant: , where the “constant” can depend on . Differentiate in and match : , so and . Hence
Let .
- Show that is conservative and find a potential .
- Compute the work done by moving from to .
- Verify your answer by integrating directly along the straight segment.
- What is around the unit circle?
Show worked solution
- and on all of , so is conservative. From : . Then gives . So .
- .
- Take , , with . Then and . Integrating: . ✓
- Zero: a conservative field has zero circulation around every closed curve.
Parametrized surfaces
A surface in needs two parameters:
The map bends the flat parameter region into a curved sheet. Holding fixed and varying traces a curve on the surface with tangent vector ; similarly . A tiny rectangle in maps to a tiny parallelogram on the surface with sides and .
The cross product is perpendicular to both and , and its length is the area of the parallelogram they span (the 3D cousin of the determinant from 1.4 Determinants as Volume Scaling). So
This is the same idea as the Jacobian factor in a change of variables from 2.5 Multiple Integrals: it tells you how much the map stretches area.
Graphs. For use . Then , , and
This normal points upward (positive -component).
Spheres. For radius use spherical angles (from the north pole) and :
A computation gives , pointing outward with length . Sanity check, the surface area:
Surface integrals and flux
The scalar surface integral adds up over area, for example the mass of a curved shell with surface density .
The important one for fluids is flux. Pick an orientation (a consistent choice of unit normal ; for closed surfaces, outward). The flux of through is
The convenient thing is that the messy length cancels: . If points the wrong way for your orientation, flip the sign.
Why is this “volume per time”? If fluid moves with velocity , in time the fluid crossing a small patch fills a slanted prism of base and height . So is the volume per second through the patch. Only the normal component counts: fluid sliding along the surface doesn’t cross it.
Worked example: flux out of a sphere
Find the outward flux of through the sphere of radius .
On the sphere , and , so . Then
Notice that , three times the volume, and the divergence of is . Flux equals divergence times volume; that’s the divergence theorem, next lesson.
Worked example: flow through a dome
A uniform upward flow passes through the dome , , oriented upward. Find the flux.
Using the graph formula, and . The parameter region is the unit disk, so the flux is its area, . That matches intuition: every bit of fluid crossing the flat unit disk at the base must also cross the dome. The flux depends only on the boundary here because this flow has zero divergence.
Compute the upward flux of through the paraboloid , .
Show worked solution
Parametrize by over the unit disk . With , the upward normal is . On the surface,
Switch to polar coordinates, with :
Check (preview of the divergence theorem): and the solid under the dome has volume , so the total outward flux of the closed region is . On the flat base (, outward normal ), , so all of it goes through the dome. ✓
Let , a rotation combined with an expansion, and let be the counterclockwise circle of radius centered at the origin.
- Compute the circulation .
- Compute the outward flux .
- Divide each by the enclosed area. Compare with the curl and the divergence .
- Is conservative?
Show worked solution
Use , so , , and .
- , so .
- , so .
- Both ratios are . The curl is and the divergence is . Circulation per area is curl, flux per area is divergence, exactly as in the curl and divergence lessons (here even for big loops, because both are constant).
- No: its circulation around the circle is nonzero (equivalently, its curl is nonzero).
Line integrals in code
Every integral in this lesson becomes a one-dimensional or two-dimensional quadrature once it’s parametrized. Here is the playground version for circles in the plane:
Look at the rows: rotation and shear give circulation per area equal to their curl (2 and ) for every circle; the point vortex and point source give only when the circle surrounds the origin, and 0 otherwise.
Now implement the general tool yourself.
The last line of the solution prints the circulation around the closed loop formed by the two paths: , equal to curl times the area between the curves .
Surface flux works the same way with a double sum over the parameter grid:
In each case the flux equals the divergence times the volume of the ball (, and times ). Hold that thought for 2.10 Green, Stokes & the Divergence Theorem.
Circulation and lift: the Kutta–Joukowski theorem
Here is the payoff promised at the start. Model the flow around a 2D wing section (an airfoil, or a spinning cylinder) as a uniform stream of speed plus a swirl. Away from the body the flow is irrotational, so by the reasoning in the point-vortex example, every loop enclosing the body has the same circulation , and every loop not enclosing it has zero. The body behaves, from far away, like a point vortex of strength sitting in a uniform wind. The lab’s “wind + clockwise vortex” field is exactly this.
Why should circulation produce lift? A clockwise swirl adds to the stream above the body and subtracts below, so air moves faster over the top. Bernoulli’s principle (faster flow, lower pressure) then gives lower pressure on top than on the bottom, and the net pressure force points up. The theorem is the precise version, and the proof is itself a line integral of pressure around the body, done in 11.7 Potential Flow & Stream Functions. Real wings get their circulation from the Kutta condition: the sharp trailing edge forces the flow to leave smoothly, which fixes . Computing that circulation is the job of thin-airfoil theory and panel methods (12.1 Airfoils, Circulation & Lift, 12.2 Thin Airfoil Theory & Panel Methods).
A light aircraft weighs N, has a wingspan of m, and cruises at m/s in air of density kg/m³. Treat the wing as uniform along its span (a crude 2D model).
- What lift per unit span is needed in level flight?
- What circulation must each wing section produce?
- If the plane slows to m/s, how must change, and how might the pilot achieve it?
Show worked solution
- In level flight lift balances weight: N/m.
- m²/s.
- , so it must increase by the factor , to about m²/s. The pilot raises the nose (increasing the angle of attack) or deploys flaps; both change the airfoil’s effective shape so that the Kutta condition forces a larger circulation. At too high an angle of attack the flow separates and the model fails: that’s a stall.
Key Takeaways
- Parametrize, substitute, integrate. A curve gives and ; a surface gives and .
- adds up a scalar along a curve (mass, length) and ignores orientation. adds up the tangential part of a field (work) and flips sign when the curve is reversed.
- Around a closed curve, the tangential integral is the circulation and the normal integral is the flux. Per unit area, for small loops, they are curl and divergence.
- Fundamental theorem for line integrals: . Conservative, path independent, and zero circulation around every loop are the same property.
- Curl-free implies conservative only on regions without holes; the point vortex has zero curl but circulation around its center.
- Flux through a surface, , measures volume per time crossing it; grid and finite-volume solvers are built on discrete fluxes.
- Kutta–Joukowski: lift per span is . The circulation around a wing is what holds an airplane up.