# Gradient theorem

The **gradient theorem**, also known as the **fundamental theorem of calculus for line integrals**, says that a line integral through a gradient field can be evaluated by evaluating the original scalar field at the endpoints of the curve. The theorem is a generalization of the second fundamental theorem of calculus to any curve in a plane or space (generally *n*-dimensional) rather than just the real line.

Part of a series of articles about |

Calculus |
---|

Let *φ* : *U* ⊆ **R**^{n} → **R** be a continuously differentiable function and γ any curve in *U* which starts at **p** and ends at **q**. Then

(where ∇*φ* denotes the gradient vector field of *φ*).

The gradient theorem implies that line integrals through gradient fields are path-independent. In physics this theorem is one of the ways of defining a *conservative* force. By placing φ as potential, ∇*φ* is a conservative field. Work done by conservative forces does not depend on the path followed by the object, but only the end points, as the above equation shows.

The gradient theorem also has an interesting converse: any path-independent vector field can be expressed as the gradient of a scalar field. Just like the gradient theorem itself, this converse has many striking consequences and applications in both pure and applied mathematics.