2 Line integrals of scalar products

Integrals of the form C F ̲ d r ̲ , referred to at the end of the previous sub-section, occur in applications such as the following.

Figure 2:

{ Schematic for cyclist travelling from A to B into a head wind}

Consider a cyclist riding along the road from A to B (Figure 2). Suppose it is necessary to find the total work the cyclist has to do in overcoming a wind of velocity v ̲ .

On moving from S to T , the work done is given by ‘Force × distance’ = F × δ r cos θ where F , the force, is directly proportional to v , but in the opposite direction, and δ r cos θ is the component of the distance travelled in the direction of the wind.

So, the work done travelling δ r ̲ is k v ̲ δ r ̲ . Letting δ r ̲ become infinitesimally small, the work done becomes k v ̲ d r ̲ and the total work is k A B v ̲ d r ̲ .

This is an example of the integral along a line of the scalar product of a vector field and a vector describing the line. The term scalar line integral is often used for integrals of this form. The vector d r ̲ may be considered to be d x i ̲ + d y j ̲ + d x k ̲ .

Multiplying out the scalar product, in three dimensions, the ’scalar line integral’ of the vector F ̲ along contour C is given by C F ̲ d r ̲ and equals C { F x d x + F y d y + F z d z } in three dimensions ( C { F x d x + F y d y } in two dimensions.)

If the contour C has its start and end points in the same positions i.e. it represents a closed contour, the symbol C rather than C is used, i.e. C F ̲ d r ̲ .

As before, to evaluate the line integral, express the path and the function F ̲ in terms of either x , y and z , or in terms of a parameter t . Note that in examples t often represents time.

Example 5

Find C { 2 x y d x 5 x d y } where C is the curve y = x 3 with x varying from x = 0 to x = 1 .

[This is the integral C F ̲ d r ̲ where F ̲ = 2 x y i ̲ 5 x j ̲ and d r ̲ = d x i ̲ + d y j ̲ .]

Solution

It is possible to split this integral into two different integrals and express the first term as a function of x and the second term as a function of y . However, it is also possible to express everything in terms of x . Note that on C , y = x 3 so d y = 3 x 2 d x and the integral becomes

C { 2 x y d x 5 x d y } = x = 0 1 2 x x 3 d x 5 x 3 x 2 d x = 0 1 ( 2 x 4 15 x 3 ) d x = 2 5 x 5 15 4 x 4 0 1 = 2 5 15 4 0 = 67 20
Key Point 2

An integral of the form C F ̲ d r ̲ may be expressed as C { F x d x + F y d y + F z d z } . Knowing the expression for the path C , every term in the integral can be further expressed in terms of one of the variables x , y or z or in terms of a parameter t and hence integrated.



If an integral is two-dimensional there are no terms involving z .



The integral C F ̲ d r ̲ evaluates to a scalar.

Example 6

Three paths from ( 0 , 0 ) to ( 1 , 2 ) are defined by

  1. C 1 : y = 2 x
  2. C 2 : y = 2 x 2
  3. C 3 : y = 0 from ( 0 , 0 ) to ( 1 , 0 ) and x = 1 from ( 1 , 0 ) to ( 1 , 2 )

Sketch each path and find F ̲ d r ̲ , where F ̲ = y 2 i ̲ + x y j ̲ , along each path.

Solution
  1. F ̲ d r ̲ = y 2 d x + x y d y . Along y = 2 x , d y d x = 2 so d y = 2 d x . Then C 1 F ̲ d r ̲ = x = 0 1 2 x 2 d x + x 2 x 2 d x = 0 1 4 x 2 + 4 x 2 d x = 0 1 8 x 2 d x = 8 3 x 2 0 1 = 8 3

    Figure 3(a):

    { Integration along path C subscript 1}

  2. F ̲ d r ̲ = y 2 d x + x y d y . Along y = 2 x 2 , d y d x = 4 x so d y = 4 x d x . Then

    C 2 F ̲ d r ̲ = x = 0 1 2 x 2 2 d x + x 2 x 2 4 x d x = 0 1 12 x 4 d x = 12 5 x 5 0 1 = 12 5

    Figure 3(b):

    { Integration along path C subscript 2}

    Note that the answer is different to part (a), i.e., the line integral depends upon the path taken.

  3. As the contour C 3 , has two distinct parts with different equations, it is necessary to break the full contour O A into the two parts, namely O B and B A where B is the point ( 1 , 0 ) . Hence

    C 3 F ̲ d r ̲ = O B F ̲ d r ̲ + B A F ̲ d r ̲

    Along O B , y = 0 so d y = 0 . Then

    O B F ̲ d r ̲ = x = 0 1 0 2 d x + x × 0 × 0 = 0 1 0 d x = 0

    Along A B , x = 1 so d x = 0 . Then

    A B F ̲ d r ̲ = y = 0 2 y 2 × 0 + 1 × y × d y = 0 2 y d y = 1 2 y 2 0 2 = 2.

    Hence C 3 F ̲ d r ̲ = 0 + 2 = 2

    Figure 3(c):

    { Integration along path C subscript 3}

    Once again, the result is path dependent.

Key Point 3

In general, the value of the line integral depends on the path of integration as well as the end points.

Example 7

Find A O F ̲ d r ̲ , where F ̲ = y 2 i ̲ + x y j ̲ (as in Example 6) and the path from A to O is the straight line from ( 1 , 2 ) to ( 0 , 0 ) , that is the reverse of C 1 in Example 6(a).

Deduce C F ̲ d r ̲ , the integral around the closed path C formed by the parabola y = 2 x 2 from ( 0 , 0 ) to ( 1 , 2 ) and the line y = 2 x from ( 1 , 2 ) to ( 0 , 0 ) .

Solution

Reversing the path swaps the limits of integration, this results in a change of sign for the value of the integral.

A O F ̲ d r ̲ = O A F ̲ d r ̲ = 8 3

The integral along the parabola (calculated in (iii) above) evaluates to 12 5 , then

C F ̲ d r ̲ = C 2 F ̲ d r ̲ + C 4 F ̲ d r ̲ = 12 5 8 3 = 4 15 0.267

Example 8

Consider the vector field

F ̲ = y 2 z 3 i ̲ + 2 x y z 3 j ̲ + 3 x y 2 z 2 k ̲

Let C 1 and C 2 be the curves from O = ( 0 , 0 , 0 ) to A = ( 1 , 1 , 1 ) , given by

C 1 : x = t , y = t , z = t ( 0 t 1 ) C 2 : x = t 2 , y = t , z = t 2 ( 0 t 1 )
  1. Evaluate the scalar integral of the vector field along each path.
  2. Find the value of C F ̲ d r ̲ where C is the closed path along C 1 from O to A and back along C 2 from A to O .
Solution
  1. The path C 1 is given in terms of the parameter t by x = t , y = t and z = t . Hence

    d x d t = d y d t = d z d t = 1  and  d r ̲ d t = d x d t i ̲ + d y d t j ̲ + d z d t k ̲ = i ̲ + j ̲ + k ̲

    Now by substituting for x = y = z = t in F ̲ we have

    F ̲ = t 5 i ̲ + 2 t 5 j ̲ + 3 t 5 k ̲

    Hence F ̲ d r ̲ d t = t 5 + 2 t 5 + 3 t 5 = 6 t 5 . The values of t = 0 and t = 1 correspond to the start and end point of C 1 and so these are the required limits of integration. Now

    C 1 F ̲ d r ̲ = 0 1 F ̲ d r ̲ d t d t = 0 1 6 t 5 d t = t 6 0 1 = 1

    For the path C 2 the parameterisation is x = t 2 , y = t and z = t 2 so d r ̲ d t = 2 t i ̲ + j ̲ + 2 t k ̲ .

    Substituting x = t 2 , y = t and z = t 2 in F ̲ we have

    F ̲ = t 8 i ̲ + 2 t 9 j ̲ + 3 t 8 k ̲  and  F ̲ d r ̲ d t = 2 t 9 + 2 t 9 + 6 t 9 = 10 t 9

    C 2 F ̲ d r ̲ = 0 1 10 t 9 d t = t 10 0 1 = 1

  2. For the closed path C

    C F ̲ d r ̲ = C 1 F ̲ d r ̲ C 2 F ̲ d r ̲ = 1 1 = 0

    (Note that the line integral round a closed path is not necessarily zero - see Example 7.)

Further points on Example 8

̲ ̲ ̲ Vector Field Path Line Integral ̲ ̲ ̲ F ̲ C 1 1 F ̲ C 2 1 F ̲ closed 0 ̲ ̲ ̲
Note that the line integral of F ̲ is 1 for both paths C 1 and C 2 . In fact, this would hold for any path from ( 0 , 0 , 0 ) to ( 1 , 1 , 1 ) .



The field F ̲ is an example of a conservative vector field ; these are discussed in detail in the next subsection.



In C F ̲ d r ̲ , the vector field F ̲ may be the gradient of a scalar field or the curl of a vector field.
Task!

Consider the vector field

G ̲ = x i ̲ + ( 4 x y ) j ̲

Let C 1 and C 2 be the curves from O = ( 0 , 0 , 0 ) to A = ( 1 , 1 , 1 ) , given by

C 1 : x = t , y = t , z = t ( 0 t 1 ) C 2 : x = t 2 , y = t , z = t 2 ( 0 t 1 )
  1. Evaluate the scalar integral C G ̲ d r ̲ of each vector field along each path.
  2. Find the value of C G ̲ d r ̲ where C is the closed path along C 1 from O to A and back along C 2 from A to O .
  1. The path C 1 is given in terms of the parameter t by x = t , y = t and z = t . Hence

    d x d t = d y d t = d z d t = 1  and  d r ̲ d t = d x d t i ̲ + d y d t j ̲ + d z d t k ̲ = i ̲ + j ̲ + k ̲

    Substituting for x = y = z = t in G ̲ we have

    G ̲ = t i ̲ + 3 t j ̲  and  G ̲ d r ̲ d t = t + 3 t = 4 t

    The limits of integration are t = 0 and t = 1 , then

    C 1 G ̲ d r ̲ = 0 1 G ̲ d r ̲ d t d t = 0 1 4 t d t = 2 t 2 0 1 = 2

    For the path C 2 the parameterisation is x = t 2 , y = t and z = t 2 so d r ̲ d t = 2 t i ̲ + j ̲ + 2 t k ̲ .

    Substituting x = t 2 , y = t and z = t 2 in G ̲ we have

    G ̲ = t 2 i ̲ + 4 t 2 t j ̲  and  G ̲ d r ̲ d t = 2 t 3 + 4 t 2 t

    C 2 G ̲ d r ̲ = 0 1 2 t 3 + 4 t 2 t d t = 1 2 t 4 + 4 3 t 3 1 2 t 2 0 1 = 4 3

  2. For the closed path C C G ̲ d r ̲ = C 1 G ̲ d r ̲ C 2 G ̲ d r ̲ = 2 4 3 = 2 3

    (Note that the integral around the closed path is non-zero, unlike Example 8.)

Example 9

Find C ̲ ( x 2 y ) d r ̲ where C is the contour y = 2 x x 2 from ( 0 , 0 ) to ( 2 , 0 ) .

Solution

Note that ̲ ( x 2 y ) = 2 x y i ̲ + x 2 j ̲ so the integral is C 2 x y d x + x 2 d y .

On y = 2 x x 2 , d y = ( 2 2 x ) d x so the integral becomes

C 2 x y d x + x 2 d y = x = 0 2 2 x ( 2 x x 2 ) d x + x 2 ( 2 2 x ) d x = 0 2 ( 6 x 2 4 x 3 ) d x = 2 x 3 x 4 0 2 = 0
Task!

Evaluate C F ̲ d r ̲ , where F ̲ = ( x y ) i ̲ + ( x + y ) j ̲ along each of the following paths

  1. C 1 : from ( 1 , 1 ) to ( 2 , 4 ) along the straight line y = 3 x 2 :
  2. C 2 : from ( 1 , 1 ) to ( 2 , 4 ) along the parabola y = x 2 :
  3. C 3 : along the straight line x = 1 from ( 1 , 1 ) to ( 1 , 4 ) then along the straight line y = 4 from ( 1 , 4 ) to ( 2 , 4 ) .
  1. 1 2 ( 10 x 4 ) d x = 11 ,
  2. 1 2 ( x + x 2 + 2 x 3 ) d x = 35 3 , (this differs from 1. showing path dependence)
  3. 1 4 ( 1 + y ) d y + 1 2 ( x 4 ) d x = 8
Task!

For the function F ̲ and paths in the last Task, deduce F ̲ d r ̲ for the closed paths

  1. C 1 followed by the reverse of C 2 .
  2. C 2 followed by the reverse of C 3 .
  3. C 3 followed by the reverse of C 1 .
  1. 1 3 ,
  2. 10 3 ,
  3. 3 . (note that all these are non-zero.)
Exercises
  1. Consider C F ̲ d r ̲ , where F ̲ = 3 x 2 y 2 i ̲ + ( 2 x 3 y 1 ) j ̲ . Find the value of the line integral along each of the paths from ( 0 , 0 ) to ( 1 , 4 ) .
    1. y = 4 x
    2. y = 4 x 2
    3. y = 4 x 1 2
    4. y = 4 x 3
  2. Consider the vector field F ̲ = 2 x i ̲ + ( x z 2 ) j ̲ + x y k ̲ and the two curves between ( 0 , 0 , 0 ) and ( 1 , 1 , 2 ) defined by

    C 1 : x = t 2 , y = t , z = 2 t for 0 t 1 .

    C 2 : x = t 1 , y = 1 t , z = 2 t 2 for 1 t 2 .

    1. Find C 1 F ̲ d r ̲ , C 2 F ̲ d r ̲
    2. Find C F ̲ d r ̲ where C is the closed path from ( 0 , 0 , 0 ) to ( 1 , 1 , 2 ) along C 1 and back to ( 0 , 0 , 0 ) along C 2 .
  3. Consider the vector field G ̲ = x 2 z i ̲ + y 2 z j ̲ + 1 3 ( x 3 + y 3 ) k ̲ and the two curves between ( 0 , 0 , 0 ) and ( 1 , 1 , 2 ) defined by

    C 1 : x = t 2 , y = t , z = 2 t for 0 t 1 .

    C 2 : x = t 1 , y = 1 t , z = 2 t 2 for 1 t 2 .

    1. Find C 1 G ̲ d r ̲ , C 2 G ̲ d r ̲
    2. Find C G ̲ d r ̲ where C is the closed path from ( 0 , 0 , 0 ) to ( 1 , 1 , 2 ) along C 1 and back to ( 0 , 0 , 0 ) along C 2 .
  4. Find C F ̲ d r ̲ along y = 2 x from ( 0 , 0 ) to ( 2 , 4 ) for
    1. F ̲ = ̲ ( x 2 y )
    2. F ̲ = ̲ × ( 1 2 x 2 y 2 k ̲ )
  1. All are 12 , and in fact the integral would be 12 for any path from (0,0) to (1,4).
    1. 2 , 5 3 ,
    2. 0 .
    1. 0 , 1 3 ,
    2. 0 .
  2. 16 , 16 .