Lecturenotes Weeks9 12 2320
Lecturenotes Weeks9 12 2320
Line Integrals
Line integrals were invented in the early 19th century to solve problems
involving:
• Fluid flow
• Forces
• Electricity
• Magnetism
• line integrals of vector field (F(x, y) or F(x, y, z)) over a curve C in the
domain
Let us begin with line integrals of scalar field. Consider a scalar function
f (x, y) and a curve C on the xy-plane. We want to define the line integral
Z
f (x, y) ds.
C
1
Step 1: Partition the domain C:
Step 3: Take limit and make the following definition by analogy with a
single integral.
Z n
X
f (x, y) ds = lim f (x∗i , yi∗ )4si ,
C n→∞
i=1
2
Definition 1 (Line Integrals of Scalar Field). If f is defined on a smooth
curve C given by r(t) = hx(t), y(t)i, a ≤ t ≤ b. Then the line integral of f
along C is
Z n
X
f (x, y) ds = lim f (x∗i , yi∗ )4si ,
C n→∞
i=1
provided this limit exists and is the same for every choice of (x∗i , yi∗ ).
Z n
X
f (x, y) ds = lim f (x∗i , yi∗ )4si
C n→∞
i=1
n
X p
= lim f (x∗i , yi∗ ) x0 (t∗i )2 + y 0 (t∗i )2 4ti
n→∞
i=1
s
Z b 2 2
dx dy
= f (x(t), y(t)) + dt.
a dt dt
s
Z Z b 2 2
dx dy
f (x, y) ds = f (x(t), y(t)) + dt.
C a dt dt
Z b
= f (x(t), y(t)) ||r0 (t)|| dt
a
3
Special Case:
• Choose
f (x, y) = 1 for all x, y.
= arc length of C.
R
Hence, the line integral C 1 ds can be interpreted as the arc length of C.
Here is another interpretation Rof line interval of scalar field in the case when
f (x, y) ≥ 0. The line integral C f (x, y) ds represents the area of the ‘fence’
or ‘curtain’ shown below, whose:
• Base is C.
Z
Example 1. Evaluate (2 + x2 y) ds where C is the upper half of the unit
C
circle x2 + y 2 = 1.
4
Solution. The upper half of the unit circle has the following parametrization
x = cos t, y = sin t, 0 ≤ t ≤ π.
s 2 2
Z Z π
2 2 dx dy
(2 + x y) ds = (2 + cos t sin t) + dt
C 0 dt dt
Z π p
= (2 + cos2 t sin t) sin2 t + cos2 t dt
Z0 π
= (2 + cos2 t sin t) dt
0 π
cos3 t
= 2t −
3 0
2
= 2π + .
3
5
Then Z Z Z
f (x, y) ds = f (x, y) ds + · · · + f (x, y) ds.
C C1 Cn
r(t) = r0 + t(r1 − r0 ), 0 ≤ t ≤ 1.
Z
Example 3. Evaluate 2x ds where C consists of the arc C1 of the parabola
C
y = x2 from (0, 0) to (1, 1) followed by the vertical line segment C2 from (1, 1)
to (1, 2).
6
Solution. We can parameterize C1 as
x = t, y = t2 , 0 ≤ t ≤ 1.
Therefore,
s 2 2
Z Z 1
dx dy
2x ds = 2t + dt
C1 0 dt dt
Z 1 √
= 2t 1 + 4t2 dt
0
√
5 5−1
= .
6
We can parametrize C2 as follows:
x = 1, y = t, 1 ≤ t ≤ 2.
Therefore,
s
Z Z 2 2 2
dx dy
2x ds = 2(1) + dt
C2 1 dt dt
Z 2
= 2 dt
1
= 2.
So far we have looked at line integral of scalar field f (x, y). We can also
define the line integral of f (x, y, z) along space curve C in a manner similar
to that for plane curves:
Z n
X
f (x, y, z) ds = lim f (x∗i , yi∗ , zi∗ )4si
C n→∞
i=1
7
Theorem 3 (Formula for Line Integral of Scalar Field in 3D). Suppose that
C is a smooth space curve given by r(t) = hx(t), y(t), z(t)i, a ≤ t ≤ b. Then
Z
f (x, y, z) ds
C
s
Z b 2 2 2
dx dy dz
= f (x(t), y(t), z(t)) + + dt
a dt dt dt
Z b
= f (x(t), y(t), z(t)) ||r0 (t)|| dt.
a
3. Vector Field
F = P i + Qj = hP, Qi.
8
F(x, y, z) = P (x, y, z)i + Q(x, y, z)j + R(x, y, z)k
= hP (x, y, z), Q(x, y, z), R(x, y, z)i
F = P i + Qj + Rk = hP, Q, Ri
The best way to picture a vector field F(x, y) is to draw the arrow represent-
ing the vector F(x, y) starting at the point (x, y).
For F(x, y, z), we visualize it by drawing arrows starting from (x, y, z):
9
F(x, y) = −yi + xj
F(x, y) = yi + sin xj
10
The gravitational field is pictured here.
mM G
F(x, y, z) = − r, where r = hx, y, zi.
||r||3
11
4. Work Done & Line Integral of Vector Field
We now consider the problem of calculating work done which leads us to the
definition of line integral of vector field.
Problem:
Let us suppose we want to find the work done by a constant force F in moving
the object from a point A to B in a straight line. From elementary physics,
we know that this work done is given by the following dot product:
Work done = F · D
−→
where D = AB is the displacement vector.
What is the work done by F? We shall find this by using the following pro-
cedure:
12
Step 1: Partition the domain.
We divide C into subarcs Pi−1 Pi with lengths 4si by partitioning the pa-
rameter domain [a, b].
Choose a point Pi∗ (x∗i , yi∗ , zi∗ ) on the i-th subarc corresponding to the param-
eter value t∗i .
13
Calculating work done ove little subarc:
The work done by the force F in moving the particle Pi−1 from to Pi is
approximately
F(x∗i , yi∗ , zi∗ ) · 4si T(t∗i ) = (F(x∗i , yi∗ , zi∗ ) · T(t∗i )) 4si .
The total work done in moving the particle along C is approximately
n
X
(F(x∗i , yi∗ , zi∗ ) · T(x∗i , yi∗ , zi∗ )) 4si
i
Thus, we define the work W done by the force field F as the limit of the
Riemann sums in the preceding formula, namely,
n
X
W = lim (F(x∗i , yi∗ , zi∗ ) · T(x∗i , yi∗ , zi∗ )) 4si
n→∞
i
We denote this by
Z Z
W = F(x, y, z) · T(x, y, z) ds = F · T ds.
C C
14
To compute the work done, we shall parameterize the curve C, say by
As shown below, we can turn the line integral into ordinary single integral:
r0 (t)
• T(t) = 0
||r (t)||
ds
• = ||r0 (t)||
dt
Thus,
Z
W = F(x, y, z) · T(x, y, z) ds
C
Z b
r0 (t)
= F(x(t), y(t), z(t)) · ||r0 (t)|| dt
a ||r0 (t)||
Z b
= F(x(t), y(t), z(t)) · r0 (t) dt
a
The formula
Z b
W = F(x(t), y(t), z(t)) · r0 (t) dt
a
The above example of work done motivates the following definition of line
integral of vector field.
15
Definition 6 (Line Integral of Vector Field). Let F be a continuous vec-
tor field defined on a smooth curve C given by a vector function r(t) =
hx(t), y(t), z(t)i, a ≤ t ≤ b.
Z Z Z b
F · dr = F · T ds = F(x(t), y(t)) · r0 (t) dt.
C C a
R
Does the value of the line integral C
F · dr depend on different parametriza-
tions?
16
Theorem 7. We have
Z Z
F · dr = − F · dr
−C C
Example 4. Compute the work done by the force field F(x, y) = hy, −xi
acting on an object as it moves along the parabola y = x2 − 1 from (1, 0) to
(−2, 3).
17
x = t, y = t2 − 1, − 2 ≤ t ≤ 1.
Note that the orientation of this parametrization is the opposite of that given
by the question.
Thus, if C is the curve whose orientation is given by the question , then r(t)
here traces −C instead of C.
x = t, y = t2 − 1, − 2 ≤ t ≤ 1.
r(t) = ht, t2 − 1i, −2≤t≤1
r0 (t) = h1, 2ti.
Therefore, the work done is
Z Z
W = F · dr = − F(x(t), y(t)) · r0 (t) dt
C −C
Z 1
= − ht2 − 1, −ti · h1, 2ti dt
−2
Z 1
= − (t2 − 1 − 2t2 ) dt
−2
Z 1
= t2 + 1 dt
−2
= 6.
18
• The curve C is parametriced by
Z Z b
F · dr = F(x(t), y(t), z(t)) · r0 (t) dt
C a
Z b
= hP, Q, Ri · hx0 (t), y 0 (t), z 0 (t)i dt
a
Z b Z b Z b
0 0
= P x (t) dt + Qy (t) dt + Rz 0 (t) dt
a a a
It is customary to write
19
Sometimes a curve C is not smooth but it is a union of finitely many smooth
curves C1 , . . ., Cn , as shown in the figure above. In such cases, we can
compute the line integrals as sum of the line integrals over C1 , . . ., Cn :
Z Z Z
F · dr = F · dr + · · · + F · dr.
C C1 Cn
R
Example 5. Let F(x, y, z) = hy, z, xi. Evaluate C F · dr over C where C
consists of part of the twisted cubic C1 : x = t, y = t2 , z = t3 where 0 ≤ t ≤ 1,
followed by the line segment (straight line) C2 from (1, 1, 1) to (0, 1, 0).
Solution. Over C1 : We have
r(t) = ht, t2 , t3 i, 0 ≤ t ≤ 1.
r0 (t) = h1, 2t, 3t2 i, 0 ≤ t ≤ 1.
Z Z 1
F · dr = ht2 , t3 , ti · h1, 2t, 3t2 i dt
C1 0
Z 1
= t2 + t3 (2t) + t(3t2 ) dt
0
3 1
t 2t5 3t4 89
= + + = .
3 5 4 0 60
Over C2 : We have
20
r0 (t) = h−1, 0, −1i, 0 ≤ t ≤ 1.
Z Z 1
F · dr = h1, 1 − t, 1 − ti · h−1, 0, −1i dt
C2 0
Z 1
= 1(−1) + (1 − t)(0) + (1 − t)(−1) dt
0
Z 1
= (t − 2) dt
0
2 1
t 3
= − 2t =− .
2 0 2
89 3 1
= − =− .
60 2 60
21
Solution. Notice that
fx = 2xy, fy = 1 + x2 − y 2 .
Idea: Recover f from fx an fy by partial integrations.
Integrating fx with respect to x (so that y is treated as a constant), we have
f (x, y) = x2 y + g(y)
fy = x2 + g 0 (y)
g 0 (y) = 1 − y 2 .
Integrating g 0 (y) with respect to y, we have
1
g(y) = y − y 3 + C
3
where C is a constant.
22
Question: How to determine whether or not a vector field is conservative?
Answer.
P i + Qj = fx i + fy j.
Since Py and Qx are continuous by assumption, it follows from Clairaut’s
theorem that
∂P ∂Q
= fxy = fyx = .
∂y ∂x
23
and both P , Q and R have continuous first-order partial derivatives on D.
Then
∂R ∂Q ∂R ∂P ∂Q ∂P
= , = , =
∂y ∂z ∂x ∂z ∂x ∂y
for each point (x, y, z) in D if and only if F is conservative on D.
Also, the domain of F is the entire plane D = R2 which is open and simply-
connected. Hence F is conservative.
The Fundamental Theorem for Line Integrals says that we can evaluate
the line integral of a conservative vector field by only knowing the potential
function at the endpoints!
Z
Of · dr = f (x2 , y2 ) − f (x1 , y1 ).
C
24
Z
Of · dr = f (x2 , y2 , z2 ) − f (x1 , y1 , z1 ).
C
The Fundamental Theorem for Line Integrals says that line integral
of conservative field is INDEPENDENT of paths with the same initial point
and terminal point.
The Fundamental Theorem for Line Integrals gives another test for non-
conservativeness:
25
Example 8. Let F = h2xey + 1, x2 ey + 2y + xi.
Solution. Let
So Qx − Py = 1 6= 0.
So F is NOT conservative.
fx = 2xey + 1, fy = x2 ey + 2y.
f = x2 ey + x + g(y).
fy = x2 ey + g 0 (y).
Thus,
g 0 (y) = 2y,
whence
g(y) = y 2 + C
for some constant C. We set C = 0, and so
f = x2 e y + x + y 2 .
26
(c) We parameterise C as follows:
2
= π + π − 2.
27
MA1104 Week 10
Green’s Theorem & Surface Integral of
Scalar Field
1. Green’s Theorem
1
Now we shall learn a new method to evaluate line integral – Green’s The-
orem.
R
This method only applies to C
F · dr where
To state Green’s Theorem, we require to use the convention that the positive
orientation of a simple closed curve C refers to a single counterclockwise
traversal of C. We can think of this being given by the right-hand-rule.
Z Z ZZ
∂Q ∂P
F · dr = P dx + Q dy = − dA.
C C D ∂x ∂y
2
Notice that the first equality in Green’s Theorem is straightforward:
Z Z
F · dr = F · T ds
C C
r0 (t)
Z
= hP, Qi ·
0 (t)||
||r0 (t)|| dt
||r
ZC
dx dy
= hP, Qi · h , i dt
dt dt
ZC
dx dy
= P dt + Q dt
dt dt
ZC
= P dx + Q dy
C
∂Q ∂P
The term ∂x
− ∂y
can be regarded as some measure of circulation at point
(x, y).
Z ZZ
∂Q ∂P
F · dr = − dA.
C D ∂x ∂y
If we think of F as force field,
R
• the term C F · dr ican be regarded the work done by F over curve C.
RR
• the D ∂Q ∂x
− ∂P
∂y
dA is the ‘sum’ of all the circulations
Notice the closed curve C and D in Green’s Theorem are closely related: C is
the positively oriented boundary of the region D. Sometimes we also denote
C by ∂D which means the positively oriented boundary of the region D.
3
ZZ Z
∂Q ∂P
− dA = P dx + Q dy.
D ∂x ∂y ∂D
• the right hand side involves the values of the original functions (F , Q,
and P ) only on the boundary of the domain.
Example 1. Evaluate
Z
hx4 , xyi · dr
C
where C is the triangular curve consisting of the line segments from (0, 0) to
(1, 0) from (1, 0) to (0, 1) from (0, 1) to (0, 0).
4
Solution. By Green’s Theorem, the line integral is just a double integral:
here P = x4 , Q = xy
Z ZZ
4 ∂Q ∂P
hx , xyi · dr = − dA
C D ∂x ∂y
Z 1 Z 1−x
= (y − 0) dy dx
0 0
Z 1 y=1−x
1 2
= y dx
0 2 y=0
1 1
Z
= (1 − x)2 dx
2 0
1
= .
6
Example 2. Evaluate
Z p
(3y − esin x ) dx + (7x + y 4 + 1) dy
C
ZZ
∂ p
4
∂ sin x
= (7x + y + 1) − (3y − e ) dA
D ∂x ∂y
Z 2π Z 3
= (7 − 3)r dr dθ
0 0
Z 2π Z 3
= 4 dθ r dr
0 0
= 36π.
5
3. Application of Green’s Theorem: Area of Plane Region
P (x, y) = 0, Q(x, y) = x.
or
x2 y 2
Example 3. Find the area enclosed by the ellipse + 2 = 1.
a2 b
6
Solution. The ellipse has parametric equations:
Z
1
A = x dy − y dx
2 C
1 2π
Z
= (a cos t)(b cos t) dt − (b sin t)(−a sin t) dt
2 0
ab 2π
Z
= dt = πab.
2 0
4. Parametric Surfaces
Recall that a vector function r(t) = hx(t), y(t), z(t)i traces out a curve in
space.
In this section, we shall consider vector function r(u, v) = hx(u, v), y(u, v), z(u, v)i
which will trace out a surface in space.
Definition 3 (Parametric Surface). The vector function
x = x(u, v)
y = y(u, v)
z = z(u, v)
7
Example 4. Identify and sketch the surface with vector equation
x = 2 cos u, y = v, z = 2 sin u
x2 + z 2 = 4 cos2 u + 4 sin2 u = 4 = 22 ,
which is the cylinder shown in the figure below:
In the preceding example, if we restrict u and v, say by setting
0 ≤ u ≤ π/2, 0 ≤ v ≤ 3
then
x ≥ 0, z ≥ 0, 0 ≤ y ≤ 3
So we get the following surface:
8
In general, by restricting the values of the underlying parameters, we are
‘cutting out’ part of the entire surface.
Example 5. Write a set of parametric equations for the cone given by
p
z = x2 + y 2 .
Solution.
1st Way:
Since this surface is in the form z = f (x, y), we can choose x and y as
parameters:
x = u
y = v
√
z = u2 + v 2
where (u, v) ∈ R2 .
2nd Way:
x = u cos v
y = u sin v
z = u
0 ≤ u < ∞, 0 ≤ v ≤ 2π.
Example 6. Write a set of parametric equations for the sphere given by
x2 + y 2 + z 2 = 22 .
9
Solution. We can use the spherical coordinates as parameters:
x = 2 sin φ cos θ
y = 2 sin φ sin θ
z = 2 cos φ
where 0 ≤ φ ≤ π, 0 ≤ θ ≤ 2π.
Given a scalar field f (x, y, z) and a surface S, our aim is to define a surface
integral: ZZ
f (x, y, z) dS.
S
To do this, we shall repeat the following familiar procedures:
• Take limit.
10
Then, the surface S is divided into corresponding patches Sij .
We define the surface integral by taking the limit of the above Riemann sums:
Definition 4 (Surface Integral of Scalar Field).
ZZ Xm X n
f (x, y, z) dS = lim f (Pij∗ )4Sij
S m,n→∞
i=1 j=1
provided the limit exists and is the same for all choices of the evaluation
(sample) points Pij∗ .
For our purpose, we also require the parametric surface to be smooth.
11
Definition 5 (Smooth Surface). A surface S is smooth if it has a parametriza-
tion r(u, v), (u, v) ∈ D, such that ru and rv are continuous and ru × rv 6= 0
for all (u, v) ∈ D.
Do not worry too much about this definition! All surfaces we consider will
be smooth. Even if they are not, they can be partitioned into several pieces
that are smooth.
1st Property:
ru × rv is normal to the surface.
2nd Property: We can approximate the patch area
4Sij as follows:
12
Similarly, consider the horizontal line L2 passing through (ui .vj ) on D.
Since both ru (ui , vj ) and rv (ui , vj ) lie on the tangent plane to the surface S
at P0 , the following property holds:
1st Property:
ru × rv is normal to the surface.
13
Notice that we can approximate Sij by the parallelogram determined by the
vectors 4uru (ui , vj ) and 4vrv (ui , vj ).
2nd Property:
dS = ||ru × rv || du dv = ||ru × rv || dA
With this, we arrive at the following formula for computing surface integral
of scalar field by means of paramterization.
Theorem 7 (Surface Integral Formula).
ZZ
f (x, y, z) dS
S
ZZ
= f (x(u, v), y(u, v), z(u, v)) ||ru × rv || dA.
D
14
Here, D is the parameter domain of the vector function r(u, v) that parametrizes
S.
In the formula,
• replace dS by ||ru × rv || dA
15
For the surface S1 :
where
0 ≤ θ ≤ 2π, 0 ≤ z ≤ 1 + x = 1 + cos θ
Therefore,
ZZ ZZ
z dS = z ||rθ × rz || dA
S1 D
Z 2π Z 1+cos θ
= z dz dθ
0 0
Z 2π
1
= (1 + cos θ)2 dθ
0 2
16
Z 2π
1 1
= 1 + 2 cos θ + (1 + cos 2θ) dθ
2 0 2
2π
1 3 1
= θ + 2 sin θ + sin 2θ
2 2 4 0
3π
= .
2
For the surface S2 :
17
Converting to polar coordinates, we have
ZZ ZZ
z dS = (1 + x) ||h1, 0, 1i × h0, 1, 0i|| dA
S3 D
Z 2π Z 1 √
= (1 + r cos θ) 2 r dr dθ
0 0
√ Z 2π Z 1
= 2 (r + r2 cos θ) dr dθ
0
0
√ Z 2π 1 1
= 2 + cos θ dθ
0 2 3
√ θ sin θ 2π
= 2 +
2 3 0
√
= 2π.
Together:
ZZ ZZ ZZ ZZ
z dS = z dS + z dS + z dS
S S1 S2 S3
3π √
= + 0 + 2π
2
3 √
= + 2 π.
2
18
MA1104 Week 11
Surface Integral of Vector Field
1. Surface Area
Example 1. Find the area of the part of the paraboloid z = x2 + y 2 that lies
under the plane z = 9.
1
Solution.
The given surface lies above the disk D with center the origin and radius 3.
ZZ
= ||h1, 0, 2xi × h0, 1, 2yi|| dA
Z ZD p
= 1 + (2x)2 + (2y)2 dA
Z ZD p
= 1 + 4(x2 + y 2 ) dA
D
Z 2π Z 3 √
Area = 1 + 4r2 r dr dθ
0 0
Z 2π Z 3 √
= dθ r 1 + 4r2 dr
0 0
1 2 3
= 2π · · (1 + 4r2 )3/2 0
8 3
π √
= (37 37 − 1).
6
2
To define surface integral over vector field, we require the surface to be ORI-
ENTABLE.
• Open Surface: a top and a bottom (or left and right or front and
back
3
The opposite orientation is given by
−n.
In the special case when S is the surface given by z = g(x, y), there is a
natural orientation given by
∂g ∂g
rx × ry h− ∂x , − ∂y , 1i
n= =r
||rx × ry || ∂g 2
2
∂g
1 + ∂x + ∂y
Example 2. Find the unit normal n for the surface S which is that part
of the plane 2x + y + z = 2 in the first octant, with downward pointing
orientation.
Solution. A vector function tracing out the surface is
r(x, y) = hx, y, 2 − 2x − yi.
Then the unit normal
hry × rx i
n=
||ry × rx ||
is downward pointing.
Let g(x, y) = 2 − 2x − y. Then
ry × rx = hgx , gy , −1i = h−2, −1, −1i.
Thus,
h−2, −1, −1i h−2, −1, −1i
n= p = √ .
2 2
(−2) + (−1) + (−1) 2 6
4
Example 3. Find the unit normal n for the surface S satisfying the follow-
ing:
where
0 ≤ θ ≤ π, − 5 ≤ z ≤ 5.
Therefore,
rθ = h− sin θ, cos θ, 0i
rz = h0, 0, 1i.
rθ × rz = h− cos θ, sin θ, 0i
Set
rθ × rz
n= = h− cos θ, sin θ, 0i.
||rθ × rz ||
Since sin θ > 0 for 0 ≤ θ ≤ π, these unit normals are indeed pointing in the
direction of positive y.
5
Definition 5 (Surface Integral of Vector Field). If F is a continuous vector
field defined on an oriented surface S with unit normal vector n, then the
surface integral of F over S is:
ZZ ZZ
F · dS = F · n dS
S S
This integral is also called the flux of F across S.
REMARK 1.
Surface integrals of vector fields F are just surface integrals of a special kind
of scalar function, namely F · n (which is related to the vector field F and
oriented surface S given).
REMARK 2.
The integrand F · n (scalar function) gives (at any given point S) the com-
ponent of F in the direction of n.
6
Theorem 6 (Formula for Surface Integral of Vector Field).
ZZ ZZ
F · dS = F · (ru × rv ) dA
S D
WARNING!!
Do not blindly apply this formula; remember to check the conditions:
Theorem 7. Let F = hP (x, y, z), Q(x, y, z), R(x, y, z)i. and suppose that S
is given by
r(x, y) = hx, y, g(x, y)i, (x, y) ∈ D.
Then the flux across S in the upward orientation:
ZZ ZZ
∂g ∂g
F · dS = −P −Q + R dA
S D ∂x ∂y
Theorem 8. Let F = hP (x, y, z), Q(x, y, z), R(x, y, z)i. and suppose that S
is given by
r(x, y) = hx, y, g(x, y)i, (x, y) ∈ D.
Then the flux across S in the downward orientation:
ZZ ZZ
∂g ∂g
F · dS = P +Q − R dA
S D ∂x ∂y
7
4. Example 1: Surface Integral of Vector Field
Example 4. Evaluate ZZ
F · dS
S
where:
• F(x, y, z) = yi + xj + zk;
Flux across S1 :
S1 is part of the surface z = g(x, y) where
8
g(x, y) = 1 − x2 − y 2 .
We can use x and y as parameters for S1 :
r(x, y) = hx, y, 1 − x2 − y 2 i
where the parameter domain is
D = {(x, y) : x2 + y 2 ≤ 1}.
rx × ry = h−gx , −gy , 1i
F = hy, x, 1 − x2 − y 2 i.
Our formula yields
ZZ ZZ
∂g ∂g
F · dS = −P −Q + R dA
S1 D ∂x ∂y
ZZ
= (1 + 4xy − x2 − y 2 ) dA
D
Z 2π Z 1
= (1 + 4r2 sin θ cos θ − r2 )r dr dθ
Z0 2π Z0 1
= (r + 4r3 sin θ cos θ − r3 ) dr dθ
0 0
π
=
2
Flux across S2 :
The disk S2 is oriented downwards, so its unit normal vector is n = −k.
9
ZZ ZZ
F · dS = F · (−k) dS
S2 S2
ZZ
= (−z) dS
S2
ZZ
= 0 dA
D
= 0.
10
5. Example 2: Surface Integral of Vector Field
Example 5. Evaluate ZZ
F · dS
S
A parameterisation of S is
where
0 ≤ φ ≤ π/2, 0 ≤ θ ≤ 2π.
Note that
rφ × rθ
= h36 sin2 φ cos θ, 36 sin2 φ sin θ, 36 sin φ cos φi
which is upward-pointing.
Therefore,
11
ZZ Z π/2 Z 2π
F · dS = 216 sin φ cos2 φ dθ dφ,
S 0 0
Z π/2
= 2π 216 sin φ cos2 φ dφ,
0
π/2
cos3 φ
= 2π −216
3 0
= 144π.
p
Example 6. Let E be p the solid bounded above by z = 8 − x2 − y 2 and
bounded below by z = x2 + y 2 . Let S be the closed boundary of E with
positive orientation.
Compute the flux of the vector field F = hy, 0, 2i over the surface S.
Solution.
p The surface S consists of two p parts: S1 which is part of z =
8 − x − y and S2 which is part of z = x2 + y 2 . We shall calculate the
2 2
flux across S1 and S2 separately and add them up later to give the flux across
S.
Flux over S1 :
12
√
F · (rφ × rθ ) = 16 2 sin3 φ sin θ cos θ + 16 sin φ cos φ.
It follows that ZZ
F · dS
S1
Z 2π Z π/4 √
= 16 2 sin3 φ sin θ cos θ + 16 sin φ cos φ dφ dθ
0 0
= 8π.
Flux over S2 :
Z 2π Z 2
u2 sin v cos v − 2u du dv
=
0 0
= −8π.
Combining the flux over S1 and S2 :
ZZ ZZ ZZ
F · dS = F · dS + F · dS = 8π + (−8π) = 0.
S S1 S2
13
MA1104 Week 12
Divergence & Curl
1. Divergence
∂P ∂Q
div F = + .
∂x ∂y
In vector calculus, the vector differential operator O (read as ‘del’) is defined
by
∂ ∂ ∂
O= i+ j + k.
∂x ∂y ∂z
∂P ∂Q ∂R
= + + = div F.
∂x ∂y ∂z
1
Divergence is measure of net outflow of vector field:
• For 2D vector field, it is the net outflow through small closed curve.
• For 3D vector field, it is the net outflow through small closed surface.
Interpretation of divergence:
The field in the figure above is F = hx, yi. Note that div F = 2. There is a
net outflow through every circle.
The field in the figure above is F = hy − 2x, x − 2yi. Note that div F = −4.
There is a net inflow into every circle.
The above examples suggests the following:
2
2. Gauss’ Theorem
Notice that Gauss’ Theorem relates the outward flux over a closed surface to
a triple integral over the solid region bounded by that surface integral.
The proof of Gauss’ Theorem is beyond the scope of our study. We shall
focus on computational problems that can be solved using Gauss’ Theorem.
4π
The unit sphere S is the boundary of the unit ball B whose volume is 3
.
Therefore, using the Divergence Theorem,
ZZ ZZZ
4π
F · dS = 1 dV =
S B 3
3
ZZ
Example 2. Evaluate F · dS where
S
2
F(x, y, z) = xy i + (y 2 + exz )j + sin(xy) k
and S is the surface (with positive orientation) of the region E bounded by
the parabolic cylinder z = 1 − x2 and the planes z = 0, y = 0 and y + z = 2.
Solution.
The divergence of F is
∂ ∂ 2 2 ∂
div F = (xy) + (y + exz ) + (sin(xy)) = 3y
∂x ∂y ∂z
To use the Divergence Theorem, we need to describe the solid E for the
evaluation of the triple integral. The easiest way is to regard E as a type 3
region (projected onto the xz-plane):
E = {(x, y, z) : −1 ≤ x ≤ 1, 0 ≤ z ≤ 1 − x2 , 0 ≤ y ≤ 2 − z}
Therefore, using the Divergence Theorem,
ZZ ZZZ
F · dS = div F dV
S Z Z ZE
= 3y dV
E
Z 1 Z 1−x2 Z 2−z
= 3 y dy dz dx
−1 0 0
Z 1 1−x2
(2 − z)2
Z
= 3 dz dx
−1 0 2
4
1 1−x2
(2 − z)3
ZZ Z
3
F · dS = − dx
S 2 −1 3 0
1 1
Z
(x2 + 1)3 − 8 dx
= −
2 −1
184
= .
35
3. Curl
Curl is another measure of rate of change of vector field. As it turns out, the
curl vector measures te=he microscopic circulation or curling effect of the
underlying vector field. Formally, it is defined as follows.
Definition 3 (Curl).
∂R ∂Q ∂P ∂R ∂Q ∂P
curl F = − i+ − j+ − k.
∂y ∂z ∂z ∂x ∂x ∂y
Using the del operator, we can write the curl vector as the cross product of
the del operator and the vector field:
i j k
∂ ∂ ∂
O×F = ∂x ∂y ∂z
P Q R
∂R ∂Q ∂P ∂R ∂Q ∂P
= − i+ − j+ − k
∂y ∂z ∂z ∂x ∂x ∂y
= curl F
5
Example 3. If F(x, y, z) = xzi + xyzj − y 2 k, find curl F.
Solution.
curl F = O × F
i j k
∂ ∂ ∂
= ∂x ∂y ∂z
xz xyz −y 2
∂ 2 ∂ ∂ 2 ∂
= (−y ) − (xyz) i − (−y ) − (xz) j
∂y ∂z ∂x ∂z
∂ ∂
+ (xyz) − (xz) k
∂x ∂y
4. Stokes’ Theorem
To state Stokes’ Theorem, we need to define the positive orientation for the
boundary curve (simple closed curve) of an open surface.
Let C be the boundary curve of an open surface S in space with unit normals
n.
6
Theorem 4 (Stoke’s Theorem). Let C be the boundary curve (simple closed
curve) of a surface S with unit normals n. Suppose that C is positively
oriented with respect to n.
Let F be a vector field whose components have continuous partial derivatives
on an open region in R3 that contains S. Then,
Z ZZ
F · dr = curl F · dS
C S
• S is flat.
7
• Green’s Theorem relates a double integral over a plane region D to a
line integral around its plane boundary curve.
Z
Example 4. Evaluate F · dr where
C
• F(x, y, z) = −y 2 i + xj + z 2 k
First, we compute
i j k
∂ ∂ ∂
curl F = ∂x ∂y ∂z = (1 + 2y)k
2 2
−y x z
8
• We choose the elliptical region S in the plane y + z = 2 that is bounded
by C.
So, using x and y as parameters for the surface S, we have the following
parametrisation for S:
Z ZZ
F · dr = curl F · dS
C Z ZS
= h0, 0, 1 + 2yi · (rx × ry ) dA
Z ZD
= (1 + 2y) dA
D
Z 2π Z 1
= (1 + 2r sin θ)r dr dθ
0 0
Z 2π 2 1
r r3
= + 2 sin θ dθ
0 2 3 0
1
= (2π) + 0 = π.
2
9
6. Example 2: Stokes’ Theorem
ZZ
Example 5. Use Stokes’ Theorem to compute curl F · dS where:
S
Solution.
10
ZZ Z
curl F · dS = F · dr
S
ZC2π
= F · r0 (t) dt
Z0 2π √ √
= − 3 cos t sin t + 3 sin t cos t dt
0
= 0.
11