Skip to content

Line integrals explained

6 min read

Short answer

A line integral adds up a quantity along a curve CC. For a scalar function, ∫Cf ds=∫abf(r(t)) ∣r′(t)∣ dt\int_Cf\,ds=\int_a^bf(\mathbf r(t))\,|\mathbf r'(t)|\,dt. For a vector field, ∫CF⋅dr=∫abr′(t)⋅F(r(t)) dt,\int_C\mathbf F\cdot d\mathbf r=\int_a^b\mathbf r'(t)\cdot\mathbf F\big(\mathbf r(t)\big)\,dt, which measures the work done by F\mathbf F along CC, or the circulation if CC is closed. Direction matters for the vector version.

DiagramF = (−y, x)
The field F = (−y, x) swirls counterclockwise, so it pushes along the circle all the way around: positive work, large circulation.

Recipe

  1. Parameterize the curve: r(t)\mathbf r(t) for a≤t≤ba\le t\le b in the correct direction.
  2. Compute r′(t)\mathbf r'(t).
  3. Substitute x(t),y(t)x(t),y(t) into F\mathbf F or ff.
  4. Integrate the resulting single-variable expression.

Walking CC backwards negates the vector integral, while the scalar integral stays the same.

Interpretation

F⋅r′\mathbf F\cdot\mathbf r' is the part of the field pointing along the direction of motion, so the integral totals the push you receive. If the field is conservative, the answer depends only on the endpoints.

Worked example

Compute ∮CF⋅dr\oint_C\mathbf F\cdot d\mathbf r for F=(−y,x)\mathbf F=(-y,x) and CC the unit circle traversed counterclockwise.

Parameterize r(t)=(cos⁡t,sin⁡t)\mathbf r(t)=(\cos t,\sin t), 0≤t≤2π0\le t\le2\pi, so r′=(−sin⁡t,cos⁡t)\mathbf r'=(-\sin t,\cos t) and F(r(t))=(−sin⁡t,cos⁡t)\mathbf F(\mathbf r(t))=(-\sin t,\cos t). F⋅r′=sin⁡2t+cos⁡2t=1 ⟹ ∫02π1 dt=2π.\mathbf F\cdot\mathbf r'=\sin^2t+\cos^2t=1\ \Longrightarrow\ \int_0^{2\pi}1\,dt=2\pi. The field points exactly along the path at every point, so every bit of the trip contributes positively.

Try it yourself

Compute ∫CF⋅dr\int_C\mathbf F\cdot d\mathbf r for F=(x,y)\mathbf F=(x,y) along the line from (0,0)(0,0) to (1,2)(1,2).

Show the answer

r(t)=(t,2t)\mathbf r(t)=(t,2t), r′=(1,2)\mathbf r'=(1,2), F=(t,2t)\mathbf F=(t,2t), so F⋅r′=t+4t=5t\mathbf F\cdot\mathbf r'=t+4t=5t. ∫015t dt=52\int_0^15t\,dt=\tfrac52. (Potential function x2+y22\tfrac{x^2+y^2}2 gives 52\tfrac52 too.)

Keep going with practice

Line integrals are a main topic in Vidi's Multivariable & Vector Calculus course, with vector fields you can explore.