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

Line integrals, gradient fields and curl in space

In space, the work of F = ⟨P, Q, R⟩ along a curve is ∫ P dx + Q dy + R dz, computed by expressing x, y, z in one parameter, as in the plane. For ⟨yz, xz, xy⟩ = ∇(xyz) the work from the origin to (1, 1, 1) is 1 along any path. Testing for a gradient field now takes three conditions, P_y = Q_x, P_z = R_x, Q_z = R_y (on a simply connected domain), and the potential is found by integrating one variable at a time. The curl, ∇ × F = ⟨R_y − Q_z, P_z − R_x, Q_x − P_y⟩, measures the failure to be conservative; for a velocity field it is twice the angular velocity, along the axis of rotation.

You need this first

Full reading path (28 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)
  20. Testing for gradient fields, potentials and curl (18.02)
  21. Green's theorem (18.02)
  22. Flux and the normal form of Green's theorem (18.02)
  23. Simply connected regions (18.02)
  24. Triple integrals and cylindrical coordinates (18.02)
  25. Spherical coordinates and gravitational attraction (18.02)
  26. Vector fields in space and flux through surfaces (18.02)
  27. Flux through graphs and the divergence theorem (18.02)
  28. The divergence theorem, its proof and the diffusion equation (18.02)
On this page · 5 sections
  1. Line integrals in space
  2. The fundamental theorem and gradient fields
  3. Finding the potential
  4. Curl
  5. Summary

After surfaces, back to curves: work along a curve in space. Computing it is as in the plane; testing for gradient fields takes more care (transcript, p. 1).

Line integrals in space#

For a force field F⃗=⟨P,Q,R⟩\vec F = \langle P, Q, R\rangle and a curve CC in space, with dr⃗=⟨dx,dy,dz⟩d\vec r = \langle dx, dy, dz\rangle (transcript, p. 1; notes, p. 1):

Work in space
W=∫CF⃗⋅dr⃗=∫CP dx+Q dy+R dzW = \int_C \vec F \cdot d\vec r = \int_C P\,dx + Q\,dy + R\,dz
In words

W equals the integral of _ capital C vector capital F dot d vector r equals the integral of _ capital C P d x plus Q d y plus capital R d z

It is still a line integral: parametrise CC, express xx, yy, zz, dxdx, dydy, dzdz in the parameter, and do a single integral, as in the plane (p. 1).

Example. F⃗=⟨yz,xz,xy⟩\vec F = \langle yz, xz, xy\rangle along x=t3x = t^3, y=t2y = t^2, z=tz = t, 0≤t≤10 \le t \le 1: dx=3t2 dtdx = 3t^2\,dt, dy=2t dtdy = 2t\,dt, dz=dtdz = dt, and (p. 1; notes, p. 1):

Along the twisted curve
∫Cyz dx+xz dy+xy dz=∫01(t3⋅3t2+t4⋅2t+t5) dt=∫016t5 dt=1\int_C yz\,dx + xz\,dy + xy\,dz = \int_0^1 \big(t^3 \cdot 3t^2 + t^4 \cdot 2t + t^5\big)\,dt = \int_0^1 6t^5\,dt = 1
In words

the integral of _ capital C y z d x plus x z d y plus x y d z equals the integral from 0 to 1 of the quantity t cubed times 3 t squared plus t to the power 4 times 2 t plus t to the power 5, d t equals the integral from 0 to 1 of 6 t to the power 5 d t equals 1

The same field along three segments parallel to the axes, from the origin to (1,0,0)(1, 0, 0), to (1,1,0)(1, 1, 0), to (1,1,1)(1, 1, 1): on the first two, z=0z = 0 and dz=0dz = 0, so there is no work; on the last, x=y=1x = y = 1 and dx=dy=0dx = dy = 0, leaving ∫01dz=1\int_0^1 dz = 1 (p. 1; notes, p. 1). The same answer, because F⃗\vec F is conservative: F⃗=∇(xyz)\vec F = \nabla(xyz) (pp. 1–2).

The fundamental theorem and gradient fields#

As in the plane, for a gradient field (transcript, p. 2; notes, p. 1):

Fundamental theorem for line integrals
∫P0P1∇f⋅dr⃗=f(P1)−f(P0)\int_{P_0}^{P_1} \nabla f \cdot d\vec r = f(P_1) - f(P_0)
In words

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

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

For f=xyzf = xyz, f(1,1,1)−f(0,0,0)=1f(1, 1, 1) - f(0, 0, 0) = 1 (p. 2). What changes in space is the test. If ⟨P,Q,R⟩=⟨fx,fy,fz⟩\langle P, Q, R\rangle = \langle f_x, f_y, f_z\rangle, equal mixed partial derivatives give three conditions (p. 2; notes, p. 1):

Test for a gradient field
Py=Qx,Pz=Rx,Qz=RyP_y = Q_x, \qquad P_z = R_x, \qquad Q_z = R_y
In words

P sub y equals Q sub x, P sub z equals capital R sub x, Q sub z equals capital R sub y

and conversely they are enough, if F⃗\vec F is defined in all of space or in a simply connected region (p. 2; notes, p. 1).

Example. For which aa, bb is axy i^+(x2+z3) j^+(byz2−4z3) k^axy\,\hat i + (x^2 + z^3)\,\hat j + (byz^2 - 4z^3)\,\hat k a gradient field? Py=axP_y = ax must equal Qx=2xQ_x = 2x, so a=2a = 2; Pz=0=RxP_z = 0 = R_x; and Qz=3z2Q_z = 3z^2 must equal Ry=bz2R_y = bz^2, so b=3b = 3 (p. 2; notes, p. 1).

Finding the potential#

By antiderivatives, one variable at a time (transcript, p. 3; notes, p. 1). From fx=2xyf_x = 2xy: f=x2y+g(y,z)f = x^2y + g(y, z), where the "constant" may depend on yy and zz. Then fy=x2+gyf_y = x^2 + g_y must be x2+z3x^2 + z^3, so gy=z3g_y = z^3 and g=yz3+h(z)g = yz^3 + h(z). Then fz=3yz2+h′(z)f_z = 3yz^2 + h'(z) must be 3yz2−4z33yz^2 - 4z^3, so h′=−4z3h' = -4z^3 and h=−z4+ch = -z^4 + c (p. 3; notes, p. 1):

The potential
f(x,y,z)=x2y+yz3−z4+cf(x, y, z) = x^2y + yz^3 - z^4 + c
In words

f(x, y, z) equals x squared y plus y z cubed minus z to the power 4 plus c

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

By a line integral, f(x1,y1,z1)=f(0,0,0)+∫F⃗⋅dr⃗f(x_1, y_1, z_1) = f(0, 0, 0) + \int \vec F \cdot d\vec r along an easy path, such as three segments parallel to the axes: the same idea as in two variables, with three pieces instead of two (pp. 2–3; notes, p. 1).

Curl#

The curl measures how much F⃗\vec F fails to be conservative (transcript, p. 3; notes, p. 1). With the del operator it is a cross product, best remembered as a determinant (p. 3; notes, pp. 1–2):

Curl
∇×F⃗=∣i^j^k^∂/∂x∂/∂y∂/∂zPQR∣=(Ry−Qz) i^+(Pz−Rx) j^+(Qx−Py) k^\nabla \times \vec F = \begin{vmatrix} \hat i & \hat j & \hat k \\ \partial/\partial x & \partial/\partial y & \partial/\partial z \\ P & Q & R \end{vmatrix} = (R_y - Q_z)\,\hat i + (P_z - R_x)\,\hat j + (Q_x - P_y)\,\hat k
In words

del cross vector capital F equals i hat j hat k hat; partial over partial x partial over partial y partial over partial z; P Q capital R equals the quantity capital R sub y minus Q sub z, i hat plus the quantity P sub z minus capital R sub x, j hat plus the quantity Q sub x minus P sub y, k hat

Source: 18.02 Lecture 30 transcript, pp. 3–4

An important difference from the plane: there the curl was a number, here it is a vector field (p. 3). Its components are exactly the three expressions of the test, so F⃗\vec F is a gradient field (on a simply connected domain) exactly when its curl is zero (p. 3). Rather than memorise the formula, set up the determinant (p. 4).

For a velocity field, the curl measures rotation (p. 4; notes, p. 2). A rotation about the zz-axis at angular velocity ω\omega is v⃗=⟨−ωy,ωx,0⟩\vec v = \langle -\omega y, \omega x, 0\rangle, and (p. 4; notes, p. 2):

Curl of a rotation
∇×⟨−ωy,ωx,0⟩=⟨0,0,2ω⟩\nabla \times \langle -\omega y, \omega x, 0\rangle = \langle 0, 0, 2\omega\rangle
In words

del cross the average of minus omega y, omega x, 0 equals the average of 0, 0, 2 omega

Its length is twice the angular velocity and its direction is the axis of rotation. A complicated motion combines translation, expansion, shear and rotation; the curl picks out the rotation: it says how a small ball carried by the flow, such as a ping-pong ball, starts to spin (p. 4; notes, p. 2).

Worked example

A test, a potential, a work and a curl

(a) Show that F⃗=⟨2xz,z2,x2+2yz⟩\vec F = \langle 2xz, z^2, x^2 + 2yz\rangle is a gradient field and find a potential. (b) Find the work from the origin to (1,2,3)(1, 2, 3). (c) Find the curl of G⃗=⟨y,−x,z⟩\vec G = \langle y, -x, z\rangle and say what it means.

(a) Test and potential

Py=0=QxP_y = 0 = Q_x; Pz=2x=RxP_z = 2x = R_x; Qz=2z=RyQ_z = 2z = R_y: a gradient field. From fx=2xzf_x = 2xz, f=x2z+g(y,z)f = x^2z + g(y, z); fy=gy=z2f_y = g_y = z^2 gives g=yz2+h(z)g = yz^2 + h(z); fz=x2+2yz+h′(z)f_z = x^2 + 2yz + h'(z) must be x2+2yzx^2 + 2yz, so hh is a constant: f=x2z+yz2f = x^2z + yz^2.

(b) Work

f(1,2,3)−f(0,0,0)=1⋅3+2⋅9=21f(1, 2, 3) - f(0, 0, 0) = 1 \cdot 3 + 2 \cdot 9 = 21, along any path.

(c) Curl

∇×G⃗=⟨0−0, 0−0, −1−1⟩=⟨0,0,−2⟩\nabla \times \vec G = \langle 0 - 0,\ 0 - 0,\ -1 - 1\rangle = \langle 0, 0, -2\rangle. The horizontal part ⟨y,−x⟩\langle y, -x\rangle is a clockwise rotation (seen from above) at angular velocity 1, hence −2k^-2\hat k; the part z k^z\,\hat k is a vertical stretching, which adds no rotation.

Summary#

  • Work in space: ∫CP dx+Q dy+R dz\int_C P\,dx + Q\,dy + R\,dz, computed by expressing everything in one parameter.
  • ∫P0P1∇f⋅dr⃗=f(P1)−f(P0)\int_{P_0}^{P_1} \nabla f \cdot d\vec r = f(P_1) - f(P_0); ⟨yz,xz,xy⟩=∇(xyz)\langle yz, xz, xy\rangle = \nabla(xyz).
  • Test: Py=QxP_y = Q_x, Pz=RxP_z = R_x, Qz=RyQ_z = R_y (on a simply connected domain). Find the potential one variable at a time, or by a line integral along segments parallel to the axes.
  • ∇×F⃗=⟨Ry−Qz,Pz−Rx,Qx−Py⟩\nabla \times \vec F = \langle R_y - Q_z, P_z - R_x, Q_x - P_y\rangle; zero curl means conservative. For a velocity field the curl is twice the angular velocity, along the axis.

Symbols on this page

Show the 50 symbols used here
ω\omega omega.
The angular velocity of a rotation about the z-axis. Unit: rad/s. Say it: “omega”.
Ω\Omega capital omega.
In the closing note, the angular velocity of a spinning planet. Unit: rad/s. Say it: “capital omega”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
≤\le less than or equal.
Is less than or equal to. Say it: “is less than or equal to”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
⋅\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”.
∂\partial partial.
Partial derivative: the rate of change with one variable, holding the others fixed. Say it: “partial”.
∇\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”.
v⃗\vec v vector arrow.
A vector: a quantity with a size and a direction. Say it: “vector”.
aa a.
A number in the example field, found from P_y = Q_x. Say it: “a”.
zz z.
The z coordinate. Say it: “z”.
GG G.
In the worked example, the field ⟨y, −x, z⟩. Say it: “capital G”.
cc c.
An integration constant. Say it: “c”.
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, dz, dt. Say it: “d”.
ff f.
A potential: a function with ∇f = F. Say it: “f”.
gg g.
g(y, z): the 'constant' of integrating f_x in x, which may depend on y and z. Say it: “g”.
FF F.
A vector field in space, ⟨P, Q, R⟩ (a force field when computing work). Say it: “capital F”.
vv v.
A velocity field. Say it: “v”.
rr r.
The position vector along the curve. Say it: “r”.
PP P.
The x component of the vector field. Say it: “P”.
QQ Q.
The y component of the vector field. Say it: “Q”.
CC C.
The curve along which the work is computed. Say it: “capital C”.
bb b.
A number in the example field, found from Q_z = R_y. Say it: “b”.
hh h.
h(z): the 'constant' of integrating g_y in y, which may depend on z. Say it: “h”.
RR R.
The z component of the vector field. Say it: “capital R”.
h′h' h prime.
The derivative of h(z). Say it: “h prime”.
x1x_{1} x 1.
The x coordinate of the end point (x₁, y₁, z₁). Say it: “x one”.
y1y_{1} y 1.
The y coordinate of the end point. Say it: “y one”.
WW W.
The work done by the force along the curve. Unit: J. Say it: “W”.
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”.
k^\hat{k} k hat.
Unit vector in the z direction: length 1, pointing towards increasing z. Say it: “k hat”.
P1P_{1} P 1.
The end point of the curve. Say it: “P one”.
fxf_{x} f sub x.
The partial derivative ∂f/∂x. Say it: “f sub x”.
fyf_{y} f sub y.
The partial derivative ∂f/∂y. Say it: “f sub y”.
fzf_{z} f sub z.
The partial derivative ∂f/∂z. Say it: “f sub z”.
gyg_{y} g sub y.
The partial derivative ∂g/∂y. Say it: “g sub y”.
z1z_{1} z sub 1.
The z coordinate of the end point. Say it: “z sub 1”.
PyP_{y} P sub y.
The partial derivative ∂P/∂y. Say it: “P sub y”.
QxQ_{x} Q sub x.
The partial derivative ∂Q/∂x. Say it: “Q sub x”.
PzP_{z} P sub z.
The partial derivative ∂P/∂z. Say it: “P sub z”.
RxR_{x} R sub x.
The partial derivative ∂R/∂x. Say it: “capital R sub x”.
QzQ_{z} Q sub z.
The partial derivative ∂Q/∂z. Say it: “Q sub z”.
RyR_{y} R sub y.
The partial derivative ∂R/∂y. Say it: “capital R 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 25 words used here

Also used

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.
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.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
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.
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.
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.
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.
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.
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.
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.
antiderivative.
A function whose derivative is the given function; any two antiderivatives differ only by a constant. Explained in Differentials and antiderivatives.
curl.
A measure of how much a vector field turns or swirls around each point. Explained in Testing for gradient fields, potentials and curl.
operator.
A rule that acts on a function, vector or state and turns it into another one, such as 'take the derivative'. Explained in The chain rule and higher derivatives.
cross product.
A way of multiplying two vectors that gives a third vector, at right angles to both, as long as the area of their parallelogram. Explained in Torque and the cross product.
determinant.
A single number worked out from a square array of numbers (a matrix), which measures how the matrix stretches areas or volumes. Explained in Determinants and the cross product.
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.
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.
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.
potential.
A function whose gradient is a given vector field; the field is then a gradient field. Explained in Gradient fields and path independence.
rigid body.
An idealised solid whose parts all keep the same distances from one another, so it can only move and turn as a whole. Explained in Rigid bodies and rotational kinematics.
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.

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.
hence.
For this reason; as a result of what was just said.

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. How many conditions does the test for a gradient field ⟨P,Q,R⟩\langle P, Q, R\rangle in space have?
  2. The curl of ⟨−y,x,0⟩\langle -y, x, 0\rangle is…
  3. For F⃗=∇(xyz)\vec F = \nabla(xyz), the work from (0,0,0)(0, 0, 0) to (2,1,3)(2, 1, 3) is…
0 of 3 answered

Flashcards

1 / 3