Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Adding up along a route
Cycling with the wind at your back, the wind helps every metre. Turn around and it fights every metre. To total how much the wind helped on a whole ride, you add up “how much it pushed along my direction” times “how far I went”, piece by piece. That total is a line integral. With a force, it’s the work done.
Here’s the surprise. For some forces, like gravity, the total depends only on where you start and finish, not on the route. Climbing a hill costs the same energy against gravity by the steep path or the zig-zag one. For others, like wind or friction, the route matters a lot.
Planning a drone route, a rover traverse or a spacecraft trajectory means adding up energy along a path. The conservative part, gravity, is fixed by the endpoints. The rest, drag, wind and friction, is what route planning can actually improve.
- 1. Riding with a tailwind, the wind's work on you is…
- 2. Lifting a box 2 m by a straight or a winding path, gravity's work is…
- 3. Friction's work on a longer route is…
Level 1: Beginner
★★☆☆☆ Basic⏱ 15 minSecondary-school mathematics: arithmetic and elementary algebra.Curves as parametrizations
Describe a curve by for . Its velocity has length , so a small piece has length .
| Integral | Formula | Example |
|---|---|---|
| arc length | circle of radius : | |
| scalar (mass of a wire) | density times length | |
| vector (work) | force along the motion |
Example: around the unit circle . Then , so the work is .
Example: a constant force from to does work along any route.
- 1. Arc length of a circle of radius 3?
- 2. The work of F = (2, 0) from (0, 0) to (3, 4)?
- 3. ds equals…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.The fundamental theorem for line integrals
If , then by the chain rule (A3.2-4), so
Consequences for gradient (conservative) fields:
- the work depends only on the endpoints;
- around any closed loop the work is 0;
- is the (negative) potential energy.
To test a field on a simply connected domain, check that its curl vanishes (A3.4-1).
Orientation and parametrization
- flips sign when you traverse backwards. It doesn’t change under any forward reparametrization.
- doesn’t depend on direction or parametrization at all, because is always positive.
Surface integrals
Parametrize a surface by . A small patch has area and unit normal . The flux of through the surface is
This is the amount of fluid, light or field passing through per unit time. For a sphere of radius in angles , and the total area is .
- 1. F = ∇(xy) from (0, 0) to (2, 3): work?
- 2. Reversing a route changes ∫F·dr by…
- 3. The area element on a parametrized surface is…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Proofs
Fundamental theorem. Let . The chain rule gives . By the 1-D fundamental theorem (A3.1-6), . ∎
Reparametrization invariance. Let with , and . Then . Substituting turns into . If , the limits swap and the sign flips. ∎
Converse: path independence implies a gradient. If the work is path-independent on a connected open set, then is well defined. Differentiating along a short straight segment in direction gives . So the following are equivalent: conservative, path-independent, zero circulation on every loop.
Why the vortex has circulation 2π at every radius
For on a circle of radius , , so , independent of . The curl is 0 everywhere except the origin, so all the “spin” sits at the hole. Physically, this is a line vortex, or the magnetic field around a current-carrying wire (Ampère’s law, A3.4-3).
Surface orientation
A surface needs a consistent normal to have a signed flux. The Möbius strip has none: it’s non-orientable. Flux reverses with the normal, while the scalar integral doesn’t care.
Exercise 3.1: Compute ∮ y dx around the unit circle counter-clockwise
With and , . So , minus the enclosed area (a preview of Green’s theorem).
- 1. Conservative ⇔ path-independent ⇔ …
- 2. The vortex circulation around radius R is…
- 3. The Möbius strip is…
Level 4: Expert
★★★★★ Expert⏱ 45 minResearchers: original papers and open problems.Energy along trajectories
A drone, rover or arm moving through a force field spends energy against its environment. Split the environmental force into a conservative part (gravity: fixed by the endpoints) and a dissipative part (aerodynamic drag in a wind field, rolling resistance on terrain). The dissipative part is path-dependent, so route choice matters. This is the basis of wind-aware drone planning and of energy-optimal rover traverses on Mars, where terrain resistance and slope enter the cost map (Carsten et al., 2009). Soaring birds and gliders exploit wind gradients the same way (dynamic soaring; Sachs, 2005).
Flux in science and engineering
- Radiation and heat:
- Solar power on a panel is the flux of sunlight through it: , which depends on the incidence angle.
- Spacecraft thermal design integrates radiative flux over every surface (view factors).
- Aerodynamics:
- Lift and drag are surface integrals of pressure and shear stress over the vehicle skin.
- Mass flow through an engine inlet is .
- Electromagnetism:
- Magnetic flux through a coil gives the induced voltage (Faraday).
- The flux of the electric field through a closed surface counts the enclosed charge (Gauss’s law, A3.4-3; Practice Code 5).
- Path integrals in learning:
- Integrated gradients attributes a model’s output to input features by a line integral of the gradient along a straight path from a baseline (Sundararajan et al., 2017). The fundamental theorem guarantees the attributions sum to (the “completeness” axiom).
- Hamiltonian/Lagrangian neural networks learn conservative dynamics by parametrizing a potential, so energy is conserved by construction (Greydanus et al., 2019).
References
- J. E. Marsden, A. Tromba (2011). Vector Calculus, 6th ed. Freeman.
- M. Spivak (1965). Calculus on Manifolds. Benjamin.
- M. Sundararajan, A. Taly, Q. Yan (2017). “Axiomatic attribution for deep networks.” ICML.
- S. Greydanus, M. Dzamba, J. Yosinski (2019). “Hamiltonian neural networks.” NeurIPS.
- G. Sachs (2005). “Minimum shear wind strength required for dynamic soaring of albatrosses.” Ibis, 147.
- J. Carsten, A. Rankin, D. Ferguson, A. Stentz (2009). “Global planning on the Mars Exploration Rovers: software integration and surface testing.” Journal of Field Robotics, 26(4).
- J. Nocedal, S. Wright (2006). Numerical Optimization, 2nd ed. Springer. (For the route optimization.)