The Line Integral of the Second Kind (with Respect to Coordinates)

The Physical Background: the Work Done by a Variable Force

The physical background of the line integral of the first kind is “the mass of a curve”, whereas the physical background of the line integral of the second kind is the work done by a variable force along a curve. Suppose a particle moves along an oriented curve LL under the action of the variable force F⃗(x,y,z)=P(x,y,z)i⃗+Q(x,y,z)j⃗+R(x,y,z)k⃗\vec{F}(x,y,z) = P(x,y,z)\vec{i} + Q(x,y,z)\vec{j} + R(x,y,z)\vec{k}; the work done by the force is the line integral of the second kind:

W=∫LP dx+Q dy+R dzW = \int_L P \, dx + Q \, dy + R \, dz

The Definition of the Line Integral of the Second Kind

Line integral of the second kind

Let LL be an oriented smooth or piecewise smooth curve in space, and let the functions P(x,y,z),Q(x,y,z),R(x,y,z)P(x,y,z), Q(x,y,z), R(x,y,z) be bounded on LL. Divide LL arbitrarily into nn oriented small arc segments Mi−1Mi→\overrightarrow{M_{i-1}M_i}, whose projections on the x,y,zx, y, z axes are Δxi,Δyi,Δzi\Delta x_i, \Delta y_i, \Delta z_i respectively. In each small arc segment choose an arbitrary point (ξi,ηi,ζi)(\xi_i, \eta_i, \zeta_i), and sum:

∑i=1n[P(ξi,ηi,ζi)Δxi+Q(ξi,ηi,ζi)Δyi+R(ξi,ηi,ζi)Δzi]\sum_{i=1}^n \left[ P(\xi_i,\eta_i,\zeta_i) \Delta x_i + Q(\xi_i,\eta_i,\zeta_i) \Delta y_i + R(\xi_i,\eta_i,\zeta_i) \Delta z_i \right]

If, as the maximum λ\lambda of the lengths of the small arc segments tends to 0, this sum has a limit, then this limit is called the line integral of the second kind of the vector function (P,Q,R)(P,Q,R) along the oriented curve LL (the line integral with respect to coordinates), written:

∫LP(x,y,z) dx+Q(x,y,z) dy+R(x,y,z) dz\int_L P(x,y,z) \, dx + Q(x,y,z) \, dy + R(x,y,z) \, dz

or, in short form, ∫LF⃗⋅dr⃗\int_L \vec{F} \cdot d\vec{r}, where dr⃗=(dx,dy,dz)d\vec{r} = (dx, dy, dz).

The Plane Case

The line integral of the second kind in the plane has only two components:

∫LP(x,y) dx+Q(x,y) dy\int_L P(x,y) \, dx + Q(x,y) \, dy

The Properties of the Line Integral of the Second Kind

Theorem1
  1. Linearity: ∫L(aP1+bP2)dx+(aQ1+bQ2)dy=a∫LP1dx+Q1dy+b∫LP2dx+Q2dy\int_L (aP_1+bP_2) dx + (aQ_1+bQ_2) dy = a\int_L P_1dx+Q_1dy + b\int_L P_2dx+Q_2dy

  2. Additivity over arc segments: if L=L1+L2L = L_1 + L_2 (joined end to end with consistent orientation), then ∫LPdx+Qdy=∫L1Pdx+Qdy+∫L2Pdx+Qdy\int_L Pdx+Qdy = \int_{L_1} Pdx+Qdy + \int_{L_2} Pdx+Qdy

  3. Dependence on the orientation: the line integral of the second kind depends on the direction of the curve! ∫L−P dx+Q dy+R dz=−∫LP dx+Q dy+R dz\int_{L^-} P \, dx + Q \, dy + R \, dz = -\int_L P \, dx + Q \, dy + R \, dz where L−L^- denotes the same curve with the opposite orientation.

Computing the Line Integral of the Second Kind

Parametric Equations

Computation with parametric equations

Suppose the oriented curve LL is given by the parametric equations:

{x=x(t)y=y(t)z=z(t)\begin{cases} x = x(t) \\ y = y(t) \\ z = z(t) \end{cases}

When the parameter tt varies monotonically from α\alpha to β\beta, the point M(x(t),y(t),z(t))M(x(t),y(t),z(t)) moves from the starting point of LL to the ending point along LL. Then

∫LP dx+Q dy+R dz=∫αβ[P(x(t),y(t),z(t))x′(t)+Q(x(t),y(t),z(t))y′(t)+R(x(t),y(t),z(t))z′(t)]dt\int_L P \, dx + Q \, dy + R \, dz = \int_\alpha^\beta \left[ P(x(t),y(t),z(t))x'(t) + Q(x(t),y(t),z(t))y'(t) + R(x(t),y(t),z(t))z'(t) \right] dt

A Plane Curve in Rectangular Coordinates

If the oriented curve LL is given by y=y(x)y = y(x), with xx going from aa to bb, then:

∫LP(x,y) dx+Q(x,y) dy=∫ab[P(x,y(x))+Q(x,y(x))y′(x)]dx\int_L P(x,y) \, dx + Q(x,y) \, dy = \int_a^b \left[ P(x, y(x)) + Q(x, y(x))y'(x) \right] dx

The Relation between the Two Kinds of Line Integral

Theorem2

Let LL be an oriented smooth curve, and let cos⁡α,cos⁡β,cos⁡γ\cos\alpha, \cos\beta, \cos\gamma be the direction cosines of the tangent vector of LL at the point (x,y,z)(x,y,z) (the direction of the tangent vector agreeing with the direction of the curve). Then the two kinds of line integral are related by:

∫LP dx+Q dy+R dz=∫L(Pcos⁡α+Qcos⁡β+Rcos⁡γ) ds\int_L P \, dx + Q \, dy + R \, dz = \int_L (P\cos\alpha + Q\cos\beta + R\cos\gamma) \, ds

that is:

∫LF⃗⋅dr⃗=∫L(F⃗⋅τ⃗) ds\int_L \vec{F} \cdot d\vec{r} = \int_L (\vec{F} \cdot \vec{\tau}) \, ds

where τ⃗=(cos⁡α,cos⁡β,cos⁡γ)\vec{\tau} = (\cos\alpha, \cos\beta, \cos\gamma) is the unit tangent vector.

Worked Examples

Example 1: The Work Done by a Variable Force

Compute ∫Lx dy−y dx\int_L x \, dy - y \, dx, where LL is the ellipse x2a2+y2b2=1\frac{x^2}{a^2} + \frac{y^2}{b^2} = 1 traversed once counterclockwise.

the line integral of the second kindan ellipseparametric equationscounterclockwise

Approach:

Write the ellipse in parametric form; the counterclockwise direction corresponds to the parameter running from 0 to 2π2\pi.

Steps:

  1. The parametric equations: x=acos⁡t, y=bsin⁡t, t:0→2πx = a\cos t, \, y = b\sin t, \, t: 0 \to 2\pi
  2. dx=−asin⁡t dt, dy=bcos⁡t dtdx = -a\sin t \, dt, \, dy = b\cos t \, dt
  3. ∫Lx dy−y dx=∫02π[acos⁡t⋅bcos⁡t−bsin⁡t⋅(−asin⁡t)]dt=∫02πab(cos⁡2t+sin⁡2t)dt=ab∫02πdt=2πab\int_L x \, dy - y \, dx = \int_0^{2\pi} [a\cos t \cdot b\cos t - b\sin t \cdot (-a\sin t)] dt = \int_0^{2\pi} ab(\cos^2 t + \sin^2 t) dt = ab \int_0^{2\pi} dt = 2\pi ab

Answer: 2πab2\pi ab

(This is exactly twice the area of the ellipse, consistent with Green’s theorem.)

Example 2: The Integral along Two Different Paths

Compute ∫L(x+y) dx+(x−y) dy\int_L (x+y) \, dx + (x-y) \, dy, where LL is in turn: (1) the parabola y=x2y = x^2 from (0,0)(0,0) to (1,1)(1,1); (2) the straight line y=xy = x from (0,0)(0,0) to (1,1)(1,1).

the line integral of the second kinddifferent pathsrectangular coordinates

Approach:

Compute the integral along each of the two paths and compare the results.

Steps:

(1) Along the parabola y=x2y = x^2, x:0→1x: 0 \to 1, dy=2x dxdy = 2x \, dx: ∫L(x+y)dx+(x−y)dy=∫01[(x+x2)+(x−x2)⋅2x]dx=∫01(x+x2+2x2−2x3)dx=∫01(x+3x2−2x3)dx=[x22+x3−x42]01=12+1−12=1\int_L (x+y)dx + (x-y)dy = \int_0^1 [(x+x^2) + (x-x^2)\cdot 2x] dx = \int_0^1 (x+x^2+2x^2-2x^3) dx = \int_0^1 (x+3x^2-2x^3) dx = [\frac{x^2}{2}+x^3-\frac{x^4}{2}]_0^1 = \frac{1}{2}+1-\frac{1}{2} = 1

(2) Along the straight line y=xy = x, x:0→1x: 0 \to 1, dy=dxdy = dx: ∫L(x+y)dx+(x−y)dy=∫01[(x+x)+(x−x)]dx=∫012x dx=[x2]01=1\int_L (x+y)dx + (x-y)dy = \int_0^1 [(x+x) + (x-x)] dx = \int_0^1 2x \, dx = [x^2]_0^1 = 1

Answer: the integral along both paths is 1 (this is because the integrand is a total differential, so the integral is independent of the path; see the chapter on Green’s theorem).

Example 3: A Line Integral along a Space Curve

Compute ∫Ly dx+z dy+x dz\int_L y \, dx + z \, dy + x \, dz, where LL is the helix x=acos⁡t, y=asin⁡t, z=btx = a\cos t, \, y = a\sin t, \, z = bt, from t=0t=0 to t=2πt=2\pi.

the line integral of the second kinda helixa space curve

Approach:

Substitute the parametric equations of the space curve directly into the formula.

Steps:

  1. dx=−asin⁡t dt, dy=acos⁡t dt, dz=b dtdx = -a\sin t \, dt, \, dy = a\cos t \, dt, \, dz = b \, dt
  2. ∫Ly dx+z dy+x dz=∫02π[asin⁡t⋅(−asin⁡t)+bt⋅acos⁡t+acos⁡t⋅b]dt\int_L y \, dx + z \, dy + x \, dz = \int_0^{2\pi} [a\sin t \cdot (-a\sin t) + bt \cdot a\cos t + a\cos t \cdot b] dt =∫02π(−a2sin⁡2t+abtcos⁡t+abcos⁡t)dt= \int_0^{2\pi} (-a^2\sin^2 t + abt\cos t + ab\cos t) dt
  3. Computing the three terms separately: ∫02π−a2sin⁡2t dt=−a2⋅π=−πa2\int_0^{2\pi} -a^2\sin^2 t \, dt = -a^2 \cdot \pi = -\pi a^2 ∫02πabcos⁡t dt=ab[sin⁡t]02π=0\int_0^{2\pi} ab\cos t \, dt = ab[\sin t]_0^{2\pi} = 0 ∫02πabtcos⁡t dt=ab[tsin⁡t+cos⁡t]02π=ab(1−1)=0\int_0^{2\pi} abt\cos t \, dt = ab[t\sin t + \cos t]_0^{2\pi} = ab(1 - 1) = 0
  4. The result: −πa2-\pi a^2

Answer: −πa2-\pi a^2


Exercises

Exercise 1

Compute ∫L(x2−y2) dx\int_L (x^2 - y^2) \, dx, where LL is the arc of the parabola y=x2y = x^2 from (0,0)(0,0) to (2,4)(2,4).

the line integral of the second kinda parabolarectangular coordinates

Approach:

Take xx as the parameter, with y=x2y = x^2 and dy=2x dxdy = 2x \, dx; note that the integrand has only a dxdx term.

Steps:

  1. y=x2, x:0→2y = x^2, \, x: 0 \to 2
  2. ∫L(x2−y2)dx=∫02(x2−x4)dx=[x33−x55]02=83−325=40−9615=−5615\int_L (x^2 - y^2) dx = \int_0^2 (x^2 - x^4) dx = [\frac{x^3}{3} - \frac{x^5}{5}]_0^2 = \frac{8}{3} - \frac{32}{5} = \frac{40-96}{15} = -\frac{56}{15}

Answer: −5615-\frac{56}{15}

Exercise 2

Compute ∫LF⃗⋅dr⃗\int_L \vec{F} \cdot d\vec{r}, where F⃗=(y,−x)\vec{F} = (y, -x) and LL is the circle x2+y2=1x^2+y^2=1 traversed once clockwise.

the line integral of the second kinda circleclockwisea vector field

Approach:

For the clockwise direction, the parameter runs from 2π2\pi to 00 (or from 00 to −2π-2\pi).

Steps:

  1. The parametric equations: x=cos⁡t, y=sin⁡tx = \cos t, \, y = \sin t, clockwise t:2π→0t: 2\pi \to 0
  2. dx=−sin⁡t dt, dy=cos⁡t dtdx = -\sin t \, dt, \, dy = \cos t \, dt
  3. ∫Ly dx−x dy=∫2π0[sin⁡t⋅(−sin⁡t)−cos⁡t⋅cos⁡t]dt=∫2π0−(sin⁡2t+cos⁡2t)dt=∫2π0−1 dt=2π\int_L y \, dx - x \, dy = \int_{2\pi}^0 [\sin t \cdot (-\sin t) - \cos t \cdot \cos t] dt = \int_{2\pi}^0 -(\sin^2 t+\cos^2 t) dt = \int_{2\pi}^0 -1 \, dt = 2\pi

Answer: 2π2\pi

(Counterclockwise it would be −2π-2\pi; the value changes sign with the orientation.)


Summary

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
∫LPdx+Qdy+Rdz\int_L Pdx+Qdy+RdzLine integral of the second kindline integral of second kindThe line integral with respect to coordinates
dr⃗d\vec{r}Directed arc length elementdirected arc element(dx,dy,dz)(dx, dy, dz), the directed arc length element
F⃗\vec{F}Vector fieldvector field(P,Q,R)(P, Q, R), a force field or vector function
L−L^-Reverse curvereverse curveThe same curve with the opposite orientation
cos⁡α,cos⁡β,cos⁡γ\cos\alpha, \cos\beta, \cos\gammaDirection cosinesdirection cosinesThe direction cosines of the tangent vector
τ⃗\vec{\tau}Unit tangent vectorunit tangent vectorThe unit tangent vector in the direction of the curve

Key Terms

English termPronunciationNote
line integral of the second kind/laɪn ˈɪntɪɡrəl əv ðə ˈsɛkənd kaɪnd/the line integral with respect to coordinates
integral with respect to coordinates/ˈɪntɪɡrəl wɪð rɪˈspɛkt tuː koʊˈɔːrdɪnəts/that is, the line integral of the second kind
directed curve/dɪˈrɛktɪd kɜːrv/a curve with a prescribed orientation
work done by variable force/wɜːrk dʌn baɪ ˈvɛriəbəl fɔːrs/the work done by a variable force along a curve
tangent vector/ˈtændʒənt ˈvɛktər/the vector in the direction of the tangent of a curve
direction cosines/dɪˈrɛkʃən ˈkoʊsaɪnz/the cosine of the angle between a vector and a coordinate axis
total differential/ˈtoʊtl ˌdɪfəˈrɛnʃəl/the total differential of some function
path independent/pæθ ˌɪndɪˈpɛndənt/the value of the integral depends only on the endpoints and not on the path

Found an issue with this content?

Tell us what could be improved.