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

Testing for gradient fields, potentials and curl

If F = M î + N ĵ is a gradient field, then N_x = M_y, because f_xy = f_yx. Conversely, if F is defined and differentiable in the whole plane and N_x = M_y, it is a gradient field. The rotation field ⟨−y, x⟩ fails the test. A potential is then found either by a line integral from the origin, along the x-axis and then vertically, or by integrating f_x in x, adding a function g(y), and matching f_y. The curl, N_x − M_y, measures the failure to be conservative: for a velocity field it is twice the local angular velocity, for a force field the torque per unit moment of inertia.

You need this first

Full reading path (19 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)
  19. Gradient fields and path independence (18.02)
On this page · 5 sections
  1. The test
  2. Finding the potential: method 1, line integrals
  3. Method 2: antiderivatives
  4. Curl
  5. Summary

The last lecture showed that for gradient fields line integrals are easy. Two questions remain: how to tell whether a field is a gradient, and how to find its potential (transcript, p. 1).

The test#

If F⃗=M i^+N j^\vec F = M\,\hat i + N\,\hat j is a gradient field, M=fxM = f_x and N=fyN = f_y. Since the mixed partial derivatives are equal, fxy=fyxf_{xy} = f_{yx}, so (transcript, p. 1; notes, p. 1):

Gradient fields pass the test
F⃗=∇f⟹Nx=My\vec F = \nabla f \quad\Longrightarrow\quad N_x = M_y
In words

vector capital F equals del f which gives N sub x equals M sub y

Conversely, if F⃗\vec F is defined and differentiable everywhere in the plane and Nx=MyN_x = M_y, then F⃗\vec F is a gradient field (p. 1; notes, p. 1). The condition matters: a field defined everywhere except at one point can satisfy Nx=MyN_x = M_y wherever it is defined and still not be a gradient, as an example on that week's problem set shows. The precise condition, a region without holes ("simply connected"), comes later (p. 1). So failing the test always proves a field is not a gradient, while passing it with a hole in the domain leaves the question open (pp. 1, 3).

Examples (p. 1; notes, p. 1):

  • F⃗=−y i^+x j^\vec F = -y\,\hat i + x\,\hat j: My=−1M_y = -1 but Nx=1N_x = 1. Not a gradient field, as its work around the unit circle already showed.
  • For which aa is F⃗=(4x2+axy) i^+(3y2+4x2) j^\vec F = (4x^2 + axy)\,\hat i + (3y^2 + 4x^2)\,\hat j a gradient field? My=axM_y = ax and Nx=8xN_x = 8x, which must agree everywhere (not just for some xx): a=8a = 8.

Finding the potential: method 1, line integrals#

Only try this once the test has been passed (transcript, p. 2). By the fundamental theorem, for any curve CC from the origin to (x1,y1)(x_1, y_1), f(x1,y1)=f(0,0)+∫CF⃗⋅dr⃗f(x_1, y_1) = f(0, 0) + \int_C \vec F \cdot d\vec r, where f(0,0)f(0, 0) is an integration constant: adding a constant to a potential gives another potential (p. 2; notes, p. 1). Choose the simplest curve: along the xx-axis to (x1,0)(x_1, 0) (curve C1C_1), then straight up to (x1,y1)(x_1, y_1) (C2C_2). On each piece one of dxdx, dydy is zero (p. 2; notes, p. 1).

For F⃗=(4x2+8xy) i^+(3y2+4x2) j^\vec F = (4x^2 + 8xy)\,\hat i + (3y^2 + 4x^2)\,\hat j: on C1C_1, y=0y = 0 and dy=0dy = 0; on C2C_2, x=x1x = x_1 and dx=0dx = 0 (p. 2; notes, p. 1):

The two pieces
∫C1=∫0x14x2 dx=43x13,∫C2=∫0y1(3y2+4x12) dy=y13+4x12y1\int_{C_1} = \int_0^{x_1} 4x^2\,dx = \tfrac43 x_1^3, \qquad \int_{C_2} = \int_0^{y_1} (3y^2 + 4x_1^2)\,dy = y_1^3 + 4x_1^2 y_1
In words

the integral over capital C one of equals the integral from 0 to x one of 4 x squared d x equals four thirds x one cubed, the integral over capital C two of equals the integral from 0 to y one of the quantity 3 y squared plus 4 x one squared, d y equals y one cubed plus 4 x one squared y one

(The subscript 1 keeps the endpoint apart from the variables of integration, p. 2.) So (p. 2; notes, p. 1):

The potential
f(x,y)=43x3+4x2y+y3  (+ c)f(x, y) = \tfrac43 x^3 + 4x^2y + y^3 \;(+\,c)
In words

f(x, y) equals four thirds x cubed plus 4 x squared y plus y cubed ( plus c)

Source: 18.02 lecture summaries, Week 9 (Prof. Auroux), Lecture 21, pp. 1–2, Lecture 21, p. 1

The constant is optional: a potential plus 18 is still a potential (p. 2). Going up first and then across works as well; occasionally a radial path is better (p. 2).

Method 2: antiderivatives#

We want ff with (1) fx=4x2+8xyf_x = 4x^2 + 8xy and (2) fy=3y2+4x2f_y = 3y^2 + 4x^2 (transcript, p. 2; notes, p. 1). Integrate (1) with respect to xx, treating yy as a constant: f=43x3+4x2y+g(y)f = \frac43 x^3 + 4x^2y + g(y). The "constant" of integration does not depend on xx, but it may depend on yy (pp. 2–3). Differentiate in yy and compare with (2) (p. 3; notes, p. 1):

Matching fyf_y
fy=4x2+g′(y)=3y2+4x2⟹g′(y)=3y2,g(y)=y3+cf_y = 4x^2 + g'(y) = 3y^2 + 4x^2 \quad\Longrightarrow\quad g'(y) = 3y^2, \quad g(y) = y^3 + c
In words

f sub y equals 4 x squared plus g prime (y) equals 3 y squared plus 4 x squared which gives g prime (y) equals 3 y squared, g(y) equals y cubed plus c

Substituting gives the same ff. If xx were left in the equation for g′(y)g'(y), something would be wrong; check whether F⃗\vec F really is a gradient (p. 3). A tempting shortcut, integrating (2) in yy as well and merging the two answers, is risky: equal terms can look different (such as 1+tan⁡21 + \tan^2 and sec⁡2\sec^2), so follow the procedure (p. 3). Both methods work in three variables too (p. 3).

Curl#

To summarise: F⃗\vec F conservative ⟺ gradient field ⟹ Nx=MyN_x = M_y, and the converse holds when F⃗\vec F is defined in the whole plane, or later in a simply connected region (transcript, p. 3; notes, p. 1). (An integral around a closed curve is often written ∮C\oint_C, p. 3.) The quantity that measures the failure to be conservative is the curl (p. 3; notes, p. 1):

Curl
curl⁡F⃗=Nx−My\operatorname{curl}\vec F = N_x - M_y
In words

c u r l vector capital F equals N sub x minus M sub y

Source: 18.02 lecture summaries, Week 9 (Prof. Auroux), Lecture 21, pp. 1–2, Lecture 21, p. 1

The test for a gradient field is curl⁡F⃗=0\operatorname{curl}\vec F = 0 (p. 3).

For a velocity field, the curl measures the rotation, or vorticity, at each point: twice the angular velocity of the rotating part of the motion (pp. 3–4; notes, pp. 1–2). A uniform translation ⟨a,b⟩\langle a, b\rangle and the expanding field ⟨x,y⟩\langle x, y\rangle have curl 0; the rotation ⟨−y,x⟩\langle -y, x\rangle at unit angular velocity has curl 1−(−1)=21 - (-1) = 2 (p. 4; notes, p. 2). In weather maps, regions of high curl are hurricanes and tornadoes; the sign says clockwise or counterclockwise (p. 4).

For a force field, the curl measures the torque on a test object, per unit moment of inertia (p. 4; notes, p. 2). Just as force over mass is acceleration, the rate of change of velocity, torque over moment of inertia is angular acceleration, the rate of change of angular velocity (p. 4; notes, p. 2):

The rotational analogy
forcemass=ddt(velocity),torquemoment of inertia=ddt(angular velocity)\frac{\text{force}}{\text{mass}} = \frac{d}{dt}(\text{velocity}), \qquad \frac{\text{torque}}{\text{moment of inertia}} = \frac{d}{dt}(\text{angular velocity})
In words

force over mass equals d over d t ( velocity ), torque over moment of inertia equals d over d t ( angular velocity )

Source: 18.02 lecture summaries, Week 9 (Prof. Auroux), Lecture 21, pp. 1–2, Lecture 21, p. 2

(8.01 has these as torque and angular acceleration.) A light object floating in a fluid spins at half the curl of the velocity field (p. 4).

Worked example

Test, two methods, and a curl

(a) Show that F⃗=(2xy+3) i^+(x2+4y) j^\vec F = (2xy + 3)\,\hat i + (x^2 + 4y)\,\hat j is a gradient field and find a potential by antiderivatives. (b) Check f(1,2)f(1, 2) by method 1. (c) Find the curl of G⃗=x2y i^\vec G = x^2y\,\hat i.

(a) Test and antiderivative

My=2x=NxM_y = 2x = N_x, and F⃗\vec F is defined everywhere: a gradient field. Integrating fx=2xy+3f_x = 2xy + 3 in xx: f=x2y+3x+g(y)f = x^2y + 3x + g(y). Then fy=x2+g′(y)=x2+4yf_y = x^2 + g'(y) = x^2 + 4y, so g′(y)=4yg'(y) = 4y, g=2y2g = 2y^2, and f=x2y+3x+2y2f = x^2y + 3x + 2y^2.

(b) Line integral to (1, 2)

Along the xx-axis (y=0y = 0): ∫013 dx=3\int_0^1 3\,dx = 3. Then up (x=1x = 1): ∫02(1+4y) dy=2+8=10\int_0^2 (1 + 4y)\,dy = 2 + 8 = 10. Total 13, and indeed f(1,2)=2+3+8=13f(1, 2) = 2 + 3 + 8 = 13 (with f(0,0)=0f(0, 0) = 0).

(c) A curl

curl⁡G⃗=Nx−My=0−x2=−x2\operatorname{curl}\vec G = N_x - M_y = 0 - x^2 = -x^2: not zero, so G⃗\vec G is not a gradient field. The negative sign means clockwise rotation, strongest far from the yy-axis.

Summary#

  • A gradient field F⃗=⟨M,N⟩\vec F = \langle M, N\rangle has Nx=MyN_x = M_y; conversely, if F⃗\vec F is defined everywhere in the plane and Nx=MyN_x = M_y, it is a gradient field.
  • To find the potential: integrate along the xx-axis and then vertically from the origin; or integrate MM in xx, add g(y)g(y), and match fy=Nf_y = N.
  • Example: ⟨4x2+8xy,3y2+4x2⟩=∇(43x3+4x2y+y3)\langle 4x^2 + 8xy, 3y^2 + 4x^2\rangle = \nabla\left(\frac43 x^3 + 4x^2y + y^3\right).
  • curl⁡F⃗=Nx−My\operatorname{curl}\vec F = N_x - M_y is zero for gradient fields; it is twice the angular velocity of a velocity field, and the torque per unit moment of inertia of a force field.

Symbols on this page

Show the 38 symbols used here
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
⇒\Rightarrow implies.
Implies: what follows is a consequence of what came before. Say it: “which gives”.
⋅\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”.
tan⁡\tan tangent.
Tangent of an angle, sin/cos. Say it: “tan”.
v⃗\vec v vector arrow.
A vector: a quantity with a size and a direction. Say it: “vector”.
aa a.
A number in the field (4x² + axy) î + …, or the x component of a uniform field ⟨a, b⟩. Say it: “a”.
GG G.
In the worked example, the vector field x²y î. Say it: “capital G”.
cc c.
An integration constant. Say it: “c”.
xx x.
The x coordinate (a variable of integration in method 1). Say it: “x”.
yy y.
The y coordinate (a variable of integration in method 1). Say it: “y”.
tt t.
Time, in d/dt of the velocity. Say it: “t”.
dd d.
The d of dx, dy, dr, and of d/dt. Say it: “d”.
ff f.
A potential: a function with ∇f = F. Say it: “f”.
gg g.
g(y): the 'constant' of integration in x, which may still depend on y. Say it: “g”.
FF F.
A vector field, F = M î + N ĵ. Say it: “capital F”.
rr r.
The position vector along the curve. Say it: “r”.
CC C.
A curve (a closed curve under ∮). Say it: “capital C”.
bb b.
The y component of a uniform field ⟨a, b⟩. Say it: “b”.
NN N.
The y component of the vector field. Say it: “N”.
MM M.
The x component of the vector field. Say it: “M”.
x1x_{1} x 1.
The x coordinate of the end point (x₁, y₁) of the path. Say it: “x one”.
y1y_{1} y 1.
The y coordinate of the end point (x₁, y₁) of the path. Say it: “y one”.
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”.
g′g' g prime.
The derivative of g(y). Say it: “g prime”.
sec⁡\sec secant.
The secant, 1/cos. Say it: “secant”.
C1C_{1} C 1.
The first piece of the path, along the x-axis. Say it: “capital C one”.
C2C_{2} C 2.
The second piece of the path, straight up. Say it: “capital C two”.
fxf_{x} f sub x.
The partial derivative ∂f/∂x, which must equal M. Say it: “f sub x”.
fyf_{y} f sub y.
The partial derivative ∂f/∂y, which must equal N. Say it: “f sub y”.
fxyf_{\text{xy}} f sub x y.
The mixed second partial derivative, first x then y; equal to f_yx. Say it: “f sub x y”.
fyxf_{\text{yx}} f sub y x.
The mixed second partial derivative, first y then x; equal to f_xy. Say it: “f sub y x”.
NxN_{x} N sub x.
The partial derivative ∂N/∂x. Say it: “N sub x”.
MyM_{y} M sub y.
The partial derivative ∂M/∂y. Say it: “M 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 39 words used here

New here

curl.
A measure of how much a vector field turns or swirls around each point.
vorticity.
The amount of spinning in a flowing fluid at each point: the curl of its velocity field.

Also used

gradient field.
A vector field that is the gradient of some function, called its potential; its line integrals depend only on the end points. Explained in Gradient fields and path independence.
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.
potential.
A function whose gradient is a given vector field; the field is then a gradient field. Explained in Gradient fields and path independence.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
partial derivative.
The rate of change of a function of several variables with respect to one of them, while all the others are held fixed. Explained in Functions of two variables and partial derivatives.
differentiable.
Having a derivative: at that point the graph has a single, definite, non-vertical tangent line, with no corner or break. Explained in The mean value theorem and inequalities.
simply connected.
Of a region: in one piece with no hole a loop could wrap around, so any closed curve in it can shrink to a point. Explained in Simply connected regions.
work.
The energy a force gives to a body as it moves: the part of the force along the motion times the distance moved. Explained in Kinetic energy and work in one dimension.
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.
theorem.
A statement that has been proved true, step by step, from definitions and earlier results. Explained in Limits and continuity.
integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.
with respect to.
Taking that variable as the one that changes: a derivative with respect to t measures change as t changes, others held fixed. Explained in Average value, weighted averages and probability.
differentiation.
Finding a derivative: working out how fast a function changes. Explained in The derivative: slope of the tangent line and rate of change.
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.
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.
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.
velocity field.
A vector field that gives the velocity of a moving fluid at each point, like a map of wind arrows. Explained in Vector fields and line integrals.
angular velocity.
How fast something turns: the rate of change of an angle, in radians per second, often taken as a vector along the axis. Explained in Circular motion: polar coordinates, position and velocity.
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.
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.
torque.
The turning effect of a force about a point or axis: the force times its distance from the axis, measured at right angles. Explained in Torque and balance.
moment of inertia.
How hard a body is to set spinning about an axis: each bit of mass times its squared distance from the axis, all added up. Explained in Rotation and angular momentum.
acceleration.
How fast velocity changes: the change in velocity in each unit of time. Explained in Rates of change and area under a graph.
rate of change.
How fast one quantity changes compared with another, often time: the change in the first divided by the change in the second. Explained in Rates of change and area under a graph.
velocity.
How fast and in which direction something moves: a vector whose length is the speed and whose direction is the direction of motion. Explained in Velocity, acceleration and Kepler's second law.
angular acceleration.
How fast the angular velocity changes, in radians per second squared. Explained in Rotation and angular momentum.
spin.
Turning about an axis through the body itself, as a wheel, a planet or a black hole does. Explained in Kinetic energy and angular momentum of a rolling body.
antiderivative.
A function whose derivative is the given function; any two antiderivatives differ only by a constant. Explained in Differentials and antiderivatives.
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.
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.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
conversely.
Turning the statement round: what follows is the same idea seen from the other side.
satisfy.
To make an equation or condition true.
problem set.
A weekly sheet of exercises that students work through and hand in, to practise what the lectures taught.
converse.
The statement made by swapping the 'if' and 'then' parts of another statement.

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

31 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. Is F⃗=(2x+y) i^+(x+3) j^\vec F = (2x + y)\,\hat i + (x + 3)\,\hat j a gradient field?
  2. For which aa is (ay2) i^+(6xy) j^(ay^2)\,\hat i + (6xy)\,\hat j a gradient field?
  3. The curl of F⃗=−3y i^+3x j^\vec F = -3y\,\hat i + 3x\,\hat j is…
0 of 3 answered

Flashcards

1 / 3