Section 2.4 · Topic 1 of 5

2.4.1 The fundamental theorem for gradients

The ordinary fundamental theorem of calculus says that integrating a derivative undoes the differentiation. The integral of the rate of change over an interval depends only on the values of the function at the two ends of the interval. The gradient theorem is the same statement in three dimensions.

Fundamental theorem for gradients

For a scalar function with continuous first derivatives and any path from the point to the point ,

The line integral of a gradient \nabla f along a path C from \vec a to \vec b depends only on the values of f at the two endpoints, not on the shape of the path.
Figure 2.4.1. The line integral of a gradient along a path from to depends only on the values of at the two endpoints, not on the shape of the path.

Why it is true

Walk along in many small steps . By Eq. (2.3.47), the quantity is exactly the change of during one step. Adding the changes of all the steps gives the total change of between the start and the end of the walk, which is , whatever route was taken.

The gradient theorem on a contour map. The brown curves are computed contour lines (level values marked) of a “landscape” f(x,y) with a main summit of height 3.0 and a smaller hill. Path C_1 goes straight over the main summit (highest point 3.0), C_2 makes a detour to the north (highest point about 1.2), and C_3 climbs over the shoulder of the small hill (highest point about 1.5). A numerical evaluation of \int\nabla f\cdot d\vec\ell along each of them gives the same value, 1.059, which is the height difference f(\vec b)-f(\vec a)=1.077-0.018 (script data/gen-sc.py).
Figure 2.4.2. The gradient theorem on a contour map. The brown curves are computed contour lines (level values marked) of a “landscape” with a main summit of height and a smaller hill. Path goes straight over the main summit (highest point ), makes a detour to the north (highest point about ), and climbs over the shoulder of the small hill (highest point about ). A numerical evaluation of along each of them gives the same value, , which is the height difference (script data/gen-sc.py).

Meaning and consequences

  1. Path independence. The integral (2.4.1) is the same for every path joining to (Figure 2.4.1). Think of as the height of a landscape: however you walk from to , the total climb (counting descents as negative climbs) is the difference in altitude (Figure 2.4.2).
  2. Zero circulation. If the path is closed (), . A field that is the gradient of a scalar has no circulation around any loop: a round trip always brings you back to the altitude where you started.
  3. Electrostatics. We shall see in Section 3.3 that the electrostatic field is the (negative) gradient of a scalar potential, . The theorem then states that the work done by the field on a charge moved between two points does not depend on the path, and that .
In plain words

For a gradient field, the line integral is a "height difference": only the start and the end matter. If you know , you never need to integrate along a path. Just subtract.

Example 2.4.1Verifying the gradient theorem
Quick check

Let . What is along a complicated spiral from the origin to the point ? And around a closed loop?

, whatever the shape of the spiral. Around any closed loop the result is .

← Back to Section 2.4 contents

Electromagnetic Fields and Waves · Prof. Gökhan Çınar© 2026 Gökhan Çınar. All rights reserved. Copyright