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

Vector fields and line integrals

A vector field F = M î + N ĵ attaches a vector to every point, like a wind map or a gravitational field. The work done by a force field along a curve C is the line integral ∫_C F · dr, the limit of sums F · Δr. It is computed by expressing everything in one parameter: ∫ F · (dr/dt) dt, or, in the notation ∫_C M dx + N dy, by substituting x(t), y(t), dx, dy. The result depends on the curve but not on its parametrisation. Geometrically, dr = T̂ ds, so ∫ F · dr = ∫ F · T̂ ds, which can make some integrals immediate.

You need this first

Full reading path (17 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)
On this page · 5 sections
  1. Vector fields
  2. Work and the line integral
  3. The notation M dx + N dy
  4. The geometric approach
  5. Summary

A new topic: vector fields and line integrals. Double integrals will return; for now it helps not to think of them at all, since line integrals are a completely different thing (transcript, p. 1).

Vector fields#

A vector field has components that depend on the point (transcript, p. 1; notes, p. 2):

Vector field
F⃗=M i^+N j^,M=M(x,y),N=N(x,y)\vec F = M\,\hat i + N\,\hat j, \qquad M = M(x, y), \quad N = N(x, y)
In words

vector F equals M i hat plus N j hat, M equals M(x, y), N equals N(x, y)

At every point of the plane there is a vector (Auroux: "in a corn field, everywhere you have corn") (p. 1). Real examples are velocity fields, such as wind maps, where the arrow at each point is the velocity of the air, and force fields, such as the gravitational field of the Earth or of stars and planets (p. 1; notes, p. 2). To draw one, put arrows at enough points to see the pattern; precision is rarely the point (p. 1). The lecture's standard examples (pp. 1–2; notes, p. 2):

  1. F⃗=2i^+j^\vec F = 2\hat i + \hat j: the same vector everywhere.
  2. F⃗=x i^\vec F = x\,\hat i: horizontal, zero on the yy-axis, longer further right, pointing left where x<0x < 0.
  3. F⃗=x i^+y j^\vec F = x\,\hat i + y\,\hat j: the position vector copied to each point, pointing radially out, growing with distance, like a source pouring fluid out at the origin.
  4. F⃗=−y i^+x j^\vec F = -y\,\hat i + x\,\hat j: the position vector turned 90° counterclockwise, perpendicular to it. It is the velocity field of uniform rotation at unit angular velocity: a fluid particle goes round in time 2π2\pi. (⟨y,−x⟩\langle y, -x\rangle rotates the other way.)

Work and the line integral#

The work done by a force during a small displacement Δr⃗\Delta\vec r is F⃗⋅Δr⃗\vec F \cdot \Delta\vec r: it is the energy the force provides, and if it is the only force, the change in kinetic energy (transcript, p. 2; notes, p. 2). (8.01 develops work along a path.) Along a curved trajectory CC with a varying force, cut CC into small pieces and add up; in the limit, the line integral (p. 2; notes, p. 2):

Work as a line integral
W=∫CF⃗⋅dr⃗=lim⁡Δr⃗i→0∑iF⃗⋅Δr⃗iW = \int_C \vec F \cdot d\vec r = \lim_{\Delta\vec r_i \to 0} \sum_i \vec F \cdot \Delta\vec r_i
In words

W equals the integral over C of vector F dot d vector r equals the limit as capital delta vector r sub i goes to 0 of the sum over i of vector F dot capital delta vector r sub i

To compute it, cut the motion into small time intervals: each step is about the velocity times Δt\Delta t, so (p. 2; notes, p. 2):

Computing a line integral
∫CF⃗⋅dr⃗=∫t1t2F⃗⋅dr⃗dt dt\int_C \vec F \cdot d\vec r = \int_{t_1}^{t_2} \vec F \cdot \frac{d\vec r}{dt}\,dt
In words

the integral over C of vector F dot d vector r equals the integral from t one to t two of vector F dot d vector r over d t, times d t

where F⃗\vec F is evaluated at the point of the trajectory at time tt (p. 2).

Example. F⃗=⟨−y,x⟩\vec F = \langle -y, x\rangle along x=tx = t, y=t2y = t^2, 0≤t≤10 \le t \le 1: the piece of the parabola y=x2y = x^2 from (0,0)(0, 0) to (1,1)(1, 1). The force and the path are both given, independently of each other (p. 2). At time tt, F⃗=⟨−t2,t⟩\vec F = \langle -t^2, t\rangle and dr⃗/dt=⟨1,2t⟩d\vec r/dt = \langle 1, 2t\rangle, so (p. 3; notes, p. 2):

The example
∫CF⃗⋅dr⃗=∫01⟨−t2,t⟩⋅⟨1,2t⟩ dt=∫01(−t2+2t2) dt=∫01t2 dt=13\int_C \vec F \cdot d\vec r = \int_0^1 \langle -t^2, t\rangle \cdot \langle 1, 2t\rangle\,dt = \int_0^1 (-t^2 + 2t^2)\,dt = \int_0^1 t^2\,dt = \frac13
In words

the integral over C of vector F dot d vector r equals the integral from 0 to 1 of the average of minus t squared, t times the average of 1, 2 t d t equals the integral from 0 to 1 of the quantity minus t squared plus 2 t squared, d t equals the integral from 0 to 1 of t squared d t equals one third

A different path between the same points generally gives a different answer (p. 3). For example, along the xx-axis to (1,0)(1, 0) the field ⟨0,x⟩\langle 0, x\rangle is perpendicular to the path (no work), and then straight up to (1,1)(1, 1) it has component 1 along the path, so that route gives work 1, not 13\frac13. (The line integral does not say how a particle would move under the force; it measures the work along a path that is given, p. 3.)

The notation M dx + N dy#

Writing dr⃗=⟨dx,dy⟩d\vec r = \langle dx, dy\rangle, a differential, gives a second notation (transcript, p. 3; notes, pp. 2–3):

Line integral in differentials
∫CF⃗⋅dr⃗=∫CM dx+N dy\int_C \vec F \cdot d\vec r = \int_C M\,dx + N\,dy
In words

the integral over C of vector F dot d vector r equals the integral over C of M d x plus N d y

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

The notation is dangerous: this is not a sum of an xx-integral and a yy-integral. Along CC, xx and yy are related, and there is only one parameter; everything must be expressed in terms of it (p. 3; notes, p. 3). For the example, x=tx = t, y=t2y = t^2, dx=dtdx = dt, dy=2t dtdy = 2t\,dt (p. 3):

The example again
∫C−y dx+x dy=∫01(−t2 dt+t⋅2t dt)=∫01t2 dt=13\int_C -y\,dx + x\,dy = \int_0^1 \left(-t^2\,dt + t \cdot 2t\,dt\right) = \int_0^1 t^2\,dt = \frac13
In words

the integral over C of minus y d x plus x d y equals the integral from 0 to 1 of the quantity minus t squared d t plus t times 2 t d t, equals the integral from 0 to 1 of t squared d t equals one third

The line integral depends on the curve CC but not on the parametrisation: x=sin⁡θx = \sin\theta, y=sin⁡2θy = \sin^2\theta, 0≤θ≤π/20 \le \theta \le \pi/2, traces the same parabola and gives 13\frac13 again, with more trigonometry. In practice, choose the simplest parametrisation, possibly xx itself, with y=x2y = x^2 and dy=2x dxdy = 2x\,dx (pp. 3–4; notes, p. 2).

The geometric approach#

A small step Δr⃗\Delta\vec r along the curve points along the unit tangent T^\hat T and has length Δs\Delta s, the arc length: dr⃗=T^ dsd\vec r = \hat T\,ds (dividing by dtdt, this is v⃗=T^ ds/dt\vec v = \hat T\,ds/dt) (transcript, p. 4; notes, p. 3). So (p. 4; notes, p. 3):

Tangential component
∫CF⃗⋅dr⃗=∫CF⃗⋅T^ ds\int_C \vec F \cdot d\vec r = \int_C \vec F \cdot \hat T\,ds
In words

the integral over C of vector F dot d vector r equals the integral over C of vector F dot capital T hat d s

F⃗⋅T^\vec F \cdot \hat T is the component of the force along the curve. When the field and the curve fit together simply, this can save the computation (p. 4):

  • CC the circle of radius aa about the origin, counterclockwise, and F⃗=xi^+yj^\vec F = x\hat i + y\hat j, radial: F⃗⊥T^\vec F \perp \hat T everywhere, so the work is ∫C0 ds=0\int_C 0\,ds = 0 (p. 4; notes, p. 3).
  • Same CC, F⃗=−yi^+xj^\vec F = -y\hat i + x\hat j: F⃗\vec F is tangent to the circle, with length aa, so F⃗⋅T^=a\vec F \cdot \hat T = a and the work is a×2πa=2πa2a \times 2\pi a = 2\pi a^2. With x=acos⁡θx = a\cos\theta, y=asin⁡θy = a\sin\theta the same answer takes longer (p. 4; notes, p. 3).
Worked example

Two paths, two answers

For F⃗=−y i^+x j^\vec F = -y\,\hat i + x\,\hat j, find the work from (1,0)(1, 0) to (0,1)(0, 1) (a) along the straight segment, and (b) along the quarter of the unit circle. (c) Then for G⃗=y i^+x j^\vec G = y\,\hat i + x\,\hat j, compute the work from (0,0)(0, 0) to (2,1)(2, 1) along the segment x=2tx = 2t, y=ty = t, and along the parabola x=2tx = 2t, y=t2y = t^2.

(a) The segment

x=1−tx = 1 - t, y=ty = t, 0≤t≤10 \le t \le 1, so dx=−dtdx = -dt, dy=dtdy = dt and ∫−y dx+x dy=∫01(t+(1−t)) dt=∫011 dt=1\int -y\,dx + x\,dy = \int_0^1 \big(t + (1 - t)\big)\,dt = \int_0^1 1\,dt = 1.

(b) The arc, geometrically

On the unit circle F⃗\vec F is tangent with length 1, so F⃗⋅T^=1\vec F \cdot \hat T = 1 and the work is the arc length, π/2≈1.571\pi/2 \approx 1.571. Different from (a): the work depends on the path.

(c) A field where the paths agree

Segment: G⃗=⟨t,2t⟩\vec G = \langle t, 2t\rangle, dr⃗/dt=⟨2,1⟩d\vec r/dt = \langle 2, 1\rangle, integrand 4t4t, work ∫014t dt=2\int_0^1 4t\,dt = 2. Parabola: G⃗=⟨t2,2t⟩\vec G = \langle t^2, 2t\rangle, dr⃗/dt=⟨2,2t⟩d\vec r/dt = \langle 2, 2t\rangle, integrand 2t2+4t2=6t22t^2 + 4t^2 = 6t^2, work ∫016t2 dt=2\int_0^1 6t^2\,dt = 2. The same: for some fields the path does not matter, which is the subject of the next lecture.

Summary#

  • A vector field F⃗=Mi^+Nj^\vec F = M\hat i + N\hat j has a vector at each point; examples are velocity and force fields, and ⟨−y,x⟩\langle -y, x\rangle is uniform rotation.
  • The work along CC is the line integral ∫CF⃗⋅dr⃗=∫t1t2F⃗⋅dr⃗dt dt\int_C \vec F \cdot d\vec r = \int_{t_1}^{t_2} \vec F \cdot \frac{d\vec r}{dt}\,dt.
  • Equivalently ∫CM dx+N dy\int_C M\,dx + N\,dy: express xx, yy, dxdx, dydy in one parameter and integrate.
  • The result depends on the path, but not on its parametrisation.
  • dr⃗=T^ dsd\vec r = \hat T\,ds, so ∫CF⃗⋅dr⃗=∫CF⃗⋅T^ ds\int_C \vec F \cdot d\vec r = \int_C \vec F \cdot \hat T\,ds: zero for a field perpendicular to the path, 2πa22\pi a^2 for ⟨−y,x⟩\langle -y, x\rangle around a circle of radius aa.

Symbols on this page

Show the 37 symbols used here
Δ\Delta capital delta.
A change or difference in a quantity, e.g. Δx = x₂ − x₁. Say it: “capital delta”.
θ\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”.
≈\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”.
→\to arrow.
Goes to (tends to), or becomes. Say it: “goes 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”.
∫\int integral.
Integral: the sum of infinitely many small pieces, such as the area under a curve. Say it: “the integral of”.
∑\sum sum.
Sum: add up the terms over the range written below and above. Say it: “the sum of”.
lim⁡\lim limit.
Limit: the value approached as the variable written below approaches its target. Say it: “the limit”.
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”.
aa a.
The radius of the circle. Say it: “a”.
GG G.
In the worked example, the vector field y î + x ĵ. Say it: “G”.
TT T.
With a hat, T̂: the unit tangent vector to the curve. Say it: “capital T”.
⊥\perp perpendicular.
Is perpendicular to. Say it: “perpendicular”.
xx x.
The x coordinate. Say it: “x”.
yy y.
The y coordinate. Say it: “y”.
tt t.
The parameter (time) along the curve. Say it: “t”.
dd d.
The d of dr, dt, dx, dy, ds. Say it: “d”.
FF F.
A vector field, F = M î + N ĵ (a force field when computing work). Say it: “F”.
vv v.
The velocity vector dr/dt. Say it: “v”.
rr r.
The position vector of the moving point. Unit: m. Say it: “r”.
CC C.
The curve (trajectory) 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, a function of x and y. Say it: “N”.
MM M.
The x component of the vector field, a function of x and y. Say it: “M”.
t1t_{1} t one.
The starting value of the parameter. Say it: “t one”.
t2t_{2} t two.
The final value of the parameter. Say it: “t two”.
rir_{i} r i.
With Δ: the i-th small step along the curve. Say it: “r sub i”.
WW W.
The work done by the force along the curve. Unit: J. Say it: “W”.
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”.

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

Words on this page

Show the 34 words used here

New here

velocity field.
A vector field that gives the velocity of a moving fluid at each point, like a map of wind arrows.
force field.
A vector field that gives the force a body would feel at each point, such as the Earth's gravitational pull.

Also used

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.
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.
double integral.
An integral over a region of the plane: cut the region into tiny pieces, multiply each by the function's value there, and add. Explained in Double integrals.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
vector.
A quantity with both a size and a direction, such as a velocity or a force, drawn as an arrow. Explained in Vectors.
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.
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.
gravitational field.
The pull of gravity at each point of space, given as the force on each kilogram of mass placed there. Explained in The electric field.
position vector.
The arrow from the origin of a coordinate system to a point, which says where the point is. Explained in Position and velocity in one dimension.
perpendicular.
At right angles to a line, a surface or another direction. Explained in Inclined planes.
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.
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.
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.
displacement.
The change in position from start to finish: how far and in which direction, ignoring the route in between. Explained in Vectors.
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.
trajectory.
The path a moving body follows, or more generally the curve traced out by a changing state as time goes on. Explained in Projectile motion.
limit.
The value a quantity gets closer and closer to, as near as we like, as its input approaches some value, without having to reach it. Explained in Rates of change and area under a graph.
interval.
A stretch between two values or two moments; in maths, all the numbers between two end points. Explained in Time dilation, length contraction and the interval.
parabola.
The U-shaped curve of y = ax² + bx + c, also the path of a thrown ball when air resistance is ignored. Explained in Quadratics and power laws.
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.
unit tangent vector.
The vector of length one that points along a curve, in the direction of motion: the velocity divided by the speed. Explained in Velocity, acceleration and Kepler's second law.
arc length.
The length of a curve measured along the curve itself, as a piece of string laid along it would show. Explained in Derivatives of sine and cosine, and the product and quotient rules.
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.
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.
integrand.
The function being integrated: the f(x) in ∫ f(x) dx. Explained in The logarithm from an integral, and areas between curves.
test body.
An idealised body so small and light that it does not disturb the gravity around it, with no charge, size or spin. Explained in Tensor densities, covariant divergences and the geodesic equation.
integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
precision.
How finely a measurement is made, or how close repeated measurements are to each other.
notation.
A system of symbols used to write ideas down briefly, such as dy/dx for a derivative.
in practice.
In reality, as things are actually done or measured, rather than in theory.

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

34 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. The vector field F⃗=−y i^+x j^\vec F = -y\,\hat i + x\,\hat j describes…
  2. For F⃗=⟨y,x⟩\vec F = \langle y, x\rangle along x=tx = t, y=ty = t, 0≤t≤10 \le t \le 1, ∫CF⃗⋅dr⃗=\int_C \vec F \cdot d\vec r =
  3. A force field is everywhere perpendicular to a curve. The work along the curve is…
0 of 3 answered

Flashcards

1 / 3