You are on page 1of 50

Engineering Mathematics 2: MTH 204 (2015)

Section

: Vector Calculus

Lecturer

: Dr. S. Mushayabasa

Department : Mathematics, University of Zimbabwe

Course Outline
1. Vectors in Euclidean Space
Vector Algebra, Dot Product,
Cross Product, Lines and Planes,
Curvilinear Coordinates,
Vector-Valued Functions, Arc Length
2. Functions of Several Variables
Partial Derivatives
Tangent Plane to the Surface
Directional Derivatives and the Gradient
Gradient, Divergence, curl and Laplacian
Maxima and Minima
3. Multiple Integrals
Double integrals
Triple integrals
Change of Variables in Multiple Integrals
4. Line and Surface Integrals
Line Integrals
Greens Theorem
Surface Integrals
Divergences Theorem
Stokes Theorem

References
1. K.F. Riley, M.P. Hobson and S.J. Bence. Mathematical Methods for Physicists and
Engineers. Cambridge University Press 1998.
2. D.E. Bourne and P.C. Kendall. Vector Analysis and Cartesian Tensors. Chapman and
Hall 1992.
3. T.M. Apostol. Calculus. Wiley 1975.
4. H. Anton. Calculus. Wiley 1995.
5. M.L. Boas. Mathematical Methods in the Physical Sciences. Wiley 1983.
6. E. Kreyszig. Advanced Engineering Mathematics. Wiley 1999.
7. J.E. Marsden and A.J.Tromba. Vector Calculus. Freeman 1996.
8. M.R. Spiegel. Vector Analysis. McGraw Hill 1974.

Chapter 1

Vectors in Euclidean Space


1.1

Definitions

A vector may be defined in essentially three different ways: geometrically, analytically and
axiomatically.
Definition 1.1.1. Geometrically, a vector is defined as a collection of equivalent line segments.
Equivalence, in this case, means that the line segments have the same magnitude/length and
are parallel. Thus, a vector is characterised by its direction and magnitude/length.
Under this definition, the algebraic operations on vectors are introduced and studied geometrically, making maximum use of our geometric intuition.
Definition 1.1.2. In the analytic approach, a vector in three-dimensional space is defined as
an ordered triple of real numbers (A1 , A2 , A3 ) relative to a given coordinate system. The real
numbers A1 , A2 , A3 are called the components of the vector.
By far this approach is the most convenient for theoretical and computational considerations.
The axiomatic definition of a vector is left out as an exercise for you.
On the other hand, those quantities that are characterised by numerical magnitude alone,
and have nothing to do with direction, are called scalars or scalar quantities. In order to
B,
C,
,a
distinguish vectors from scalars, we will use letters with an over-bar A,
, b, c, , to
denote vectors. In these typed notes I will be using boldfaced letters A, B, C, , a, b, c, .
Definition 1.1.3. For any given (three-dimensional) vector A such that
A = (A1 , A2 , A3 ),
A1 is called the first component, A2 is called the second component, A3 is called the third
component of the vector A.
3

Definition 1.1.4. A vector whose components are all zero is called the zero vector and is
that is, 0 = (0, 0, 0).
denoted by 0 or 0,
Definition 1.1.5. The magnitude of a vector A = (A1 , A2 , A3), denoted by kAk, is the real
number defined by
kAk =

q
A21 + A22 + A23

(1.1)

Definition 1.1.6. A vector whose magnitude is unit (or 1) is called a unit vector.
is given by
For any vector A, the corresponding unit vector, denoted A,
= A .
A
kAk

(1.2)

From (1.2) we deduce that the vector A can be expressed as

A = kAkA.

1.2

(1.3)

Vector Algebra

Let us consider the Cartesian coordinate system in space, obtained by introducing three mutually perpendicular axes, labelled x, y, z, with the same unit of length along the three axes.
respectively.
The unit vectors in the positive x-, y- and z-directions are denoted by i, j and k,
Thus, a vector A can be expressed in the form

A = A1i + A2j + A3 k.

(1.4)

The numbers A1 , A2 and A3 are called the orthogonal projections or components of A


in the x-, y- and z-directions, respectively.
and B = B1i + B2j + B3 k
are said to be equal if
Two vectors A = A1i + A2j + A3 k
A1 = B1 ,

A 2 = B2 ,

A 3 = B3 .

Exercise: If kAk = kBk, is it necessarily true that A = B?

1.2.1

Addition of vectors

Vector addition proceeds component-wise, that is

A + B = (A1 + B1 )i + (A2 + B2 )j + (A3 + B3 )k.


It follows that addition of vectors satisfies the commutative law
A + B = B + A,
and the associative law
A + (B + C) = (A + B) + C,
for any vectors A, B, C.
4

1.2.2

Scalar multiplication of vectors

A = (A1 )i + (A2 )j + (A3 )k,

where is a scalar.

The following theorem summarizes the basic laws of vector algebra.


Theorem 1.2.1. For any vectors u, v, w and scalars k, l we have
(a) v + w = w + v commutative Law
(b) u + (v + w) = (u + v) + w Associative Law
(c) v + 0 = v = 0 + v Additive Identity
(d) v + (v) = 0 Additive inverse
(e) k(lv) = (kl)v Associative Law
(f ) k(v + w) = kv + kw Distributive Law
(g) (k + l)v = kv + lv Distributive Law
Remark 1.2.1. If k = 0, then kv = 0v = 0.
We can prove the basic laws of vector algebra in Theorem 1.2.1. Let u = (u1 , u2 , u3 ), v =
(v1 , v2 , v3 ), w = (w1 , w2 , w3 ) be vectors. Then
u + (v + w) = (u1 , u2 , u3 ) + [(v1 , v2 , v3 ) + (w1 , w2 , w3 )]
= (u1 , u2 , u3 ) + (v1 + w1 , v2 + w2 , v3 + w3 )
= [u1 + (v1 + w1 ), u2 + (v2 + w2 ), u3 + (v3 + w3 )]
= [(u1 + v1 ) + w1 , (u2 + v2 ) + w2 , (u3 + v3 ) + w3 ]
= (u1 + v1 , u2 + v2 , u3 + v3 ) + (w1 , w2 , w3 )
= (u + v) + w.
Exercise 1.2.1. Verify the basic laws of vector algebra.

1.2.3

Dot product

Definition 1.2.1. Let v = (v1 , v2 , v3 ) and w = (w1 , w2 , w3 ) be vectors. The dot product of v
and w, denoted by v w, is given by
v w = v 1 w1 + v 2 w2 + v 3 w3 .

(1.5)

The dot product can also be defined in a geometric way, which we will now develop as a
consequence of analytic definition
5

Definition 1.2.2. The angle between two nonzero vectors with the same initial point is the
smallest angle between them.
Theorem 1.2.2. Let v, w be nonzero vectors, and let be the angle between the. Then
cos =

vw
.
kvkkwk

(1.6)

Exercise 1.2.2. Prove theorem 1.2.2.


Example
Find the angle between the vectors v = (2, 1, 1) and w = (3, 4, 1).
Solution
Since v w = (2)(3) + (1)(4) + (1)(1) = 1, v| =

6 and |w| =

26, then

1
cos = 0.08, = 85.41o .
6 26

(1.7)

Corollary 1.2.1. Two nonzero vectors v and w are perpendicular if and only if v w = 0.
Exercise 1.2.3.
Are the vectors v = (1, 5, 2) and w = (3, 1, 1) orthogonal?
From the discussion on dot product we can deduce that an alternatively description of a vector
in space is obtained by specifying its magnitude and direction. The direction can be specified
by prescribing the three direction angles , and between the vector and the positive x, y
and z directions respectively. The magnitude is determined using the Pythagorean Theorem
as
q
kAk = A21 + A22 + A23 .

Exercise: Verify the following formulas, for a vector A = A1i + A2j + A3 k:


cos =

A1
,
kAk

cos =

A2
,
kAk

cos =

A3
,
kAk

and hence
cos2 + cos2 + cos2 = 1.
The following theorem summarizes the basic properties of the do product.
Theorem 1.2.3. For any vectors u, v, w and scalar k, we have
(a) v w = w v commutative Law
(b) kv w = v k(w) Associative Law
6

(c) v 0 = 0 = 0 v
(d) u (v + w) = u v + u w Distributive Law
(e) (u + v) w = u w + v w Distributive Law
(f ) |v w| kvk kwk Cauchy-Schwarz Inequality
Proof. The proofs of parts (a)-(e) are straightforward applications of the definition of the dot
product, and have been left as an exercise. We will prove part (f). We know that
cos =

vw
.
kvk kwk

v w = cos kvk kwk


Thus,
|v w| = | cos | kvk kwk
|v w| kvk kwk ,

since | cos | 1.

The dot product can be used to derive properties of the magnitude of vectors, the most
important of which is the Triangle Inequality, as given in the following theorem:
Theorem 1.2.4. For any vectors v, w, we have
(a) kvk2 = v v
(b) kv + wk kvk + kwk,

Triangle inequality

(c) kv wk kvk kwk,

Triangle inequality

Exercise 1.2.4.
Prove theorem 1.2.7.

1.2.4

Cross product

The cross product (also known as the vector product) of two vectors A, B is defined by

A B = (A2 B3 A3 B2 )i + (A3 B1 A1 B3 )j + (A1 B2 A2 B1 )k.

(1.8)

A more convenient formula for the vector product which makes use of the notion of a determinant of a matrix is as follows:




A B =

A1 A2
B1 B2



k

A3 .

B3

Exercises: By applying the definition of a vector product, verify the following


7

(1.9)

i i = 0,

(b) i j = k,

i = j,
(c) k

for unit vectors i, j, k.


Theorem 1.2.5. If the cross product v w of two nonzero vectors v and w is also a nonzero
vector, then it is perpendicular to both v and w.
Proof. We need to show that (v w) v = 0.
(v w) v = (v2 w3 v3 w2 , v3 w1 v1 w3 , v1 w2 v2 w1 ) (v1 , v2 , v3 )
= v 2 w3 v 1 v 3 w2 v 1 + v 3 w1 v 2 v 1 w3 v 2 + v 1 w2 v 3 v 2 w1 v 3
= 0.

Theorem 1.2.6. If is the angle between nonzero vectors v and w, then


kv wk = kvkkwk sin

Exercise 1.2.5.
Prove theorem 1.2.6.
Example 1.2.1. Show that the area A of a triangle with adjacent sides v and w is given by
1
A = kv wk.
2
Solution
Show that the area A of a parallelogram with adjacent sides v and w is given by
1
A = bh =
2
=

1
kvkkwk sin
2
1
kv wk.
2

Exercise 1.2.6.
1. Prove that kA Bk2 = kAk2 kBk2 (A B)2 .
2. Show that the area A of a parallelogram with adjacent sides v and w is given by
A = kv wk.
The following theorem summarizes the basic properties of the cross product and can easily be
verified.
8

Theorem 1.2.7. For any vectors u, v, w, and scalar k, we have


(a) v w = w v,

Anticommutative Law

(b) u (v + w) = u v + u w,
(c) (u + v) w = u w + v w,

Distributive Law
Distributive Law

(d) u (v w) = (u w)v (u v)w


(d) (kv) w = v (kw) = k(v w),

Associative Law

(e) v 0 = 0 = 0 v
(f ) v v = 0
(g) v w = 0, if and only if v parallel to w.

1.2.5

Equations of lines

Geometrically, the
The position vector of a point (x, y, z) is the vector r = xi + yj + z k.
position vector of a point is the directed line extending from the origin to the point.
The equation of a line is completely determined if we know any two points on the line or
if we know a point on the line and the orientation or direction of the line. The direction of
the line can be described by a vector to which the line is parallel. Suppose we wish to find
the equation of a line that passes through a given point (x0 , y0 , z0 ) and is parallel to a given
Let r denote the position vector of an arbitrary point
non-zero vector v = v1i + v2j + v3 k.
denotes the position vector of the point (x0 , y0 , z0 ),
(x, y, z) on the line. if r0 = x0i + y0j + z0 k
then the vector r r0 is parallel to the vector v. Hence there exists a scalar t such that
r r0 = tv. Thus the position vector r of an arbitrary point on the line is given by

t1 t t2 .

r = r0 + tv,

(1.10)

this is a vector equation of the line. The scalar t is called the parameter; and as the parameter
ranges from t1 to t2 , the vector r traces the line from one end to the other with t = 0
corresponding to the point (x0 , y0 , z0 ). Equating the corresponding components of the vectors
in (1.10) we obtain the parametric equations of the line:
x = x0 + tv1 ,

y = y0 + tv2 ,

z = z0 + tv3 .

(1.11)

If we eliminate the parameter t from the equations (1.11), we obtain the symmetric form of
the equation of the line:
x x0
y y0
z z0
=
=
.
v1
v2
v3
9

(1.12)

Example 1.2.2.
1. Find a vector equation of the line passing through the points (1, 2, 1) and (3, 1, 1).
2. Deduce the corresponding parametric equations and symmetric equations.
Solution 1.2.1.
1. We note that the line is parallel to the vector
v = (3 1)i + (1 (2))j = 2i + 3j.
then
Let r0 = i 2j + k,

r = r0 + tv = (1 + 2t)i + (3t 2)j + k.


2. By equating the corresponding components of the vector equation, we obtain the parametric equations
y = 2 + 3t,

x = 1 + 2t,

z = 1.

By eliminating the parameter t, we obtain the equation in symmetric form


y+2
x1
=
, z = 1.
2
3
Exercise 1.2.7.
1. Find the parametric equations of the line that passes through the point (1, 3, 2) and
and B = i + 2j.
is perpendicular to the vectors A = 3i + 4j + k
2. Derive the symmetric form (1.12) of the equation of the line from the equation
(r r0 ) v = 0.

(1.13)

3. Find the pint of intersection (if any) of the following line:


x+1
y2
z1
=
=
,
3
2
1

1.2.6

and, x + 3 =

y8
z+3
=
.
3
2

Distance between a point and a line

Let L be a line in vector form r + tv for < t < and Let P be a point not on L. The
distance d from P to L is the length of the line segment from P to L which is perpendicular
to L. Now, if we pick any point, on L, say Q, and we let w be the vector from Q to P, and if
is the angle between w and v, then, the distance between a point and a line d is given by
d = kwk sin . So since kv wk = kvkkwk sin and v 6= 0, thus
d=

kv wk
kvk

(1.14)

Exercise 1.2.8.
Find the distance d from point P = (1, 1, 1) to the line L = (3, 1, 4) + t(7, 3, 2).
10

1.2.7

Plane through a point, perpendicular to a vector

Let P be a plane, and suppose it contains a point P0 = (x0 , y0 , z0 ). Let n = (a, b, c) be a


nonzero vector which is perpendicular to the plane P. Such a vector is called a normal vector
(or just normal) to the plane. Now let (x, y, z) be any point in the plane P . Then the vector
r = (x x0 , y y y0 , z z0 ) lies on the plane P. Thus r n and hence n r = 0. And if
r = 0 then we still have n r = 0. Therefore
n r = (a, b, c) (x x0 , y y0 , z z0 ) = a(x x0 ) + b(y y0 ) + c(z z0 ) = 0.

(1.15)

The equation (1.15) is called the point-normal form of the plane P.


Exercise 1.2.9.
Find the equation of the plane P containing the point (3, 1, 3) and perpendicular to
the vector n = (2, 4, 8).

1.2.8

Curvilinear coordinates

The Cartesian coordinates of a point (x, y, z) are determined by following a family of straight
paths from the origin: first along the x axis, then parallel to the y axis, then parallel, to
the zaxis, so that
r = xi + yj + zk.
In curvilinear coordinate system, these paths can be curved. The two types of curvilinear coordinates which we will discuss are cylindrical and spherical coordinates. Instead of referencing
a point in terms of sides of a rectangular parallelepiped, as with Cartesian coordinates, we will
think of the point as lying on cylinder or sphere. Cylindrical coordinates are often used when
there is symmetry about origin.
Let P = (x, y, z) be a point in Cartesian coordinates, and let P0 = (x, y, 0) be the projection
of P upon the xy plane. Treating (x, y) as a point in 2 dimensional, let (r, ) be its polar
coordinates.
Thus, the Cylindrical coordinates (r, , z):

y = r sin ,
r = x2 + y 2 ,
x = r cos ,

= tan1

y
x

z = z,
(1.16)

where 0 , if, y 0 and < < 2


if y < 0.
For spherical coordinates, let be the length of the line segment from the origin to P , and let
be the angle between that line segment and the positive zaxis.
Thus, the spherical coordinates coordinates (, , ):

 
p
1 y
2 + y2 + z2,

x
=

sin

cos
,

=
x
y
=

sin

sin
,

=
tan
,

z
1
p
z = cos ,
= cos
,

x2 + y 2 + z 2

where 0 , if, y 0 and < < 2


if y < 0.
11

(1.17)

Remark 1.2.2. Both and are measured in radians. Note that r 0.


Example 1.2.3.
Convert the point (2, 2, 1) to
(a) cylindrical coordinates.
(b) spherical coordinates.
Solution 1.2.2.
(a)
r=

(2)2 + (2)2 = 2 2,

= tan1

2
2


=

5
,
4

since y = 2 < 0.



5
Therefore (r, , z) = 2 2, , 1
4
(b)
p

= (2)2 + (2)2 + 12 = 9 = 3, = cos1



Therefore (, , ) =

5
3, , 1.23
4

 
1
1.23 radians.
3

Exercise 1.2.10.
(a) Write the equation of the cylinder x2 + y 2 = 4 in cylindrical coordinates.
(b) Write the equation (x 2)2 + (y 1)2 + z 2 = 9 in spherical coordinates.

1.2.9

Vector-valued functions

In this section we will consider vector-valued functions of one real variable. The simplest of
this type of function is exemplified by the parametric representation of a straight line. For
example, the equation of a straight line passing through the point P (1, 2, 4) and parallel to
the direction (3, 4, 8) is
r(t) = r0 + sv
= (1, 2, 4) + s(3, 4, 8)
= (1 3s)i + (2 + 4s)j + (4 + 8s)k
Definition 1.2.3. A vector function or vector-valued function F(t) is a mathematical
rule that associates a vector F with each real number t in some set, usually an interval t1
t t2 or a collection of intervals (t1 t t2 ) (t3 t t4 ) (tn1 t tn ).

12

In the Cartesian coordinate system, the vector function can be expressed in component form,
say

F(t) = f1 (t)i + f2 (t)j + f3 (t)k

(1.18)

where f1 , f2 and f3 are scalar-valued functions of t and are called the components of F(t). For
example, the equation
t1 t t2 ,

r = r0 + tv,

of a line that passes through the point r0 and is parallel to the vector v is a vector function of
the parameter t.
Definition 1.2.4. Let f (t) be a vector-valued function, let a be a real number and let c be a
vector. Then limta f (t) = c, if limta kf (t) ck = 0. If f (t) = (f1 (t), f2 (t), f3 (t)), then


lim f (t) = lim f1 (t), lim f2 (t), lim f2 (t)
(1.19)
ta

ta

ta

ta

provided that all three limits on the right side exist.


The above definition shows that continuity and derivative of vector-valued functions can also
be defined in terms of its component functions. Thus,
f 0 (a) =

f (a + h) f (a)
= (f1 (a), f2 (a), f3 (a)),
h0
h
lim

(1.20)

if the component derivatives exists.


Example 1.2.4.


2
t 2t 3 3t + 1
Let f (t) = e ,
,
. Then
4t 1 t2 t


2t 3
3t2 + 1
t
lim f (t) =
lim e , lim
, lim
t
t
t 4t + 1 t t2 t


1
=
0, , 3 .
2
Definition 1.2.5. A scalar function is a real-valued function. Note that if u(t) is a scalar
function and f (t) is a vector-valued function, then their product, defined by (uf )(t) for all t is
a vector-valued function (since the product of scalar with a vector is a vector).
The following properties of derivatives of vector-valued functions are are summarized in the
following theorem.
Theorem 1.2.8. Let f (t) and g(t) be differentiable vector-valued functions, let u(t) be a differentiable scalar function, let k be a scalar, and let c be a constant vector.. Then
(a)

d
(c) = 0
dt
13

(b)
(c)

d
df
(kf ) = k
dt
dt
d
df
dg
(f g) =

dt
dt
dt

(d)

d
df
dg
(f g) =
g+f
dt
dt
dt

(e)

d
df
dg
(f g) =
g+f
dt
dt
dt

Example 1.2.5.
Let f (t) = (cos t, sin t, t). Determine the equation of the tangent L to the curve at f (2).
Solution 1.2.3.

L = f (2) + sf 0 (2) = (1, 0, 2) + s(0, 1, 1)


In parametric form this can be written as x = 1, y = s, z = 2 + s for < s < .

1.2.10

Velocity and Acceleration

Let r(t) represent the position vector of a particle P in space where t is the time. The
path described by P will be some curve. The velocity and acceleration of this particle are,
respectively given by:
v(t) =

dr
dt

a(t) =

dv
d2 r
= 2
dt
dt

Exercise 1.2.11.
(a) Determine the velocity and acceleration of a particle P moving along the helical path


4
r(t) = (a cos t, a sin t, bt) for,
t 0,

when t =

2
.

(b) Determine the distance travelled by the particle when t =

14

4
.

1.2.11

Arc Length

Let r(t) = (x(t), y(t), z(t)) be the position vector of an object moving in a three dimensional
space. Since kv(t)k is the speed of the object at time t, it seems natural to define the distance
s travelled by the object from time t = a to t = b as the definite integral, that is:
s
Z b  2  2  2
Z b
dx
dy
dz
kvkdt =
+
+
dt
s=
dt
dt
dt
a
a
Z bp
=
x0 (t)2 + y 0 (t)2 + z 0 (t)2 dt.
a

Example 1.2.6.
Find the length L of the helix f (t) = (cos t, sin t, t) from t = 0 to t = 2.
Solution 1.2.4.
Z 2 p
Z
0
2
0
2
0
2
L=
x (t) + y (t) + z (t) dt =
0

p
( sin t)2 + (cos t)2 + 12 dt

= 2 2.
In some situations the arc length parametrization can be useful, because the arc length arises
from the shape of the curve and does not depend on a particular coordinate system. The idea
is to replace the parameter t, for any given smooth parametrization f (t) defined on [a, b], by
the parameter s given by
t

Z
s = s(t) =

kf 0 (u)kdu

(1.21)

In terms of motion along a curve, s is the distance travelled along the curve after time t has
elapsed.
Example 1.2.7.
Parametrize the helix f (t) = (cos t, sin t, t) for t [0, 2], by arc length.
Solution 1.2.5.

kf (u)kdu =

s=
0

Z t

2du =

2t, for allt [0, 2].

s
So we can solve for t in terms of s : t = . Thus,
2



s
s
s

f (s) = cos
, sin
,
, for all s [0, 2 2].
2
2 2
Remark: Note that kf 0 (s)k = 1.
15

Theorem 1.2.9. Suppose that r = r(t), = (t) and z = z are cylindrical coordinates of a
curve f (t), for t [a, b]. Then the arc length L of the curve over [a, b] is
p
L = r0 (t)2 + r(t)2 0 (t)2 + z 0 (t)2 dt.

(1.22)

Exercise 1.2.12.
Prove theorem 1.2.9.
Example 1.2.8.
Find the arc length L of the curve whose cylindrical coordinates are (r, , z) = (et , t, et ) for
t [0, 1]
Solution 1.2.6.
Observe that r0 (t) = et , 0 (t) = 1 and z 0 (t) = et
L=

r0 (t)2 + r(t)2 0 (t)2 + z 0 (t)2 dt =

1p

e2t + e2t (1) + e2t dt

Z 1 t
3
e dt
0
=
3(e 1).
=

1.2.12

Velocity and Acceleration in Polar Coordinates

When a particle P (r, ) moves along a curve in the polar coordinate plane, we express its
position, velocity, and acceleration in terms of the moving unit vectors

ur = cos i + sin j, u = sin i + cos j.

(1.23)

~ , so r = rur . The vector u , orthogonal to


The vector ur points along the position vector OP
ur , points in the direction of increasing . (see Figure 1.1).

Figure 1.1: Position of a particle moving in space


16

It can easily be verified that


dur
d

= sin i + cos j = u ,

du
d

= cos i sin j = ur ,

With r = rur as a position function, we can express the velocity v = r as


v=

d
dr
dur
[rur ] = ur + r
= ru
r + rur
dt
dt
dt

Differentiating ur and u with respect to time t (apply the Chain Rule) to get
dur
dt

dur d
= u
d dt

du
dt

= ur

Therefore, the velocity is given by



v = ru
r + ru

Figure 1.2: Particle position, velocity and acceleration


Exercise 1.2.13.
(a) Show that the acceleration of a Particle P (r, ) is space is given by
.
a = (
r r2 )ur + (r + 2r )u
(b) A charged particle moves along the curve
r=

d
1
1
with
= 2.
1 + 2 cos
dt
r

By differentiating the equation r = rur . Show that


dr
1
= 2 sin ur + u .
dt
r

17

(1.24)

Chapter 2

Functions of Several Variables


2.1

Partial derivatives

If f is a function of two variables x and y, suppose we let only x vary while keeping y fixed,
say y = b, where b is a constant. Then we are really considering a function of a single variable
x, namely g(x) = f (x, b). If g has a derivative at a, then we call it the partial derivative of f
with respect to x at (a, b) and we denote it by fx (a, b). Thus,
fx (a, b) =

f
f (a + h, b) f (a, b)
(a, b) = lim
h0
x
h

(2.1)

Similarly, the partial derivative of f with respect to y at (a, b), denoted by fy (a, b), is obtained
by keeping x fixed (x = a) and finding the ordinary derivative at b. Thus,
fy (a, b) =

f
f (a, b + h) f (a, b)
(a, b) = lim
h0
y
h

(2.2)

Example 2.1.1.
If f (x, y) = x3 + x2 y 3 2y 2 , find (a) fx (2, 1) and (b) fy (2, 1).
Solution 2.1.1.
(a) fx (x, y) = 3x2 + 2xy 3 fx (2, 1) = 3(2)2 + 2(2)(1)3 = 16.
(b) fy (x, y) = 3x2 4y 2 fy (2, 1) = 3(2)2 (1)2 4(1) = 8.

2.1.1

Higher order derivatives

If f is function of two variables, then its partial derivatives fx and fy are also functions of two
variables, so we can consider their partial derivatives (fx )x , (fx )y , (fy )x and (fy )y , which are
called the second partial derivatives of f. If z = f (x, y), we have
 
f
2f
2z
(fx )x = fxx =
=
=
x x
x2
x2

18

(fx )y = fxy =
(fy )x = fyx

f
x


=

2f
2z
=
xy
xy


f
2f
2z
=
=
y
yx
yx
 
2f
2z
f
=
= 2.
=
2
y y
y
y

=
x

(fy )y = fyy




Example 2.1.2. Find the second partial derivatives of


f (x, y) = x3 + x2 y 3 2y 2 .
Solution 2.1.2.
fx = 3x2 + 2xy 3 fxx = 6x + 2y 3
fy = 3x2 y 2 4y fyy = 6x2 y 4
fxy = 6xy 2 = fyx

(2.3)

Exercise 2.1.1.
Show that the function u(x, y) = ex sin y is a solution of the Laplaces equation.
2u 2u
+ 2 = 0.
x2
y

2.1.2

Chain rule

Definition 2.1.1. Suppose that z = f (x, y) is a differentiable function of x and y, where


x = g(t) and y = h(t) are both differentiable funcions of t. Then z is a differentiable function
of t. Then z is a differentiable function of t and
f x f y
dz
=
+
.
dt
x t
y t
Example 2.1.3. If z = x2 y + 3xy 4 , where x = sin t and y = cos t. Find

(2.4)
z
t

Solution 2.1.3.
z
t

z x z y
+
= (2xy + 3y 4 )(2 cos 2t) + (x2 + 12xy 3 )( sin t).
x t
y t

Exercise 2.1.2.
(a) Using the chain rule, determine
(i)

w
,
u

(ii)

w
v

given that w = x2 y + y 2 x and x = u cos v and y = u sin v.


(b) If w = f (u) and u = x + y where and are constants, show that

w
w
=
.
y
x
19

(c) The pressure P , volume V and temperature T of a mole of an ideal gas are related by
the equation P V = 8.31T. Find the rate at which the pressure is changing when the
temperature is 300 kelvins and increasing at a rate of 0.1 kelvins per second and the
volume is 100 litres and increasing at a rate of 0.2 litres per second.

2.2

Tangent Planes

Definition 2.2.1. Suppose f has continuous partial derivatives. An equation of the tangent
plane to the surface z = f (x, y) at the point P (x0 , y0 , z0 ) is
z z0 = fx (x0 , y0 )(x x0 ) + fy (x0 , y0 )(y y0 ).

(2.5)

Example 2.2.1.
Find the tangent plane to the elliptic paraboloid z = 2x2 + y 2 at the point (1, 1, 3).
Solution 2.2.1.
Let f (x, y) = 2x2 + y 2 . Then fx (x, y) = 4x fx (1, 1) = 4 and fy (x, y) = 2y fy (1, 1) = 2.
Thus, the equation of the tangent plane at (1, 1) is
z 3 = 4(x 1) + 2(y 1)
z = 4x + 2y 3.
Exercise 2.2.1.
Find the equation of the tangent plane to the surface z = x2 + y 2 at the point (1, 2, 5).
Remark: If the surface S is defined implicitly by an equation of the form f (x, y, z) = 0 then
the tangent plane to the surface at a point (a, b, c) is given by
fx (a, b, c)(x a) + fy (a, b, c)(y b) + fz (a, b, c)(z c) = 0

(2.6)

Exercise 2.2.2.
Find the equation of the tangent to the surface x2 + y 2 + z 2 = 9 at the point (2, 2, 1).

2.2.1

Tangent planes to parametric surfaces

Here we use vector functions to discuss more general surfaces, called parametric surfaces. In
much same way that we described a space curve by a vector function r(t) of a single parameter
t, we can describe a surface by a vector function r(u, v) of two parameters u and v. We suppose
that
r(u, v) = x(u, v)i + y(u, v)j + z(u, v)k
20

(2.7)

is a vector-valued function defined in the uv plane. So x, y and z, the component functions


of r, are functions of two variables u and v such that
x = x(u, v),

y = y(u, v),

z = z(u, v).

(2.8)

Example 2.2.2.
Find the parametric representation for the surface
r(u, v) = 2 cos ui + vj + 2 sin uk.
Solution 2.2.2.
The parametric representation for this surface are
x = 2 cos u,

y = v,

z = 2 sin u

Example 2.2.3.
Find a parametric representation for the cylinder
x2 + y 2 = 4,

0 z 1.

Solution 2.2.3.
The cylinder has a simple representation r = 2 in cylindrical coordinates, so we choose as
parameters and z in cylindirical coordinates. Thus, the parametric equations of the cylinder
are
x = 2 cos ,

y = 2 sin ,

z = z.

Exercise 2.2.3.
Find a parametric representation of the sphere
x2 + y 2 + z 2 = a2 .
We now find the tangent plane to a parametric surface S traced out by a vector function
r(u, v) = x(u, v)i + y(u, v)j + z(u, v)k

(2.9)

at a point P0 with position vector r(u0 , v0 ). If we keep u constant by putting u = u0 , then


r(u0 , v) becomes a vector function of the single parameter v and as we have discussed earlier
we can make use of partial derivatives to obtain the tangent vector, that is
x
y
z
(u0 , v0 )i +
(u0 , v0 )j +
(u0 , v0 )k
v
v
v
Similarly, if we keep v constant by putting v = v0 we get
rv =

(2.10)

x
y
z
(u0 , v0 )i +
(u0 , v0 )j +
(u0 , v0 )k
(2.11)
u
u
u
If ru rv is not 0, then the surface S is called smooth (that is it has no corners). For smooth
ru =

surface, the tangent plane is the plane that contains the tangent vectors ru and rv and the
vector ru rv is a normal vector to the tangent plane.
21

Example 2.2.4.
Find the tangent plane to the surface with parametric equations
x = u2 , y = v 2 , z = u + 2v
at the point (1, 1, 3).
Solution 2.2.4.

ru =

x
y
z
i+
j+
k = 2ui + k
u
u
u

rv =

y
z
x
i+
j+
k = 2uj + 2k
v
vv
v





j k
i


ru rv = 2u 0 1 = 2vi 4uj + 4uvk


0 2v 2
Notice that the point (1, 1, 3) corresponds to the parameter values u = 1, and v = 1 so the
normal vector there is
2i 4j + 4k
Therefore, an equation of the tangent plane at (1, 1, 1) is
2(x 1) 4(y 1) + 4(z 3) = 0 x + 2y 2z + 3 = 0

2.3

Directional derivatives and the gradient vector

The directional derivative of a function provides the rate of change of that function (with
respect to distance) any specified directionnot just the direction of the axes as generated by
the partial derivatives.
Definition 2.3.1. If f is a differentiable function of x and y, then f has a directional derivative
in the direction of any unit vector u = (a, b, c) and
Du f (x, y, z) = fx (x, y, z)a + fy (x, y, z)b + fz (x, y, z)c.
From (2.12) we can write
Du = fx (x, y, z)a + fy (x, y, z)b + fz (x, y, z)c
= (fx (x, y, z), fy (x, y, z)), fz (x, y, z) (a, b, c)
= (fx (x, y, z), fy (x, y, z), fz (x, y, z)) u
= f (x, y, z) u
where f (x, y) =

f
x i

f
y j

f
z k.

22

(2.12)

Definition 2.3.2. If f is a function of two variable x and y, then the gradient of f is the
vector function f defined by
f (x, y, z) =

f
f
f
i+
j+
k.
x
y
z

Thus,
Du = f (x, y, z) u.
Example 2.3.1.
If f (x, y, z) = x sin yz
(a) find the gradient of f and
(b) find the direction derivative of f at (1, 3, 0) in the direction of v = i + 2j k.
Solution 2.3.1.
(a) The gradient of f is
f (x, y, z) = (fx (x, y, z), fy (x, y, z), fz (x.y.z)) = (sin yz, xz cos yz, xy cos yz)
(b) At (1, 3, 0) we have f (1, 3, 0) = (0, 0, 3). The unit vector in the direction of v = i + 2j k
is
u=

v
i + 2j k

=
.
kvk
6

Therefore, the directional derivatives is



Du f (1, 3, 0) = f (1, 3, 0) u = 3k

i + 2j k

3
.
2

Exercise 2.3.1.
If f (x, y, z) = x2 + y 2 + z 2 , determine the directional of f in the direction of the vector
v = i j + 2k at the point (2, 1, 3).
Theorem 2.3.1. Let f (x, y, z) be a continuously differentiable real-valued function, with f 6=
0, Then
(a) The value of f (x, y) increases the fastest in the direction of f .
(b) The value of f (x, y) decreases the fastest in the direction of f.
Example 2.3.2.

23

Suppose that the temperature at a point (x, y, z) in space is given by


T (x, y, z) =

80
1 + x2 + 2y 2 + 3z 2

where T is measured in degrees Celsius and x, y, z in meters. In what direction does the
temperature increase fastest at the point (1, 1, 2) ? What is the maximum rate of increase?
Solution 2.3.2.
The gradient of T is
T

T
T
T
i+
j+
k
x
y
z

160
(xi 2yj 3zk)
(1 + x2 + 2y 2 + 3z 2 )2

At point (1, 1, 2) the gradient vector is


T (1, 1, 2) =

5
160
(i 2j + 6k) = (i 2j + 6k)
256
8

The maximum rate of increase is

5
5 41
|T (1, 1, 2)| = | i 2j + 6k| =
.
8
8

2.4

Vector Fields

Definition 2.4.1. A vector field F is a rule associating with each point (x, y, z) in a region
(domain) D.

2.4.1

Examples of vector fields

1. V(x, y, z) = x2 yi 2yz 3j + x2 z k.
2. f , where f is a scalar field.
3. The instantaneous velocity of a fluid at every point of a region in a river.
Any vector field may be written in terms of its components:

F(x, y, z) = F1 (x, y, z)i + F2 (x, y, z)j + F3 (x, y, z)k.

(2.13)

There are two basic concepts that arise in connection with the spatial rate of change of a vector
field F, namely the divergence of F and the curl of F.
Definition 2.4.2. The divergence of a vector field

F = F1i + F2j + F3 k
is a scalar field, denoted div F, defined by
! 
!



.
div F =
i+
j+
k F1i + F2j + F3 k
x
y
z
24

(2.14)

We observe that in terms of the del operator


divF = F.
Thus,
F1 F2 F3
+
+
.
x
y
z
Note that F 6= F . In fact the operator F is meaningless alone.
divF = F =

Example 2.4.1.
Find the divergence of the vector field
F = xey i + exy j + sin (yz)k.
Solution 2.4.1.




+j
+k
(xey i + exy j + sin (yz)k)
div F = F =
i
x
x
x
= ey + xexy + y cos (yz).
Definition 2.4.3. A vector field whose divergence is zero in a certain region is said to be
solenoidal or non-divergent in that region.
Remark: Note that, the divergence of a vector field is a scalar field that tells us, at each point
in the region of definition, the extend to which the field diverges or explodes from that point.
Definition 2.4.4. The curl of a vector field

F = F1i + F2j + F3 k,
denoted curl F, is the vector field defined by
! 
!


i+
j+
k F1 i + F2 j + F3 k
curl F =
x
y
z
Again we observe that in terms of the del operator
curl F = F.
Hence,



j

k
i


curl F = F = x
y
z


F1 F2 F3
!
F3 F2

i+
=
y
z
25

!
F1 F3

j+
z
x

!
F2 F1

k
x
y

(2.15)

Example 2.4.2. Find curl F, if

F = xyzi + x2 y 2 z 2i + y 2 z 3 k.
Solution 2.4.2.


j

k
i

curl F = x
y
z

xyz x2 y 2 z 2 y 2 z 3

= (2yz 3 2x2 y 2 z)i + zyj + (2xy 2 z 2 xz)k.




Definition 2.4.5. A vector field with the property that its curl is identically zero is said to be
conservative.
If a vector field F is conservative in a domain D, then there can be found a scalar field
defined in D such that
F = ,
and is called a scalar potential function of F.
is conservative, and hence find its
Exercise 2.4.1. Show that F = 2xyi + (x2 + 1)j + 6z 2 k
corresponding scalar potential .
The curl of a vector field is a vector field that gives us, at each point, an indication of how the
field rotates, or swirls, from that point.

2.4.2

The Laplacian

Definition 2.4.6. The Laplacian of a scalar field f , denoted by 2 f , is defined by


2 f =

2f
2f
2f
+
+
.
x2
y 2
z 2

(2.16)

The Laplacian of f is also defined as the divergence of the gradient of f :


2 f = div (grad f ) = (f ) = 2 f.
If f is a scalar field, then 2 f (x, y, z) is a number that tells us something about the behaviour
of the scalar field in the vicinity of (x, y, z).
Definition 2.4.7. If is a scalar field such that
2 = 0,

(2.17)

then is said to be harmonic.


The partial differential equation (3.11) is called Laplace equation. It means that the average
value of f in any neighborhood of (x, y, z) will be exactly equal to the value of f .
Exercise 2.4.2.
26

Let r(x, y, z) = xi + yj + zk. Find


(a) the gradient of krk2 .
(b) the divergence of r
(c) the curl of r
(d) the Laplacian of krk2

2.5

Maxima and Minima

The gradient can be used to find extreme points of real-valued functions of several variables,
that is, points where the function has a local maximum or local minimum.
Definition 2.5.1. A function of two variables has a local maximum at (a, b) if f (x, y) f (a, b)
when (x, y) is near (a, b). [This means that f (x, y) f (a, b) for all points (x, y) is some disk
center (a, b).] The number f (a, b) is called a local maximum value. If f (x, y) f (a, b) when
(x, y) is near (a, b), then f (a, b) is a local minimum value.
A point (a, b) is called a critical point (or stationary point) of f if fx (a, b) = 0 and fy (a, b) = 0
or if one of these partial derivatives does not exists.
Example 2.5.1.
Find the critical points of f (x, y) = x2 + y 2 2x 6y + 14.
Solution 2.5.1.
We have
fx (x, y) = 2x 2,

fy (x, y) = 2y 6

These partial derivatives are equal to 0 when x = 1 and y = 3, so the only critical point is
(1, 3).
Definition 2.5.2. Suppose the second partial derivatives of f are continuous on a disk with
center (a, b), and suppose that fx (a, b) = 0 and fy (a, b) = 0 [that is, (a, b) is a critical point of
f ]. Let

f
xx fxy
D = D(a, b) =
fyx fyy




= fxx (a, b)fyy (a, b) [fxy (a, b)]2

(a) If D > 0 and fxx (a, b) > 0, then f (a, b) is a local minimum.
(b) If D > 0 and fxx (a, b) < 0, then f (a, b) is a local maximum.

27

(c) If D < 0, then f has neither a local minimum nor a local maximum at (a, b), but a saddle
point.
(d) if D = 0, then the test fails.
Example 2.5.2.
Find all local maxima and minima of f (x, y) = x2 + xy + y 2 3x.
Solution 2.5.2.

fx = 2x + y 3,

fy = x + 2y,

then the critical points (x, y) are the common solutions of the equations
2x + y = 3
x + 2y = 0
which has the unique solution (x, y) = (2, 1). So (2, 1) is the only critical point. Now we
need to determine the nature of this critical point.
fxx = 2,

fyy = 2,

fxy = 1

Therefore D = fxx (2, 1)fy y(2, 1) [fxy (2, 1)]2 = (2)(2) (1)2 = 3 > 0. Since fxx (2, 1) >
0 it follows that (2, 1) is a local minimum.
Exercise 2.5.1.
Find all local maxima and minima of f (x, y) = xy x3 y 2 .

28

Chapter 3

Multiple integrals
3.1

Double Integrals

Suppose that f is a function of two variables that is continuous on the rectangle R = [a, b][c, d],
Rd
that is R = {(x, y) : a x b, c y d}. We use the notation a f (x, y)dy to mean that x
is held fixed and f (x, y) is integrated with respect to y from y = c to y = d. This procedure is
Rd
called partial integration with respect to y. Now c f (x, y)dy is a number that depends of the
value of x, so it defines a function of x :
d

Z
A(x) =

f (x, y)dy
c

If we now integrate the function A with respect to x from x = a to x = b, we get



Z b
Z b Z d
A(x)dx =
f (x, y)dy dx
a

(3.1)

The integral on the right side of equation (3.1) is called an iterated integral.
Example 3.1.1.
Evaluate
2Z 3

2 Z 3

x ydxdy =
1


Z
x ydx dy =
2

2 3
x

x=3
y

dy =
x=0

27
.
2

Theorem 3.1.1. If f is continuous on the rectangle R = {(x, y) : a x b, c y d}, then


Z bZ

Z Z
f (x, y)dA =
R

dZ b

f (x, y)dydx =
a

f (x, y)dxdy
c

(3.2)

More generally, this is true if we assume that f is bounded on R, f is discontinuous only on a


finite number of smooth curves, and the iterated integrals exists.

29

3.1.1

Double integrals over general regions

In the previous section, we learned how to integrate functions of two variables over rectangular
regions. In this section, we will consider integration over more general plane regions.
Definition 3.1.1.
There are two types of plane regions.
A region D in the xy plane is said to be of type I if it lies between the graphs of two
continuous functions of x. That is,
D = {(x, y)|a x b, g1 (x) y g2 (x)}
where g1 and g2 are continuous on [a; b].
A region D in the xy plane is said to be of type II if it lies between the graphs of two
continuous functions of y. That is,
D = {(x, y)|c y d, h1 (y) x h2 (y)}
where h1 and h2 are continuous on [c; d].
Theorem 3.1.2. Suppose that f is a continuous function over some region D.
1. If D is a type I region, then
Z Z
Z bZ
f (x, y)dA =
D

2. If D is a type II region, then


Z Z
Z
f (x, y)dA =
D

g2 (x)

f (x, y)dydx

g1 (x)

d Z h2 (y)

f (x, y)dxdy

h1 (y)

Example 3.1.2.
Z Z
Evaluate
(x + 2y)dA, where D is the region bounded by the parabolas y = 2x2 and
y = 1 + x2 .

Solution 3.1.1.
The parabolas intersect when 2x2 = 1 + x2 , that is x2 = 1 x = 1. Thus,
D = {(x, y)| 1 x 1, 2x2 y 1 + x2 }
Clearly, this is a type I region, thus
Z Z

1+x2

(x + 2y)dA =
D

(x + 2y)dydx
1

2x2

30

=
1

[xy + y 2 ]1+x
dx
2x2

(3x4 x3 + 2x2 + x + 1)dx


=

x5 x4
x3 x2
3
+2 +
+x
5
4
3
2

1
1

32
.
15

=
Example 3.1.3.

Find the volume of the solid that lies under the elliptic paraboloid z = 3x2 + y 2 and above the
region D bounded by y = x and x = y 2 y.
Solution 3.1.2.
To find the points of intersection we consider y 2 y = y y = 0 and y = 2. Thus the region
D is type II which can be described as
D = {(x, y)|0 y 2, y 2 y x y}
Thus,
Z Z

(3x2 + xy 2 )dxdy =

2Z y

dxdy

y 2 y

0
2

Z
=
0

(x3 + xy 2 )|yy2 y dy

(y 6 + y 4 2y 3 )dy

=
0


=
=

1 7 1 5 1 4
y + y y
7
5
2

2
0

794
.
35

Example 3.1.4.
Evaluate
Z
0

1Z 1

sin(y 2 )dydx

If we try to evaluate the integral in its present form, then we must first evaluate

sin(y 2 )dy.

But its impossible to do so in finite terms. So we must change the order of integration.
The region of integration can be expressed as
D = {(x, y)|0 x 1, x y 1}
31

By sketching this region, we find that an alternative representation of D is


n
o
D = (x, y)|0 y 1, 0 x y
Thus, the double integral can be evaluated as follows
Z 1Z y
Z 1Z 1
2
sin(y 2 )dxdy
sin(y )dydx =
0
0
0
x
Z 1

x=y
=
x sin(y 2 ) x=0 dy
Z0 1
y sin(y 2 )dy
=
0

1
1
2
= cos(y )
2
0
1
(1 cos 1).
=
2
Exercise 3.1.1.
(a) Find the volume of the solid that lies under the paraboloid z = x2 + y 2 and above the
region D in the xy plane bounded by the line y = 2x and the parabola y = x2 .
Z Z

(b) Evaluate
(x + y)dA, D is bounded by y = x and y = x2 .
D

1Z

ex dxdy.

(c) Evaluate
3y

Properties of double integrals


Suppose that f and g are integrable functions over some region D. Then,
1.
Z Z

Z Z

Z Z

[f (x, y) g(x, y)]dA =

f (x, y)dA

g(x, y)dA

2.
Z Z

Z Z
cf (x, y)dA = c
D

f (x, y)dA
D

3. If f (x, y) g(x, y) for all (x, y) D, then


Z Z
Z Z
f (x, y)dA
g(x, y)dA
D

4. If D = D1 D2 where D1 and D2 do not overlap, then


Z Z
Z Z
Z Z
f (x, y)dA =
f (x, y)dA +
D

D1

f (x, y)dA.
D2

32

3.2

Double Integrals in Polar Coordinates

Suppose we want to evaluate the double integral


x2 +y 2

RR
D

f (x, y)dA, where D is the unit disk

1. The description of D in terms of rectangular coordinates is somewhat complicated:


p
p
D = {(x, y)| 1 x 1, 1 x2 y 1 x2 }

However, D is easily described using polar coordinates


D = {(r, )|0 r 1, 0 2}
This double integral can be easily evaluated using polar coordinates
Theorem 3.2.1.
If f is continuous on the polar region
D = {(r, )| , h1 () r h2 ()}
then
Z Z

h2 ()

f (x, y)dA =
D

f (r cos , r sin )rdrd

h1 ()

Note: Be careful not to forget the additional factor r in the integrand! The additional factor
comes from the fact that the area of an infinitesimal polar rectangle is dA = rdrd.
Example 3.2.1.
Z Z
Evaluate
(3x + 4y 2 )dA, where D is the region in the upper half-plane bounded by circles
D

x2 + y 2 = 1 and x2 + y 2 = 4.
Solution 3.2.1.
We have D = {(r, )|1 r 2, 0 } so that
Z Z

Z1

1
3

(3r cos + 4r2 sin2 )rdrd

(3x + 4y )dA =
D

Z0
=
Z0

(3r2 cos + 4r3 sin2 )drd

[r cos + r2 sin2 ]r=2


r=1 d

=
Z0

[7 cos + 15 sin2 )d


15
=
7 cos + (1 cos2) d
2
0

15
15
= 7 sin +
sin 2
2
4
0
15
=
.
2
=

Z0

33

Example 3.2.2.
Find the volume of the solid bounded by the paraboloid z = 16 3x2 3y 2 and the plane
z = 4.
Solution 3.2.2.
The intersection of these surfaces is given by
16 3x2 3y 2 = 4 x2 + y 2 = 4.
In polar coordinates we D = {(r, )|0 r 2, 0 2}. Thus,
Z Z

(12 3r2 )rdrd

(16 3x 3y 4)dA =

V =

Z
= 2

(12r 3r3 )dr

3
= 2 6r r4
4
2

2
0

= 24.
Exercise 3.2.1.
Z Z
(a) Evaluate
xydA, where D is the portion of the annular region 4 x2 + y 2 25 that
D

lies in first quadrant.


(b) Find the volume of the solid bounded by the plane z = 0 and the paraboloid z = 1x2 y 2 .
Z Z
p
2
2
(c) Evaluate
ex y dA, where D is the region bounded by the semicircle x = 4 y 2
D

and the y axis.

3.3

Triple integrals

Theorem 3.3.1. If f is continuous on the rectangular box B = [a, b] [c, d] [r, s], then
Z Z Z

sZ dZ b

f (x, y, z)dV =
B

f (x, y, z)dxdydz
r

Example 3.3.1.
Evaluate
Z
0

3Z 2Z 1
0

x=1 !
1 2
(xy + z)dxdydz =
x y + xz
dydz
2
0
0
x=0

Z 3Z 2
1
=
y + z dydz
2
0
0
Z

34

3Z 2

(3.3)

=
0

1 2
y + yz
4

y=2 !
dz
y=0

Z
=

(1 + 2z)dz.
0

= 12
Definition: There are three types of solid regions
A solid region E is said to be of type I if
E = {(x, y, z)|(x, y) D, g1 (x, y) z g2 (x, y)}
where D is the projection of E onto the xy-plane.
A solid region E is said to be of type II if
E = {(x, y, z)|(y, z) D, g1 (y, z) z g2 (y, z)}
where D is the projection of E onto the yz-plane.
A solid region E is said to be of type III if
E = {(x, y, z)|(y, z) D, g1 (x, z) z g2 (x, z)}
where D is the projection of E onto the xz-plane.
Theorem: Suppose that f is a continuous function over some region E.
1. If E is a type I region, then
Z Z "Z

Z Z Z

g2 (x,y)

f (x, y, z)dV =

#
f (x, y, z) dA

(3.4)

g1 (x,y)

2. If E is a type II region, then


Z Z "Z

Z Z Z

g2 (y,z)

f (x, y, z)dV =

#
f (x, y, z) dA

(3.5)

g1 (y,z)

3. If E is a type III region, then


Z Z "Z

Z Z Z

g2 (x,z)

f (x, y, z)dV =

#
f (x, y, z) dA

(3.6)

g1 (x,z)

In particular, if E is a type I region and its projection D onto the xy-plane is a type I region,
then
Z bZ

Z Z Z

h2 (x) Z g2 (x,y)

f (x, y, z)dV =
E

f (x, yz)dzdydx
a

h( x)

35

g1 (x,y)

(3.7)

Example 3.3.2.
Z Z Z
zdV , where E is the solid region bounded by the planes x = 0, y = 0, z = 0
Evaluate
E

and x + y + z = 1.
Solution 3.3.1.
From the boundaries we have a = 0, b = 1, h2 (x) = 1 x, h1 (x) = 0, g2 (x, y) = 1 x y and
g2 (x, y) = 0 so that
E = {(x, y, z)|0 x 1, 0 y 1 x, 0 z 1 x y}

Z Z Z

1 Z 1x Z 1xy

zdV =
E

zdzdydx =
0

0
1 Z 1x

1
2

1
6

=
=


1
1
(1 x)4

6
4
0

1
.
24

dydx

z=0

1
2

3.3.1

1 Z 1x  2 z=1xy
z

(1 x y)2 dydx

0
1

(1 x y)3

y=1x
dx
y=0

(1 x)3 dx

Triple integrals in Cylindrical and Spherical Coordinates

Some regions in space are easier to express in terms of cylindrical or spherical coordinates.
Triple integrals over these regions are easier to evaluate by converting to cylindrical or spherical
coordinates.
Theorem: (Triple Integrals in Cylindrical Coordinates)
Suppose that f is continuous function on a type I region
E = {(x, y, z)|(x, y) D, h1 (x, y) z h2 (x, y)},
where the projection D onto the xy- plane is given in polar coordinates
D = {(r, )| , g1 () r g2 ()}.
Then
Z Z Z

g2 () Z h2 (r cos ,r sin )

f (x, y, z)dV =
E

f (r cos , r sin , z)rdzdrd.

g1 ()

h1 (r cos ,r sin )

36

Example 3.3.3.
Z Z Z
ydV, where E is the solid that lies between the cylinder x2 + y 2 = 1 and
Evaluate
E

x2 + y 2 = 4, above the xy plane, and below the plane z = x.


Solution 3.3.2.
Using cylindrical coordinates, the region of integration is
E = {(r, , z)|0 2, 1 r 2, 0 z r cos },
Then
2

Z Z Z

2 Z r cos

(r sin )rdzdrd

=
0

1
2

0
2

r3 sin cos drd

=
0

1
4

15
4

r4 sin cos |21 d

sin cos d
0

15
sin2 |2
0 =0
8

Example 3.3.4.
Z Z Z p
y 2 + z 2 dV , where E is the region bounded by the paraboloid x = y 2 + z 2
Evaluate
E

and the plane x = 9.


Solution 3.3.3.
The solid region E and its projection D onto the yz plane. The region E can be expressed
as
E = {(x, y, z)|(y, z) D, y 2 + z 2 x 9}
where D is the disk y 2 + z 2 9. In polar coordinates
D = {(r, )|0 2, 0 r 3}

Z Z Z p

y 2 + z 2 dV

Z Z Z

Z Z

y 2 +z 2

(9 y 2 z 2 )

=
D

37


p
y 2 + z 2 dx dA
p
y 2 + z 2 dA

r2 (9 r2 )drd

=
0

0
3

(9r2 r4 )dr

= 2
0

1
= 2 9r r4
5
=

3
0

1944
.
5

Exercise 3.3.1.
Evaluate
Z

4x2

4x2

(x2 + y 2 )dzdydx.
x2 +y 2

Theorem: (Triple Integrals in Spherical Coordinates)


Suppose that f is continuous function on the region
E = {(, , )|a b, , }.
Then
Z Z Z

f (x, y, z)dV =
E

f ( sin cos , sin sin , cos )2 sin ddd.

Example 3.3.5.
Z Z Z
3
2
2
2
Evaluate
e(x +y +z ) 2 dV , where E is the unit ball.
E

Solution 3.3.4.
Here, we note that E = {(x, y, z)|x2 + y 2 + z 2 1}. Therefore, the boundary of E is a sphere
whose coordinates are
E{(, , )|0 1, 0 2, 0 }
Thus
Z Z Z

(x2 +y 2 +z 2 ) 2

dV

=
0

4
(e 1).
3

1 3
e
3

2 e d

= [ cos ]0 (2)

38

2 sin ddd

sin d
0

2) 3
2

e(

1
0

Exercise 3.3.2.
Z Z Z
(x2 + y 2 + z 2 )dV , where E is the portion of the unit ball in the first
1. Evaluate
E

octant.
Z

2. Evaluate
3

9x2

9x2

Z 9x2 y2 p
z x2 + y 2 + z 2 dzdydx by converting to spherical co0

ordinates.

3.3.2

Change of variable in Multiple Integrals

A change of variables can be useful when evaluating double or triple integrals. For instance,
changing from Cartesian coordinates to polar coordinates is often useful. A change of variables
can be described by a transformation.
Definition: A transformation T from the uv- plane to the xy- plane is a function which maps
points (u, v) to points (x, y) according to the rule:
T (u, v) = (x(u, v), y(u, v)) = (x, y).
A transformation T maps a region S in the uv plane to a region R in the xy-plane called the
image of S. That is,
R = {T (u, v)|(u, v) S}.
We will usually work with C 1 transformations which are transformations whose component
functions x(u, v) and y(u, v) have continuous first-order partial derivatives.
Example 3.3.6.
Find the image of the set S = {(u, v)|0 u 2, 0 v 1} under the transformation T
defined by the equations x = u 2v and y = 2u v.
Solution
The rectangular region S = [0, 2] [0, 1] in the uv-plane is mapped to the parallelogram in the
xy-plane with vertices (0, 0), (2, 4), (2, 1) and (0, 3).
Definition: The Jacobian of the transformation T defined by x = x(u, v) and y = y(u, v) is


x
x
(x, y) u
x y x y
v
= y y

.
=
(u, v) u v u v
v u
Example 3.3.7.
Find the Jacobian of the transformation defined by x = r cos and y = r sin .
Solution The Jacobian of the transformation is


(x, y) cos r sin
=
= r(cos2 + sin2 ) = r
sin r cos
(r, )
39

Theorem 3.3.2.
Change of variables in a Double Integral: Suppose that T is a one-to-one C 1 transformation
that maps a region S in the uv-plane to a region R in the xy-plane and whose Jacobian is
nonzero. Suppose that f is continuous on R and that R and S are type I and type II regions.
Then
Z Z

Z Z
f (x, y)dA =



f (x(u, v), y(u, v))

(x,y)
(u,v)



dudv

(3.8)

Example 3.3.8.
Z Z

x2 dA, where R is the region

Use the change of variables x = 2u and y = 3v to evaluate


R

bounded by the ellipse 9x2 + 4y 2 = 36.


solution
The given transformation maps the ellipse to a circle:
9x2 + 4y 2 = 36

x2 y 2
+
= 1 u2 + v 2 = 1.
4
9

The Jacobian of this transformation is




(x, y) 2 0
=
= 6.
(u, v) 0 3
By the previous Theorem we have
Z Z
Z Z
2
x dA = 6
4u2 dA
R

= 24
0

r3 cos2 drd

cos2 d

= 6
0

(1 + cos 20d
0
2
1
= 3 + sin 2
2
0
= 3

= 6.
Exercise 3.3.3.


yx
1. Make an appropriate change of variables to evaluate
5 cos 9
dA, where R
y+x
R
is the trapezoidal region with vertices (2, 0), (5, 0), (0, 5) and (0, 2).
Z Z

2. Use the transformation defined by x =

u
v

and y = v to evaluate

RR

R xydA,

where R is the

region in the first quadrant bounded by the lines y = x and y = 3x and the hyperbolas
xy = 1 and xy = 3.
40

There is a similar change of variables formula for triple integrals. Consider a C 1 transformation
T that maps a region S in uvw-plane to a region R in xyz-space according to the rule:
T (u, v, w) = (x(u, v, w), y(u, v, w), z(u, v, w)) = (x, y, x)
The Jacobian of this transformation is




(x, y, z)
=
(u, v, w)

x
u
y
u
z
u

x
v
y
v
z
v

x
w
y
w
z
w

Theorem 3.3.3.
Change of variables in Triple Integral: Suppose that T is a one-to-one C 1 transformation that
maps a region S in the uvw-space to a region R in the xyz-space and whose Jacobian is
nonzero. Suppose that f is continuous on R and that R and S are type I, II, or III regions.
Then
Z Z Z

Z Z Z
f (x, y, z)dxdydz =
R



f (x(u, v, w), y(u, v, w), z(u, v, w))

41

(x,y,z)
(u,v,w)



dudvdw

Chapter 4

Line and Surface Integrals


4.1

Line integrals of scalar fields

There are two ways to generalize the integral to functions of two or more variables. One way
is the line integral, which we shall consider in this section. The other is the multiple integral,
which was studied in the previous. In this section we define an integral that is similar to a
single integral except that instead of integrating over an interval [a, b], we integrate over a
curve C.
Definition: Consider a smooth curve C given by parametric equations
x = x(t),

atb

y = y(t),

or equivalently, by the vector equation r(t) = x(t)i + y(t)j. Then, the line integral of f
along C is
Z

Z
f (x, y)ds =

s

f (x(t), y(t))
a

dx
dt

2


+

dy
dt

2
dt.

(4.1)

Remark In a special case where is the line segment that joins (a, 0) to (b, 0), using x as the
parameter, we can write the parametric equations as follows: x = x, y = 0, a x b.
Equation (4.1) becomes
Z

f (x, y)ds =
c

f (x, 0)dx
a

and so the line integral reduces to an ordinary single integral in this case.
Example 4.1.1.
Find the line integral of
F(x, y) = sin x cos yi + exy j
along
42


.
3

(a) The horizontal line C1 : 0 x , y =


(b) The vertical line C2 : 0 y 1, x = 2.
Solution
(a)

Z
F dS =

C1


1
sin x cos
dx = cos x = 1.
3
2
0


 

(b)

Z
F dS =

C2

1
e2y dy = (e2 1).
2

Example 4.1.2.
Z
(2 + x2 y)ds, where C is the upper half of the unit circle x2 + y 2 = 1.
(a) Evaluate
C

Z
(b) Evaluate

2xds, where C consists of the arc C1 of the parabola y = x2 from (0, 0) to

(1, 1) followed by the vertical line segment C2 from (1, 1) to (1, 2).
Solution
(a) We first parametrize the curve C as: x = cos t, y = sin t, 0 t .
s 
 2
Z
Z
dx 2
dy
2
2
(2 + x y)ds =
(2 + cos t sin t)
+
dt
dt
dt
0
C
Z
p
(2 + cos2 t sin t) sin2 t + cos2 tdt
=
0

Z
=

(2 + cos2 t sin t)dt



1
2
3
= 2t cos t = 2 +
3
3
0
(b) Since the graph is a function of x we can choose x as the parameter and the parametric
equations for C1 are
x = x, y = x2 ,

0x1

Therefore
Z

Z
2xds =

C1

s

2x
0

43

dx
dx

2


+

dy
dx

2
dx

2x

p
1 + 4x2 dx

0
5 51
.
6

On C2 we choose y as the parameter, so the equations of C2 are


x = 1, y = y,

1y2

and
Z

Z
2xds =

C2

Z1 2

s 
 2
dx 2
dy
2(1)
+
dy
dy
dy
2dy = 2.

=
1

5 51
Therefore
2xds =
2xds +
2xds =
+ 2.
6
C
C1
C2
Z

Theorem Suppose that C is piecewise-sooth curve; that is, C is a union of finite number of
smooth curves C1 , C2 , , Cn , The we define the integral of f along C as the sum of the
integrals of f along each of the smooth pieces of C:
Z
Z
Z
Z
f (x, y)ds =
f (x, y)ds +
f (x, y)ds + +
c

C1

C2

f (x, y)ds.

Cn

Properties of line integrals


Z
Z
Z
1.
P (x, y)dx + Q(x, y)dy =
P (x, y)dx +
Q(x, y)dy
C

(a2 ,b2 )

(a1 ,b1 )

P (x, y)dx + Q(x, y)dy =

2.
(a1 ,b1 )

(a2 ,b2 )

3.

P (x, y)dx + Q(x, y)dy


(a2 ,b2 )

(a3 ,b3 )

P (x, y)dx + Qdy =


(a1 ,b1 )

(a2 ,b2 )

P (x, y)dx + Qdy +


(a1 ,b1 )

P (x, y)dx + Qdy


(a3 ,b3 )

where (a3 , b3 ) is another point on C.


Exercise 4.1.1.
Z
1.
(x y)2 dx along the parabola y = x x2 /4 from (0, 0) to (4, 0).
C

Z
2.

(x y)2 dx around a circle of radius a traced counter-clockwise.

Z
3.

(x2 + y 2 )dy around the ellipse

Z
4.

x2 y 2
+ 2 = 1 traced counter-clockwise.
a2
b

(xz + yz + xy)dy around the intersection of the cylinder x2 + y 2 = 1 and the plane

y + z = 1 in the clockwise direction as viewed from the origin.


Z
5. Evaluate y 2 dx + xdy, where (a) C = C1 is the line segment from (5, 3) to (0,2) and
c

(b) C = C2 is the arc of the parabola x = 4 y 2 from (5, 3) to (0,2).


44

4.2

Line Integrals in Space

Suppose that C is a smooth space curve given by the parametric equations


x = x(t),

y = y(t),

z = z(t),

atb

or by a vector equation r(t) = x(t)i + y(t)j + z(t)k. If f is a function of three variables that
is continuous on some region containing C, the we define the line integral of f along C (with
respect to arc length) as :
Z

Z
f (x, y, z)ds =

s 
 2  2
dx 2
dy
dz
f (x(t), y(t), z(t))
+
+
dt.
dt
dt
dt

(4.2)

Exercise 4.2.1.
Z
Evaluate
y sin zds, where C is the circular helix given by the equations
C

x = cos t,

4.3

y = sin t, z = t, 0 t 2.

Line Integrals of vector fields

In a vector filed the line integral can be thought in the notion of work done by a constant
force. If the vector field f (x, y) represents the force moving an object along a curve C, then
the work W done by this force is
Z

Z
f Tds =

W =
C

where T =

f dr

(4.3)

r0 (t)
is the unit vector to C.
kr(t)k

Example 4.3.1.
Find the work done by the force field F(x, y) = x2 i xyj in moving a particle along the
quarter-circle r(t) = cos ti + sin tj, 0 t 2 .
Solution Since x = cos t and y = sin t, and r0 (t) = sin ti + cos tj and therefore the work done
is
Z

Z
F dr =

F(r(t)) r (t)dt =

Z0
2

(cos2 ti cos t sin tj) ( sin ti + cos tj)dt


(2 cos2 t sin t)dt.

2
= .
3
Exercise 4.3.1.

45

Z
F dr, where F(x, y, z) = xyi + yzj + zxk and C is the twisted cubic given by

Evaluate
C

x = t, y = t2 ,

z = t3 ,

0 t 1.

Theorem 4.3.1.
Z
Z
F dr = 0 for every closed path C in D.
F dr is independent of the path D if and only if
C

Theorem 4.3.2.
If F(x, y) = P (x, y)i + Q(x, y)j is a conservative vector field, where P and Q have continuous
first-order partial derivatives on a domain D the throughout D we have
P
Q
=
y
x
Example 4.3.2.
Determine whether or not the vector field
F(x, y) = (x y)i + (x 2)j
is conservative.
Solution Let P (x, y) = x y and Q(x, y) = x 2. Then
P
= 1,
y

Q
=1
x

Therefore F is not conservative.


Remark If F is conservative then there exists a (potential) function f such that F = f.
Exercise 4.3.2.
If F(x, y) = (3 + 2xy)i + (x2 3y 2 )j, find its function f such that F = f.

4.4

Greens Theorem

Greens Theorem gives the relationship between a line integral around a simple closed curve
C and a double integral over the plane region D bounded by C. In stating Greens Theorem
we use the convention that the positive orientation of simple closed curve C which refers to a
single counter-clockwise traversal of C.
Green Theorem: Let C be a positively oriented, piecewise-smooth, simple closed curve in the
plane and let D be the region bounded by C. If P and Q have continuous partial derivatives
on an open region that contains D, then

Z
Z Z 
Q P
P dx + Qdy =

dA.
x
y
C
D
46

Example 4.4.1.
I
p
Evaluate
(3y esin x )dx + (7x + y 4 + 1)dy, where C is the circle x2 + y 2 = 9 oriented
C

counterclockwie.
Solution
The region D bounded by C is the disk x2 + y 2 9, so we need to change to polar coordinates
after applying Greens Theorem:

I
Z Z 

p
p



sin x
sin x
4
4
(3y e
)dx + (7x + y + 1)dy =
dA
7x + y + 1
3y e
x
y
Z 2 Z 3
=
(7 3)rdrd
0

= 36.
Exercise 4.4.1.
I
1. Evaluate
y 2 dx + 3xydy, where C is the boundary of the semi-annular region D in the
C

upper half-plane between the circles x2 + y 2 = 1 and x2 + y 2 = 4.


I
2. Evaluate
x4 dx + xydy, where C is the triangular curve consisting of the line segments
C

from (0,0) to (1,0), from (1,0) to (0,1) and from (0,1) to (0,0).
3. Evaluate by Greens Theorem the line integral
I
y
dx + 2xydy
C x+1
where C is the closed curve of the region bounded by y = x2 and y = x.
4. Verify Greens theorem in the plane for
I
(x3 x2 y)dx + xy 2 dy
C

where C is the boundary of the region enclosed by circles x2 + y 2 = 1 and x2 + y 2 = 16.

4.5

Surface Integrals

In this section, we will use double integrals to compute the area of a surface defined by the
equation z = f (x, y).
Theorem: (Surface Area) Suppose that f has continuous first-order partial derivatives fx and
fy . Then the area of the surface defined by z = f (x, y), (x, y) D is
Z Z q
A=
[fx (x, y)]2 + [fy (x, y)]2 + 1dA.
D

47

Example 4.5.1.
Find the area of the part of the hyperbolic paraboloid z = y 2 x2 that lies above the annular
region 1 x2 + y 2 4.
Solution The annular region D can be described in polar coordinates by
D = {(r, )|0 2, 1 r 2}.
Note that f (x, y) = y 2 x2 , and fx = 2x, fy = 2y. Thus
Z Z p
A =
(2x)2 + (2y)2 + 1dA
Z

=
0

2 p


4r2 + 1 rdrd


(5 5 1).
6

Exercise 4.5.1.
Find the area of the part of the surface z = x + y 2 that lies above the triangle with vertices
(0,0), (1,1) and (0,1).

4.6

Divergence Theorem

In section 4.4 we presented the Greens Theorem in a vector form as


Z
Z Z
F dr =
divF(x, y)dA
C

where C is the positively oriented boundary curve of the plane region D. If were are to extend
this theorem to a three dimensional fields we have

Z Z

Z Z Z
F dr =

divF(x, y, z)dV

Z Z Z
FdV

(4.4)

Equation (4.4) is the divergence theorem or Greens theorem in space. It states that the surface integral of the normal component of a vector F taken over a closed surface is equal to the
integral of the divergence of F taken over the volume enclosed by the surface.
Z Z

F dS where F(x, y, z) = xyi + (y 2 + exz )j + sin(xy)k, and S is the

Example: Evaluate
S

surface of the region E bounded by the parabolic cylinder z = 1 x2 and the planes z = 0,
48

y = 0 and y + z = 2.
Solution
divF =

2
(xy) +
(y + exz ) +
(sin xy) = 3y.
x
y
z

Now we use Divergence Theorem to transform the given surface integral into a triple integral.
The easiest way to evaluate the triple is to express E as a type III region, that is:
E = {(x, y, z)| 1 x 1, 0 z 1 x2 , 0 y 2 z}
Thus
Z Z

Z Z Z
F dS =

3ydV

1x2

2z

= 3

ydydzdx
1
1

0
1x2

(2 z)2
dzdx
2
1 0
1x2
Z 
3 1
(2 z)3
=

dx
2 1
3
0
Z
1 1 2
=
[(x + 1)3 8]dx
2 1
Z

= 3

184
.
35

4.7

Stokes Theorem

Stokes Theorem can be regarded as a higher-dimensional version of Greens Theorem. Whereas


Greens Theorem relates a double integral over a plane region D to a line integral around its
plane boundary curve, Stokes Theorem relates a surface integral over a surface S to a line
integral around the boundary curve of S (which is a space).
Stokes Theorem
Let S be an oriented piecewise-smooth surface that is bounded by a simple, closed, piecewisesmooth boundary curve C with positive orientation. Let F be a vector field whose components
have continuous partial derivatives on an open region <3 that contains S. Then
Z
Z Z
F dr =
curlF dS
c

Z Z
( F) ndS

=
S

Example 4.7.1.
49

Z
Use Stokes Theorem to evaluate

F dr, where F(x, y, z) = 3yi xzj + yz 2 k and S is the

surface of the paraboloid 2z = x2 + y 2 bounded by z = 2 and C is its boundary.


Solution
The boundary C of S is a circle with equations x2 +y 2 = 4, z = 2 and the parametric equations
for this case are x = 2 cos t, y = 2 sin, z = 2 with 0 t 2. Then
Example 4.7.2.
Z
Evaluate
F dr, where F(x, y, z) = y 2 i + xj + z 2 k and C is the curve of intersection of the
C

plane y + z = 2 and the cylinder x2 + y 2 = 1.


Solution 4.7.1.

curlF = x

y 2



k

= (1 + 2y)k.
z

z2

Thus,
Z

Z Z

Z Z

F dr =

curl F dS =

(1 + 2y)dA.

The projection D of S on the xy-plane is the disk x2 + y 2 1 and z = g(x, y) = 2 y. Hence


we can introduce parametric equations x = r cos , y = r sin , with 0 2, and 0 r 1
so that
Z Z

(1 + 2y)dA =
D

(1 + 2r sin )rdrd
0

1
r3
r2
+ 2 sin d
=
2
3
0
0

Z 2 
1 2
=
+ sin d
2 3
0

2
1
2
=
cos
2
3
0
Z

= .
Exercise 4.7.1.
Use Stokes theorem, to evaluate

H
C

F dr around the ellipse C : x2 + y 2 = 1, z = y, where

F = xi + (x + y)j + (x + y + z)k.
THE END
50

You might also like