Professional Documents
Culture Documents
WB29 All
WB29 All
HELM
Contacts:
Post:
HELM,
Mathematics
Education
Centre,
Loughborough
University,
Loughborough,
LE11
3TU.
Email:
helm@lboro.ac.uk
Web:
http://helm.lboro.ac.uk
Contents 29
Integral Vector
Calculus
29.1 Line Integrals 2
Learning outcomes
In this Workbook you will learn how to integrate functions involving vectors. You will learn
how to evaluate line integrals i.e. where a scalar or a vector is summed along a line or
contour. You will be able to evaluate surface and volume integrals where a function
involving vectors is summed over a surface or volume. You will learn about some theorems
relating to line, surface or volume integrals viz Stokes' theorem, Gauss' divergence
theorem and Green's theorem.
Introduction
workbook 28 considered the differentiation of scalar and vector fields. Here we consider
how to integrate such fields along a line. Firstly, integrals involving scalars along a line will be
considered. Subsequently, line integrals involving vectors will be considered. These can give scalar
or vector answers depending on the form of integral involved. Of particular interest are the integrals
of conservative vector fields.
#
• have a thorough understanding of the basic
techniques of integration
Prerequisites
Before starting this Section you should . . . • be familiar with the operators div, grad and
curl
"
!
2 HELM (2015):
Workbook 29: Integral Vector Calculus
®
1. Line integrals
28 was concerned with evaluating an integral over all points within a rectangle or other shape
(or over a cuboid or other volume). In a related manner, an integral can take place over a line or
curve running through a two-dimensional (or three-dimensional) region. Line integrals may involve
scalar or vector fields. Those involving scalar fields are dealt with first.
z
y
f (x, y)dy f (x, y)ds
C C
curve C
f (x, y)dx
C
Figure 1: Representation of a line integral and its projections onto the xz and yz planes
HELM (2015): 3
Section 29.1: Line Integrals
The technique for evaluating a line integral is to express all quantities in the integral in terms of a
single variable. If the integral is with respect to ’x’ or ’y’, then the curve ’C’ and
the function ’F ’ may be expressed in terms of the relevant variable. If the integral is with
respect to ds, normally all quantities are expressed in terms of x. If x and y are given in terms of a
parameter t, then t is used as the variable.
Example
Z 1
Find x (1 + 4y) dx where C is the curve y = x2 , starting from x = 0, y = 0
c
and ending at x = 1, y = 1.
Solution
As this integral concerns only points along C and the integration is carried out with respect to x,
y may be replaced by x2 . The limits on x will be 0 to 1. So the integral becomes
Z Z 1 Z 1
2
x(1 + 4y) dx = x 1 + 4x dx = x + 4x3 dx
C x=0 x=0
2 1
x 1 3
= + x4 = + 1 − (0) =
2 0 2 2
Example
Z 2
Find x (1 + 4y) dy where C is the curve y = x2 , starting from
c
x = 0, y = 0 and ending at x = 1, y = 1. This is the same as Example 1 other
than dx being replaced by dy.
Solution
As this integral concerns only points along C and the integration is carried out with respect to y,
everything may be expressed in terms of y, i.e. x may be replaced by y 1/2 . The limits on y will
be 0 to 1. So the integral becomes
Z Z 1 Z 1
1/2
x(1 + 4y) dy = y (1 + 4y) dy = y 1/2 + 4y 3/2 dy
C y=0 y=0
1
2 3/2 8 5/2 2 8 34
= y + y = + − (0) =
3 5 0 3 5 15
4 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Example
Z 3
Find x (1 + 4y) ds where C is the curve y = x2 , starting from x = 0, y = 0
c
and ending at x = 1, y = 1. This is the same integral and curve as the previous
two examples but the integration is now carried out with respect to s, the arc
length parameter.
Solution
is with respect to x, all parts of the integral can be expressed in terms of x, Along
As this integral s
2 q
dy √
2
y = x , ds = 1 + dx = 1 + (2x)2 dx = 1 + 4x2 dx
dx
So,
Z the integral is Z 1 Z 1
2
√ 3/2
x (1 + 4y) ds = x 1 + 4x 2
1 + 4x dx = x 1 + 4x2 dx
c x=0 x=0
du
This can be evaluated using the transformation u = 1 + 4x2 so du = 8xdx i.e. x dx = .
8
When x = 0, u = 1 and when x = 1, u = 5.
Hence,
Z 1 Z
2 3/2 1 5 3/2
x 1 + 4x dx = u du
x=0 8 u=1
5
1 2 5/2 1 5/2
= × u = 5 − 1 ≈ 2.745
8 5 1 20
Note that the results for Examples 1,2 and 3 are all different: Example 3 is the area between a curve
and a surface above; Examples 1 and 2 give projections of this area onto other planes.
Example
Z 4
Find xy dx where, on C, x and y are given in terms of a parameter t by
C
Solution
Everything can be expressed in terms of t, the parameter. Here x = 3t2 so dx = 6t dt. The limits
on t are t = 0 and t = 1. The integral becomes
Z Z 1 Z 1
2 3
xy dx = 3t (t − 1) 6t dt = (18t6 − 18t3 ) dt
C t=0 t=0
1
18 7 18 4 18 9 27
= t − t = − −0=−
7 4 0 7 2 14
HELM (2015): 5
Section 29.1: Line Integrals
Key Point 1
A line integral is normally evaluated by expressing all variables in terms of one variable.
In general Z Z Z
f (x, y) ds 6= f (x, y) dy 6= f (x, y) dx
C C C
Task Z Z
2
For F (x, y) = 2x + y , find (i) F (x, y) dx, (ii) F (x, y) dy,
Z C C
Express each integral as a simple integral with respect to a single variable and hence evaluate each
integral:
Your solution
Answer
Z 1 Z Z
7 2
14 1 √ 7√
(i) (2x + 4x2 ) dx = , (ii) 2
(y + y ) dy = , (iii) (2x + 4x2 ) 5 dx = 5
x=0 3 y=0 3 x=0 3
6 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Task Z Z Z
Find (i) F (x, y) dx, (ii) F (x, y) dy, (iii) F (x, y) ds where F (x, y) = 1
C C C
and C is the curve y = 21 x2 − 14 ln x from (1, 12 ) to (2, 2 − 41 ln 2).
Your solution
Answer
Z 2 Z 2−(1/4) ln 2
3 1 1 1 dy 1
(i) 1 dx = 1, (ii) 1 dy = − ln 2, (iii) y = x2 − ln x ⇒ =x−
1 1/2 2 4 2 4 dx 4x
Z Z 2r Z 2r Z 2
1 1 1 1 3 1
∴ 1 ds = 1 + (x − )2 dx = x2 + + 2
dx = (x + ) dx = + ln 2.
1 4x 1 2 16x 1 4x 2 4
Task Z Z Z
Find (i) F (x, y) dx, (ii) F (x, y) dy, (iii) F (x, y) ds
C C C
π
where F (x, y) = sin 2x and C is the curve y = sin x from (0, 0) to ( , 1).
2
Your solution
Answer
Z π/2 Z π/2
2
(i) sin 2x dx = 1, (ii) 2 sin x cos2 x dx =
0 0 3
Z π/2 √ 2 √
(iii) sin 2x 1 + cos2 x dx = (2 2 − 1), using the substitution u = 1 + cos2 x.
0 3
HELM (2015): 7
Section 29.1: Line Integrals
2. Line integrals of scalar products
Z
Integrals of the form F · dr occur in applications such as the following.
C
T
δr
dr
A S (current position)
I C has its startZ and end pointsIin the same positions i.e. it represents a closed contour,
If the contour
the symbol rather than is used, i.e. F · dr .
C C C
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 t often represents time.
Example
Z 5
Find {2xy dx − 5x dy} where C is the curve y = x3 0 ≤ x ≤ 1.
C
Z
[This is the integral F · dr where F = 2xyi − 5xj and dr = dx i + dy j.]
C
8 HELM (2015):
Workbook 29: Integral Vector Calculus
®
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 = x3 so dy = 3x2 dx and the integral becomes
Z Z 1 Z 1
3 2
{2xy dx − 5x dy} = 2x x dx − 5x 3x dx = (2x4 − 15x3 ) dx
C x=0 0
1
2 5 15 4 2 15 67
= x − x = − −0=−
5 4 0 5 4 20
Key Point 2
Z Z
An integral of the form F · dr may be expressed as {Fx dx + Fy dy + Fz dz}. Knowing the
C C
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.
Example 6
Three paths from (0, 0) to (1, 2) are defined by
(a) C1 : y = 2x
(b) C2 : y = 2x2
(c) C3 : y = 0 from (0, 0) to (1, 0) and x = 1 from (1, 0) to (1, 2)
Z
Sketch each path, and along each path find F · dr, where F = y 2 i + xyj.
HELM (2015): 9
Section 29.1: Line Integrals
Solution
Z Z
2 dy
(a) F · dr = y dx + xydy . Along y = 2x, = 2 so dy = 2dx. Then
dx
Z Z 1
F · dr = (2x)2 dx + x (2x) (2dx)
C1 x=0
Z Z 1
1
2 2
1
8 8
= 4x + 4x dx = 2
8x dx = x2 =
0 0 3 0 3
y
2 A(1, 2)
y = 2x
C1
x
1
2 A(1, 2)
y = 2x2
C2
1 x
Note that the answer is different to part (a), i.e., the line integral depends upon the path taken.
(c) As the contour C3 , has two distinct parts with different equations, it is necessary to break the
full contour OA into the two parts, namely OB and BA where B is the point (1, 0). Hence
Z Z B Z A
F · dr = F · dr + F · dr
C3 O B
10 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Solution (contd.)
Along OB, y = 0 so dy = 0. Then
Z B Z 1 Z
2
1
F · dr = 0 dx + x × 0 × 0 = 0dx = 0
O x=0 0
B
O y=0 1 x
Key Point 3
In general, the value of a line integral depends on the path of integration as well as upon the end
points.
HELM (2015): 11
Section 29.1: Line Integrals
Example 7
Z O
Find F · dr, where F = y 2 i + xyj (as in Example 6) and the path C4 from A
A
to O is the straight line from (1, 2) to (0, 0), that is the reverse of C1 in Example
6(a). I
Deduce F · dr, the integral around the closed path C formed by the parabola
C
y = 2x2 from (0, 0) to (1, 2) and the line y = 2x from (1, 2) to (0, 0).
Solution
Reversing the path interchanges the limits of integration, which results in a change of sign for the
value of the integral.
Z O Z A
8
F · dr = − F · dr = −
A O 3
12
The integral along the parabola (calculated in Example 6(b)) evaluates to , then
5
I Z Z
12 8 4
F · dr = F · dr + F · dr = − = − ≈ −0.267
C C2 C4 5 3 15
Example 8
Consider the vector field
F = y 2 z 3 i + 2xyz 3 j + 3xy 2 z 2 k
Let C1 and C2 be the curves from O = (0, 0, 0) to A = (1, 1, 1), given by
C1 : x = t, y = t, z=t (0 ≤ t ≤ 1)
C2 : x = t2 , y = t, z = t2 (0 ≤ t ≤ 1)
(a) Evaluate the scalar integral of the vector field along each path.
I
(b) Find the value of F · dr where C is the closed path along C1 from
C
O to A and back along C2 from A to O.
12 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Solution
F = t5 i + 2t5 j + 3t5 k
dr
Hence F · = t5 + 2t5 + 3t5 = 6t5 . The values of t = 0 and t = 1 correspond to the
dt
start and end point of C1 and so these are the required limits of integration. Now
Z Z 1 Z 1 1
dr
F · dr = F · dt = 6t dt = t6 = 1
5
C1 0 dt 0 0
dr
For the path C2 the parameterisation is x = t2 , y = t and z = t2 so = 2ti + j + 2tk.
dt
Substituting x = t2 , y = t and z = t2 in F we have
dr
F = t8 i + 2t9 j + 3t8 k and F · = 2t9 + 2t9 + 6t9 = 10t9
dt
Z Z 1 1
9 10
F · dr = 10t dt = t =1
C2 0 0
(Note: A line integral round a closed path is not necessarily zero - see Example 7.)
Note that the value of the line integral of F is 1 for both paths C1 and C2 . In fact, this result 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.
Z
In F · dr, the vector field F may be the gradient of a scalar field or the curl of a vector field.
C
HELM (2015): 13
Section 29.1: Line Integrals
Task
Consider the vector field
G = xi + (4x − y)j
Let C1 and C2 be the curves from O = (0, 0, 0) to A = (1, 1, 1), given by
C1 : x = t, y = t, z=t (0 ≤ t ≤ 1)
C2 : x = t2 , y = t, z = t2 (0 ≤ t ≤ 1)
Z
(a) Evaluate the scalar integral G · dr of each vector field along each
C
path.
I
(b) Find the value of G · dr where C is the closed path along C1 from
C
O to A and back along C2 from A to O.
Your solution
14 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Answer
(a) The path C1 is given in terms of the parameter t by x = t, y = t and z = t. Hence
dx dy dz dr dx dy dz
= = = 1 and = i+ j+ k =i+j+k
dt dt dt dt dt dt dt
Substituting for x = y = z = t in G we have
dr
G = ti + 3tj and G · = t + 3t = 4t
dt
The limits of integration are t = 0 and t = 1, then
Z Z 1 Z 1 1
dr
G · dr = G · dt = 4tdt = 2t2 = 2
C1 0 dt 0 0
dr
For the path C2 the parameterisation is x = t2 , y = t and z = t2 so = 2ti + j + 2tk.
dt
Substituting x = t2 , y = t and z = t2 in G we have
dr
G = t2 i + 4t2 − t j and G · = 2t3 + 4t2 − t
dt
Z Z 1 1
3 2
1 4 4 3 1 2 4
G · dr = 2t + 4t − t dt = t + t − t =
C2 0 2 3 2 0 3
I Z Z
4 2
(b) For the closed path C G · dr = G · dr − G · dr = 2 − =
C C1 C2 3 3
(Note: The value of the integral around the closed path is non-zero, unlike Example 8.)
Example
Z 9
Find ∇(x2 y) · dr where C is the contour y = 2x − x2 from (0, 0) to (2, 0).
C
Here, ∇ refers to the gradient operator, i.e. ∇φ ≡ grad φ
Solution
Z
2 2
Note that ∇(x y) = 2xyi + x j so the integral is 2xy dx + x2 dy .
C
On y = 2x − x2 , dy = (2 − 2x) dx so the integral becomes
Z Z 2
2
2xy dx + x dy = 2x(2x − x2 ) dx + x2 (2 − 2x) dx
C x=0
Z 2 2
2 3 3 4
= (6x − 4x ) dx = 2x − x =0
0 0
HELM (2015): 15
Section 29.1: Line Integrals
Example 10
Two paths from (0, 0) to (4, 2) are defined by
1
(a) C1 : y = x 0≤x≤4
2
Solution
1 1
(a) For the straight line y = x we have dy = dx
Z Z 2 2Z
4 Z 4
x 5x
Then, F · dr = 2x dx + 2y dy = 2x + dx = dx = 20
C1 C1 0 2 0 2
Z Z 4
(b) For the straight line from (0, 0) to (4, 0) we have F · dr = 2x dx = 16
C2 0
Z Z 2
For the straight line from (4, 0) to (4, 2) we have F · dr = 2y dy = 4
C3 0
Z
Adding these two results gives F · dr = 16 + 4 = 20
C
Task Z
Evaluate F · dr, where F = (x − y)i + (x + y)j along each of the following
C
paths
Your solution
16 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Answer
Z 2
(a) (10x − 4) dx = 11,
1
Z 2
34
(b) (x + x2 + 2x3 ) dx = , (this differs from (a) showing path dependence)
1 3
Z 4 Z 2
(c) (1 + y) dy + (x − 4) dx = 8
1 1
Task I
For the function F and paths in the last Task, deduce F · dr for the closed
paths
Your solution
Answer
1 10
(a) − , (b) , (c) −3. (note that all these are non-zero.)
3 3
HELM (2015): 17
Section 29.1: Line Integrals
Exercises
Z
1. Consider F · dr, where F = 3x2 y 2 i + (2x3 y − 1)j. Find the value of the line integral along
C
each of the paths from (0, 0) to (1, 4).
2. Consider the vector field F = 2xi + (xz − 2)j + xyk and the two curves between (0, 0, 0) and
(1, −1, 2) defined by
C1 : x = t2 , y = −t, z = 2t for 0 ≤ t ≤ 1.
C2 : x = t − 1, y = 1 − t, z = 2t − 2 for 1 ≤ t ≤ 2.
Z Z
(a) Find F · dr, F · dr
C1 C2
I
(b) Find F · dr where C is the closed path from (0, 0, 0) to (1, −1, 2) along C1 and back
C
to (0, 0, 0) along C2 .
3. Consider the vector field G = x2 zi + y 2 zj + 13 (x3 + y 3 )k and the two curves between (0, 0, 0)
and (1, −1, 2) defined by
C1 : x = t2 , y = −t, z = 2t for 0 ≤ t ≤ 1.
C2 : x = t − 1, y = 1 − t, z = 2t − 2 for 1 ≤ t ≤ 2.
Z Z
(a) Find G · dr, G · dr
C1 C2
I
(b) Find G · dr where C is the closed path from (0, 0, 0) to (1, −1, 2) along C1 and back
C
to (0, 0, 0) along C2 .
Z
4. Find F · dr along y = 2x from (0, 0) to (2, 4) for
C
(a) F = ∇(x2 y)
(b) F = ∇ × ( 21 x2 y 2 k) [Here ∇ × f represents the curl of f ]
Answers
1. All are 12, and in fact the integral would be 12 for any path from (0,0) to (1,4).
5 1
2 (a) 2, 3
(b) 3
.
3 (a) 0, 0 (b) 0.
Z Z
2
4. (a) 2xy dx + x dy = 16, (b) x2 y dx − xy 2 dy = −24.
C C
18 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Example 11
Consider the following vector fields.
1. F 1 = y 2 i + xyj (Example 6) 2. F 2 = 2xi + 2yj (Example 10)
3. F 3 = y 2 z 3 i + 2xyz 3 j + 3xy 2 z 2 k (Example 8)
4. F 4 = xi + (4x − y) j (Task on page 14)
Determine which of these vector fields are conservative where possible by referring
to the answers given in the solution. For those that are conservative find a scalar
field φ such that F = ∇φ and use property P4 to verify the values of the line
integrals.
Solution
1. Two different values were obtained for line integrals over the paths C1 and C2 . Hence, by P1,
F 1 is not conservative. [It is also possible to reach this conclusion from P3 by finding that
∇ × F = −yk 6= 0.]
HELM (2015): 19
Section 29.1: Line Integrals
Solution (contd.)
2. For the closed path consisting of C2 and C3 from (0, 0) to (4, 2) and back to (0, 0) along C1
we obtain the value 20 + (−20) = 0. This alone does not mean that F 2 is conservative as there
could be other paths giving different values. So by using P3
i j k
∂ ∂ ∂
∇ × F 2 = = i(0 − 0) − j(0 − 0) + k(0 − 0) = 0
∂x ∂y ∂z
2x 2y 0
As ∇ × F 2 = 0, P3 gives that F 2 is a conservative vector field.
∂φ ∂φ
Now, find a φ such that F 2 = ∇φ. Then i+ j = 2xi + 2yj.
∂x ∂y
Thus
∂φ
= 2x ⇒ φ = x + f (y)
2
∂x
⇒ φ = x2 + y 2 (+ constant)
∂φ
= 2y ⇒ φ = y 2 + g(x)
∂y
Z (4,2) Z (4,2)
Using P4: F 2 · dr = (∇φ) · dr = φ(4, 2) − φ(0, 0) = (42 + 22 ) − (02 + 02 ) = 20.
(0,0) (0,0)
3. The fact that line integrals along two different paths between the same start and end points
have the same value is consistent with F 3 being a conservative field according to P1. So too is the
fact that the integral around a closed path is zero according to P2. However, neither fact can be
used to conclude that F 3 is a conservative field. This can be done by showing that ∇ × F 3 = 0.
i j k
∂ ∂ ∂
Now, = (6xyz 2 − 6xyz 2 )i − (3y 2 z 2 − 3y 2 z 2 )j + (2yz 3 − 2yz 3 )k = 0.
∂x ∂y ∂z
2 3
y z 2xyz 3xy z
3 2 2
20 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Solution (contd.)
4. As the integral along C1 is 2 and the integral along C2 (same start and end points but different
intermediate points) is 43 , F4 is not a conservative field using P1.
Note that ∇ × F 4 = 4k 6= 0 so, using P3, this is an independent conclusion that F 4 is not
conservative.
Engineering Example 1
Problem in words
Compare the work done in moving a charge through the electric field around a point charge in a
vacuum via two different paths.
Mathematical statement of problem
An electric field E is given by
Q
E = r̂
4πε0 r2
Q xi + yj + zk
= ×p
4πε0 (x2 2
+y +z ) 2
x2 + y 2 + z 2
Q(xi + yj + zk)
= 3
4πε0 (x2 + y 2 + z 2 ) 2
1
where r is the position vector with magnitude r and unit vector r̂, and is a combination of
4π0
constants of proportionality, where 0 = 10−9 /36π F m−1 .
Given that Q = 10−8 C, find the work done in bringing a charge of q = 10−10 C from the point
A = (10, 10, 0) to the point B = (1, 1, 0) (where the dimensions are in metres)
HELM (2015): 21
Section 29.1: Line Integrals
y
A
a
b
b
B C
O x
Figure 4: Two routes (a and b) along which a charge can move through an electric field
The path comprises two straight lines from A = (10, 10, 0) to B = (1, 1, 0) via C = (10, 1, 0) (see
Figure 4).
Mathematical analysis
Using y = x, dy = dx
Z 1
−10 90
WAB = −10 3 {x dx + x dx}
(2x2 ) 2
x=10
Z 1
90
= −10−10 √ x−3 2x dx
10 (2 2)
Z
90 × −10−10 1 −2
= √ x dx
2 10
1
9 × −10−9 −1
= √ −x
2 10
1
9 × 10−9
= √ x−1
2 10
−9
9 × 10
= √ [1 − 0.1]
2
= 5.73 × 10−9 J
22 HELM (2015):
Workbook 29: Integral Vector Calculus
®
(b) The first part of the path is A to C where x = 10, dx = 0 and y goes from 10 to 1.
Z C
WAC = −q E · dr
A
Z 1
90
= −10−10 3 [xi + yj] · [0i + dyj]
y=10 (100 + y 2 ) 2
Z 1
90y dy
= −10−10 3
10 (100 + y2) 2
Z 101
45 du
= −10−10 3 (substituting u = 100 + y 2 , du = 2y dy)
u=200 u2
Z 101
3
−10
= −45 × 10 u− 2 du
200
h i
1 101
= −45 × 10−10 −2u− 2
200
−10 2 2
= 45 × 10 √ −√ = 2.59 × 10−10 J
101 200
The sum of the two components WAC and WCB is 5.73 × 10−9 J.
Therefore the work done over the two paths (a) and (b) is identical.
Interpretation
In fact, the work done is independent of the route taken as the electric field E around a point charge
in a vacuum is a conservative field.
HELM (2015): 23
Section 29.1: Line Integrals
Example 12
Z (2,1)
1. Show that I = (2xy + 1)dx + (x2 − 2y)dy is independent of the
(0,0)
path taken.
Solution
Z Z
(2,1) 2
1. The integral I = (2xy + 1)dx + (x − 2y)dy may be re-written F · dr where
(0,0) C
2
F = (2xy + 1)i + (x − 2y)j.
i j k
∂ ∂ ∂
Now ∇ × F = = 0i + 0j + 0k = 0
∂x ∂y ∂z
2xy + 1 x2 − 2y 0
2. As I is independent of the path taken from (0, 0) to (2, 1), it can be evaluated along any
such path. One possibility is the straight line y = 12 x. On this line, dy = 12 dx. The integral
I becomes
Z (2,1)
I = (2xy + 1)dx + (x2 − 2y)dy
(0,0)
Z 2
1 2 1
= (2x × x + 1)dx + (x − x) dx
x=0 2 2
Z 2
3 1
= ( x2 − x + 1)dx
0 2 2
2
1 3 1 2
= x − x +x =4−1+2−0=5
2 4 0
24 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Solution (contd.)
3. If F = ∇φ then
∂φ
= 2xy + 1 → φ = x2 y + x + f (y)
∂x
→ φ = x2 y + x − y 2 + C.
∂φ
= x2 − 2y → φ = x2 y − y 2 + g(x)
∂y
These are consistent if φ = x2 y + x − y 2 (plus a constant which may be omitted since it
cancels).
So I = φ(2, 1) − φ(0, 0) = (4 + 2 − 1) − 0 = 5
Exercises
1. Determine whether the following vector fields are conservative
(a) F = (4x3 y − 2x)i + (x4 − 2y)j; any path from (0, 0) to (2, 1).
(b) F = (ex + y 3 )i + (3xy 2 )j; closed path starting from any point on the circle x2 + y 2 = 1.
(c) F = (y 2 + sin z)i + 2xyj + x cos zk; any path from (1, 1, 0) to (2, 0, π).
1
(d) F = i + 4y 3 z 2 j + 2y 4 zk; any path from (1, 1, 1) to (1, 2, 3).
x
Answers
1. (a) No, (b) Yes, (c) No, (d) Yes
2. x3 y 2 − y + C, 12
3. (a) x4 y − x2 − y 2 , 11; (b) ex + xy 3 , 0; (c) xy 2 + x sin z, −1; (d) ln x + y 4 z 2 ,143
HELM (2015): 25
Section 29.1: Line Integrals
4. Vector line integrals
It is also possible to form less commonly used integrals of the types:
Z Z
f (x, y, z) dr and F (x, y, z) × dr.
C C
Each of these integrals evaluates to a vector. Z
Remembering that dr = dx i + dy j + dz k, an integral of the form f (x, y, z) dr becomes
Z Z Z C
f (x, y, z)dx i + f (x, y, z) dy j + f (x, y, z)dz k. The first term can be evaluated by
C C C
expressing y and z in terms of x. Similarly the second and third terms can be evaluated by expressing
all terms as functions of y and z respectively. Alternatively, all variables can be expressed in terms
of a parameter t. If an integral is two-dimensional, the term in z will be absent.
Example 13 Z
Evaluate the integral xy 2 dr where C represents the contour y = x2 from (0, 0)
C
to (1, 1).
Solution
This is a two-dimensional integral so the term in z will be absent.
Z
I = xy 2 dr
ZC
= xy 2 (dxi + dyj)
ZC Z
2
= xy dx i + xy 2 dy j
C C
Z 1 Z 1
2 2
= x(x ) dx i + y 1/2 y 2 dy j
x=0 y=0
Z 1 Z 1
= x5 dx i + y 5/2 dy j
0 0
1 1
1 6 2 7/2
= x i+ x j
6 0 7 0
1 2
= i+ j
6 7
26 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Example
Z 14
Find I = xdr for the contour C given parametrically by x = cos t, y = sin t,
C
z = t − π starting at t = 0 and going to t = 2π, i.e. the contour starts at
(1, 0, −π) and finishes at (1, 0, π).
Solution
Z
The integral becomes x(dx i + dy j + dz k).
C
Now, x = cos t, y = sin t, z = t − π so dx = − sin t dt, dy = cos t dt and dz = dt. So
Z 2π
I = cos t(− sin t dt i + cos t dt j + dt k)
0
Z 2π Z 2π Z 2π
2
= − cos t sin t dt i + cos t dt j + cos t dt k
0 0 0
Z Z h i2π
1 2π 1 2π
= − sin 2t dt i + (1 + cos 2t) dt j + sin t k
2 0 2 0 0
2π
1h i2π 1 1
= cos 2t i + t + sin 2t j + 0k
4 0 2 2 0
= 0i + π j = πj
Z
Integrals of the form F × dr can be evaluated as follows. If the vector field F = F1 i + F2 j + F3 k
C
and dr = dx i + dy j + dz k then:
i j k
F × dr = F1 F2 F3 = (F2 dz − F3 dy)i + (F3 dx − F1 dz)j + (F1 dy − F2 dx)k
dx dy dz
= (F3 j − F2 k)dx + (F1 k − F3 i)dy + (F2 i − F1 j)dz
There are thus a maximum of six terms involved in one such integral; the exact details may dictate
which method to use.
HELM (2015): 27
Section 29.1: Line Integrals
Example 15 Z
Evaluate the integral (x2 i + 3xyj) × dr where C represents the curve y = 2x2
C
from (0, 0) to (1, 2).
Solution
Note that the z components of both F and dr are zero.
i j k
2
F × dr = x 3xy 0 = (x2 dy − 3xydx)k and
dx dy 0
Z Z
(x i + 3xyj) × dr = (x2 dy − 3xydx)k
2
C C
28 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Engineering Example 2
Introduction
A current I in a magnetic field B is subject to a force F given by
F = I dr × B
where the current can be regarded as having magnitude I and flowing (positive charge) in the
direction given by the vector dr. The force is known as the Lorentz force and is responsible for the
workings of an electric motor. If current flows around a loop, the total force on the loop is given by
the integral of F around the loop, i.e.
I I
F = (I dr × B) = −I (B × dr)
where the closed path of the integral represents one circuit of the loop.
dr = − sin θ dθ i + cos θ dθ j
B = Bk
HELM (2015): 29
Section 29.1: Line Integrals
since B is constant. Therefore, the force on the circuit is given by
I I
F = −IB k × dr = − k × dr (since I = 1 A and B = 1 T)
where
i j k
k × dr = 0 0 1
− sin θ dθ cos θ dθ 0
= − cos θ i − sin θ j dθ
So
Z 2π
F = − − cos θ i − sin θ j dθ
θ=0
h i2π
= sin θ i − cos θ j
θ=0
= (0 − 0) i − (1 − 1) j = 0
30 HELM (2015):
Workbook 29: Integral Vector Calculus
®
A scalar or vector involved in a vector line integral may itself be a vector derivative as this next
Example illustrates.
Example 16 Z
Find the vector line integral (∇ · F ) dr where F is the vector x2 i + 2xyj + 2xzk
C
and C is the curve y = x2 , z = x3 from x = 0 to x = 1 i.e. from (0, 0, 0) to
(1, 1, 1). Here ∇ · F is the (scalar) divergence of the vector F .
Solution
As F = x2 i + 2xyj + 2xzk, ∇ · F = 2x + 2x + 2x = 6x.
The integral
Z Z
(∇ · F ) dr = 6x(dx i + dy j + dz k)
C ZC Z Z
= 6x dx i + 6x dy j + 6x dz k
C C C
Task Z
Find the vector line integral f dr where f = x2 and C is
C
HELM (2015): 31
Section 29.1: Line Integrals
Your solution
Answer
Z 9 Z 9
1 243 1
(a) (x2 i + x3/2 j)dx = 243i + j, (b) (x2 i + x2 j)dx = 243i + 81j.
0 2 5 0 3
Task Z
Evaluate the vector line integral F × dr when C represents the contour
C
y = 4 − 4x, z = 2 − 2x from (0, 4, 2) to (1, 0, 0) and F is the vector field (x − z)j.
Your solution
Answer
Z 1
1
{(4 − 6x)i + (2 − 3x)k} = i + k
0 2
32 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Exercises
Z
1. Evaluate the vector line integral (∇ · F ) dr in the case where F = xi + xyj + xy 2 k and
C
C is the contour described by x = 2t, y = t2 , z = 1 − t for t starting at t = 0 and going to
t = 1.
2. When C is the contour y = x3 , z = 0, from (0, 0, 0) to (1, 1, 0), evaluate the vector line
integrals
Z
(a) {∇(xy)} × dr
C
Z
(b) ∇ × (x2 i + y 2 k) × dr
C
Answers
Z
7
1. (1 + x)(dx i + dy j + dz k) = 4i + j − 2k,
C 3
Z Z
2. (a) k y dy − x dx = 0k = 0, (b) k 2y dy = 1k = k
C C
HELM (2015): 33
Section 29.1: Line Integrals
Surface and
Introduction
A vector or scalar field - including one formed from a vector derivative (div, grad or curl) - can be
integrated over a surface or volume. This Section shows how to carry out such operations.
34 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Example 17
If S is the surface of the sphere x2 + y 2 + z 2 = a2 find the unit normal n̂.
Solution
The unit normal at the point P (x, y, z) points away from the centre of the sphere i.e. it lies in
the direction of xi + yj + zk. To make this a unit vector it must be divided by its magnitude
p
x2 + y 2 + z 2 i.e. the unit vector is
x y z
n̂ = p i+ p j+p k
x2 + y 2 + z 2 x2 + y 2 + z 2 x2 + y 2 + z 2
x y z
= i+ j+ k
a a a
p
where a = x2 + y 2 + z 2 is the radius of the sphere.
n k
j
P (x, y, z) y
i
a
x
HELM (2015): 35
Section 29.2: Surface and Volume Integrals
Example 18
For the cube 0 ≤ x ≤ 1, 0 ≤ y ≤ 1, 0 ≤ z ≤ 1, find the unit outward normal n̂
for each face.
Solution
On the face given by x = 0, the unit normal points in the negative x-direction. Hence the unit
normal is −i. Similarly :-
On the face x = 1 the unit normal is i. On the face y = 0 the unit normal is −j.
On the face y = 1 the unit normal is j. On the face z = 0 the unit normal is −k.
On the face z = 1 the unit normal is k.
du dv
Example 19
The rectangle OABC lies in the plane z = y (Figure 8).
The vertices are O = (0, 0, 0), A = (1, 0, 0), B = (1, 1, 1) and C = (0, 1, 1).
Find a unit vector n̂ normal to the plane and an appropriate vector dS expressed
in terms of dx and dy.
y
C B
E D
O x
A
36 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Solution
−→ −→
Note that two vectors in the rectangle are OA = i and OC = j + k. A vector perpendicular to the
√
plane is i × (j + k) = −j + k. However, this vector is of magnitude 2 so the unit normal vector
1 1 1
is n̂ = √ (−j + k) = − √ j + √ k.
2 2 2
1 1
The vector dS is therefore (− √ j + √ k) du dv where du and dv are increments in the plane of the
2 2
rectangle OABC. Now, one increment, say du, may point in the x-direction while p dv will point in a
direction up the plane, parallel to OC. Thus √ du = dx and (by Pythagoras) dv = (dy)2 + (dz)2 .
However, as z = y, dz = dy and hence dv = 2dy.
1 1 √
Thus, dS = (− √ j + √ k) dx 2 dy = (−j + k) dx dy.
2 2
√
Note :- the factor of 2 could also have been found by comparing the area of rectangle OABC,
1
i.e. 1, with the area of its projection in the Oxy plane i.e. OADE with area √ .
2
Example 20
Evaluate the integral Z
1
dS
A 1 + x2
over the area A where A is the square 0 ≤ x ≤ 1, 0 ≤ y ≤ 1, z = 0.
Solution
In this integral, dS becomes k dx dy i.e. the unit normal times the surface element. Thus the
integral is
Z 1 Z 1 Z 1 h
k −1
i1
2
dx dy = k tan x dy
y=0 x=0 1 + x y=0 0
Z 1 h Z 1
π i 1 π
= k ( − 0) dy = k dy
y=0 4 0 4 y=0
π
= k
4
HELM (2015): 37
Section 29.2: Surface and Volume Integrals
Example 21
ZZ
Find u dS where u = x2 + y 2 + z 2 and S is the surface of the unit cube
S
0 ≤ x ≤ 1, 0 ≤ y ≤ 1, 0 ≤ z ≤ 1.
Solution
The unit cube has six faces and the unit normal vector n̂ points in a different direction on each face;
see Example 18. The surface integral must be evaluated for each face separately and the results
summed.
On the face x = 0, the unit normal n̂ = −i and the surface integral is
Z 1 Z 1 Z 1 1
2 2 2 2 1 3
(0 + y + z )(−i)dzdy = −i y z+ z dy
y=0 z=0 y=0 3 z=0
Z 1 1
2 1 1 3 1 2
= −i y + dy = −i y + y = − i
y=0 3 3 3 0 3
Key Point 4
A scalar function integrated with respect to a normal vector dS gives a vector quantity.
When the surface does not lie in one of the planes Oxy, Oxz, Oyz, extra care must be taken when
finding dS.
38 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Example 22
ZZ
Find (∇ · F )dS where F = 2xi + yzj + xyk and S is the surface of the
S
triangle with vertices at (0, 0, 0), (1, 0, 0) and (1, 1, 0).
Solution
Note that ∇ · F = 2 + z = 2 as z = 0 everywhere along S. As the triangle lies in the Oxy plane,
the normal vector n = k and dS = kdydx.
Thus,
ZZ Z 1 Z x Z 1 x Z 1 h i1
(∇ · F )dS = 2dydxk = 2y dxk = 2xdxk = x2 k = k
S x=0 y=0 0 0 0 0
Here the scalar function being integrated was the divergence of a vector function.
Example 23
ZZ
Find f dS where f is the function 2x and S is the surface of the triangle
S
bounded by (0, 0, 0), (0, 1, 1) and (1, 0, 1). (See Figure 9.)
z √
Area 3
2 y
x
1
Area
2
HELM (2015): 39
Section 29.2: Surface and Volume Integrals
Solution
The unit vector n is perpendicular to two vectors in the plane e.g. (j + k) and (i + k). The
√
vector (j + k) × (i + k) = i + j − k which has magnitude 3. Hence the unit normal vector
n̂ = √13 i + √13 j − √13 k.
√
As the area of the triangle S is 23 and the area of its projection in the Oxy plane is 21 , the vector
√
3/2
dS = n̂ dydx = (i + j + k)dydx.
1/2
Thus
ZZ Z 1 Z 1−x
f dS = (i + j + k) 2x dydx
S x=0 y=0
Z 1 1−x
= (i + j + k) 2xy dx
x=0 y=0
Z 1
= (i + j + k) (2x − 2x2 )dx
x=0
1
2 2 3 1
= (i + j + k) x − x = (i + j + k)
3 0 3
Task ZZ
Evaluate the integral 4x dS where S represents the trapezium with vertices
S
at (0, 0), (3, 0), (2, 1) and (0, 1).
Your solution
Answer
k dx dy
Your solution
40 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Answer Z 1 Z 3−y
It is easier to integrate first with respect to x. This gives 4x dx dy k.
y=0 x=0
The range of values of y is y = 0 to y = 1.
For each value of y, x varies from x = 0 to x = 3 − y
Your solution
Answer
38
k
3
HELM (2015): 41
Section 29.2: Surface and Volume Integrals
Exercises
ZZ
1. Evaluate the integral xydS where S is the triangle with vertices at (0, 0, 4), (0, 2, 0) and
S
(1, 0, 0).
ZZ
2. Find the integral xyzdS where S is the surface of the unit cube 0 ≤ x ≤ 1, 0 ≤ y ≤ 1,
S
0 ≤ z ≤ 1.
ZZ
∇ · (x2 i + yzj + x2 yk) dS where S is the rectangle with vertices
3. Evaluate the integral
S
at (1, 0, 0), (1, 1, 0), (1, 1, 1) and (1, 0, 1).
2 1 1 1 5
Answers 1. i+ j+ k 2. (x + y + z), 3. i
3 3 6 4 2
Example 24
Evaluate the integral
Z
(x2 yi + zj + (2x + y)k) · dS
A
Solution
On A, the unit normal is dx dy k
Z
∴ (x2 yi + zj + (2x + y)k) · (k dx dy)
A
Z 1 Z 1 Z 1 1
2
= (2x + y) dx dy = x + xy dy
y=0 x=0 y=0 x=0
Z 1 1
1 3
= (1 + y)dy = y + y 2 =
y=0 2 0 2
42 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Example 25
Z
Evaluate r · dS where A represents the surface of the unit cube
A
0 ≤ x ≤ 1, 0 ≤ y ≤ 1, 0 ≤ z ≤ 1 and r represents the vector xi + yj + zk .
Solution
The vector dS (in the direction of the normal vector) will be a constant vector on each face, but
will be different for each face.
On the face x = 0 , dS = −dy dz i and the integral on this face is
Z 1 Z 1 Z 1 Z 1
(0i + yj + zk) · (−dy dz i) = 0 dy dz = 0
z=0 y=0 z=0 y=0
HELM (2015): 43
Section 29.2: Surface and Volume Integrals
Engineering Example 3
Magnetic flux
Introduction
ZZ
The magnetic flux through a surface is given by B·dS where S is the surface under consideration,
S
B is the magnetic field and dS is the vector normal to the surface.
Problem in words
The magnetic field generated by an infinitely long vertical wire on the z-axis, carrying a current I, is
given by:
µ0 I −yi + xj
B=
2π x2 + y 2
Find the flux through a rectangular region (with sides parallel to the axes) on the plane y = 0.
Mathematical statement of problem
ZZ
Find the integral B · dS over the surface, x1 ≤ x ≤ x2 , z1 ≤ z ≤ z2 . (see Figure 10 which
S
shows part of the plane y = 0 for which the flux is to be found and a single magnetic field line. The
strength of the field is inversely proportional to the distance from the axis.)
z
z2
z1
S
y
x1
x x2
44 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Interpretation
The magnetic flux increases in direct proportion to the extent of the side parallel to the axis (i.e.
along the z-direction) but logarithmically with respect to the extent of the side perpendicular to the
axis (i.e. along the x-axis).
Example 26 ZZ
2 2 2
If F = x i + y j + z k, evaluate F × dS where S is the part of the plane
S
z = 0 bounded by x = ±1, y = ±1.
Solution
i j k
2 2
Here dS = dx dy k and hence F × dS = x y z 2 = y 2 dx dy i − x2 dx dy j
0 0 dx dy
ZZ Z 1 Z 1 Z 1 Z 1
2
F × dS = y dx dy i − x2 dx dy j
S y=−1 x=−1 y=−1 x=−1
Key Point 5
Z
(a) An integral of the form F (r) · dS evaluates to a scalar.
S
Z
(b) An integral of the form F (r) × dS evaluates to a vector.
S
The vector function involved may be the gradient of a scalar or the curl of a vector.
HELM (2015): 45
Section 29.2: Surface and Volume Integrals
Example
Z Z27
Integrate (∇φ).dS where φ = x2 + 2yz and S is the area between y = 0 and
S
y = x2 for 0 ≤ x ≤ 1 and z = 0. (See Figure 11.)
y
1
S
x
1
Figure 11: The area S between y = 0 and y = x2 , for 0 ≤ x ≤ 1 and z = 0
Solution
Here ∇φ = 2xi + 2zj + 2yk and dS = k dydx. Thus (∇φ).dS = 2ydydx and
ZZ Z 1 Z x2
(∇φ).dS = 2y dydx
S x=0 y=0
Z 1 x 2 Z 1
2
= y dx = x4 dx
x=0 y=0 x=0
1
1 5 1
= x =
5 0 5
ZZ
For integrals of the form F · dS, non-Cartesian coordinates e.g. cylindrical polar or spherical
S
polar coordinates may be used. Once again, it is necessary to include any scale factors along with
the unit normal.
Example 28 Z
Using cylindrical polar coordinates, (see 28.3), find the integral F (r) · dS
S
for F = ρz ρ̂ + z sin2 φẑ and S being the complete surface (including ends) of the
cylinder ρ ≤ a, 0 ≤ z ≤ 1. (See Figure 12.)
z
y
z=1
ρ=a x
46 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Solution
Z
The integral F (r) · dS must be evaluated separately for the curved surface and the ends.
S
For the curved surface, dS = ρ̂adφdz (with the a coming from ρ the scale factor for φ and the fact
that ρ = a on the curved surface.) Thus, F · dS = a2 z dφdz and
ZZ Z 1 Z 2π
F (r) · dS = a2 z dφdz
S z=0 φ=0
Z1 1
2 2 1 2
= 2πa z dz = 2πa z = πa2
z=0 2 0
Engineering Example 4
Introduction
When an electric current flows at a constant rate through a conductor, then the current continuity
equation states that
I
J · dS = 0
S
where J is the current density (or current flow per unit area) and S is a closed surface. The equation
is an expression of the fact that, under these conditions, the current flow into a closed volume equals
the flow out.
Problem in words
A person is standing nearby when lightning strikes the ground. Find the potential difference between
the feet of that person.
HELM (2015): 47
Section 29.2: Surface and Volume Integrals
Figure 13: Lightning: a current dissipating into the ground
Mathematical statement of problem
The current from the lightning dissipates radially (see Fig 13).
(a) Find a relationship between the current I and current density J atZa distance r from the
strike by integrating the current density over the hemisphere I = J · dS
S
ρI
(b) Find the field E from the equation E = 2 where E = |E| and I is the current.
2π r
Z R2
(c) Find V from the integral E · dr
R1
Mathematical analysis
Imagine a hemisphere of radius r level with the surface of the ground so that the point of lightning
strike is at its centre. By symmetry, the pattern of current flow from the point of strike will be
uniform radial lines, and the magnitude of J will be a constant, i.e. over the curved surface of the
hemisphere J = J r̂.
Since the amount of current entering the hemisphere is I, then it follows that the current leaving
must be the same i.e.
Z
I = J · dS (where Sc is the curved surface of the hemisphere)
Sc
Z
= (J r̂) · (dS r̂)
Sc
Z
= J dS
Sc
2
= 2πr J [= surface area (2πr2 ) × flux (J)]
48 HELM (2015):
Workbook 29: Integral Vector Calculus
®
ρI
Hence E=
2πr2
The potential difference between two points at radii R1 and R2 from the lightning strike is found by
integrating E between them, so that
Z R2
V = E · dr
R1
Z R2
= E dr
R1
R2
ρI dr
Z
=
2π R1 r2
R2
ρI −1
=
2π r R1
ρI 1 1 ρI R2 − R1
= − =
2π R1 R2 2π R1 R2
Interpretation
Suppose the lightning strength is a current I = 10, 000 A, that the person is 12 m away with
feet 0.35 m apart, and that the resistivity of the ground is 80 Ω m. Clearly, the worst case (i.e.
maximum voltage) would occur when the difference between R1 and R2 is greatest, i.e. R1 =12 m
and R2 =12.35 m which would be the case if both feet were on the same radial line. The voltage
produced between the person’s feet under these circumstances is
ρI 1 1
V = −
2π R1 R2
80 × 10000 1 1
= −
2π 12 12.35
≈ 300 V
Task
For F = (x2 + y 2 )i + (x2 + z 2 )j + 2xzk and S the square
Z bounded by (1, 0, 1),
(1, 0, −1), (−1, 0, −1) and (−1, 0, 1) find the integral F · dS
S
Your solution
Answer Z 1 Z 1
8
dS = dxdzj (x2 + z 2 ) dxdz =
−1 −1 3
HELM (2015): 49
Section 29.2: Surface and Volume Integrals
Task
For F = (x2 + y 2 )i + (x2 + z 2 )j + 2xzk and S being the rectangle bounded by
Z (−1, 0, 1) (i.e. the same F and S as in the
(1, 0, 1), (1, 0, −1), (−1, 0, −1) and
previous Task), find the integral F × dS
S
Your solution
Answer
Z 1 Z 1 Z 1 Z 1
2 4
(−2xz)i + (x + 0)k dxdz = k
−1 −1 −1 −1 3
Exercises
ZZ
1. Evaluate the integral ∇φ · dS for φ = x2 z sin y and S being the rectangle bounded by
S
(0, 0, 0), (1, 0, 1), (1, π, 1) and (0, π, 0).
ZZ
2. Evaluate the integral (∇ × F ) × dS where F = xey i + zey j and S represents the unit
S
square 0 ≤ x ≤ 1, 0 ≤ y ≤ 1.
ZZ
3. Using spherical polar coordinates (r, θ, φ), evaluate the integral F · dS where F = r cos θr̂
S
and S is the curved surface of the top half of the sphere r = a.
2
Answers 1. − , 2. (e − 1)j, 3. πa3
3
50 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Example 29
Integrate ∇ · F over the unit cube 0 ≤ x ≤ 1, 0 ≤ y ≤ 1, 0 ≤ z ≤ 1 where F is
the vector function x2 yi + (x − z)j + 2xz 2 k.
Solution
∂ 2 ∂ ∂
∇·F = (x y) + (x − z) + (2xz 2 ) = 2xy + 4xz
∂x ∂y ∂z
The integral is
Z 1 Z 1 Z 1 Z 1 Z 1 1
2
(2xy + 4xz)dzdydx = 2xyz + 2xz dydx
x=0 y=0 z=0 x=0 y=0 0
Z 1 Z1 Z 1 1
= (2xy + 2x) dydx = xy 2 + 2xy dx
x=0 y=0 x=0 0
Z 1 1
3 3
= 3xdx = x2 =
x=0 2 0 2
Key Point 6
The volume integral of a scalar function (including the divergence of a vector) is a scalar.
Task
Using spherical polar coordinates
ZZZ (r, θ, φ) and the vector field F = r2 r̂+r2 sin θ θ̂,
evaluate the integral ∇ · F dV over the sphere given by 0 ≤ r ≤ a.
V
Your solution
Answer Z a Z π Z 2π
∇ · F = 4r + 2r cos θ, {(4r + 2r cos θ)r2 sin θ} dφdθdr = 4πa4
r=0 θ=0 φ=0
The r2 sin θ term comes from the Jacobian for the transformation from spherical to cartesian coor-
dinates (see 27.4 and 28.3).
HELM (2015): 51
Section 29.2: Surface and Volume Integrals
Exercises
ZZZ
1. Evaluate ∇ · F dV when F is the vector field yzi + xyj and V is the unit cube
V
0 ≤ x ≤ 1, 0 ≤ y ≤ 1, 0 ≤ z ≤ 1
ZZZ
2 2 z 2 y
2. For the vector field F = (x y+sin z)i+(xy +e )j+(z +x )k, find the integral ∇·F dV
V
where V is the volume inside the tetrahedron bounded by x = 0, y = 0, z = 0 and x+y+z = 1.
1 7
Answers 1. ∇ · F = x, 2.
2 60
Integrating a vector function over a volume integral is similar, but less common. Care should be
taken with the various components. It may help to think in terms of a separate volume integral for
each component. The vector function may be of the form ∇f or ∇ × F .
Example 30
Integrate the function F = x2 i+2j over the prism given by 0 ≤ x ≤ 1, 0 ≤ y ≤ 2,
0 ≤ z ≤ (1 − x). (See Figure 14.)
1 2
x
1
Solution
The integral is
Z 1 Z 2 Z 1−x Z 1 Z 2 1−x
2 2
(x i + 2j)dzdydx = x zi + 2zj dydx
x=0 y=0 z=0 x=0 y=0 z=0
Z 1 Z 2 Z 1 Z 2
2
(x2 − x3 )i + (2 − 2x)j dydx
= x (1 − x)i + 2(1 − x)j dydx =
x=0 y=0 x=0 y=0
Z 1 1
2 1
(2x − 2x )i + (4 − 4x)j dx = ( x3 − x4 )i + (4x − 2x2 )j
2 3
=
x=0 3 2 0
1
= i + 2j
6
52 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Example 31 ZZZ
2 2
For F = x yi + y j evaluate (∇ × F )dV where V is the volume under the
V
plane z = x + y + 2 (and above z = 0) for −1 ≤ x ≤ 1, −1 ≤ y ≤ 1.
Solution
i j k
∂ ∂ ∂
∇ × F = = −x2 k
∂x ∂y ∂z
2
x y y2 0
so
ZZZ Z 1 Z 1 Z x+y+2
(∇ × F )dV = (−x2 )k dzdydx
V x=−1 y=−1 z=0
Z 1 Z 1 x+y+2
2
= (−x )zk dydx
x=−1 y=−1 z=0
Z 1 Z 1
3
−x − x2 y − 2x2 dydx k
=
x=−1 y=−1
Z 1 1
1
= −x y − x2 y 2 − 2x2 y
3
dx k
x=−1 2 y=−1
Z 1 1
3 2 1 4 8
dx k = − x4 − x3
= −2x − 0 − 4x k=− k
x=−1 2 3 −1 3
(1, 1, 4) y
(−1, 1, 0) (1, 1, 0)
HELM (2015): 53
Section 29.2: Surface and Volume Integrals
Key Point 7
The volume integral of a vector function (including the gradient of a scalar or the curl of a vector)
is a vector.
Task Z
Evaluate the integral F dV for the case where F = xi + y 2 j + zk and V is the
V
cube −1 ≤ x ≤ 1, −1 ≤ y ≤ 1, −1 ≤ z ≤ 1.
Your solution
Answer
Z 1 Z 1 Z 1
8
(xi + y 2 j + zk)dzdydx = j
x=−1 y=−1 z=−1 3
Exercises
1. For f = x2 + yz, and V theZvolume
Z Z bounded by y = 0, x + y = 1 and −x + y = 1 for
−1 ≤ z ≤ 1, find the integral (∇f )dV .
V
Z
2. Evaluate the integral (∇ × F )dV for the case where F = xzi + (x3 + y 3 )j − 4yk and V is
V
the cube −1 ≤ x ≤ 1, −1 ≤ y ≤ 1, −1 ≤ z ≤ 1.
Answers
ZZZ
2
1. (2xi + zj + yk)dV = k,
V 3
ZZZ
2. (−4i + xj + 3x2 k)dV = −32i + 8k
V
54 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Integral Vector
Theorems 29.3
Introduction
Various theorems exist relating integrals involving vectors. Those involving line, surface and volume
integrals are introduced here.
They are the multivariable calculus equivalent of the fundamental theorem of calculus for single
variables (“integration and differentiation are the reverse of each other”).
Use of these theorems can often make evaluation of certain vector integrals easier. This Section
introduces the main theorems which are Gauss’ divergence theorem, Stokes’ theorem and Green’s
theorem.
#
• be able to find the gradient of a scalar field
and the divergence and curl of a vector field
Prerequisites
Before starting this Section you should . . . • be familiar with the integration of vector
functions
" !
HELM (2015): 55
Section 29.3: Integral Vector Theorems
1. Stokes’ theorem
This is a theorem that equates a line integral to a surface integral. For any vector field F and a
contour C which bounds an area S,
ZZ I
(∇ × F ) · dS = F · dr
S C
dS
C
Figure 16: A surface for Stokes’ theorem
Notes
(a) dS is a vector perpendicular to the surface S and dr is a line element along the contour C.
The sense of dS is linked to the direction of travel along C by a right hand screw rule.
(c) The theorem is often a useful way of calculating a line integral along a contour composed of
several distinct parts (e.g. a square or other figure).
(d) ∇ × F is a vector field representing the curl of the vector field F and may, alternatively, be
written as curl F .
56 HELM (2015):
Workbook 29: Integral Vector Calculus
®
I
Thus, for each small rectangle, F · dr ≈ (∇ × F ) · dS
C
When the contributions over all the small rectangles are summed, the line integrals along the inner
parts of the rectangles cancel and all that remains is the line integral around the outside of the surface
S. The surface integrals sum. Hence, the theorem applies for the area S bounded by the contour C.
While the above does not constitute a formal proof of Stokes’ theorem, it does give an appreciation
of the origin of the theorem.
Contribution does
not cancel
Contributions cancel
Key Point 8
Stokes’ Theorem
I ZZ
F · dr = (∇ × F ) · dS
C S
The closed contour integral of the scalar product of a vector function with the vector along the
contour is equal to the integral of the scalar product of the curl of that vector function and the unit
normal, over the corresponding surface.
HELM (2015): 57
Section 29.3: Integral Vector Theorems
Example 32
Verify Stokes’ theorem for the vector function F = y 2 i − (x + z)j + yzk and the
unit square 0 ≤ x ≤ 1, 0 ≤ y ≤ 1, z = 0.
Solution
If F = y 2 i − (x + z)j + yzk then ∇ × F = (z + 1)i + (−1 − 2y)k = i + (−1 − 2y)k (as z = 0).
Note that dS = dxdyk so that (∇ × F ) · dS = (−1 − 2y)dydx
ZZ Z 1 Z 1
Thus (∇ × F ) · dS = (−1 − 2y)dydx
S x=0 y=0
Z 1 1 Z 1
2
= (−y − y ) dx = (−2)dx
x=0 y=0 x=0
1
= − 2x = −2 + 0 = −2
0
I
To evaluate F · dr, we must consider the four sides separately.
C
When y = 0, F = −xj and dr = dxi so F · dr = 0 i.e. the contribution of this side to the integral
is zero.
When x = 1, F = y 2 i − j and dr = dyj so F · dr = −dy so the contribution to the integral is
Z 1 1
(−dy) = − y = −1.
y=0 0
When y = 1, F = i − xj and dr = −dxi so F · dr = −dx so the contribution to the integral is
Z 1 1
(−dx) = − x = −1.
x=0 0
2
When x = 0, F = y i and dr = −dyj so F · dr = 0 so the contribution to the integral is zero.
I
The integral F · dr is the sum of the contributions i.e. 0 − 1 − 1 + 0 = −2.
Z ZC I
Thus (∇ × F ) · dS = F · dr = −2 i.e. Stokes’ theorem has been verified.
S C
58 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Example 33
Using cylindrical polar coordinates verify Stokes’ theorem for the function F = ρ2 φ̂
the circle ρ = a, z = 0 and the surface ρ ≤ a, z = 0.
Solution
I
Firstly, find F · dr. This can be done by integrating along the contour ρ = a from φ = 0 to
C
φ = 2π. Here F = a2 φ̂ (as ρ = a) and dr = a dφ φ̂ (remembering the scale factor) so F ·dr = a3 dφ
and hence
I Z 2π
F · dr = a3 dφ = 2πa3
C 0
2
As F = ρ φ̂, ∇ × F = 3ρẑ and (∇ × F ) · dS = 3ρ as dS = ẑ.
Thus
ZZ Z 2π Z 1 Z 2π Z a
(∇ × F ) · dS = 3ρ × ρdρdφ = 3ρ2 dρdφ
S φ=0 ρ=0 φ=0 ρ=0
Z 2π a Z 2π
= ρ3 dφ = a3 dφ = 2πa3
φ=0 ρ=0 0
Hence
I ZZ
F · dr = (∇ × F ) · dS = 2πa3
C S
Example 34 I
Find the closed line integral F ·dr for the vector field F = y 2 i+(x2 −z)j +2xyk
C
and for the contour ABCDEF GHA in Figure 18.
y F (1, 7) E(5, 7)
H(0, 4) C(6, 4)
D(2, 4)
G(1, 4)
A(0, 0) B(6, 0) x
HELM (2015): 59
Section 29.3: Integral Vector Theorems
Solution
Z Z
From Stokes’ theorem, it can be seen that surface integrals of the form (∇ × F ) · dS depend
S
only on the contour bounding the surface and not on the internal part of the surface.
60 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Task
Verify Stokes’ theorem for the vector field F = x2 i + 2xyj + zk and the triangle
with vertices at (0, 0, 0), (3, 0, 0) and (3, 1, 0).
Your solution
Answer
dxdyk
Your solution
Answer
2yk
ZZ
Now evaluate the double integral (∇ × F ) · dS over the triangle:
S
Your solution
Answer
1
HELM (2015): 61
Section 29.3: Integral Vector Theorems
Z
Finally find the integral F · dr along the 3 sides of the triangle and so verify that the two sides of
the Stokes’ theorem are equal:
Your solution
Answer
9 + 3 − 11 = 1, Both sides of Stokes’ theorem have value 1.
Exercises
1. Using plane-polar coordinates (or cylindrical coordinates with z = 0), verify Stokes’
polar
πρ
theorem for the vector field F = ρρ̂ + ρ cos φ̂ and the semi-circle ρ ≤ 1, − π2 ≤ φ ≤ π2 .
2
2. Verify Stokes’ theorem for the vector field F = 2xi + (y 2 − z)j + xzk and the contour around
the rectangle with vertices at (0, −2, 0),(2, −2, 0), (2, 0, 1) and (0, 0, 1).
(a) Over the triangle (0, 0, 0), (1, 0, 0), (1, 1, 0).
(b) Over the triangle (1, 0, 0), (1, 1, 0), (1, 1, 1).
and C is the contour starting at (0, 0) and going to (5, 0), (5, 2), (6, 2), (6, 5), (3, 5), (3, 2),
(0, 2) and returning to (0, 0).
Answers
1. Both integrals give 0,
2. Both integrals give 1
3. (a) Both integrals give 1 (b) Both integrals give 0 (as ∇ × F is perpendicular to dS)
4. −57, [∇ × F = −3 k].
62 HELM (2015):
Workbook 29: Integral Vector Calculus
®
2. Gauss’ theorem
This is sometimes known as the divergence theorem and is similar in form to Stokes’ theorem but
equates a surface integral to a volume integral. Gauss’ theorem states that for a volume V , bounded
by a closed surface S, any ‘well-behaved’ vector field F satisfies
ZZ ZZZ
F · dS = ∇ · F dV
S V
Notes:
(a) dS is a unit normal pointing outwards from the interior of the volume V .
(c) The theorem is often a useful way of calculating a surface integral over a surface composed of
several distinct parts (e.g. a cube).
(d) ∇ · F is a scalar field representing the divergence of the vector field F and may, alternatively,
be written as div F .
(e) Gauss’ theorem can be justified in a manner similar to that used for Stokes’ theorem (i.e. by
proving it for a small volume element, then summing up the volume elements and allowing the
internal surface contributions to cancel.)
Key Point 9
Gauss’ Theorem
ZZ ZZZ
F · dS = ∇ · F dV
S V
The closed surface integral of the scalar product of a vector function with the unit normal (or flux of
a vector function through a surface) is equal to the integral of the divergence of that vector function
over the corresponding volume.
HELM (2015): 63
Section 29.3: Integral Vector Theorems
Example 35
Verify Gauss’ theorem for the unit cube 0 ≤ x ≤ 1, 0 ≤ y ≤ 1, 0 ≤ z ≤ 1 and
the function F = xi + zj
Solution
ZZ
To find F · dS, the integral must be evaluated for all six faces of the cube and the results
S
summed.
On the face x = 0, F = zj and dS = −i dydz so F · dS = 0 and
ZZ Z 1Z 1
F · dS = 0 dydz = 0
S 0 0
Note: The volume integral needed just one triple integral, but the surface integral required six double
integrals. Reducing the number of integrals is often the motivation for using Gauss’ theorem.
64 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Example 36 ZZ
Use Gauss’ theorem to evaluate the surface integral F · dS where F is the
S
vector field x2 yi + 2xyj + z 3 k and S is the surface of the unit cube 0 ≤ x ≤ 1,
0 ≤ y ≤ 1, 0 ≤ z ≤ 1.
Solution
Note that to carry out the surface integral directly will involve, as in Example 35, the evaluation of
six double integrals. However, by Gauss’ theorem, the same result comes from the volume integral
ZZZ
∇ · F dV . As ∇ · F = 2xy + 2x + 3z 2 , we have the triple integral
V
Z 1 Z 1 Z 1
(2xy + 2x + 3z 2 ) dxdydz
0 0 0
Z 1Z 1 1 Z 1 Z 1
2 2 2
= x y + x + 3xz dydz = (y + 1 + 3z 2 )dydz
0 0 x=0 0 0
Z 1 1 Z 1 Z 1
1 2 1 3
= y + y + 3yz 2 dz = ( + 1 + 3z 2 )dz = ( + 3z 2 )dz
0 2 y=0 0 2 0 2
1
3 3 5
= z+z =
2 0 2
5
The six double integrals would also sum to 2
but this approach would require much more effort.
Engineering Example 5
Gauss’ law
Introduction
From Gauss’ theorem, it is possible to derive a result which can be used to gain insight into situations
arising in Electrical Engineering. Knowing the electric field on a closed surface, it is possible to find
the electric charge within this surface. Alternatively, in a sufficiently symmetrical situation, it is
possible to find the electric field produced by a given charge distribution.
Gauss’ theorem states
Z Z ZZZ
F · dS = ∇ · F dV
S V
HELM (2015): 65
Section 29.3: Integral Vector Theorems
where q is the amount of charge per unit volume, or charge density, and ε0 is the permittivity of free
space: ε0 = 10−9 /36π F m−1 ≈ 8.84×10−12 F m−1 . Gauss’ theorem becomes in this case
q Q
Z Z ZZZ ZZZ ZZZ
1
E · dS = ∇ · E dV = dV = q dV =
S V V ε0 ε0 V ε0
i.e.
Q
Z Z
E · dS =
S ε0
which is known as Gauss’ law. Here Q is the total charge inside the surface S.
" Z 1 Z 1 − 23 #
2 2 1 4π
Hint : x2 + y 2 + dy dx =
x=− 12 y=− 21 4 3
Mathematical analysis
From Gauss’ law
Q
Z Z
E · dS =
S ε0
so
Z Z Z Z
Q = ε0 E · dS = 6ε0 E · dS
S S(top)
since, using the symmetry of the six faces of the cube, it is possible to integrate over just one of
them (here the top face is chosen) and multiply by 6. On the top face
xi + yj + 21 k
E = 10 3
x2 + y 2 + 14 2
and
66 HELM (2015):
Workbook 29: Integral Vector Calculus
®
So
1
2
E · dS = 10 23 dy dx
1
x2 + y 2 + 4
− 3
2 2 1 2
= 5 x +y + dy dx
4
Now
Z Z Z 1 Z 1 − 32
2 2
2 1 2
E · dS = 5 x +y + dy dx
S(top) x=− 12 y=− 21 4
4π
= 5× (using the hint)
3
20π
=
3
Interpretation
Gauss’ law can be used to find a charge from its effects elsewhere.
xi + yj + 12 k r r̂
The form of E = 10 3 comes from the fact that E is radial and equals 10 3 = 10 2
x2 + y 2 + 14 2
r r
Example 37
Verify Gauss’ theorem for the vector field F = y 2 j − xzk and the triangular prism
with vertices at (0, 0, 0), (2, 0, 0), (0, 0, 1), (0, 4, 0), (2, 4, 0) and (0, 4, 1) (see
Figure 19).
z (0, 4, 1)
y
(0, 0, 1) (2, 4, 0)
(0, 4, 0)
(0, 0, 0)
(2, 0, 0) x
HELM (2015): 67
Section 29.3: Integral Vector Theorems
Solution
As F = y 2 j − xzk, ∇ · F = 0 + 2y − x = 2y − x.
Thus
ZZZ Z 2 Z 4 Z 1−x/2
∇ · F dV = (2y − x)dzdydx
V x=0 y=0 z=0
Z 2 Z 4 1−x/2 Z 2 Z 4
1
= 2yz − xz dydx = (2y − xy − x + x2 )dydx
x=0 y=0 z=0 x=0 y=0 2
Z 2 4 Z 2
1 1
= y − xy 2 − xy + x2 y
2
dx = (16 − 12x + 2x2 )dx
x=0 2 2 y=0 x=0
2
2 40
= 16x − 6x2 + x3 =
3 0 3
ZZ
To work out F · dS, it is necessary to consider the contributions from the five faces separately.
S
On the front face, y = 0, F = −xzk and dS = −j thus F · dS = 0 and the contribution to the
integral is zero.
On the back face, y = 4, F = 16j − xzk and dS = j thus F · dS = 16 and the contribution to the
integral is
Z 2 Z 1−x/2 Z 2 1−x/2 Z 2 2
2
16dzdx = 16z dx = 16(1 − x/2)dx = 16x − 4x = 16.
x=0 z=0 x=0 z=0 x=0 0
2
On the left face, x = 0, F = y j and dS = −i thus F · dS = 0 and the contribution to the integral
is zero.
On the bottom face, z = 0, F = y 2 j and dS = −k thus F · dS = 0 and the contribution to the
integral is zero.
On the top right (sloping) face, z = 1−x/2, F = y 2 j+( 21 x2 −x)k and the unit normal n̂ = √15 i+ √25 k
h i
Thus dS = √15 i + √25 k dydw where dw measures the distance along the slope for a constant y.
√
As dw = 25 dx, dS = 12 i + k dydx thus F · dS = 16 and the contribution to the integral is
Z 2 Z 4 Z 2 2
1 2 2 2 3 2 8
( x − x)dydx = (2x − 4x)dx = x − 2x =− .
x=0 y=0 2 x=0 3 0 3
ZZ
8 40
Adding the contributions, F · dS = 0 + 16 + 0 + 0 − = .
3 3
ZZ ZZZ S
40
Thus F · dS = ∇ · F dV = hence verifying Gauss’ divergence theorem.
S V 3
68 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Engineering Example 6
Looking first at the circular ends of the cylinder, the fact that the field lines point radially away
from the charged line implies that the electric field is in the plane of these circles and has no normal
component. Therefore E · dS will be zero for these ends.
Next, over the curved surface of the cylinder, the electric field is normal to it, and the symmetry
of the problem implies that the strength of the electric field will be constant (here denoted by E).
Therefore the integral = Total curved surface area × Field strength = 2πrlE.
So, by Gauss’ law
Q
Z Z Z Z
E · dS + E · dS =
S(ends) S(curved) ε0
or
ρL l
0 + 2πrlE =
ε0
Interpretation
ρL
Hence, the field strength E is given by E=
2πε0 r
HELM (2015): 69
Section 29.3: Integral Vector Theorems
Engineering Example 7
Problem in words
Given the electric field E on the surface of a cylinder, use Gauss’ law to find the charge per unit
length.
Mathematical statement of problem
On the surface of a long cylinder of radius a and length l, the electric field is given by
ρL (a + b cos θ) r̂ − b sin θ θ̂
E=
2πε0 (a2 + 2ab cos θ + b2 )
(using cylindrical polar co-ordinates) due to a line of charge a distance b (< a) from the centre of
the cylinder. Using Gauss’ law , find the charge per unit length.
Z 2π
a + b cos θ 2π
Hint:- 2 2
dθ =
0 (a + 2ab cos θ + b ) a
Mathematical analysis
Consider a cylindrical section - as in the previous example, there are no contributions from the ends
of the cylinder since the electric field has no normal component here. However, on the curved surface
dS = a dθ dz r̂
so
ρL a + b cos θ
E · dS = a dθ dz
2πε0 (a + 2ab cos θ + b2 )
2
ρL l
= using the given result for the integral.
ε0
Then, if Q is the total charge inside the cylinder, from Gauss’ law
ρL l Q Q
= so ρL = as one would expect.
ε0 ε0 l
Interpretation
Therefore the charge per unit length on the line of charge is given by ρL (i.e. the charge per unit
length is constant).
70 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Task
Verify Gauss’ theorem for the vector field F = xi − yj + zk and the unit cube
0 ≤ x ≤ 1, 0 ≤ y ≤ 1, 0 ≤ z ≤ 1.
ForZ each side, evaluate the normal vector dS and the surface integral
(c) Z
F · dS.
S
(d) Show that the two sides of the statement of Gauss’ theorem are equal.
Your solution
Answer
(a) 1 − 1 + 1 = 1
(b) 1
(c) −dxdyk, 0; dxdyk, 1; −dxdzj, 0; dxdzj, −1; −dydzi, 0; dydzi, 1
(d) Both sides are equal to 1.
HELM (2015): 71
Section 29.3: Integral Vector Theorems
Exercises
1. Verify Gauss’ theorem for the vector field F = 4xzi − y 2 j + yzk and the cuboid 0 ≤ x ≤ 2,
0 ≤ y ≤ 3, 0 ≤ z ≤ 4.
2. Verify Gauss’ theorem, using cylindrical polar coordinates, for the vector field F = ρ−2 ρ̂ over
the cylinder 0 ≤ ρ ≤ r0 , −1 ≤ z ≤ 1 for
(a) r0 = 1
(b) r0 = 2
3. If S is the surface of the tetrahedron with vertices at (0, 0, 0), (1, 0, 0), (0, 1, 0) and (0, 0, 1),
find
Z Z the surface integral
(xi + yzj) · dS
S
(a) directly
(b) by using Gauss’ theorem
Hint :- When evaluating directly, show that the unit normal on the sloping face is √1 (i + j + k)
3
and that dS = (i + j + k)dxdy
Answers
1. Both sides are 156,
2. Both sides equal (a) 4π, (b) 2π,
5 5
3. (a) [only contribution is from the sloping face] (b) [by volume integral of (1 + z)].
24 24
72 HELM (2015):
Workbook 29: Integral Vector Calculus
®
and
ZZ ZZZ
2
u∇ w − w∇2 u dV
{u∇w − v∇u} · dS = [2]
S V
Vector identity (1) from subsection 6 of 28.2 states that ∇ · (φA) = (∇φ) · A + φ(∇ · A).
Letting φ = u and A = ∇w in this identity,
∇ · (u∇w) = (∇u) · (∇w) + u(∇ · (∇w)) = (∇u) · (∇w) + u∇2 w
Gauss’ theorem states
ZZ ZZZ
F · dS = ∇ · F dV
S V
Key Point 10
Green’s Identities
ZZ ZZZ
∇u · ∇w + u∇2 w dV
[1] (u∇w) · dS =
S V
ZZ ZZZ
u∇2 w − w∇2 u dV
[2] {u∇w − v∇u} · dS =
S V
HELM (2015): 73
Section 29.3: Integral Vector Theorems
Example 38
Verify Green’s first identity for u = (x − x2 )y, w = xy + z 2 and the unit cube,
0 ≤ x ≤ 1, 0 ≤ y ≤ 1, 0 ≤ z ≤ 1.
Solution
As w = xy + z 2 , ∇w = yi + xj + 2zk. Thus u∇w = (xy − x2 y)(yi + xj + 2zk) and the surface
integral is of this quantity (scalar product with dS) integrated over the surface of the unit cube.
On the three faces x = 0, x = 1, y = 0, the vector u∇w = 0 and so the contribution to the surface
integral is zero.
On the face y = 1, u∇w = (x − x2 )(i + xj + 2zk) and dS = dxdzj so (u∇w) · dS = (x2 − x3 )dxdz
and the contribution to the integral is
Z 1 Z 1 Z 1 3 1
2 3 2 3 x x4 1
(x − x )dzdx = (x − x )dx = − = .
x=0 z=0 0 3 4 0 12
On the face z = 0, u∇w = (x − x2 )y(yi + xj) and dS = −dxdzk so (u∇w) · dS = 0 and the
contribution to the integral is zero.
On the face z = 1, u∇w = (x−x2 )y(yi+xj+2k) and dS = dxdyk so (u∇w)·dS = 2y(x−x2 )dxdy
and the contribution to the integral is
Z 1 Z 1 Z 1 1 Z 1
2 2 2 1
2y(x − x )dydx = y (x − x ) dx = (x − x2 )dx = .
x=0 y=0 x=0 y=0 0 6
ZZ
1 1 1
Thus, (u∇w) · dS = 0 + 0 + 0 + +0+ = .
S 12 6 4
ZZZ
∇u · ∇w + u∇2 w dV .
Now evaluate
V
74 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Now let F be the vector field P (x, y)i + Q(x, y)j i.e. there is no dependence on z and there are no
components in the z− direction. Now
i j k
∂ ∂ ∂ ∂Q ∂P
∇×F = = − k
∂x ∂y ∂z ∂x ∂y
P (x, y) Q(x, y) 0
∂Q ∂P
and dS = dxdyk giving (∇ × F ) · dS = − dxdy.
∂x ∂y
Thus Stokes’ theorem becomes
ZZ
∂Q ∂P
I
− dxdy = F · dr
S ∂x ∂y C
Key Point 11
Green’s Theorem in the Plane
ZZ
∂Q ∂P
I
(P dx + Qdy) = − dxdy
C S ∂x ∂y
This relates a line integral around a closed path C with a double integral over the region S enclosed
by C. It is effectively a two-dimensional form of Stokes’ theorem.
HELM (2015): 75
Section 29.3: Integral Vector Theorems
Example 39 I
2
(4x + y − 3)dx + (3x2 + 4y 2 − 2)dy around the
Evaluate the line integral
C
rectangle 0 ≤ x ≤ 3, 0 ≤ y ≤ 1.
Solution
The integral could be obtained by evaluating four line integrals but it is easier to note that
[(4x2 + y − 3)dx + (3x2 + 4y 2 − 2)dy] is of the form P dx + Qdy with P = 4x2 + y − 3 and
Q = 3x2 + 4y 2 − 2. It is thus of a suitable form for Green’s theorem in the plane.
∂Q ∂P
Note that = 6x and = 1.
∂x ∂y
Green’s theorem in the plane becomes
I Z 1 Z 3
2 2 2
{(4x + y − 3)dx + (3x + 4y − 2)dy} = (6x − 1) dxdy
C y=0 x=0
Z 1 3 Z 1
2
= 3x − x dy = 24 dy = 24
y=0 x=0 y=0
76 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Example 40 I
4zdy + (y 2 − 2)dz and
Verify Green’s theorem in the plane for the integral
C
the triangular contour starting at the origin O = (0, 0, 0) and going to A = (0, 2, 0)
and B = (0, 0, 1) before returning to the origin.
Solution
The whole of the contour is in the plane x = 0 and Green’s theorem in the plane becomes
ZZ
∂Q ∂P
I
(P dy + Qdz) = − dydz
C S ∂y ∂z
I
4zdy + (y 2 − 2)dz .
(a) Firstly evaluate
C
On OA, z = 0 and dz = 0. As the integrand is zero, the integral will also be zero.
On AB, z = (1 − y2 ) and dz = − 12 dy. The integral is
Z 0 Z 0 0
1 2 1 2 2 1 3 14
(4 − 2y)dy − (y − 2)dy = (5 − 2y − y )dy = 5y − y − y =−
y=2 2 2 2 6 2 3
Z 0 0
On BO, y = 0 and dy = 0. The integral is (−2)dz = − 2z = 2.
I 1 1
2
8
Summing, 4zdy + (y − 2)dz = −
C 3
ZZ
∂Q ∂P
(b) Secondly evaluate − dydz
S ∂y ∂z
∂P ∂Q
In this example, P = 4z and Q = y 2 − 2. Thus = 4 and = 2y. Hence,
∂z ∂y
ZZ 2 1−y/2
∂Q ∂P
Z Z
− dydz = (2y − 4) dzdy
S ∂y ∂z y=0 z=0
Z 2 1−y/2 Z 2
−y 2 + 4y − 4 dy
= 2yz − 4z dy =
y=0 z=0 y=0
2
1 8
= − y 3 + 2y 2 − 4y =−
3 0 3
Hence:
ZZ
∂Q ∂P
I
8
(P dy + Qdz) = − dydz = − and Green’s theorem in the plane is verified.
C S ∂y ∂z 3
HELM (2015): 77
Section 29.3: Integral Vector Theorems
One very useful, special case of Green’s theorem in the plane is when Q = x and P = −y. The
theorem becomes
I ZZ
{−ydx + xdy} = (1 − (−1)) dxdy
C S
ZZ
The right-hand side becomes 2 dxdy i.e. 2A where A is the area inside the contour C. Hence
S
I
1
A= {xdy − ydx}
2 C
This result is known as the area theorem. It gives us the area bounded by a curve C in terms of a
line integral around C.
Example 41
Verify the area theorem for the segment of the circle x2 + y 2 = 4 lying above the
line y = 1.
Solution
Firstly, the area of the segment ADBC can be found by subtracting √ of the triangle OADB
√ the area
1
from the area of the sector OACB. The triangle has area 2 × 2 3 × 1 = 3. The sector has area
π 2 4 4
√
3
× 2 = 3
π. Thus segment
I ADBC has area 3
π − 3.
Now, evaluate the integral {xdy − ydx} around the segment.
C
√
Z Z 3
Along the line, y = 1, dy = 0 so the integral {xdy − ydx} becomes √ (x × 0 − 1 × dx) =
√ C − 3
Z 3 √
√
(−dx) = −2 3.
− 3 √
Along
Z the arc of the circle, y = 4 − x2 = (4 − x2 )1/2 so dy = −x(4 − x2 )−1/2 dx. The integral
{xdy − ydx} becomes
C
√ √
Z − 3 Z 3
4
√
{−x2 (4 − x2 )−1/2 − (4 − x2 )1/2 }dx = √
√ dx
3 − 3 4 − x2
Z π/3
1
= 4 2 cos θ dθ (letting x = 2 sin θ)
−π/3 2 cos θ
Z π/3
8
= 4dθ = π
−π/3 3
√ √
I
1 1 8 4
So, 2
{xdy − ydx} = π − 2 3 = π − 3.
C 2 3 3
√
Hence both sides of the area theorem equal 43 π − 3 thus verifying the theorem.
78 HELM (2015):
Workbook 29: Integral Vector Calculus
®
Task
Verify Green’s theorem in the plane when applied to the integral
I
{(5x + 2y − 7)dx + (3x − 4y + 5)dy}
C
where C represents the perimeter of the trapezium with vertices at (0, 0), (3, 0),
(6, 1) and (1, 1).
∂Q ∂P
First let P = 5x + 2y − 7 and Q = 3x − 4y + 5 and find − :
∂x ∂y
Your solution
Answer
1
ZZ
∂Q ∂P
Now find − dxdy over the trapezium:
∂x ∂y
Your solution
Answer
4 (by elementary geometry)
Z
Now find (P dx + Qdy) along the four sides of the trapezium, beginning with the line from (0, 0)
to (3, 0), and then proceeding anti-clockwise.
Your solution
HELM (2015): 79
Section 29.3: Integral Vector Theorems
Finally show that the two sides of the statement of Green’s theorem are equal:
Your solution
Answer
Both sides are 4.
Exercises
1. Verify Green’s identity [1] (page 73) for the functions u = xyz, w = y 2 and the unit cube
0 ≤ x ≤ 1, 0 ≤ y ≤ 1, 0 ≤ z ≤ 1.
Answers
1
1. Both integrals in [1] equal
2
4 π 1
2. (a) both sides give a value of , (b) both sides give a value of − .
3 4 2
80 HELM (2015):
Workbook 29: Integral Vector Calculus
Index for Workbook 29