BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Gradient fields and path independence

For a gradient field F = ∇f, the fundamental theorem of calculus for line integrals says ∫_C ∇f · dr = f(P₁) − f(P₀): the work is the change in the potential f. So the work does not depend on the path between two points, and it is zero around every closed curve: the field is conservative. The rotation field ⟨−y, x⟩, with work 2π around the unit circle, is not a gradient. Conservative, path independent, gradient field and exact differential M dx + N dy = df are four ways of saying the same thing; physically, conservative means energy is conserved.

You need this first

Full reading path (18 pages)
  1. Vectors (8.01)
  2. Vectors and the dot product (18.02)
  3. Determinants and the cross product (18.02)
  4. Planes through three points, and matrices (18.02)
  5. Equations of planes and square systems (18.02)
  6. Parametric equations of lines and the cycloid (18.02)
  7. Velocity, acceleration and Kepler's second law (18.02)
  8. Functions of two variables and partial derivatives (18.02)
  9. Tangent planes, critical points and least squares (18.02)
  10. The second derivative test (18.02)
  11. Differentials and the chain rule (18.02)
  12. The gradient and directional derivatives (18.02)
  13. Lagrange multipliers (18.02)
  14. Non-independent variables (18.02)
  15. Double integrals (18.02)
  16. Double integrals in polar coordinates, and their uses (18.02)
  17. Change of variables in double integrals (18.02)
  18. Vector fields and line integrals (18.02)
On this page · 6 sections
  1. A line integral in three pieces
  2. The fundamental theorem for line integrals
  3. Consequences, for gradient fields only
  4. Physics: potentials and energy
  5. Four equivalent properties
  6. Summary

The last lecture computed line integrals by parametrising curves. This one shows how to avoid most of that work when the field is a gradient (transcript, p. 1).

A line integral in three pieces#

Recall ∫CF⃗⋅dr⃗=∫CM dx+N dy=∫CF⃗⋅T^ ds\int_C \vec F \cdot d\vec r = \int_C M\,dx + N\,dy = \int_C \vec F \cdot \hat T\,ds (transcript, p. 1; notes, p. 3). The lecture's example: F⃗=y i^+x j^\vec F = y\,\hat i + x\,\hat j, around the closed curve C=C1+C2+C3C = C_1 + C_2 + C_3 that encloses the sector of the unit disc between angles 0 and π/4\pi/4 (p. 1; notes, p. 3).

  1. C1C_1, along the xx-axis from (0,0)(0, 0) to (1,0)(1, 0): y=0y = 0 and dy=0dy = 0, so ∫y dx+x dy=0\int y\,dx + x\,dy = 0. Geometrically, on the xx-axis F⃗=x j^\vec F = x\,\hat j is perpendicular to the path (p. 1).
  2. C2C_2, along the unit circle from angle 0 to π/4\pi/4: x=cos⁡θx = \cos\theta, y=sin⁡θy = \sin\theta, dx=−sin⁡θ dθdx = -\sin\theta\,d\theta, dy=cos⁡θ dθdy = \cos\theta\,d\theta, so (p. 1; notes, p. 3):
The arc
∫C2y dx+x dy=∫0π/4(cos⁡2θ−sin⁡2θ) dθ=∫0π/4cos⁡2θ dθ=[12sin⁡2θ]0π/4=12\int_{C_2} y\,dx + x\,dy = \int_0^{\pi/4} (\cos^2\theta - \sin^2\theta)\,d\theta = \int_0^{\pi/4} \cos 2\theta\,d\theta = \left[\tfrac12\sin 2\theta\right]_0^{\pi/4} = \frac12
In words

the integral over C two of y d x plus x d y equals the integral over 0 of to the power pi over 4, end of power, the quantity cos squared theta minus sine squared theta, d theta equals the integral over 0 of to the power pi over 4, end of power, cos 2 theta d theta equals ( one half sine 2 theta ) sub 0 to the power pi over 4, end of power, equals one half

  1. C3C_3, back along the diagonal from (1/2,1/2)(1/\sqrt2, 1/\sqrt2) to the origin. Easier than parametrising it directly: go the other way, −C3-C_3, with x=y=tx = y = t, 0≤t≤1/20 \le t \le 1/\sqrt2, which gives ∫2t dt=12\int 2t\,dt = \frac12; the work along C3C_3 is the opposite, −12-\frac12 (p. 1; notes, p. 3).

The total is 0+12−12=00 + \frac12 - \frac12 = 0: "a lot of calculations for nothing" (p. 1).

The fundamental theorem for line integrals#

A gradient, met in Lecture 12, depends on xx and yy: it is a vector field. Suppose F⃗=∇f=fx i^+fy j^\vec F = \nabla f = f_x\,\hat i + f_y\,\hat j, a gradient field; ff is called the potential (transcript, pp. 1–2; notes, p. 3). (Physicists write force =−∇= -\nabla(potential energy), so their potential has the opposite sign; just add a minus sign in physics, p. 2.) Then, for a curve CC from P0P_0 to P1P_1 (p. 2; notes, p. 4):

Fundamental theorem of calculus for line integrals
∫C∇f⋅dr⃗=f(P1)−f(P0)\int_C \nabla f \cdot d\vec r = f(P_1) - f(P_0)
In words

the integral over C of del f times d vector r equals f( P one ) minus f( P nought )

Source: 18.02 lecture summaries, Week 8 (Prof. Auroux), Lecture 20, pp. 3–4, Lecture 20, p. 4

In differentials, ∫Cfx dx+fy dy=∫Cdf=f(P1)−f(P0)\int_C f_x\,dx + f_y\,dy = \int_C df = f(P_1) - f(P_0): integrating a differential gives back the change in the function, as in one variable (p. 2).

Proof. Parametrise CC by x(t)x(t), y(t)y(t), t0≤t≤t1t_0 \le t \le t_1. Then dx=x′(t) dtdx = x'(t)\,dt, dy=y′(t) dtdy = y'(t)\,dt, and by the chain rule the integrand is the derivative of f(x(t),y(t))f(x(t), y(t)) (p. 2; notes, p. 4):

Proof
∫C∇f⋅dr⃗=∫t0t1(fxdxdt+fydydt)dt=∫t0t1ddtf(x(t),y(t)) dt=f(P1)−f(P0)\int_C \nabla f \cdot d\vec r = \int_{t_0}^{t_1}\left(f_x\frac{dx}{dt} + f_y\frac{dy}{dt}\right)dt = \int_{t_0}^{t_1}\frac{d}{dt}f\big(x(t), y(t)\big)\,dt = f(P_1) - f(P_0)
In words

the integral over C of del f times d vector r equals the integral from t nought to t one of the quantity f sub x d x over d t plus f sub y d y over d t, d t equals the integral from t nought to t one of d over d t f (x(t), y(t) ) d t equals f( P one ) minus f( P nought )

by the ordinary fundamental theorem of calculus (p. 2).

The example again. ⟨y,x⟩\langle y, x\rangle is the gradient of f=xyf = xy. The curve C1C_1 stays on the level f=0f = 0: no work. Along C2C_2 the potential rises from 0 to 12\frac12; along C3C_3 it falls back to 0. Total zero, with no integration at all (p. 2; notes, p. 4).

Consequences, for gradient fields only#

Warning: this applies only to gradient fields. Many fields are not gradients; magnetic fields, for example, are not (p. 2). For a gradient field (pp. 2–3; notes, p. 4):

  • Path independence. If C1C_1 and C2C_2 go from the same P0P_0 to the same P1P_1, both integrals equal f(P1)−f(P0)f(P_1) - f(P_0), so they are equal. This holds even if ff is not known, as long as F⃗\vec F is known to be a gradient (p. 3).
  • Conservativeness. If CC is a closed curve, ∮C∇f⋅dr⃗=f(P)−f(P)=0\oint_C \nabla f \cdot d\vec r = f(P) - f(P) = 0 (p. 3; notes, p. 4). One closed curve with zero work proves nothing: conservative means zero for every closed curve (p. 3).

A field that is not a gradient. F⃗=−y i^+x j^\vec F = -y\,\hat i + x\,\hat j around the unit circle is tangent to it with length 1, so the work is the circumference (p. 3; notes, p. 4):

Not conservative
∮CF⃗⋅dr⃗=∮CF⃗⋅T^ ds=∮C1 ds=2π≠0\oint_C \vec F \cdot d\vec r = \oint_C \vec F \cdot \hat T\,ds = \oint_C 1\,ds = 2\pi \ne 0
In words

the loop integral of sub C vector capital F dot d vector r equals the loop integral of sub C vector capital F dot capital T hat d s equals the loop integral of sub C 1 d s equals 2 pi is not equal to 0

So it is not conservative, hence not a gradient field. Nor is it path independent: from (1,0)(1, 0) to (−1,0)(-1, 0) the upper half circle gives π\pi, the lower one −π-\pi (p. 3).

Physics: potentials and energy#

If a force field is the gradient of a potential, its work is the change in potential between the endpoints. Gravity and the electric force are examples, with the gravitational potential and the electrical potential, the voltage (pp. 2–3; notes, p. 4). Conservative means that no energy can be extracted for free from the field by going around a loop: the change in kinetic energy equals the work, which is minus the change in the physicists' potential energy UU, so kinetic energy plus UU stays constant: total energy is conserved, hence the name (p. 3; notes, p. 4). A non-conservative field can supply energy around a loop. Auroux's example is the transformer (p. 3); strictly, the field doing the work there is the electric field induced by a changing magnetic field, whose work around a loop is not zero (the magnetic force itself does no work).

Four equivalent properties#

For a vector field F⃗=⟨M,N⟩\vec F = \langle M, N\rangle, these say the same thing (transcript, pp. 3–4; notes, p. 4):

  1. F⃗\vec F is conservative: ∮CF⃗⋅dr⃗=0\oint_C \vec F \cdot d\vec r = 0 for every closed curve CC.
  2. ∫CF⃗⋅dr⃗\int_C \vec F \cdot d\vec r is path independent.
  3. F⃗\vec F is a gradient field: F⃗=∇f\vec F = \nabla f.
  4. M dx+N dyM\,dx + N\,dy is an exact differential: it equals dfdf for some ff.

(1) ⟺ (2): a closed curve has the same endpoints as staying put, which gives zero work; and two paths C1C_1, C2C_2 with the same endpoints make a closed curve C1−C2C_1 - C_2, whose zero work means equal work along both (p. 4). (3) ⟹ (2) is the fundamental theorem; conversely, given path independence, choose the potential at one point and define it elsewhere as the work from there, the method for finding potentials in the next lecture (p. 4; notes, p. 4). (3) and (4) are the same statement in two notations (p. 4).

Worked example

A potential saves the work

Let F⃗=2xy i^+x2 j^\vec F = 2xy\,\hat i + x^2\,\hat j. (a) Check that F⃗=∇f\vec F = \nabla f for f=x2yf = x^2y. (b) Find the work from (0,0)(0, 0) to (2,3)(2, 3), and check along the straight segment. (c) What is the work around any closed curve?

(a) The potential

fx=2xyf_x = 2xy and fy=x2f_y = x^2: indeed ∇f=F⃗\nabla f = \vec F.

(b) Endpoints only

f(2,3)−f(0,0)=4⋅3−0=12f(2, 3) - f(0, 0) = 4 \cdot 3 - 0 = 12. Check on x=2tx = 2t, y=3ty = 3t, 0≤t≤10 \le t \le 1: F⃗=⟨12t2,4t2⟩\vec F = \langle 12t^2, 4t^2\rangle, dr⃗/dt=⟨2,3⟩d\vec r/dt = \langle 2, 3\rangle, integrand 24t2+12t2=36t224t^2 + 12t^2 = 36t^2, and ∫0136t2 dt=12\int_0^1 36t^2\,dt = 12.

(c) Closed curves

Zero: the field is a gradient, so it is conservative.

Summary#

Symbols on this page

Show the 41 symbols used here
θ\theta theta.
An angle. Say it: “theta” (sounds like “thay-ta or thee-ta”).
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
≤\le less than or equal.
Is less than or equal to. Say it: “is less than or equal to”.
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
⟨\langle angle brackets.
The average (mean value) of what is inside, ⟨…⟩. Say it: “the average of”.
∇\nabla nabla (del).
Del: ∇f is the gradient, ∇·v the divergence, ∇×v the curl, ∇² the Laplacian. Say it: “del”.
∫\int integral.
Integral: the sum of infinitely many small pieces, such as the area under a curve. Say it: “the integral of”.
∮\oint loop integral.
An integral around a closed loop. Say it: “the loop integral of”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
v⃗\vec v vector arrow.
A vector: a quantity with a size and a direction. Say it: “vector”.
ı^\hat\imath hat.
A unit vector: a vector of length 1 that only gives a direction (î, r̂). Say it: “hat”.
zz z.
The third coordinate (in a quiz choice: the field has no z component). Say it: “z”.
TT T.
With a hat, T̂: the unit tangent vector. Say it: “capital T”.
t0t_{0} today.
Today: the present time, about 13.8 billion years after the Big Bang in the real universe (simple models on some pages give other ages). Unit: s (usually billions of years). Say it: “t nought”.
xx x.
The x coordinate. Say it: “x”.
yy y.
The y coordinate. Say it: “y”.
tt t.
The parameter along the curve. Say it: “t”.
dd d.
The d of dr, dx, dy, dt, ds, df. Say it: “d”.
ff f.
The potential: a function with ∇f = F. Say it: “f”.
FF F.
A vector field, F = ⟨M, N⟩. Say it: “capital F”.
rr r.
The position vector along the curve. Say it: “r”.
PP P.
A point where a closed curve starts and ends. Say it: “P”.
CC C.
A curve (path) along which the line integral is taken. Say it: “C”.
ss s.
Arc length along the curve. Say it: “s”.
NN N.
The y component of the vector field. Say it: “N”.
MM M.
The x component of the vector field. Say it: “M”.
y′y' y prime.
The derivative dy/dt. Say it: “y prime”.
t1t_{1} t one.
The final value of the parameter. Say it: “t one”.
x′x' x prime.
The derivative dx/dt. Say it: “x prime”.
UU U.
The potential energy in the physicists' convention (force = −∇U). Unit: J. Say it: “U”.
P0P_{0} processed power spectrum.
The starting point of the curve. Say it: “P nought”.
i^\hat{i} i hat.
Unit vector in the x direction: length 1, pointing towards increasing x. Say it: “i hat”.
j^\hat{j} j hat.
Unit vector in the y direction: length 1, pointing towards increasing y. Say it: “j hat”.
C1C_{1} C 1.
The first piece of the closed curve (or the first of two paths). Say it: “C one”.
C2C_{2} C 2.
The second piece of the closed curve (or the second of two paths). Say it: “C two”.
C3C_{3} C 3.
The third piece of the closed curve, back along the diagonal. Say it: “C three”.
P1P_{1} P 1.
The end point of the curve. Say it: “P one”.
fxf_{x} f sub x.
The partial derivative ∂f/∂x, the first component of ∇f. Say it: “f sub x”.
fyf_{y} f sub y.
The partial derivative ∂f/∂y, the second component of ∇f. Say it: “f sub y”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 40 words used here

New here

gradient field.
A vector field that is the gradient of some function, called its potential; its line integrals depend only on the end points.
potential.
A function whose gradient is a given vector field; the field is then a gradient field.
exact differential.
An expression M dx + N dy that is the total differential df of some function f.

Also used

line integral.
An integral along a path: adding up a quantity, such as the part of a force along the motion, over tiny steps of a curve. Explained in Work and kinetic energy in two and three dimensions.
field.
Something that has a value at every point of space, such as the temperature, the wind velocity or the electric field at each place. Explained in Newton's law of gravitation.
gradient.
The vector of a function's partial derivatives; it points the way the function increases fastest, and its length is that fastest rate. Explained in Graphs, straight lines and slope.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
closed curve.
A curve that ends where it started, like a circle, so it has no loose ends. Explained in Forces on currents and the Biot–Savart law.
perpendicular.
At right angles to a line, a surface or another direction. Explained in Inclined planes.
unit circle.
The circle of radius 1 centred at the origin; the point at angle θ on it is (cos θ, sin θ). Explained in Angles, radians and trigonometry.
vector field.
A rule that attaches an arrow, with a size and a direction, to every point of space, such as the wind velocity at each place. Explained in Fields: scalar, vector, gravitational and electric.
potential energy.
Energy stored in the arrangement of a system, such as a raised weight or a stretched spring, that a conservative force can give back. Explained in Gravitational potential energy.
differential.
A tiny change in a variable, such as dx, or the matching change in a function along its tangent line, dy = f′(x) dx. Explained in Differentials and antiderivatives.
integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.
proof.
A chain of reasoning showing beyond doubt that a statement follows from definitions and results already known. Explained in Limits and continuity.
chain rule.
The rule for the derivative of a function of a function: multiply the derivative of the outer one by that of the inner one. Explained in Circular motion: polar coordinates, position and velocity.
integrand.
The function being integrated: the f(x) in ∫ f(x) dx. Explained in The logarithm from an integral, and areas between curves.
derivative.
The rate at which a function changes as its input changes: the slope of its graph at a point. Explained in Position and velocity in one dimension.
fundamental theorem of calculus.
The theorem that integrating and differentiating undo each other, so a definite integral can be found from any antiderivative. Explained in Definite integrals and Riemann sums.
magnetic field.
The field made by magnets and moving charges, which pushes sideways on other moving charges and turns compass needles. Explained in Magnetic fields and magnetic force.
path-independent.
Of a quantity such as the work done by a force: depending only on the start and end points, not on the route between them. Explained in Conservative and non-conservative forces.
integral.
A sum of very many very small pieces, such as the area under a graph; it undoes taking a derivative. Explained in Rates of change and area under a graph.
conservative force.
A force whose work between two points is the same for every path, so it can be described by a potential energy. Explained in Conservation of energy.
tangent.
A straight line that touches a curve at a point and runs in the same direction as the curve there. Explained in Angles, radians and trigonometry.
force field.
A vector field that gives the force a body would feel at each point, such as the Earth's gravitational pull. Explained in Vector fields and line integrals.
gravitational potential.
The gravitational potential energy a mass would have at a point, per kilogram of mass. Explained in Electric potential and potential energy.
voltage.
The difference in electric potential between two points, measured in volts: the energy each coulomb of charge gains or loses between them. Explained in Electric potential and voltage.
energy.
A quantity, measured in joules, that a body or field has because of its motion, position or state; a closed system keeps its total. Explained in Conservation of energy.
kinetic energy.
The energy a body has because it is moving. Explained in Kinetic energy and the work–energy theorem.
conserved.
Keeping the same total value as time passes, as energy and momentum do when nothing outside changes them. Explained in Conservation of energy.
non-conservative force.
A force, such as friction or air drag, whose work depends on the path taken, so it cannot be given a potential energy. Explained in Conservation of energy.
transformer.
Two coils wound on a shared iron core, which raise or lower an alternating voltage in the ratio of their numbers of turns. Explained in Electromagnetic induction.
electric field.
The electric push or pull at each point of space, given as the force on each coulomb of charge placed there. Explained in The electric field.
theorem.
A statement that has been proved true, step by step, from definitions and earlier results. Explained in Limits and continuity.
uniform.
The same at every point, or unchanging in time: a uniform rod has the same density all along it. Explained in The electric field.
Friedmann equation.
The equation that gives the expansion rate of a uniform universe from its density and the curvature of space. Explained in Towards the universe: will an expanding ball of matter stop?.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
hence.
For this reason; as a result of what was just said.
conversely.
Turning the statement round: what follows is the same idea seen from the other side.
notation.
A system of symbols used to write ideas down briefly, such as dy/dx for a derivative.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

33 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. If F⃗=∇f\vec F = \nabla f with f=x2+yf = x^2 + y, the work from (0,0)(0, 0) to (1,2)(1, 2) along any path is…
  2. A field has zero work around one particular closed curve. Is it conservative?
  3. Why is F⃗=−y i^+x j^\vec F = -y\,\hat i + x\,\hat j not a gradient field?
0 of 3 answered

Flashcards

1 / 3