| Part of a series of articles about | ||||||
| Calculus | ||||||
|---|---|---|---|---|---|---|
| ||||||
| ||||||
Specialized | ||||||
Thegradient theorem, also known as thefundamental theorem of calculus for line integrals, says that aline integral through agradient field can be evaluated by evaluating the original scalar field at the endpoints of the curve. The theorem is a generalization of thesecond fundamental theorem of calculus to any curve in a plane or space (generallyn-dimensional) rather than just the real line.
Ifφ :U ⊆Rn →R is adifferentiable function andγ adifferentiable curve inU which starts at a pointp and ends at a pointq, then
where∇φ denotes the gradient vector field ofφ.
The gradient theorem implies that line integrals through gradient fields arepath-independent. In physics this theorem is one of the ways of defining aconservative force. By placingφ as potential,∇φ is aconservative 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 ascalar field. Just like the gradient theorem itself, this converse has many striking consequences and applications in both pure and applied mathematics.
Ifφ is adifferentiable function from someopen subsetU ⊆Rn toR andr is a differentiable function from some closedinterval[a,b] toU (Note thatr is differentiable at the interval endpointsa andb. To do this,r is defined on an interval that is larger than and includes[a,b].), then by themultivariate chain rule, thecomposite functionφ ∘r is differentiable on[a,b]:
for allt in[a,b]. Here the⋅ denotes thedot product.
Now suppose the domainU ofφ contains the differentiable curveγ with endpointsp andq. (This isoriented in the direction fromp toq). Ifrparametrizesγ fort in[a,b] (i.e.,r representsγ as a function oft), then
where thedefinition of a line integral is used in the first equality, the above equation is used in the second equality, and thesecond fundamental theorem of calculus is used in the third equality.[1]
Even if the gradient theorem (also calledfundamental theorem of calculus for line integrals) has been proved for a differentiable (so looked as smooth) curve so far, the theorem is also proved for a piecewise-smooth curve since this curve is made by joining multiple differentiable curves so the proof for this curve is made by the proof per differentiable curve component.[2]
Supposeγ ⊂R2 is the circular arc oriented counterclockwise from(5, 0) to(−4, 3). Using thedefinition of a line integral,
This result can be obtained much more simply by noticing that the function has gradient, so by the Gradient Theorem:
For a more abstract example, supposeγ ⊂Rn has endpointsp,q, with orientation fromp toq. Foru inRn, let|u| denote theEuclidean norm ofu. Ifα ≥ 1 is a real number, then
Here the final equality follows by the gradient theorem, since the functionf(x) = |x|α+1 is differentiable onRn ifα ≥ 1.
Ifα < 1 then this equality will still hold in most cases, but caution must be taken ifγ passes through or encloses the origin, because the integrand vector field|x|α − 1x will fail to be defined there. However, the caseα = −1 is somewhat different; in this case, the integrand becomes|x|−2x = ∇(log |x|), so that the final equality becomeslog |q| − log |p|.
Note that ifn = 1, then this example is simply a slight variant of the familiarpower rule from single-variable calculus.
Suppose there arenpoint charges arranged in three-dimensional space, and thei-th point charge haschargeQi and is located at positionpi inR3. We would like to calculate thework done on a particle of chargeq as it travels from a pointa to a pointb inR3. UsingCoulomb's law, we can easily determine that theforce on the particle at positionr will be
Here|u| denotes theEuclidean norm of the vectoru inR3, andk = 1/(4πε0), whereε0 is thevacuum permittivity.
Letγ ⊂R3 − {p1, ...,pn} be an arbitrary differentiable curve froma tob. Then the work done on the particle is
Now for eachi, direct computation shows that
Thus, continuing from above and using the gradient theorem,
We are finished. Of course, we could have easily completed this calculation using the powerful language ofelectrostatic potential orelectrostatic potential energy (with the familiar formulasW = −ΔU = −qΔV). However, we have not yetdefined potential or potential energy, because theconverse of the gradient theorem is required to prove that these are well-defined, differentiable functions and that these formulas hold (see below). Thus, we have solved this problem using only Coulomb's law, the definition of work, and the gradient theorem.
The gradient theorem states that if the vector fieldF is the gradient of some scalar-valued function (i.e., ifF isconservative), thenF is a path-independent vector field (i.e., the integral ofF over some piecewise-differentiable curve is dependent only on end points). This theorem has a powerful converse:
Theorem— IfF is a path-independent vector field, thenF is the gradient of some scalar-valued function.[3]
It is straightforward to show that a vector field is path-independent if and only if the integral of the vector field over every closed loop in its domain is zero. Thus the converse can alternatively be stated as follows: If the integral ofF over every closed loop in the domain ofF is zero, thenF is the gradient of some scalar-valued function.
SupposeU is anopen,path-connected subset ofRn, andF :U →Rn is acontinuous and path-independent vector field. Fix some elementa ofU, and definef :U →R byHereγ[a,x] is any (differentiable) curve inU originating ata and terminating atx. We know thatf iswell-defined becauseF is path-independent.
Letv be any nonzero vector inRn. By the definition of thedirectional derivative,To calculate the integral within the final limit, we mustparametrizeγ[x,x +tv]. SinceF is path-independent,U is open, andt is approaching zero, we may assume that this path is a straight line, and parametrize it asu(s) =x +sv for0 <s <t. Now, sinceu'(s) =v, the limit becomeswhere the first equality is fromthe definition of the derivative with a fact that the integral is equal to 0 att = 0, and the second equality is from thefirst fundamental theorem of calculus. Thus we have a formula for∂vf, (one of ways to represent thedirectional derivative) wherev is arbitrary; for (see its full definition above), its directional derivative with respect tov iswhere the first two equalities just show different representations of the directional derivative. According tothe definition of the gradient of a scalar functionf,, thus we have found a scalar-valued functionf whose gradient is the path-independent vector fieldF (i.e.,F is a conservative vector field.), as desired.[3]
To illustrate the power of this converse principle, we cite an example that has significantphysical consequences. Inclassical electromagnetism, theelectric force is a path-independent force; i.e. thework done on a particle that has returned to its original position within anelectric field is zero (assuming that no changingmagnetic fields are present).
Therefore, the above theorem implies that the electricforce fieldFe :S →R3 is conservative (hereS is someopen,path-connected subset ofR3 that contains acharge distribution). Following the ideas of the above proof, we can set some reference pointa inS, and define a functionUe:S →R by
Using the above proof, we knowUe is well-defined and differentiable, andFe = −∇Ue (from this formula we can use the gradient theorem to easily derive the well-known formula for calculating work done by conservative forces:W = −ΔU). This functionUe is often referred to as theelectrostatic potential energy of the system of charges inS (with reference to the zero-of-potentiala). In many cases, the domainS is assumed to beunbounded and the reference pointa is taken to be "infinity", which can be maderigorous using limiting techniques. This functionUe is an indispensable tool used in the analysis of many physical systems.
Many of the critical theorems of vector calculus generalize elegantly to statements about theintegration of differential forms onmanifolds. In the language ofdifferential forms andexterior derivatives, the gradient theorem states that
for any0-form,ϕ, defined on some differentiable curveγ ⊂Rn (here the integral ofϕ over the boundary of theγ is understood to be the evaluation ofϕ at the endpoints ofγ).
Notice the striking similarity between this statement and thegeneralized Stokes’ theorem, which says that the integral of anycompactly supported differential formω over theboundary of someorientable manifoldΩ is equal to the integral of itsexterior derivativedω over the whole ofΩ, i.e.,
This powerful statement is a generalization of the gradient theorem from 1-forms defined on one-dimensional manifolds to differential forms defined on manifolds of arbitrary dimension.
The converse statement of the gradient theorem also has a powerful generalization in terms of differential forms on manifolds. In particular, supposeω is a form defined on acontractible domain, and the integral ofω over any closed manifold is zero. Then there exists a formψ such thatω = dψ. Thus, on a contractible domain, everyclosed form isexact. This result is summarized by thePoincaré lemma.