Classnotes Ma1101 PDF
Classnotes Ma1101 PDF
Department of Mathematics
Indian Institute of Technology Madras
This material is only meant for internal use; not to be distributed for commercial purpose.
Maintained by A.Singh.
Contents
1 Differential Calculus 4
1.1 Regions in the plane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.2 Level curves and surfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.3 Continuity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.4 Partial Derivatives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.5 Increment Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
1.6 Chain Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1.7 Directional Derivative . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
1.8 Normal to Level Curve and Tangent Planes . . . . . . . . . . . . . . . . . . . . . 22
1.9 Taylor’s Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
1.10 Extreme Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
1.11 Lagrange Multipliers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
1.12 Review Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
2 Multiple Integrals 36
2.1 Volume of a solid of revolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
2.2 Approximating Volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
2.3 Riemann Sum in Polar coordinates . . . . . . . . . . . . . . . . . . . . . . . . . . 46
2.4 Triple Integral . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
2.5 Triple Integral in Cylindrical coordinates . . . . . . . . . . . . . . . . . . . . . . . 52
2.6 Triple Integral in Spherical coordinates . . . . . . . . . . . . . . . . . . . . . . . . 54
2.7 Change of Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
2.8 Review Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
3 Vector Integrals 69
3.1 Line Integral . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
3.2 Line Integral of Vector Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
3.3 Conservative Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
3.4 Green’s Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
3.5 Curl and Divergence of a vector field . . . . . . . . . . . . . . . . . . . . . . . . . 84
3.6 Surface Area of solid of Revolution . . . . . . . . . . . . . . . . . . . . . . . . . 86
3.7 Surface area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
3.8 Integrating over a surface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
3.9 Surface Integral of a Vector Field . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
2
3.10 Stokes’ Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
3.11 Gauss’ Divergence Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
3.12 Review Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Bibliography 115
Index 133
3
Chapter 1
Differential Calculus
4
Let D be a region in the plane. Let f : D → R be a function.
The graph of f is {(x, y, z) ∈ R3 : z = f (x, y), (x, y) ∈ D}.
The graph here is also called the surface z = f (x, y).
The domain of f is D.
The co-domain of f is R.
The range of f is {z ∈ R : z = f (x, y) for some (x, y) ∈ D}.
Sometimes, we do not fix the domain D but ask you to find it out.
p
The function f (x, y) = y − x2
has domain D = {(x, y) : x2 ≤ y}.
Its range is the set of all non-negative reals.
What is its graph?
Some examples of surfaces are here:
5
The union of all level curves, translated in z-direction suitably, is the surface z = f (x, y); it is also
the graph of f.
The contour curve is the curve f (x, y) = c in the plane z = c.
The level curve is the projection of the contour curve on the xy-plane.
Similarly, for a function f (x, y, z) of three variables, the level surfaces are the surfaces
f (x, y, z) = c for values c in the range of f.
Let f : D → R be a function. Let (a, b) ∈ D.
The limit of f (x, y) as (x, y) approaches (a, b) is L iff given
p any > 0, we can choose a cor-
responding δ > 0 such that for all (x, y) ∈ D with 0 < (x − a)2 + (y − b)2 < δ, we have
|f (x, y) − L| < .
In this case, we write lim f (x, y) = L.
(x,y)→(a,b)
lim f (x, y) = L.
x→a
y→b
6
The intuitive understanding of the notion of limit is as follows:
The distance between f (x, y) and L can be made arbitrarily small by making the distance between
(x, y) and (a, b) sufficiently small but not necessarily zero.
4xy 2
Example 1.1. Determine if lim exists.
(x,y)→(0,0) x2 + y 2
Observe that the domain D of f is R2 \ {(0, 0)}. And f (0, y) = 0 for y 6= 0; f (x, 0) = 0 for x 6= 0.
We guess that if the limit exists, it would be 0. To see that it is the case, we start with any > 0.
We want to choose a δ > 0 such that the following sentence becmes true:
p 4xy 2
If 0 < x2 + y 2 < δ, then 2 < .
x +y 2
Hence
4xy 2
lim = 0.
(x,y)→(0,0) x2 + y 2
p
Example 1.2. Consider f (x, y) = 1 − x2 − y 2 when D = {(x, y) : x2 + y 2 ≤ 1}.
We guess that limit f (x, y) is 1 as (x, y) → (0, 0).
To show that the guess is right, let > 0. Observe that 0 ≤ f (x, y) ≤ 1 on D.
So, if ≥ 1, then |f (x, y) − 1| varies between 0 and 1.
That is, |f (x, y) − 1| < , for (x, y) near (0,
p0).
Next, assume that 0 < < 1. Choose δ = 1 − (1 − )2 . Let |(x, y) − (0, 0)| < δ. Then
That is, |f (x, y) − 1| = 1 − f (x, y) < . Therefore, f (x, y) → 1 as (x, y) → (0, 0).
For a function of one variable, there are only two directions for approaching a point; from left
and from right. Whereas for a function of two variables, there are infinitely many directions, and
7
infinite number of paths on which one can approach a point. The limit refers only to the distance
between (x, y) and (a, b). It does not refer to any specific direction of approach to (a, b). If the limit
exists, then f (x, y) must approach the same limit no matter how (x, y) approaches (a, b). Thus, if
we can find two different paths of approach along which the function f (x, y) has different limits,
then it follows that limit of f (x, y) as (x, y) approaches (a, b) does not exist.
Theorem 1.1. Suppose that f (x, y) → L1 as (x, y) → (a, b) along a path C1 and f (x, y) → L2
as (x, y) → (a, b) along a path C2 . If L1 6= L2 , then the limit of f (x, y) as (x, y) → (a, b) does
not exist.
x2 − y 2
Example 1.3. Consider f (x, y) = for (x, y) 6= (0, 0). What is its limit at (0, 0)?
x2 + y 2
x2
When y = 0, limit of f (x, y) as x → 0 is lim = lim (1) = 1.
x→0 x2 x→0
xy
Example 1.4. Consider f (x, y) = for (x, y) 6= (0, 0). What is its limit at (0, 0)?
x2 + y2
Along the x-axis, y = 0; then limit of f (x, y) as (x, y) → (0, 0) is 0.
Along the y-axis, x = 0; then limit of f (x, y) as (x, y) → (0, 0) is 0.
Does it say that limit of f (x, y) as (x, y) → (0, 0) is 0?
x2
Along the line y = x, limit of f (x, y) as (x, y) → 0 is lim = 1/2.
x→0 x2 + x2
xy 2
Example 1.5. Consider f (x, y) = for (x, y) 6= (0, 0). What is its limit at (0, 0)?
x2 + y 4
m2 x
If y = mx, for some m ∈ R, then f (x, y) = . So, lim along all straight lines is 0.
1 + m4 x2 (x,y)→(0,0)
y4
If x = y 2 , y 6= 0, then f (x, y) = = 1/2. As (x, y) → (0, 0) along x = y 2 , f (x, y) → 1/2.
y4 + y4
Hence lim f (x, y) does not exist.
(x,y)→(0,0)
lim f (x, y), lim lim f (x, y), lim lim f (x, y)
(x,y)→(a,b) x→a y→b y→b x→a
8
(y − x)(1 + x)
Example 1.6. Let f (x, y) = for x + y 6= 0, −1 < x, y < 1. Then
(y + x)(1 + y)
y
lim lim f (x, y) = lim = 1.
y→0 x→0 y→0 y(1 + y)
−x(1 + x)
lim lim f (x, y) = lim = −1.
x→0 y→0 x→0 x
x(m − 1)(1 + x) m−1
Along y = mx, lim f (x, y) = lim = .
(x,y)→(0,0) (x,y)→(0,0) x(1 + m)(1 + mx) m+1
For different values of m, we get the last limit value different. So, limit of f (x, y) as (x, y) → (0, 0)
does not exist. But the two iterated limits exist and they are not equal.
1 1
Example 1.7. Let f (x, y) = x sin + y sin for x 6= 0, y 6= 0. Then
y x
1 1
lim y sin and lim x sin do not exist.
x→0 x y→0 y
So, neither lim lim f (x, y) exists not lim lim f (x, y) exists.
y→0 x→0 x→0 y→0
√ p p
However, |f (x, y) − 0| ≤ |x| + |y| = x2 + y 2 ≤ 2 x2 + y 2 = 2|(x, y)|. That is,
If |(x, y) − (0, 0)| < /2, then |f (x, y) − 0| < . Therefore,
lim f (x, y) = 0.
(x,y)→(0,0)
That is, the two iterated limits do not exist, but the limit exists.
Hence existence of the limit of f (x, y) as (x, y) → (a, b) and the two iterated limits have no
connection.
The usual operations of addition, multiplication etc have the expected effects as the following
theorem shows. Its proof is analogous to the single variable limits.
4. Quotient : If M 6= 0 and g(x, y) 6= 0 in an open disk around the point (a, b), then
lim (f (x, y)/g(x, y)) = L/M
(x,y)→(a,b)
9
1.3 Continuity
Let f (x, y) be a real valued function on a domain D ⊆ R2 . We say that f (x, y) is continuous at a
point (a, b) ∈ D if
At any point other than the origin, f (x, y) is a rational function; therefore, it is continuous. To
p that f (x, y) is continuous at the origin, let > 0 be given. Take δ = /3. Assume that
see
x2 + y 2 < δ = /3. Then
3x2 y 3(x2 + y 2 )y p
− f (0, 0) ≤ ≤ 3|y| ≤ 3 x2 + y 2 < .
2
x + y2 x2 + y 2
xy(x2 −y 2 )
(
x2 +y 2
if (x, y) 6= (0, 0)
Example 1.9. f (x, y) = is continuous on R2 . Why?
0 if (x, y) = (0, 0)
At all nonzero points, it is continuous, being a rational function. For the point (0, 0), let > 0 be
√
given. Choose δ =p . Notice that xy ≤ x2 + y 2 and x2 − y 2 ≤ x2 + y 2 .
For all (x, y) with x2 + y 2 < δ, we have
(x2 + y 2 )(x2 + y 2 )
|f (x, y) − 0| ≤ < δ 2 = .
x2 + y 2
x2 − y 2
Example 1.10. f (x, y) = is continuous on D = R2 \ {(0, 0)}.
x2 + y 2
f (x, y) is not continuous at (0, 0) since it is not defined at (0, 0).
Also, f (x, y) is not continuous at (0, 0) since lim f (x, y) does not exist. See Example 1.3.
(x,y)→(0,0)
10
Therefore, the function g(x, y) defined on R2 by the following is not continuous at (0, 0).
( 2 2
x −y
2 2 if (x, y) 6= (0, 0)
g(x, y) = x +y
0 if (x, y) = (0, 0)
If C is the curve of intersection of the surface z = f (x, y) with the plane y = b, then the slope of
the tangent line to C at (a, b, f (a, b)) is the partial derivative of f (x, y) with respect to x at (a, b).
In the figure take x0 = a, y0 = b. A formal definition of the partial derivative follows.
The partial derivative of f (x, y) with respect to x at the point (a, b) is
∂f df (x, b) f (a + h, b) − f (a, b)
fx (a, b) = = = lim ,
∂x (a,b) dx x=a h→0 h
11
The partial derivative of f (x, y) with respect to y at the point (a, b) is
∂f df (a, y) f (a, b + k) − f (a, b)
fy (a, b) = = = lim ,
∂y (a,b) dy k
y=b k→0
(4 − (1 + h)2 − 2) − (4 − 1 − 2) −2h − h2
fx (1, 1) = lim = lim = −2.
h→0 h h→0 h
That is, treat y as a constant and differentiate with respect to x.
fx (1, 1) = fx (x, y)(1,1) = −2x(1,1) = −2.
The vertical plane y = 1 crosses the paraboloid in the curve C1 : z = 2 − x2 , y = 1. The slope
of the tangent line to this parabola at the point (1, 1, 1) (which corresponds to (x, y) = (1, 1)) is
fx (1, 1) = −2.
Example 1.13. Find ∂z/∂x and ∂z/∂y where z = f (x, y) is defined by x3 + y 3 + z 3 − 6xyz = 1.
12
Example 1.14. The plane x = 1 intersects the surface z = x2 + y 2 in a parabola. Find the slope
of the tangent to the parabola at the point (1, 2, 5).
∂(x2 + y 2 )
(1, 2) = (2y)(1, 2) = 4.
∂y
dz d(1 + y 2 )
= = (2y)|y=2 = 4.
dy y=2 dy
y=2
∂ ∂f ∂ 2f
fxx = (fx )x = = .
∂x ∂x ∂x2
∂fx ∂ ∂f ∂ 2f
fxy = (fx )y = = = .
∂y ∂y ∂x ∂y∂x
∂fy ∂ ∂f ∂ 2f
fyx = (fy )x = = = .
∂x ∂x ∂y ∂x∂y
∂ ∂f ∂ 2f
fyy = (fy )y = = .
∂y ∂y ∂y 2
Similarly, higher order partial derivatives are defined. For example,
∂ ∂ ∂f ∂ 3f
fxxy = = .
∂y ∂x ∂x ∂y∂x∂x
Observe that fx (a, b) is not the same as lim fx (x, y). To see this, let
(x,y)→(a,b)
(
1 if x > 0
f (x, y) =
0 if x ≤ 0.
Then fx (x, y) = 0 for all x > 0. Also, fx (x, y) = 0 for all x < 0. Now, lim fx (x, y) = 0.
(x,y)→(0,0)
But fx (0, 0) does not exist. Reason?
f (h, 0) − f (0, 0) 1 or 0
fx (0, 0) = lim = lim does not exist
h→0 h h→0 h
On the other hand, fx (a, b) can exist though lim fx does not.
(x,y)→(a,b)
However, if fx (x, y) is continuous at (a, b), then
Similarly, fxy need not be equal to fyx . See the following example.
13
xy(x2 − y 2 )
Example 1.15. Consider f (x, y) = for (x, y) 6= (0, 0), and f (0, 0) = 0.
x2 + y 2
Theorem 1.3. (Clairaut) Let D ⊆ R2 be a domain. Let f : D → R. Suppose that fxy and fyx are
continuous on D. Then fxy = fyx .
Proof: Let (a, b) ∈ D. Let h 6= 0. Write g(x) = f (x, b + h) − f (x, b). Then
Again, by MVT (on fx with the second variable), we have d between b and b + h such that
Write
∆f = [f (a + h, b + h) − f (a, b + h)] − [f (a + h, b) − f (a, b)]
∆f
and apply MVT twice as above to get fyx (a, b) = limh→0 h2
. But the two limits with
(∆f )/h2 are equal. So, fxy (a, b) = fyx (a, b).
In one variable, f 0 (t) exists at t = a implies that f (t) is continuous at t = a. We have seen
similarly that existence of fx (a, b) and fy (a, b) guarantees continuity of f (x, b) and of f (a, y) at
(a, b). But for f (x, y), even both fx (x, y) and fy (x, y) exist at (a, b), the function f (x, y) need not
be continuous at (a, b). See the following example.
(
xy
x2 +y 2
if (x, y) 6= (0, 0)
Example 1.16. Let f (x, y) =
0 if (x, y) = (0, 0).
14
Here, f (x, 0) = 0 = f (0, y). So, fx (0, 0) = 0 = fy (0, 0). And limit of f (x, y) as (x, y) → (0, 0)
does not exist. Hence f (x, y) is not continuous at (0, 0).
Further, we find that fxx (x, 0) = 0 = fyy (0, y). What about fxy (0, 0)?
f (h, y) − f (0, y) y 1
fx (0, y) = lim = lim 2 2
= .
h→0 h h→0 h + y y
Let T1 and T2 be tangent lines to the curves C1 and C2 at the point P (a, b, f (a, b)). The tangent
plane to the surface S at P is the plane containing T1 and T2 .
The tangent plane to S at P consists of all possible tangent lines at P to the curves C that lie on S
and pass through P. This plane approximates S at P most closely.
Write the z-coordinate of P as c. Then P = (a, b, c). Equation of any plane passing through P
is z − c = A(x − a) + B(y − b). When y = b, the tangent plane represents the tangent to the
intersected curve at P. Thus, A = fx (a, b), the slope of the tangent line. Similarly, B = fy (a, b).
Hence equation of the tangent plane to the surface z = f (x, y) at the point P (a, b, c) on S is
Example 1.17. Find the equation of the tangent plane to the elliptic paraboloid z = 2x2 + y 2 at
(1, 1, 3).
Here, zx = 4x, zy = 2y. So, zx (1, 1) = 4, zy (1, 1) = 2. Then the equation of the tangent plane is
z − 3 = 4(x − 1) + 2(y − 1). It simplifies to z = 4x + 2y − 3.
15
The tangent plane gives a linear approximation to the surface at that point. Why?
Write the equation as f (x, y) − f (a, b) = fx (a, b)(x − a) + fy (a, b)(y − b). Then
f (x, y) = f (a, b) + fx (a, b)(x − a) + fy (a, b)(y − b).
This formula holds true for all points (x, y, f (x, y)) on the tangent plane at (a, b, f (a, b)). For
approximating f (x, y) for (x, y) close to (a, b), we may take
f (x, y) ≈ f (a, b) + fx (a, b)(x − a) + fy (a, b)(y − b).
The RHS is called the standard linear approximation of f (x, y, z).
Writing in the increment form,
f (a + h, b + k) ≈ f (a, b) + fx (a, b)h + fy (a, b)k.
This gives rise to the total increment f (a + h, b + k) − f (a, b).
The total increment can be written in a more suggestive form. Towards this, we proceed as follows:
∆f = f (a + h, b + k) − f (a + h, b) + f (a + h) − f (a, b).
By MVT, there exist c ∈ [a, a + h] and d ∈ [b, b + k] such that
f (a + h, b) − f (a, b) = h[fx (c, b) − fx (a, b)] + hfx (a, b)
f (a + h, b + k) − f (a + h, b) = k[fy (a + h, d) − fy (a, b)] + kfy (a, b)
Write 1 = fx (d, b) − fx (a, b) and 2 = fy (a + h, c) − fy (a, b). When both h → 0, k → 0, we see
that c → a and d → b. Since fx and fy are assumed to be continuous, we have 1 → 0 and 2 → 0.
Then the total increment can be written as
∆f = f (a + h, b + k) − f (a, b) = hfx (a, b) + kfy (a, b) + 1 h + 2 k,
where 1 → 0 and 2 → 0 as both h → 0, k → 0.
We also write the increments h, k in x, y as ∆x, ∆y respectively.
From the above rewriting of ∆f it is also clear that f (x, y) is a continuous function. Let us note
down what we have proved.
Theorem 1.4. (Increment Theorem) Let D be a domain in R2 . Let f : D → R be such that
both fx and fy are continuous on D. Then f (x, y) is continuous on D and the total increment
∆f = f (a + ∆x, b + ∆y) at (a, b) ∈ D can be written as
∆f = fx (a, b)∆x + fy ∆y + 1 ∆x + 2 ∆y,
where 1 → 0 and 2 → 0 as both ∆x → 0 and ∆y → 0.
Recall that for a function g of one variable, its differential is defined as dg = g 0 (t)dt.
Let f (x, y) be a given function. The differential of f , also called the total differential, is
df = fx (x, y)dx + fy (x, y)dy.
Here, dx = ∆x and dy = ∆y are the increments in x and y, respectively. The equation above
represents a linear approximation to the total increment ∆f.
16
Example 1.18. The dimensions of a rectangular box are measured to be 75cm, 60cm, and 40 cm,
and each measurement is correct to within 0.2cm. Use differentials to estimate the largest possible
error when the volume of the box is calculated from these measurements.
The volume of the box is V = xyz. So,
∂V ∂V ∂V
dV = dx + dy + dz.
∂x ∂y ∂z
Given that |∆x|, |∆y|, |∆z| ≤ 0.2cm, the largest error in cubic cm is
Notice that the relative error is 1980/(75 × 60 × 40) which is about 1%.
17
Proof: By Theorem 2.2, f (x, y) is a differentiable function. Use the increment ∆f at a point P to
obtain
∆f ∂f ∆x ∂f ∆y ∆x ∆y
= + + 1 + 2 .
∆t ∂x ∆t ∂y ∆t ∆t ∆t
As ∆t → 0, we have ∆x → 0, ∆y → 0, 1 → 0, 2 → 0. Then the result follows.
For example, if z = xy and x = sin t, y = cos t, then
dz ∂z 0 ∂z 0
= x (t) + y (t) = cos2 t − sin2 t.
dt ∂x ∂y
Check: z(t) = sin t cos t = 21 sin 2t. So, z 0 (t) = cos 2t = cos2 t − sin2 t.
Theorem 1.6. (Chain Rule 2) Let f (x, y) be a function, where fx and fy are continuous. Suppose
x = x(s, t) and y = y(s, t) are functions such that xs , xt , ys and yt are also continuous. Then
∂f ∂f ∂x ∂f ∂y ∂f ∂f ∂x ∂f ∂y
= + , = + .
∂s ∂x ∂s ∂y ∂s ∂t ∂x ∂t ∂y ∂t
Proof of this follows a similar line to that of Chain Rule - 1. The pattern is clearer if you use the
subscript notation:
fs = fx xs + fy ys , ft = fx xt + fy yt .
Example 1.19. Let z = ex sin y, x = st2 , y = s2 t. Then
∂z 2
= (ex sin y)t2 + (ex cos y)2st = test (t sin(s2 t) + 2s cos(s2 t)).
∂s
∂z 2
= (ex sin y)2st + (ex cos y)s2 = sest (2t sin(s2 t) + s cos(s2 t)).
∂t
Substitute expressions for x and y to get z = z(s, t) and then check that the results are correct.
Example 1.20. Given that z = f (x, y) has continuous second order partial derivatives and that
x = r2 + s2 , y = 2rs, find zrr .
We have xr = 2r, yr = 2s. Then
zr = 2rzx + 2szy .
zxr = zxx xr + zxy yr = 2rzxx + 2szxy .
zyr = zyx xr + zyy yr = 2rzyx + 2szyy .
∂zr ∂
zrr = = (2rzx + 2szy ) = 2zx + 2rzxr + 2szyr
∂r ∂r
= 2zx + 2r(2rzxx + 2szxy ) + 2s(2rzyx + 2szyy )
= 2zx + 4r2 zxx + 8rszxy + 4s2 zyy .
18
Example 1.21. Find zx and zy if x3 + y 3 + z 3 + 6xyz = 1.
(x2 + 2yz)
3x2 + 3z 2 zx + 6y(z + xzx ) = 0 ⇒ zx = − .
z 2 + 2xy
(y 2 + 2xz)
3y 2 + 3z 2 zy + 6x(z + xzy ) = 0 ⇒ zy = − .
z 2 + 2xy
dy
Example 1.22. Find if y = y(x) is given by y 2 = x2 + sin(xy).
dx
dy dy dy 2x + y cos(xy)
2y − 2x − cos(xy)(y + x ) = 0 ⇒ = .
dx dx dx 2y − x cos(xy)
Example 1.23. Find wx if w = x2 + y 2 + z 2 and z = x2 + y 2 .
As it looks,
∂w
= 2x.
∂x
However, since z = x2 + y 2 , we have w = x2 + y 2 + (x2 + y 2 )2 . Then
∂w
= 2x + 4x3 + 4xy 2 .
∂x
Notice that, here we take z as the dependent variable and x, y as independent variables. But
suppose we know that x and z are the independent variables and y is the dependent variable. Then
the second equation says that y 2 = z − x2 . Then w = x2 + (z − x2 ) + z 2 = z + z 2 . Thus
∂w
= 0.
∂x
The correct procedure to get ∂w/∂x is :
It is now clear that z, w are dependent variables and x, y are independent variables. So,
∂w ∂z ∂z ∂z
= 2x + 2z , 3z 2 −y+y = 0.
∂x ∂x ∂x ∂x
∂w 2yz ∂w
These two together give ∂x
= 2x + y+3z 2
. Evaluating it at (2, −1, 1) gives ∂x
(2, −1, 1) = 3.
19
1.7 Directional Derivative
Recall that if f (x, y) is a function, then fx (x0 , y0 ) is the rate of change in f with respect to change
in x, at (x0 , y0 ), that is, in the direction î. Similarly, fy (x0 , y0 ) is the rate of change at (x0 , y0 ) in
the direction ĵ. How do we find the rate of change of f (x, y) at (x0 , y0 ) in the direction of any unit
vector û?
Consider the surface S with the equation z = f (x, y). Let z0 = f (x0 , y0 ). The point P (x0 , y0 , z0 )
lies on S. The vertical plane that passes through P in the direction of û (containing û) intersects S
in a curve C. The slope of the tangent line T to C at P is the rate of change of z in the direction of
û.
Let f (x, y) be a function defined in a domain D. Let (x0 , y0 ) ∈ D. The directional derivative of
f (x, y) in the direction of a unit vector û = aî + bĵ at (x0 , y0 ) is given by
df f (x0 + ha, y0 + hb) − f (x0 , y0 )
(Du f )(x0 , y0 ) = = lim .
ds u (x0 ,y0 ) h→0 h
√ √
Example 1.25. Find the derivative of z = x2 +y 2 at (1, 2) in the direction û = (1/ 2)î+(1/ 2)ĵ.
√ √ √ √
f 1 + h/ 2, 2 + h/ 2 − f (1, 2) 2h/ 2 + 2 · 2h/ 2 6
Du z(1, 2) = lim = lim =√ .
h→0 h h→0 h 2
√ √ √ √
Notice that fx (1, 2)(1/ 2) + fy (1, 2)(1/ 2) = (2 + 2(2)) · (1/ 2) = 6/ 2.
Theorem 1.7. If f (x, y) is a function of x and y having continuous partial derivatives fx and
fy , then f has a directional derivative at (x, y) in any direction û = aî + bĵ; and it is given by
Du f (x, y) = fx (x, y)a + fy (x, y)b.
Proof: Let (x0 , y0 ) be a point in the domain of definition of f (x, y). Define the function g(·) by
g(h) = f (x0 + ah, y0 + bh). Then g(h) is a continuous function of h. Now,
dx dy
g 0 (h) = fx + fy = fx a + fy b.
dh dh
20
Then g 0 (0) = fx (x0 , y0 ) + fy (x0 , y0 ). Since fx , fy are continuous,
g(h) − g(0)
g 0 (0) = lim = Du f (x0 , y0 ).
h→0 h
Hence Du f (x0 , y0 ) = g 0 (0) = fx (x0 , y0 )a + fy (x0 , y0 )b.
Example 1.26. Find the directional derivative of f (x, y) = x3 − 3xy + 4y 2 in the direction of the
line that makes an angle of π/6 with the x-axis.
√
3 1
Here, the direction is given by the unit vector û = cos(π/6)î + sin(π/6)ĵ = î + ĵ. Thus
2 2
√ √
3 1 3 2 1 1h √ 2 √ i
Du f (x, y) = fx + fy = (3x − 3y) + (−3x + 8y) = 3 3x − 3x + (8 − 3 3)y .
2 2 2 2 2
The formula for the directional derivative in the direction of the unit vector û = aî + bĵ can be
written as
Du f = fx a + fy b = (fx î + fy ĵ) · (aî + bĵ).
∂ ∂
The vector operator ∇ := î + ĵ is called the gradient and the gradient of f (x, y) is
∂x ∂y
∂f ∂f
∇f := grad f := î + ĵ.
∂x ∂y
Therefore, Du f = grad f · û. That is, at (x0 , y0 ), the directional derivative is given by
For example, for the function f (x, y) = xey + cos(xy), grad f |(2,0) = î + 2ĵ. Thus, the directional
derivative of f in the direction of 3î − 4ĵ is grad f |(1,2) · ((3/5)î − (4/5)ĵ) = −1.
However, remember that in order that this formula is applicable, we have assumed that the function
f (x, y) has continuous partial derivatives fx , fy at (x0 , y0 ).
Theorem 1.8. Let f (x, y) have continuous partial derivatives fx and fy . The maximum value of
the directional derivative Du f (x, y) is |grad f | and it occurs when û has the same direction as
that of grad f.
This is obvious since Du f = grad f · û says that the directional derivative is the scalar projection
of the gradient in the direction of û.
Proof: Du f = grad f · û = |grad f | |û| cos θ = |grad f | cos θ, where θ is the angle between
grad f and û. Since maximum of cos θ is 1, maximum of Du f is |grad f |. The maximum occurs
when θ = 0, that is, when the directions of grad f and û coincide.
This also says the following:
f (x, y) increases most rapidly in the direction of its gradient.
f (x, y) decreases most rapidly in the opposite direction of its gradient.
f (x, y) remains constant in any direction orthogonal to its gradient.
21
Example 1.27. Find the directions in which the function f (x, y) = x2 + y 2 changes most, least,
and not at all, at the point (1, 1).
dx dy d #»
r (t)
fx + fy = grad f · = 0.
dt dt dt
Since d #»
r /dt is the tangent to the curve, grad f is the normal to the level curve. That is,
At any point (x0 , y0 ) in the domain of the differentiable function f (x, y), its gradient grad f is the
normal to the level curve that passes through (x0 , y0 ).
In higher dimensions, if f (x1 , . . . , xn ) is a function of n independent variables defined on D ⊆ Rn ,
then its gradient at any point is
∂f ∂f
grad f = ,..., .
∂x1 ∂xn
The directional derivative at any point #»
x in the direction of a unit vector û = (u1 , . . . , un ) is
f ( #»
x + hû) − f ( #»
x)
Du f = lim = grad f · û = fx1 u1 + · · · + fxn un .
h→0 h
The algebraic rules for the gradient are as follows:
1. Constant multiple: grad (kf ) = k(grad f ) for k ∈ R.
2. Sum: grad (f + g) = grad f + grad g.
22
3. Difference: grad (f − g) = grad f − grad g.
4. Product: grad (f g) = f (grad g) + g(grad f ).
f g(grad f ) − f (grad g)
5. Quotient: grad = .
g g2
In 3d, let #»
r (t) = x(t)î + y(t)ĵ + z(t)k̂ be a smooth curve on the level surface f (x, y, z) = c. Then
f (x(t), y(t), z(t)) = c for all t. Differentiating this we get
grad f · #»
r 0 (t) = 0.
Look at all such smooth curves that pass through a point P on the level surface. The velocity
vectors #»
r 0 (t) to all these smooth curves are orthogonal to the gradient at P.
Let f (x, y, z) have continuous partial derivatives fx , fy , and fz . The tangent plane at P (x0 , y0 , z0 )
on the level surface f (x, y, z) = c is the plane through P which is orthogonal to grad f at P. Its
equation is
The normal line to the level surface f (x, y, z) = c at P (x0 , y0 , z0 ) is the line through P parallel to
grad f. Its parametric equation is
The equation of the tangent plane to the surface z = f (x, y) at (a, b) can be obtained as follows:
Write the surface as F (x, y, z) = 0, where F (x, y, z) = f (x, y) − z. Then Fx = fx , Fy = fy ,
Fz = −1. Then the equation of the tangent plane is
Example 1.28. Find the tangent plane and the normal line of the surface x2 + y 2 + z − 9 = 0 at
the point (1, 2, 4).
First, check that the point (1, 2, 4) lies on the surface. Next, fx (1, 2, 4) = 2, fy (1, 2, 4) = 4 and
fz (1, 2, 4) = 1. The tangent plane is given by
2(x − 1) + 4(y − 2) + (z − 4) = 0.
x = 1 + 2t, y = 2 + 4t, z = 4 + t.
Example 1.29. Find the tangent plane to the surface z = x cos y − yex at the origin.
x − y − z = 0.
Example 1.30. Find the tangent line to the curve of intersection of the surfaces
f (x, y, z) := x2 + y 2 − 2 = 0 and g(x, y, z) := x + z − 4 = 0 at the point (1, 1, 3).
23
The tangent line is orthogonal to both grad f and grad g at (1, 1, 3). So, it is parallel to
Theorem 1.9. (Taylor’s Formula for one variable) Let n ∈ N. Suppose that f (n) (x) is continuous
on [a, b] and is differentiable on (a, b). Then there exists a point c ∈ (a, b) such that
Proof: For x = a, the formula holds. So, let x ∈ (a, b]. For any t ∈ [a, x], let
f (x) − p(x)
g(t) = f (t) − p(t) − (t − a)n+1 .
(x − a)n+1
24
Since p(t) is a polynomial of degree at most n, p(n+1) (t) = 0. Then
f (x) − p(x)
g (n+1) (t) = f (n+1) (t) − (n + 1)!.
(x − a)n+1
f (x) − p(x)
Evaluating at t = cn+1 we have f (n+1) (cn+1 ) − (n + 1)! = 0. That is,
(x − a)n+1
f (x) − p(x) f (n+1) (cn+1 )
= .
(x − a)n+1 (n + 1)!
f (n+1) (cn+1 )
Consequently, g(t) = f (t) − p(t) − (t − a)n+1 .
(n + 1)!
Evaluating it at t = x and using the fact that g(x) = 0, we get
f (n+1) (cn+1 )
f (x) = p(x) + (x − a)n+1 .
(n + 1)!
Since x is an arbitrary point in (a, b], this completes the proof.
We have a similar result for functions of several variables.
Theorem 1.10. (Taylor) Let D be a domain in R2 ; (a, b) be an interior point of D. Let f : D → R
have continuous partial derivatives of order up to n + 1 in some open disk D0 centered at (a, b)
and contained in D. Then for any (a + h, b + k) ∈ D0 , there exists θ ∈ [0, 1] such that
n m
X 1 ∂ ∂
f (a + h, b + k) = f (a, b) + h +k f (a, b)
m=1
m! ∂x ∂y
n+1
1 ∂ ∂
+ h +k f (a + θh, b + θk)
(n + 1)! ∂x ∂y
1
For example, m = 2 on the right gives 2!
(h2 fxx + 2hkfxy + k 2 fyy ).
Proof: Let φ(t) = f (a + th, b + tk). Then,
φ0 (t) = fx (a + th, b + tk)h + fy (a + th, b + tk)k = (h ∂x
∂ ∂
+ k ∂y )f (a + th, b + tk).
∂ ∂ 2
φ(2) (t) = (fxx h + fxy k)h + (fyx h + fyy k)k = (h ∂x + k ∂y ) f (a + th, b + tk).
By induction, it follows that
∂ ∂ m
φ(m) (t) = h +k f (a + th, b + tk).
∂x ∂y
Using Taylor’s formula for the single variable function φ(t), we have
n
X φ(m) (0) φ(n+1) (θ)
φ(1) = φ(0) + + .
m=1
m! (n + 1)!
for some θ ∈ [0, 1]. Substituting the expression for φ(n+1) (θ), we get the required result.
Example 1.31. Let f (x, y) = x2 + xy − y 2 , a = 1, b = −2.
Here, f (1, −2) = −5, fx (1, −2) = 0, fy (1, −2) = 5, fxx = 2, fxy = 1, fyy = −2. Then
1
f (x, y) = −5 + 5(y + 2) + 2(x − 1)2 + 2(x − 1)(y + 2) − 2(y + 2)2 .
2
This becomes exact, since third (and more) order derivatives are 0.
25
1.10 Extreme Values
We extend the notions of local maxima and local minima to a function of two variables.
Let D be a domain in R2 ; (a, b) ∈ D; and let f : D → R.
f (x, y) has a local maximum at (a, b) if f (x, y) ≤ f (a, b) for all (x, y) near (a, b).
That is, for all (x, y) in some open disk centered at (a, b), f (x, y) ≤ f (a, b).
The number f (a, b) is then called a local maximum value of f (x, y); and the point (a, b) is called
a point of local maximum of f (x, y).
If for all (x, y) ∈ D, f (x, y) ≤ f (a, b) then f has an absolute maximum at (a, b).
The number f (a, b) is called the absolute maximum value of f ; and the point (a, b) is called a
point of absolute maximum of f (x, y).
Proof: Suppose f has a local maximum at an interior point (a, b) of D. Suppose fx (a, b) exists.
The function g(x) = f (x, b) has a local maximum at x = a. Then g 0 (a) = 0. That is, fx (a, b) = 0.
Similarly, consider h(y) = f (a, y) and conclude that fy (a, b) = 0. Give similar argument if f has
a local minimum at (a, b).
Geometrically, it says that if at an interior point (a, b), there exists a tangent plane to the surface
z = f (x, y), and if this point (a, b) happens to be an extremum point, then there exists a horizontal
tangent plane to the surface at (a, b).
Let D be a domain in R2 . Let f : D → R have continuous partial derivatives fx and fy . Let (a, b) be
a critical point of f (x, y). The point (a, b, f (a, b)) on the surface is called a saddle point of f (x, y)
if in every open disk centered at (a, b) and contained in D, there are points (x1 , y1 ), (x2 , y2 ) such
that f (x1 , y1 ) < f (a, b) < f (x2 , y2 ).
At a saddle point, the function has neither a local maximum nor a local minimum; the surface
crosses its tangent plane.
26
For a function f (x, y), its Hessian is defined by
fxx fxy 2
H(f ) := = fxx fyy − fxy .
fxy fyy
Suppose that the function f (x, y) has second order continuous partial derivatives in an open disk
centered at a point (a, b) inside its domain of definition. If H(f )(a, b) > 0, then the surface
z = f (x, y) curves the same way in all directions near (a, b).
We will not prove this geometrical fact. We rather prove one of its corollaries which will help us
in determining the local maxima and local minima.
Theorem 1.12. Let f : D → R have continuous first and second order partial derivatives in an
open disk centered at (a, b) ∈ D. Suppose (a, b) is a critical point of f (x, y).
1. If H(f )(a, b) > 0 and fxx (a, b) < 0, then f (x, y) has a local maximum at (a, b).
2. If H(f )(a, b) > 0 and fxx (a, b) > 0, then f (x, y) has a local minimum at (a, b).
3. If H(f )(a, b) < 0 then f (x, y) has a saddle point at (a, b).
1
f (a + h, b + k) − f (a, b) = (h2 fxx + 2hkfxy + k 2 fyy ) (1.1)
2 (a+θh,b+θk)
(1) Let H(f )(a, b) > 0 and fxx (a, b) < 0. Multiply both sides of Equation 1.1 by 2fxx , add and
subtract (fxy )2 k 2 , and rearrange to get (All of fxx , fxy , fyy are evaluated at (a + θh, b + θk).)
27
By continuity of functions involved, fxx (a + θh, b + θk) < 0. The RHS is positive. Therefore,
f (a + h, b + k) − f (a, b) < 0. That is, (a, b) is a local maximum point.
(2) Let H(f )(a, b) > 0 and fxx (a, b) > 0, By continuity again, fxx (a + θh, b + θk) > 0. So,
f (a + h, b + k) − f (a, b) > 0. That is, (a, b) is a local minimum point.
(3) Let H(f )(a, b) < 0. We want to show that f (a + h, b + k) − f (a, b) has opposite signs at
different points in any small disk around (a, b). We break this case into three sub-cases:
(3A) fxx (a, b) 6= 0. (3B) fyy (a, b) 6= 0, (3C) fxx (a, b) = fyy (a, b) = 0.
(3A) Let H(f )(a, b) < 0 and fxx (a, b) 6= 0.
First, set h = t, k = 0 in Equation 1.1 and evaluate the following limit:
f (a + h, b + k) − f (a, b) 1
lim 2
= lim (fxx + 2fxy + fyy )|(a+t,b+t) = fxy (a, b).
t→0 t t→0 2
f (a + h, b + k) − f (a, b) 1
lim 2
= lim (fxx − 2fxy + fyy )|(a+t,b+t) = −fxy (a, b).
t→0 t t→0 2
As in (3A), f (a + h, b + k) − f (a, b) will have opposite signs in any neighborhood of (a, b).
Notice that the case H(f )(a, b) > 0 and fxx (a, b) = 0 is not possible. Moreover, Under the condi-
tion that H(f )(a, b) > 0, both fxx (a, b) and fyy (a, b) have the same sign. Thus, in Theorem 1.12,
the sign condition on fxx (a, b) can be replaced by the corresponding sign condition on fyy (a, b).
It also says that if fxx (a, b) and fyy (a, b) have the opposite signs, then the critical point (a, b) is a
saddle point of f (x, y).
Domain of f is R2 having no boundary points. f is differentiable. Its extreme values are all local
extrema. The critical points are those where both fx and fy vanish. Now,
fx = y − 2x − 2, fy = x − 2y − 2.
28
The critical points satisfy fx = 0 = fy . That is, x = y = −2.
fxx (−2, −2) = −2, fxy (−2, −2) = 1, fyy (−2, −2) = −2.
Then H(f )(−2, −2) = 3 > 0, fxx < 0.
Thus, f has local maximum at (−2, −2).
Here also f has absolute maximum and the maximum value is f (−2, −2) = 8.
Example 1.33. Investigate f (x, y) = x4 + y 4 − 4xy + 1 for extreme values.
The function has continuous first and second partial derivatives everywhere.
The critical points are at (x, y) where fx = 4x3 − 4y = 0 = fy = 4y 3 − 4x.
That is, when x3 = y and y 3 = x. Giving x9 = x which has solutions x = 0, 1, −1 in R. The
corresponding y values are 0, 1, −1.
Now, fxx = 12x2 , fxy = −4, fyy = 12y 2 . Thus H(f ) = 144x2 y 2 − 16.
At x = 0, y = 0, H(f ) = −16. Thus f has a saddle point at (0, 0).
At x = 1, y = 1, H(f ) > 0, fxx > 0. Thus f has a local minimum at (1, 1).
At x = −1, y = −1, H(f ) > 0, fxx > 0. Thus f has a local minimum at (−1, −1).
The local minimum values are f (1, 1) = −1 and f (−1, −1) = −1. Both are absolute minima.
Example 1.34. Find absolute extrema of f (x, y) = 2 + 2x + 2y − x2 − y 2 defined on the triangular
region bounded by the straight lines x = 0, y = 0, and x + y = 9.
1. The critical points are solutions of fx = 2 − 2x = 0 = fy = 2 − 2y. That is, x = 1, y = 1.
This accounts for the interior points of the domain.
2. Draw the picture. The vertices of the triangle are A(0, 0), B(0, 9), C(9, 0). These are possible
extremum points. This accounts for the vertices which are on the boundary.
3. Next, we should consider the boundary in detail.
3(a). On the line segment AB, f is given by (y = 0):
g(x) = f (x, 0) = 2 + 2x − x2 for 0 ≤ x ≤ 9. Now, g 0 (x) = 0 ⇒ x = 1.
Thus (1, 0) is a possible extremum point.
3(b). Similarly, on the line segment AC, f is given by (x = 0):
g(y) = f (0, y) = 2 + 2y − y 2 for 0 ≤ y ≤ 9. Then g 0 (y) = 0 ⇒ y = 1.
Thus, a possible extremum point is (0, 1).
3(c). On the line segment BC, f is given by (x + y = 9):
g(x) = f (x, 9 − x) = 2 + 2x + 2(9 − x) − x2 − (9 − x)2 = −61 + 18x − 2x2 for 0 ≤ x ≤ 9.
g 0 (x) = 0 ⇒ 18 − 4x = 0 ⇒ x = 9/2, y = 9 − x = 9/2.
Thus (9/2, 9/2) is a possible extremum point.
The values at these possible extrema are
f (1, 1) = 4, f (0, 0) = 2, f (0, 9) = −61, f (9, 0) = −61, f (1, 0) = 3, f (0, 1) = 3, f (9/2, 9/2) = −41/2.
Therefore, f (x, y) has absolute minimum at (0, 9) and (9, 0) and its minimum value is −61.
29
It has absolute maximum at (1, 1) and its maximum value is 4.
Example 1.35. Maximize the volume of a box of length x, width y and height z subject to the
condition that x + 2y + 2z = 108.
Example 1.36. Find the points closest to the origin on the hyperbolic cylinder x2 − z 2 = 1.
30
Now, gx = 4x, gy = 2y. Equating them to zero gives x = 0 and y = 0. But x = 0 does not
correspond to any point on the surface x2 − z 2 = 1. So, the method fails!
Instead of eliminating z, suppose we eliminate x. In that case, we seek to minimize
√
g(y, z) := f (± 1 + z2 , y, z) = 1 + z 2 + y 2 + z 2 = y 2 + 2z 2 + 1.
Similar equations hold when there are more than one constraint.
Example 1.36 Contd.: We see that
f (x, y, z) = x2 + y 2 + z 2 , g(x, y, z) = x2 − z 2 − 1.
31
The necessary equations at a possible extremum point (x0 , y0 , z0 ) are
fx + λgx = 2x + λ2x = 0, fy + λgy = 2y = 0,
fz + λgz = 2z − λ2z = 0, g = x2 − z 2 − 1 = 0.
It gives x0 = 0 or λ = −1; y0 = 0; z0 = 0 or λ = 1.
From these options, x0 = 0 is not possible for any z since x2 −z 2 = 1. λ = 1 gives x = 0, which is
again not possible. We are left with λ = −1, y0 = 0, z0 = 0. Now, x20 − z02 − 1 = 0 gives x0 = ±1.
The corresponding points are (±1, 0, 0). f (x, y, z) at these extremum points has value 1. Since
f (x, y, z) is unbounded above, it does not have a maximum. Therefore, f (x, y, z) at these points
is minimum. Thus the points closest to the origin on the cylinder are (±1, 0, 0).
Notice that if we set F (x, y, z, λ) := f (x, y, z) + λg(x, y, z) = 0, then
Fx = fx + λgx = 0, Fy = fy + λgy = 0, Fz = fz + λgz = 0.
Moreover, g(x, y, z) = 0 also comes from Fλ = 0.
We can now formulate the method of solving a constrained optimization problem.
Requirement: Find extrema of the function f (x1 , . . . , xn ) subject to the conditions
g1 (x1 , . . . , xn ) = 0, · · · , gm (x1 , . . . , xn ) = 0.
Method: Set the auxiliary function:
F (x1 , . . . , xn , λ1 , . . . , λm ) := f (x1 , . . . , xn ) + λ1 g1 (x1 , . . . , xn ) + · · · λm gm (x1 , . . . , xn ).
Equate to zero the partial derivatives of F with respect to x1 , . . . , xn , λ1 , . . . , λm . It results in
m + n equations in x1 , . . . , xn , λ1 , . . . , λm .
Determine x1 , . . . , xn λ1 , . . . , λm from these equations.
The required extremum points may be found from among these values of x1 , . . . , xn , λ1 , . . . , λm .
Remember that the method succeeds under the condition that such extreme values exist where
grad gj 6= 0 for any j.
Example 1.37. Find the maximum value of f (x, y, z) = x + 2y + 3z on the curve of intersection
of the plane g(x, y, z) := x − y + z − 1 = 0 and the cylinder h(x, y, z) := x2 + y 2 − 1 = 0.
The auxiliary function is
F (x, y, z, λ, µ) := f + λg + µh = x + 2y + 3z + λ(x − y + z − 1) + µ(x2 + y 2 − 1).
Setting Fx = Fy = Fy = Fλ = Fµ = 0, for (x0 , y0 , z0 ), we have
1 + λ + 2x0 µ = 0, 2 − λ + 2y0 µ = 0, 3 + λ = 0, x0 − y0 + z0 − 1 = 0, x20 + y02 − 1 = 0.
We obtain: λ = −3, x0 = 1/µ, y0 = −5/(2µ), 1/µ2 + 25/(4µ2 ) = 1. That is, µ2 = 29/4. Then
the extreme points are
√ √ √
x0 = ±2/ 29, y0 = ∓5/ 29, z0 = 1 ± 7/ 29.
√
The corresponding values of f (x0 , y0 , z0 ) show that the maximum value of f is 3 + 29.
Notice that if µ = 0, then 1 + λ = 0 = 2 − λ leads to inconsistency. Also the conditions that
grad g 6= 0 and grad h 6= 0 are satisfied automatically for the given constraints.
32
1.12 Review Problems
2xy
Probelm 1.1: Where is the function f (x, y) = x2 +y 2
continuous? What are the limits of f at the
points of discontinuity?
f (x, y) is defined everywhere in the plane except at the origin. When (x, y) 6= (0, 0), the functions
g(x) = 2xy and h(x, y) = x2 + y 2 are continuous. Hence f (x, y) is continuous everywhere except
at the origin.
The only point of discontinuity is possibly the origin. We show that as (x, y) → (0, 0), f (x, y) has
no limit. On the contrary, suppose f (x, y) has the limit L at (0, 0). Then
2x2
L= lim f (x, y) = lim =1
y=x,x→0 x→0 2x2
and also
−2x2
L= lim f (x, y) = lim = −1
y=−x,x→0 x→0 2x2
It is a contradiction.
Problem 1.2: Find the total increment ∆z and the total differential dz of the function z = xy at
(2, 3) for ∆x = 0.1, ∆y = 0.2.
At (2, 3) with ∆x = 0.1, ∆y = 0.2, we have
∆z = (x + ∆x)(y + ∆y) − xy = y∆x + x∆y + ∆x∆y = 3 × 0.1 + 2 × 0.2 + 0.1 × 0.2 = 0.72.
Therefore sin−1 32
75
− 0.00273 ≤ A ≤ sin−1 32
+ 0.00273.
75
33
The unit vector in the direction of #»
v is û = √2 î
14
+ √1 ĵ
14
+ √3 k̂.
14
The gradient of f at (1, 1, 1) is
grad f (1, 1, 1) = (fx î + fy ĵ + fz k̂)(1, 1, 1) = 2î + 2ĵ + 2k̂. Then
∂f 12
v
(1, 1, 1) = (grad f · û)(1, 1, 1) = √ .
∂s 14
1
Problem 1.6: Find a point in the plane where the function f (x, y) = 2
− sin(x2 + y 2 ) has a local
maximum.
We see that at (0, 0), the function has a maximum value of 12 . To prove this, consider the neighbor-
hood B = {(x, y) : x2 + y 2 ≤ π/9} of (0, 0). Now, for any point (a, b) ∈ B other than (0, 0), we
have
1 1
f (a, b) = − sin(a2 + b2 ) ≤ = f (0, 0).
2 2
Problem 1.7: Decompose a given positive number a into three parts to make their product maxi-
mum.
Let a = x + y + (a − x − y), for 0 ≤ x, y, a − x − y ≤ a. Then x and y can take values from the
region D bounded by the straight lines x = 0, y = 0 and x + y = a. The function to be maximized
is
f (x, y) = xy(a − x − y)
defined from D to R. The partial derivatives of f are continuous everywhere on D. They are
zx = 3x2 − 3y = 0, zy = 3y 2 − 3x = 0.
34
Problem 1.9: Find the maximum of w = xyz given that xy + zx + yz = a for a given positive
number a, and x > 0, y > 0, z > 0.
The auxiliary function is
The corresponding value of w cannot be minimum, since by reducing x, y close to 0, and taking z
close to a so thatpxy + zx
p + yzp= a is satisfied, w can be made as small as possible. Hence w has
3
a maximum at ( a/3, a/3, a/3). The maximum value of w is (a/3) .
Problem 1.10: Determine the maximum value of z = (x1 · · · xn )1/n provided that x1 + · · · + xn =
a, where a is a given positive number.
Maximizing z is equivalent to maximizing f (x1 , . . . , xn ) = z n = x1 x2 · · · xn . Set up the auxiliary
function
F (x1 , . . . , xn , λ) = x1 x2 · · · xn + λ(x1 + · · · xn − a).
Equate the partial derivatives Fxi to zero to obtain
Notice that λ 6= 0. Then multiplying by xi , we see that λxi = x1 x2 · · · xn for each i. Therefore,
x1 = x2 = · · · = xn = a/n. In that case, f = (a/n)n and z = a/n. This value is not a minimum
value of z since z can be made arbitrarily small by choosing x1 close to 0. Thus, the maximum of
z is a/n.
This gives an alternative proof that the geometric mean of n positive numbers is no more than the
arithmetic mean of those numbers.
35
Chapter 2
Multiple Integrals
Suppose the region is bounded above by the curve y = f (x) and below by the x-axis, where
a ≤ x ≤ b. To find the volume of the solid so generated, we divide the interval [a, b] into n equal
parts. Let the partition be
On the ith subinterval we approximate the slice of the solid by π[f (x∗i )]2 (xi − xi−1 ) for a point
x∗i ∈ [xi−1 , xi ]. Reason: the slice is a portion of a cylinder whose cross section with a plane vertical
to its axis is a circle. Then the volume of the solid of revolution is approximated by the sum
n
X
π[f (x∗i )]2 (xi − xi−1 ).
i=1
Then the volume of the solid of revolution is the limit of the above sum where n → ∞. Observe
that the cross sectional area for x ∈ [a, b] is A(x) = π(f (x))2 . If A(x) is a continuous function of
x, then the limit of the above sum is the required volume; that is,
Z b Z b
V = A(x) dx = π[f (x)]2 dx.
a a
If the axis of revolution is a straight line other than the x-axis, similar formulas can be obtained for
the volume.
36
√
Example 2.1. The region between the curve y = x, 0 ≤ x ≤ 4 and the x-axis is revolved around
x-axis. Find the volume of the solid of revolution.
We think of the sphere as the solid of revolution of the region bounded by the upper semi-circle
√
x2 + y 2 = a2 , y ≥ 0. Here, −a ≤ x ≤ a. The curve is thus y = a2 − x2 . Then the volume of
the sphere is
Z a √ Z a
2
h x3 ia 4
V = 2 2
π( a − x ) dx = π(a2 − x2 ) dx = π a2 x − = πa3 .
−a −a 3 −a 3
√
Example 2.3. Find the volume of the solid obtained by revolving the region bounded by y = x
and the lines y = 1, x = 4 about the line y = 1.
The volume is Z 4 Z 4
2 4
V = π[R(y)] dy = π dy = 3π.
1 1 y2
37
Example 2.5. Find the volume of the solid generated by revolving the region between the parabola
x = y 2 + 1 and the line x = 3 about the line x = 3.
Notice that the cross sections are perpendicular to the axis of revolution: x = 3.
The volume is √ √ √
Z 2 Z 2
2 64π 22 2
V = √ π[R(y)] dy = √ π[2 − y ] dy = .
− 2 − 2 15
If the region which revolves does not border the axis of revolution, then there are holes in the solid.
In this case, we subtract the volume of the hole to obtain the volume of the solid of revolution.
Look at the figure. In this case, the volume of the the solid of revolution is given by
Z b Z b
V = A(x) dx = π[(R(x))2 − (r(x))2 ] dx.
a a
Example 2.6. The region bounded by the curve y = x2 + 1 and the line x + y = 3 is revolved
about the x-axis to generate a solid. Find the volume of the solid.
38
The given curves intersect at y = 0 and y = 4. The required volume is
Z 4 Z 4
2 2 √ 8π
V = [(R(y)) − (r(y)) ] dy = π[( y)2 − (y/2)2 ] dy = .
0 0 3
Example 2.8.
√ √
The point B lies on the circle y = 1 − x2 . So, the length of AB is 2 1 − x2 . Since the triangle
√ √
is equilateral, its height is 3 1 − x2 . The cross sectional area is
1 √ √ √ √
A(x) = 2 1 − x2 3 1 − x2 = 3 (1 − x2 ).
2
Thus, the volume of the solid is
Z 1 Z 1 √ 4
V = A(x) dx = 3 (1 − x2 ) dx = √ .
−1 −1 3
39
Example 2.9.
40
So, consider a partition of R as
Denote by A(Rij ) the area of the rectangle Rij ; Denote by kP k = max A(Rij ), the norm of P.
Choose sample points (x∗i , yj∗ ) ∈ Rij . An approximation to the volume of S is the Riemann sum
m X
X n
Smn = f (x∗i , yj∗ )A(Rij ).
i=1 j=1
If limit of Smn exists as kP k → 0, then this limit is called the double integral of f (x, y). It is
RR
denoted by R f (x, y)dA. Whenever the integral exists, it is also enough to consider uniform
partitions, that is, xi − xi−1 = (b − a)/m = ∆x and yj − yj−1 = (d − c)/n = ∆y. In this case,
we write A(Rij ) = ∆A = ∆x∆y. Then
ZZ m X
X n
f (x, y)dA = lim Smn = lim lim f (x∗i , yj∗ )∆A.
R kP k→0 m→∞ n→∞
i=1 j=1
Since f (x, y) ≥ 0, the value of this integral is the volume of the solid S bounded by the rectangle
R and the surface z = f (x, y).
When the integral of f (x, y) exists, we say that f is Riemann integrable or just integrable.
Riemann sum is well defined even if f is not a positive function. However, the double integral
computes the signed volume. Analogous to the single variable case, we have the following result;
we omit its proof.
Theorem 2.1. Each continuous function defined on a closed bounded rectangle is integrable.
Example 2.11. Find the volume V of the solid raised over the rectangle R : [0, 1] × [0, 2] and
bounded above by the plane z = 4 − x − y, we proceed as follows (similar to solids of revolution):
41
R1 R2
Suppose A(x) is the cross sectional are at x. Then V = 0 A(x)dx. Now, A(x) = 0 (4−x−y)dy.
R1R2
Thus, V = 0 0 (4 − x − y)dydx. Therefore,
ZZ Z 1Z 2
(4 − x − y)dA = (4 − x − y)dydx.
R 0 0
The expression on the left is a double integral and on the right is an iterated integral.
Theorem 2.2. (Fubini) Let R be the rectangle [a, b] × [c, d]. Let f : R → R be a continuous
function. Then
ZZ Z bZ d Z dZ b
f (x, y)dA = f (x, y)dydx = f (x, y)dxdy.
R a c c a
RR
Example 2.12. Evaluate R
(1 − 6x2 y)dA, where R = [0, 2] × [−1, 1].
ZZ Z 1 Z 2 Z 1
2 2
(1 − 6x y)dA = (1 − 6x y)dxdy = (2 − 16y)dy = 4.
R −1 0 −1
Also, reversing the order of integration, we have
ZZ Z 2Z 1 Z 2
2 2
(1 − 6x y)dA = (1 − 6x y)dydx = 2dx = 4.
R 0 −1 0
RR
Example 2.13. Evaluate R y sin(xy)dA, where R = [1, 2] × [0, π].
RR RπR2 Rπ
R
y sin(xy)dA = 0 1 y sin(xy) dxdy = 0 (− cos 2y + cos y)dy = 0.
The volume of the solid above R and below the surface z = y sin(xy) is the same as the volume
below R and above the surface. Therefore, the net volume is zero.
42
Example 2.14. Find the volume of the solid bounded by the elliptic paraboloid x2 + 2y 2 + z = 16,
planes x = 2 and y = 2, and the three coordinate planes.
Let R be the rectangle [0, 2] × [0, 2]. The solid is above R and below the surface defined by
z = f (x, y) = 16 − x2 − 2y 2 , where f is defined on R.
ZZ Z 2 Z 2
2 2
V = (16 − x − 2y )dA = (16 − x2 − 2y 2 )dxdy = 48.
R 0 0
The double integrals can be extended to functions defined on non-rectangular regions. Essentially,
the approach is the same as earlier. We partition the region into smaller rectangles, form the
Riemann sum, take its limit as the norm of the partition goes to zero.
The double integral of f over such a bounded region R can also be evaluated using iterated inte-
grals. Look at R bounded by two continuous functions g1 (x) and g2 (x); or, as a region bounded
by two continuous functions h1 (y) and h2 (y).
43
Example 2.15. Find the volume of the prism whose base is the triangle in the xy-plane bounded
by the lines y = 0, x = 1 and y = x, and whose top lies in the plane z = 3 − x − y.
Z 1 Z x Z 1
V = (3 − x − y)dydx = (3x − 3x2 /2)dx = 1.
0 0 0
Also, Z 1 Z 1 Z 1
V = (3 − x − y)dxdy = (5/2 − 4y + 3y 2 /2)dy = 1.
0 y 0
Suppose R is the region bounded by the line x + y = 1 and the portion of the circle x2 + y 2 = 1
in the first quadrant. Sketch it and then find the limits:
ZZ Z 1 Z √
1−x2 Z 1 Z √1−y2
f (x, y)dA = f (x, y)dydx = f (x, y)dxdy.
R 0 1−x 0 1−y
44
For evaluating a double integral as an iterated integral, choose some order: first x, next y. If it does
not work, or if it is complicated, you may have to choose the reverse order.
Example 2.16. Evaluate R sinx x dA, where R is the triangle in the xy-plane bounded by the lines
RR
y = 0, x = 1, and y = x.
Here, the triangular region R can be expressed as {(x, y) : 0 ≤ y ≤ 1, y ≤ x ≤ 1}. So,
ZZ Z 1Z 1
sin x sin x
dA = dxdy.
R x 0 y x
We are stuck. No way to proceed further. On the other hand, we express the same R in a different
way: {(x, y) : 0 ≤ y ≤ x, 0 ≤ x ≤ 1}. Then
Z 1Z x Z 1
sin x x
ZZ Z Z 1
sin x sin x
dA = dydx = dy dx = sin xdx = − cos(1) + 1.
R x 0 0 x 0 x 0 0
R1R1
Example 2.17. Evaluate the iterated integral 0 x sin(y 2 )dydx.
Write D : 0 ≤ x ≤ 1, x ≤ y ≤ 1. We plan to change the order of integration.
Z 1 Z 1 ZZ
2
sin(y )dydx = sin(y 2 )dA
0 x
Z 1DZ y
= sin(y 2 )dxdy
Z0 1 0
1
= y sin(y 2 )dy = (1 − cos(1).
0 2
Properties of double integrals with respect to addition, multiplication etc. are as follows.
Theorem 2.4. Let f (x, y) and g(x, y) be continuous on a domain D. Let c be a constant.
RR RR
1. (Constant Multiple): D cf (x, y)dA = c D f (x, y)dA.
RR RR RR
2. (Sum-Difference): D [f (x, y) ± g(x, y)]dA = D f (x, y)dA ± D g(x, y)dA.
RR RR RR
3. (Additivity): D∪R f (x, y)dA = D f (x, y)dA + R f (x, y)dA,
provided f (x, y) is continuous on a domain R also, and D and R are non-overlapping.
RR RR
4. (Domination): If f (x, y) ≤ g(x, y) in D, then D f (x, y)dA ≤ D g(x, y)dA.
RR
5. (Area): D 1 dA = ∆(D) = Area of D.
RR
6. (Boundedness): If m ≤ f (x, y) ≤ M in D, then m∆(D) ≤ D f (x, y)dA ≤ M ∆(D).
45
2.3 Riemann Sum in Polar coordinates
Suppose R is one of the following regions in the plane:
It is easy to describe such regions in polar coordinates. Using polar coordinates, we define a polar
rectangle as a region given in the form:
R = {(r, θ) : a ≤ r ≤ b, α ≤ θ ≤ β, β − α ≤ 2π}.
If f (x, y) is continuous on the polar rectangle R, then converting this into polar form, we have
ZZ Z βZ b
f (x, y)dA = f (r cos θ, r sin θ)r dr dθ.
R α a
46
The double integral in polar form can be generalized to functions defined on regions other than
polar rectangles. Let f be a continuous function defined over a region bounded by the rays
θ = α, θ = β and the continuous curves r = g1 (θ), r = g2 (θ).
Then ZZ Z β Z g2 (θ)
f (r, θ)dA = f (r, θ) r dr dθ.
R α g1 (θ)
ZZ Z π/2 Z 1+cos θ
f (r, θ)dA = f (r, θ)r dr dθ.
R −π/2 1
R 1 R √1−x2
Example 2.19. Evaluate I = 0 0
(x2 + y 2 )dydx.
The limits of integration say that the region is the quarter of the unit disk in the first quadrant:
47
R 1 R √1−x2 2 +y 2
Example 2.20. Evaluate I = −1 0
ex dydx.
R = {(r, θ) : 0 ≤ r ≤ 1, 0 ≤ θ ≤ π}.
RR 2 +y 2
Then I = R
ex dA. Using integration in polar form,
π 1 π π
e−1
Z Z Z h1 Z
r2 r2
i1 π
I= e r dr dθ = e dθ = dθ = (e − 1).
0 0 0 2 0 0 2 2
RR
Example 2.21. Evaluate R (3x + 4y 2 )dA, where R is the region in the upper half plane bounded
by the circles x2 + y 2 = 1 and x2 + y 2 = 4.
48
Example 2.23. Find the volume of the solid that lies under the paraboloid z = x2 + y 2 , above the
xy-plane, and inside the cylinder x2 + y 2 = 2x.
The solid lies above the disk D whose boundary has equation x2 +y 2 = 2x, or in polar coordinates,
r2 = 2r cos θ, or r = 2 cos θ.
where (x∗i , yj∗ , zk∗ ) is a point in the (i, j, k)-th cube in the partition.
As earlier, Fubuni’s theorem says that for continuous functions, if the region D can be written as
To find the limits of integration, we first sketch the region D along with its shadow on the xy-plane.
Next, we find the z-limits, then y-limits and then x-limits.
49
RRR
Observe that the volume of D is D
1 dV.
All properties for double integrals hold analogously for triple integrals.
Example 2.24. Find the volume of the solid enclosed by the surfaces z = x2 + 3y 2 and
z = 8 − x2 − y 2 .
50
Therefore,
ZZZ Z 2 Z √(4−x2 )/2 Z 8−x2 −y 2
V = dV = √ dz dy dx
D −2 − (4−x2 )/2 x2 +3y 2
Z 2 Z √(4−x2 )/2
= √ (8 − 2x2 − 4y 2 ) dy dx
−2 − (4−x2 )/2
Z h 2
4 iy=√(4−x2 )/2
= (8 − 2x2 )y − y 3 √ dx
−2 3 y=− (4−x2 )/2
Z 2
4 − x2 3/2 8 4 − x2 3/2
= 8 − dx
−2 2 3 2
√ Z
4 2 2 √
= (4 − x2 )3/2 dx = 8π 2.
3 −2
Notice that changing the order of integration involves expressing the domain by choosing different
order of the limits of values in the axes.
Example 2.25. Write the integral of f (x, y, z) over a tetrahedron with vertices at (0, 0, 0), (1, 1, 0),
(0, 1, 0), and (0, 1, 1) as an iterated integral.
First, sketch the region D to see the limits geometrically. The right hand side bounding surface of
D lies in the plane y = 1. The left hand side bounding surface lies in the plane y = z + x. The
projection of D on the zx-plane is R. The upper boundary of R is the line z = 1 − x. The lower
boundary of R is the line z = 0.
To find the y-limits for D, we consider a typical point (x, z) in R and a line through this point
parallel to y-axis. It enters D at y = x + z and leaves at y = 1.
To find the z-limits for D, we find that the line L through (x, z) parallel to z-axis enters R at z = 0
and leaves R at z = 1 − x.
51
Thus the triple integral of a function f (x, y, z) over D is given by
ZZZ Z 1 Z 1−x Z 1
f (x, y, z) dV = f (x, y, z) dy dz dx.
D 0 0 x+z
If we interchange the orders of y and z, then first we consider limits for z and then of y. In this
case, we project D on the xy-plane. A line parallel to z-axis through (x, y) in the xy-plane enters
D at z = 0 and leaves D through the upper plane z = y − x.
For the y-limits, on the xy-plane, where z = 0, the sloped side of D crosses the plane along the
line y = x. A line through (x, y) parallel to y-axis enters the xy-plane at y = x and leaves at y = 1.
The x-limits are as earlier.
Therefore D = {(x, y, z) : 0 ≤ x ≤ 1, x ≤ y ≤ 1, 0 ≤ z ≤ y − x}.
The same triple integral is rewritten as the following iterated integral:
ZZZ Z 1 Z 1 Z y−x
f (x, y, z) dV = f (x, y, z) dz dy dx.
D 0 x 0
R1RzRy 3
Example 2.26. Evaluate 0 0 0
e(1−x) dx dy dz by changing the order of integration.
52
If P has Cartesian representation (x, y, z) and cylindrical representation (r, θ, z), then
In cylindrical coordinates,
r = a describes a cylinder with axis as z-axis.
θ = α describes a plane containing the z-axis.
z = b describes a plane perpendicular to z-axis.
The Riemann sum of f (r, θ, z) uses a partition of D into cylindrical wedges:
Its conversion to iterated integrals uses a similar technique of determining the limits of integration.
Example 2.27. Find the limits of integration in cylindrical coordinates for integrating a function
f (r, θ, z) over the region D bounded below by the plane z = 0, laterally by the circular cylinder
x2 + (y − 1)2 = 1, and above by the paraboloid z = x2 + y 2 .
53
The projection of D onto the xy-plane gives the disk R enclosed by the circle x2 + (y − 1)2 = 1.
It simplifies to x2 + y 2 = 2y. Its polar form is r2 = 2r sin θ or, r = 2 sin θ.
A line through a point (r, θ) ∈ R enters D at z = 0 and leaves D at z = x2 + y 2 = r2 .
A line in the (r, θ)-plane through the origin enters R at r = 0 and leaves R at r = 2 sin θ.
As this line sweeps through R it enters R at θ = 0 and leaves at θ = π. Hence
ZZZ Z π Z 2 sin θ Z r2
f (r, θ, z)dV = f (r, θ, z)r dz dr dθ.
0 0 0
√
Z 2 Z 4−x2 Z 2
Example 2.28. Evaluate I = √ √ (x2 + y 2 ) dz dy dx.
−2 − 4−x2 x2 +y 2
p
The z-limits show that the solid is bounded below by the cone z = x2 + y 2 and above bythe
plane z = 2. Its projection on the xy-plane is the disk x2 + y 2 = 4. The limits for y also confirm
this. A sketch of the solid looks as follows:
Since the projection of the solid on the xy-plane is a disk; cylindrical coordinates will be easier.
p
The projected disk gives the limits as 0 ≤ θ ≤ 2π, 0 ≤ r ≤ 2 whereas x2 + y 2 = r ≤ z ≤ 2.
Thus
ZZZ Z 2π Z 2 Z 2
2 2
I = (x + y )dV = r2 r dz dr dθ
Z 2π DZ 2 0
Z0 2π r 4 Z 2π
3 2 25 8 16
= (r (2 − r) dr dθ = 2 − dθ = dθ = π.
0 0 0 4 5 0 5 5
54
In spherical coordinates,
ρ = a describes a sphere centered at origin.
φ = φ0 describes a cone with axis as z-axis.
θ = θ0 describes the plane containing z-axis and OP.
When computing triple integrals over a region D in spherical coordinates, we partition the region
into n spherical wedges. The size of the kth spherical wedge, which contains a point (ρk , φk , θk ),
is given by the changes ∆ρk , ∆φk , ∆θk in ρ, φ, θ.
Such a spherical wedge has one edge a circular arc of length ρk ∆φk , another edge a circular arc of
length ρk sin φk ∆θk and thickness ∆ρk . The volume of such a spherical wedge is approximately
a rectangular box with dimensions ρk , ρk × ∆φk (arc of a circle with radius ρk and angle φk , and
ρk sin φk × ∆θk (arc of a circle with radius ρk sin φk and angle θk ). Thus
The corresponding Riemann sum is S = nk=1 f (ρk , φk , θk )ρ2k sin φk ∆ρk ∆φk ∆θk . Accordingly,
P
ZZZ ZZZ
f (ρ, φ, θ)dV = f (ρ, φ, θ)ρ2 sin φ dρ dφ dθ.
D D
The procedure in computing a triple integral in spherical coordinates is similar to that in cylindrical
coordinates:
Sketch the region D and its projection on the xy-plane. Then find the ρ limit, φ limit and θ limit.
55
ZZZ Z β Z φ−max Z g2 (φ,θ)
f (ρ, φ, θ)dV = f (ρ, φ, θ)ρ2 sin φ dρ dφ dθ.
D α φ−min g1 (φ,θ
Example 2.29. Find the volume of the solid D cut from the ball ρ ≤ 1 by the cone φ = π/3.
Draw a ray M through D from the origin making an angle φ with the z-axis. Draw also its
projection L on the xy-plane. The line L makes an angle θ with the x-axis. Let R be the projected
region of D in the xy-plane.
56
Since the integrand is a product of separate functions of ρ, of φ, of θ,
Z 1 Z π Z 2π h eρ3 i1 h iπ 4π
ρ3 2
I= e ρ dρ sin φ dφ dθ = − cos φ (2π) = (e − 1).
0 0 0 3 0 0 3
Example 2.31. What is the image of D = {(u, v) : 0 ≤ u ≤ 1, 0 ≤ v ≤ 1} under the the map
given by x = u2 − v 2 , y = 2uv ?
If (u, v) 7→ (x, y), then how does area of a small rectangle change?
57
A typical small rectangle with sides ∆u and ∆v has corners at the points
This determinant is called the Jacobian of the map (u, v) 7→ (x, y); and is denoted by J(x(u, v), y(u, v)).
∂(x, y)
The Jacobian is also written as J(x(u, v), y(u, v)) = .
∂(u, v)
We write this as Area of image of a rectangle with one corner at (a, b) and sides of length ∆u and
∆v is approximately |J(x(u, v), y(u, v)|∆u∆v, where the Jacobian J(·, ·) is evaluated at (a, b).
In deriving this approximation, we have assumed that xu , xv , yu , yv are continuous.
Assume that x = x(u, v) and y = y(u, v) have continuous partial derivatives with respect to u and
v. Assume also that a region D in the uv-plane is in one-one correspondence with a region R in
the xy-plane by the map (u, v) 7→ (x, y). Let f (x, y) be a real valued continuous function on the
region R. Then we have the map f˜(u, v) = f (x(u, v), y(u, v)).
To see how the integrals of f over R and integral of f˜ over D are related, divide D in the uv-plane
into smaller rectangles. Now, the images of the smaller rectangles are related by
J(x(r, θ), y(r, θ)) = xr yθ − xθ yr = cos θ(r cos θ) − (−r sin θ) sin θ = r.
58
Therefore, the double integral in polar coordinates for a function f (x, y) takes the form
ZZ ZZ
f (x, y)dA = f (r cos θ, r sin θ) r dA.
R D
59
4 1+y/2
2x − y
Z Z
Example 2.33. Evaluate dx dy by using the transformation
0 y/2 2
u = x − y/2, v = y/2.
Caution: The change of variables formula turns an xy-integral into a uv-integral. But the map that
changes the variables goes from uv-domain onto xy-domain. This map must be one-one on the
interior of the uv-domain. Sometimes it is easier to get such a map from xy-domain to uv-domain.
Then we will be tackling with the inverse of such an easy map. Here the fact that
the Jacobian of the inverse map is the inverse of the Jacobian of the original map
helps us. This may be expressed as
−1
∂(x, y) ∂(u, v)
= .
∂(u, v) ∂(x, y)
Similarly, triple integrals undergo change of variables by using the inverse of the Jacobian.
R : −3 ≤ x2 − y 2 ≤ 3, 1 ≤ xy ≤ 4.
There is a simple map that goes in the wrong direction: u = x2 − y 2 , v = xy. Then the image of
R, which we denote as D in the uv-plane is the rectangle
D : −3 ≤ u ≤ 3, 1 ≤ v ≤ 4.
60
We need not compute the map G. Instead, we go for the Jacobian.
∂(u, v) ux uy 2x −2y
= = = 2(x2 + y 2 ).
∂(x, y) vx vy y x
∂(x, y) 1
Therefore, = . Then
∂(u, v) 2(x2 + y 2 )
ZZ ZZ
1
xy(x2 + y 2 ) dA = xy(x2 + y 2 ) dA.
R D 2(x2 + y 2 )
Notice that the integral on the right side is in the uv-plane and the bracketed term inside [ · ] is a
function of (u, v). Since the bracketed term simplifies to xy/2 which is equal to v/2, we have the
integral as
1 3 4 1 3 42 − 12
ZZ Z Z Z
v 15 45
dA = v dv du = du = 3 − (−3) = .
D 2 2 −3 1 2 −3 2 4 2
Since the significant portion of the curve y = 2 − x2 lies above the portion of the line y = x, there
is no need to take the absolute value. The calculation also confirms this.
RR
Problem 2.2: Evaluate I = D (4 − x2 − y 2 ) dA if D is the region bounded by the straight lines
x = 0, x = 1, y = 0 and y = 3/2.
61
√
2 y 2
√ y √ y2
Z Z Z
− y 2 dy
(1 + x + y)dx dy = y+ + yy− −y+
0 −y 0 2 2
Z 2
√ 3y √ y2 h2 5 3 1 i2 1 √
= y+ +y y+ dy = y 3/2 + y 5/2 + y 2 + y 3 = (13 + 44 2).
0 2 2 3 2 4 6 0 3
R 1 R √x
Problem 2.4: Change the order of integration in 0 x f (x, y)dydx.
√
The domain D of integration is bounded by the straight line y = x and the parabola y = x. Every
straight line parallel to x-axis cuts the boundary of D in no more than two points, and it remains
in between y 2 to y. Also, y lies between 0 and 1. Hence
Z 1 Z √x Z 1Z y
f (x, y)dydx = f (x, y)dx dy.
0 x 0 y2
ZZ
Problem 2.5: Evaluate ey/x dA, where D is a triangle bounded by the straight lines y = x,
D
y = 0, and x = 1.
In D, the variable x remains in between 0 and 1, and y lies between 0 and x. Hence
Z 1Z x Z 1
e−1
ZZ
y/x y/x
e dA = e dy dx = x(e − 1) dx = .
D 0 0 0 2
RR
Problem 2.6: Find I = D ex+y dA, where D is the annular region bounded by two squares of
sides 2 and 4 each having center at (0, 0).
Draw the picture. D is not a simply connected domain. Divide D into four simply connected
domains by drawing lines x = −1 and x = 1. Let D1 be the rectangle to the left of the inner square;
D2 be the square on top of the inner square; D3 be the square below the inner square; and D4 be
the rectangle to the right of the inner square; so that D is the disjoint union of D1 , D2 , D3 , D4 .
Then ZZ ZZ ZZ ZZ
x+y x+y x+y
I= e dA + e dA + e dA + ex+y dA.
D1 D2 D3 D4
Converting each integral to an iterated integral, we have
Z −1 Z 2 Z 1Z 2
x+y
I= e dydx + ex+y dydx
−2 −2 −1 1
Z 1 Z −1 Z 2 Z 2
+ e x+y
dydx + ex+y dydx = e4 − e2 − e−2 + e−4 .
−1 −2 1 −2
(x2 + y 2 )−2 dA, where D is the shaded region in the figure below:
RR
Problem 2.7: Evaluate D
62
The integrand in polar coordinates is f (r, θ) = r−4 . The region D is given by
0 ≤ θ ≤ π/4, sec θ ≤ r ≤ 2 cos θ. Thus
ZZ Z π/4 Z 2 cos θ Z π/4
2 2 −2 −4 1 π
(x + y ) dA = r r dr dθ = (4 cos2 θ − sec2 θ) dθ = .
D 0 sec θ 8 0 16
Problem 2.8: Calculate the volume of the solid bounded by the planes x = 0, y = 0, z = 0, and
x + y + z = 1.
RR
The volume V = D (1 − x − y)dA, where D is the base of the solid on the xy-plane. We see that
D is the triangular region bounded by the straight lines x = 0, y = 0, x + y = 1. Thus,
Z 1 Z 1−x Z 1
1 1
V = (1 − x − y)dydx = (1 − x)2 dx = .
0 0 0 2 6
Problem 2.9: Compute the volume V of the solid bounded by the spherical surface x2 + y 2 + z 2 =
4a2 and the cylinder x2 + y 2 = 2ay, where a > 0.
The domain of integration is the base of the cylinder. This is the circle x2 + y 2 − 2ay = 0, whose
centre is (0, a) and radius a. We calculate V /4, the volume of the portion of the solid in the first
octant. Now, the domain of integration D is the semicircular disk whose boundaries are given by
p
x = g1 (y) = 0, x = g2 (y) = 2ay − y 2 , y = 0, y = 2a.
p
The integrand is z = f (x, y) = 4a2 − x2 − y 2 . Then
Z 2a Z √2ay−y2 p
V
= 4a2 − x2 − y 2 dx dy.
4 0 0
To evaluate this, use polar coordinates: x = r cos θ, y = r sin θ. For the limits of integration, use
x2 + y 2 = r2 , y = r sin θ to get:
63
The domain of integration D in cylindrical coordinates is given by 0 ≤ θ ≤ 2π, 0 ≤ r ≤ 2,
1 ≤ z ≤ 5. The integrand is zr. Thus
ZZZ p Z 2π Z 2 Z 5
z x2 + y 2 dV = (zr) r dz dr dθ = 64π.
D 0 0 1
Problem 2.11: Integrate f (x, y, z) = z over the part of the solid cylinder x2 + y 2 ≤ 4 for 0 ≤ z ≤
y.
The domain W has the projection D on the xy-plane as the semicircle depicted in the figure. The
z-coordinate varies from 0 to y and y = r sin θ. Thus W is given by 0 ≤ θ ≤ π, 0 ≤ r ≤ 2,
0 ≤ z ≤ r sin θ. In cylindrical coordinates,
ZZZ Z π Z 2 Z r sin θ Z πZ 2
1 2
z dV = z r dθ dr dz = r sin θ r dθ dr = π.
W 0 0 0 0 0 2
RRR
Problem 2.12: Compute D
z dV, where D is the solid lying above the cone x2 + y 2 = z 2 and
below the unit sphere.
64
The upper branch of the cone, which is relevant to D, has the equation φ = π/4 in spherical
coordinates. The sphere has the equation ρ = 1. Thus D is given by
D : 0 ≤ θ ≤ 2π, 0 ≤ φ ≤ π/4, 0 ≤ ρ ≤ 1.
Now,
ZZ Z 2π Z a Z 2π
−x2 −y 2 −r2 1 2 2
e dA = e r dr dθ = − (e−a − 1) dθ = π(1 − e−a ).
D 0 0 2 0
ZZ
2 −y 2 2
Similarly, e−x dA = π(1 − e−2a ). We see that
S
ZZ ZZ
−x2 −y 2 2 −y 2
lim e dA = π, lim e−x dA = π.
a→∞ D a→∞ S
65
x2 y 2 z 2
Problem 2.14: Compute the volume of the ellipsoid + 2 + 2 = 1.
a2 b c
2 2
x y
Projection of this solid on the xy-plane is the ellipse 2 + 2 = 1. Therefore, the required volume
a b
is
q q q
Z a Z b 1− x22 Z c 1− x22 − y22 Z a Z b 1− x22 r
a a b a x2 y 2
V = dz dy dx = 2c 1 − − 2 dy dx.
a2 b
q q q
2 2 2 2
−a −b 1− x2 −c 1− x2 − y2 −a −b 1− x2
a a b a
Substitute y = b(1 − x2 /a2 )1/2 sin t. Then dy = b(1 − x2 /a2 ) cos t dt and
−π/2 ≤ t ≤ π/2. Therefore,
a π/2
x2 x2 2 i1/2 x2
Z Z h
V = 2c 1 − 2 − 1 − 2 sin t b 1 − 2 cos t dt dx
−a −π/2 a a a
Z a
bcπ 4πabc
= 2
(a2 − x2 ) dx = .
a −a 3
∞
e−ax − e−bx
Z
Problem 2.15: Evaluate dx for a > 0, b > 0.
0 x
Z ∞ −ax Z ∞Z b
e − e−bx
dx = e−yx dy dx
0 x 0 a
Z bZ ∞ Z b
−yx 1 b
= e dx dy = dy = ln .
a 0 a y a
Notice the change in order of integration above.
Z 9Z 3
Problem 2.16: Evaluate √
xey dx dy.
1 y
√
The domain of integration is given by 1 ≤ y ≤ 9, y ≤ x ≤ 3.
66
p
The quantity f (x, y) = x2 + (y − 2)2 is the distance of any point (x, y) from (0, 2).
For (x, y) ∈ D, maximum of f (x, y) is thus 3 and minimum is 1. Therefore,
1 1
≤p ≤ 1.
3 x2 + (y − 2)2
Integrating over D, we have
ZZ ZZ ZZ
1 1
dA ≤ p dA ≤ 1 dA.
D 3 D x2 + (y − 2)2 D
RR
Since D dA = area of D, we obtain
ZZ
π dA
≤ p ≤ π.
3 D x + (y − 2)2
2
RRR
Problem 2.18: Evaluate W
z dV, where W is the solid bounded by the planes x = 0, y = 0,
x + y = 1, z = x + y, and z = 3x + 5y in the first octant.
W lies over the triangle D in the xy-plane defined by 0 ≤ x ≤ 1, 0 ≤ y ≤ 1 − x. Hence
67
Denote by Vn (r) the volume of the n-dimensional ball with radius r. Also, write An = Vn (1). For
n = 1, we have the interval [−1, 1], whose volume we take as its length, that is, A1 = 2, V1 = 2π.
For n = 2, we have the unit disk, whose volume is its area; that is, A2 = π, V2 = πr2 . For n = 3,
we know that A3 = 4π/3 and V3 (r) = 4πr3 /3.
Exercise 1: Show by induction that Vn (r) = An rn .
Suppose Vn−1 (r) = An−1 rn−1 . The slice of the n-dimensional ball x21 + · · · x2n−1 + x2n = rn at the
height xn = c, has the equation
x21 + · · · x2n−1 + c2 = r2 .
√
This slice has the radius r2 − c2 . Thus
Z r p Z r p
Vn (r) = 2 2
Vn−1 r − xn dxn = An−1 ( r2 − x2n )n−1 dxn .
−r −r
R π/2
where Cn = −π/2
cosn θ dθ. This says that An = An−1 Cn .
n−1
Exercise 2: Prove that C3 = 4/5, C4 = 3π/8 and Cn = n
Cn−2 .
πm 2 π m+1 m
Exercise 3: Prove that A2m = and A2m+1 = .
m! 1 · 3 · · · (2m + 1)
This sequence of numbers have a curious property: An increases up to n = 5 and then it decreases
to 0 as n → ∞.
68
Chapter 3
Vector Integrals
Let f (x, y, z) be a real valued function with domain D. Let C be a curve that lies in D given in
parametric form as
#»
r (t) = x(t) î + y(t) ĵ + z(t) k̂, a ≤ t ≤ b.
The values of f on the curve C are given by the composite function f (x(t), y(t), z(t)). We want
to integrate this composite function on the curve C.
Partition C into n sub-arcs. Choose a point (xk , yk , zk ) on the kth subarc. Suppose the kth subarc
has length ∆sk . Form the Riemann sum
n
X
Sn = f (xk , yk , zk )∆sk .
k=1
When n approaches ∞, the length sk approaches 0. In such a case, if limn→∞ Sn exists, then this
limit is called the line integral of f over the curve C.
Z
f (x, y, z)ds = lim Sn .
C n→∞
69
Theorem 3.1. Let C : x(t) î + y(t) ĵ + z(t) k̂ be a parametrization of the curve C lying in a
domain D ⊆ R3 . If f : D → R is continuous and the component functions x(t), y(t), z(t) are
differentiable, then the line integral of f over C exists and is given by
Z Z b r
dx 2 dy 2 dz 2
f (x, y, z)ds = f (x(t), y(t), z(t)) + + dt.
C a dt dt dt
r
dx 2 dy 2 dz 2
We also write ds = | #»r 0 (t)|dt = + + dt.
dt dt dt
Example 3.1. Integrate f (x, y, z) = x − 3y 2 + z over the line segment from (0, 0, 0) to (1, 1, 1).
1 √ 1 √ √ h2
Z Z Z i1
x(t) − 3y 2 (t) + z(t) 3dt = 2 3
f ds = [t − 3t + t] 3dt = 3 t − t = 0.
C 0 0 0
Z
Example 3.2. Evaluate (2 + x2 y)ds, where C is the upper half of the unit circle in the xy-plane.
C
Example 3.3. Let C be the Zcurve consisting of line segments joining (0, 0, 0) to (1, 1, 0) and
(1, 1, 0) to (1, 1, 1). Evaluate (x − 3y 2 + z)ds.
C
C1 : #»
r (t) = t î + t ĵ, 0 ≤ t ≤ 1; C2 : #»
r (t) = î + ĵ + t k̂, 0 ≤ t ≤ 1.
70
√
Then On C1 , | #»
r 0 (t)| = 2 and on C2 , | #» r 0 (t)| = 1. Now,
Z Z Z
2 2
(x − 3y + z)ds = (x − 3y + z)ds + (x − 3y 2 + z)ds
C C C
Z 11 √ Z 1 2
= f (t, t, 0) 2dt + f (1, 1, t) 1 dt
0 0
√
Z 1 √ Z 1
−3 − 2
= (t − 3t2 + 0) 2dt + (1 − 3 + t)dt = .
0 0 2
Z
Example 3.4. Evaluate 2xds, where C is the arc of the parabola y = x2 from (0, 0) to (1, 1)
C
followed by the line segment joining (1, 1) to (1, 2).
Parametrize: C = C1 ∪ C2 , where
C1 : x = x, y = x2 , 0 ≤ x ≤ 1; C2 : x = 1, y = y, 1 ≤ y ≤ 2.
C1 : x = t, y = t2 , 0 ≤ t ≤ 1; C2 : x = 1, y = t, 1 ≤ t ≤ 2.
√
On C1 , dx = 1 dt, dy = 2t dt, ds = 1 + 4t2 dt. Similarly, on C2 , ds = dt. Then
Z Z Z Z 1 √ Z 2
2xds = 2xds + 2xds = 2
2t 1 + 4t dt + 2(1)dt
C C1 C2 0 1
√
(1 + 4t2 )3/2 1 5 5−1
= +2= + 2.
6 0 6
Z
Example 3.5. Evaluate y sin zds, where C is the circular helix given by
C
71
Z Z 2π p √
y sin zds = sin t t sin2 t + cos2 t + 1dt = 2π.
C 0
If the curve C happens to be a line segment on the x-axis, then ds = dx. In that case, the line
integral over the curve becomes
Z n
X
f (x, y, z)dx = lim f (xk , yk , zk )∆xk .
C n→∞
k=1
As earlier, if f (x, y, z) has continuous partial derivatives and #»r (t) is smooth, and C has parametriza-
tion as x = x(t), y = y(t), z = z(t), a ≤ t ≤ b, then
Z Z b
f (x, y, z)dx = f (x(t), y(t), z(t))x0 (t)dt.
C a
Similarly, if the curve C is a segment on the y or z-axis, then the line integrals are, respectively
Z Z b Z Z b
0
f (x, y, z)dy = f (x(t), y(t), z(t))y (t)dt, f (x, y, z)dz = f (x(t), y(t), z(t))z 0 (t)dt.
C a C a
These line integrals are called as the line integrals of f over C with respect to x, y, z respectively.
Z
Example 3.6. Evaluate ydx + zdy + xdz, where C is the curve joining the line segments from
C
(2, 0, 0) to (3, 4, 5) to (3, 4, 0).
Parameterize: C = C1 ∪ C2 , where
Z Z Z
Then ydx + zdy + xdz = ydx + zdy + xdz + ydx + xdz + zdx
C C1 C2
Z 1 Z 1
= (4t)dt + (5t)4dt + (2 + t)5dt + 3(−5)dt = 49/2 − 15 = 9.5.
0 0
72
3.2 Line Integral of Vector Fields
We want to generalize line integrals to vector fields.
A vector field is a function defined on a domain D in the plane or space that assigns a vector to
each point in D. If D is a domain in space, a vector field on D may be written as
#»
F (x, y, z) = M (x, y, z) î + N (x, y, z) ĵ + P (x, y, z) k̂.
Vectors in a gravitational field point toward the center of mass that gives the source of the field.
The velocity vectors on a projectile’s motion make a vector field along the trajectory.
Let f (x, y, z) be a function from a domain in R3 to R. If fx , yy , fz exist, then the gradient field of
f (x, y, z) is the field of gradient vectors
∂f ∂f ∂f
grad f = ∇f = î + ĵ + k̂.
∂x ∂y ∂z
The gradient field of the surface f (x, y, z) = c may be drawn as follows:
At each point on the surface, we have a vector, the gradient vector, which is normal to
the surface. And we draw it there itself to show it.
grad f = yz î + zx ĵ + xy k̂.
Notice that f (x, y, z) has a continuous gradient iff fx , fy , fz are continuous on the domain of
definition of f.
#» #»
A vector field F is called conservative if there exists a scalar function f such that F = grad f.
#»
In such a case, the scalar function f is called the potential of the vector field F .
#» mM G #»
For example, consider the gravitational force field F = − r . It is also written in the form:
|r|3
#» mM G
F (x, y, z) = − [x î + y ĵ + z k̂]
(x2 + y 2 + z 2 )3/2
73
#»
Here, F is a conservative field. Reason?
mM G
Define f (x, y, z) = 2 . Then
(x + y 2 + z 2 )1/2
∂f ∂f ∂f #»
grad f = î + ĵ + k̂ = F .
∂x ∂y ∂z
Physically, the law of conservation of energy holds in every conservative field.
#»
Let F (x, y, z) be a continuous vector filed defined over a curve C given by
#»
r (t) = x(t) î + y(t) ĵ + z(t) k̂ for a ≤ t ≤ b.
#»
The line integral of F along C, also called the work done by moving a particle on C under the
#»
force field F is
#» #» #» #» #» #»
Z Z Z
F ·dr = #» 0
F ( r (t)) · r (t) dt = F · T ds,
C C C
#» #»
r 0 (t)
where T (t) = #» 0 is the unit tangent vector at a point on C.
| r (t)|
#»
Example 3.7. Evaluate the line integral of the vector field F (x, y, z) = x2 î − xy ĵ along the first
quarter unit circle in the first quadrant.
#» b
#»
Z Z
F · d #»
r = F ( #»
r (t)) #»
r 0 (t) dt
C a
Z b
= [M (x(t), y(t), z(t)) x0 (t) + N y 0 (t) + P z 0 (t)] dt
a
Z b
= M dx + N dy + P dz.
a
74
R #» #»
Example 3.8. Evaluate C F · d #» r , where F = xy î + yz ĵ + zx k̂ and C is the twisted cube given
by x = t, y = t2 , z = t3 , 0 ≤ t ≤ 1.
R R1 R
C
M dx = 0
t t2 1 dt = 1/4, C
N dy = t2 t3 2t dt = 2/7, and
R
C
P dz = t3 t 3t2 dt = 3/7. So,
#»
Z
F · d #»
r = 1/4 + 2/7 + 3/7 = 27/28.
C
Also,
#» 1 1
Z Z Z
F · d #»
r = 0 0 0
[xyx + yzy + zxz ]dt = [t3 + 2t6 + 3t6 ]dt = 27/28.
C 0 0
75
In such a case, the line integral is independent of path of C; it only depends on the initial point and
the end point of C.
R #»
We say that a line integral C F · d #» r is independent of path iff for any curve C 0 that is lying in
#»
the domain of F , and having the same initial and end points as that of C, we have
#» #» #»
Z Z
F ·dr = F · d #»
r.
C C0
#» R #»
Thus, if F is conservative, then the line integral C F · d #»
r is path independent. Then the following
result is obvious:
#»
Theorem 3.3. Let F be a continuous vector field defined on a domain D. Let C be any smooth
R #» R #»
curve lying in D. The line integral C F · d #» r is path independent iff C 0 F · d #»
r = 0 for every
0
closed curve C lying in D.
Remark: A closed curve is a curve having the same initial and end points. “Smooth curve” may
be replaced by “Piecewise smooth curve” everywhere. When C is a closed curve, the line integral
H #»
over C is written as C F · d #»
r.
#»
Theorem 3.4. Let F be a continuous vector field defined on an open connected region D. If
R #» #» #»
C
F · d r is path independent for each smooth curve C lying in D, then F is conservative.
Hints for the Proof: Suppose D is in the plane. Fix any point (a, b) in D. Let C be a curve from
(a, b) to (x, y). Define
#» #» #»
Z Z (x,y)
f (x, y) := F ·dr = F · d #»
r,
C (a,b)
#»
due to path independence. Next show that F = grad f.
#»
If F (x, y) = M (x, y) î + N (x, y) ĵ is conservative, then we have a scalar function f (x, y) such
that fx = M, fy = N. Then using Clairaut’s theorem, we have fxy = My = fyx = Nx . That is, if
#»
F = M î + N ĵ is conservative, then My = Nx . Similar result holds in three dimensions.
#»
Theorem 3.5. Let F (x, y, z) = M (x, y, z) î + N (x, y, z) ĵ + P (x, y, z) k̂, where the gradients of
#»
the component functions M, N, P are continuous on a domain D. If F is conservative, then we
have My = Nx , Nz = Py , Px = Mz on D.
#»
The converse of Theorem 3.5 holds if the domain of F is a simply connected domain.
A simple curve is a curve which does not intersect itself. A connected region D is said to be a
simply connected region iff every simple closed curve lying in D encloses only points from D.
76
#»
Theorem 3.6. Let F = M î + N ĵ + P k̂ be a vector field on a simply connected region D, where
#»
gradients of M, N, P are continuous. If My = Nx , Nz = Py , and Px = Mz hold on D, then F is
conservative.
Proof of this can be done here, but it follows from Green’s theorem in the plane and from Stokes’
theorem in space, which we will do later.
These equations help in determining the potential function of a conservative field.
#»
Example 3.9. Find the line integral of the field F = yz î + zx ĵ + xy k̂ along any smooth curve
joining the points A(−1, 3, 9) to B(1, 6, −4).
#» #»
Notice that F is conservative since F = grad (xyz) = ∇f, where f = xyz. Let C be any such
curve. Then
#» #»
Z Z B
F ·dr = ∇f · d #»
r = f (B) − f (A) = 3.
C A
77
#»
Example 3.12. Find a potential for the vector field F = y 2 î + (2xy + e3z ) ĵ + 3ye3z k̂.
Denote the potential by f (x, y, z). Then
f = xy 2 + ye3z + ψ(z).
f (x, y, z) = xy 2 + ye3z + k.
#»
Example 3.13. Show that the vector field F = (ex cos y + yz) î + (xz − ex sin y) ĵ + (xy + z) k̂
is conservative by finding a potential for it.
Let the potential be f (x, y, z). Then
Thus g(y, z) = h(z). And then f = ex cos y + xyz + h(z). Differentiate w.r.t. z to obtain
Is called a differential form. The differential form is called exact iff there exists a function
f (x, y, z) such that
∂f ∂f ∂f
M (x, y, z) = , N (x, y, z) = , P (x, y, z) = .
∂x ∂y ∂z
78
Notice that if the differential form is exact, then
which is an exact differential. In that case, if C is any curve joining points A to B in the domain
D, then Z B Z Z B
[M dx + N dy + P dz] = #»
∇f · d r = df = f (B) − f (A).
A C A
#»
Therefore, the differential form is exact iff F = M î + N ĵ + P k̂ is conservative. Then the scalar
#»
function f (x, y, z) is the potential of the field F .
Example 3.14. Show that the differential form ydx + xdy + 4dz is exact. Then evaluate the
R
integral C (ydx + xdy + 4dz) over the line segment C joining the points (1, 1, 1) to (2, 3, −1).
M = y, N = x, P = 4. Then My = 1 = Nx , Nz = 0 = Py , Px = 0 = Mz .
Therefore, the differential form is exact.
Also, notice that ydx + xdy + 4dz = d(xy + 4z + k). Hence it is exact.
In case, f is not obvious, we can determine it as earlier by differentiating and integrating etc. Next,
Z Z (2,3,−1) (2,3,−1)
(ydx + xdy + 4dz) = d(xy + 4z + k) = (xy + 4z + k)(1,1,1) = −3.
C (1,1,1)
Theorem 3.7. (Green’s Theorem) Let C be a positively oriented simple closed piecewise smooth
curve in the plane. Let D be the region bounded by C. (That is, C = ∂D.) If M (x, y) and N (x, y)
have continuous partial derivatives on an open region containing D, then
I ZZ
∂N ∂M
1. (M dx + N dy) = − dA.
C D ∂x ∂y
I ZZ
∂M ∂N
2. (M dy − N dx) = + dA.
C D ∂x ∂y
79
R b #»
Green’s theorem helps in evaluating an integral of the type a F · d #»
r in a non-conservative vector
#»
field F . It gives a relationship between a line integral around a simple closed curve C and the
double integral over the plane region D bounded by this closed curve.
Proof: We only prove for a special kind of regions to give an idea of how it is proved.
Consider the region D = {(x, y) : a ≤ x ≤ b, f (x) ≤ y ≤ g(x)}. Assume that f, g are continuous
functions. Then
ZZ Z b Z g(x) Z b
∂M
dA = My dydx = [M (x, g(x)) − M (x, f (x))]dx.
D ∂y a f (x) a
R
Now we compute C M dx by breaking C into four parts C1 , C2 , C3 and C4 .
The curve C1 is given by x = x, y = f (x), a ≤ x ≤ b. Thus
Z Z b
M dx = M (x, f (x))dx.
C1 a
Here, we have C : #»
r (t) = cos t î + sin t ĵ, 0 ≤ t ≤ 2π. The region D is the unit disk.
80
M = cos t − sin t, N = cos t, dx = − sin t dt, dy = cos t dt.
Mx = 1, My = −1, Nx = 1, Ny = 0.
Now, I Z 2π
(M dy − N dx) = [(cos t − sin t) cos t − cos t(− sin t)]dt = π.
C 0
ZZ ZZ
(Mx + Ny )dA = (1 + 0)dA = Area of D = π.
D D
Similarly, I Z 2π
(M dx + N dy) = [(cos t − sin t)(− sin t) + cos2 t]dt = 2π.
ZCZ 0
ZZ
(Nx − My )dA = (1 − (−1))dA = 2 × Area of D = 2π.
D D
H
Example 3.16. Evaluate the integral I = C xy dy + y 2 dx, where C is the square cut from the
first quadrant by the lines x = 1 and y = 1, with positive orientation.
Take M (x, y) = xy, N (x, y) = y 2 , D as the region bounded by C. Then
I ZZ Z 1Z 1
I = (M dy − N dx) = (Mx + Ny )dA = (y + 2y)dxdy = 3/2.
C D 0 0
2
Also, taking M = −y , N = xy, we have
I ZZ Z 1 Z 1
I = (M dx + N dy) = (Nx − My )dA = (y + 2y)dxdy = 3/2.
C D 0 0
H p
Example 3.17. Evaluate the integral I = C
(3y − esin x )dx + (7x + 1 + y 4 )dy,
where C is the positively oriented circle x2 + y 2 = 9.
Take D as the disk x2 + y 2 ≤ 9. Then by Green’s theorem,
ZZ p ZZ
sin x
I= 4
(7x + 1 + y )x − (3y − e )y dA = (7 − 3)dA = 36π.
D D
H
Example 3.18. Evaluate I = C x4 dx+xy dy, where C is the triangle with vertices at (0, 0), (0, 1)
and (1, 0); its orientation being from (0, 0) to (1, 0) to (0, 1) to (0, 0).
The triangle is positively oriented. Let D be the region bounded by the triangle.
Take M = x4 , N = xy. Then
Z 1 Z 1−x
1 1
ZZ Z
4 1
I= [(xy)x − (x )y ]dA = y dy dx = (1 − x2 )dx = .
D 0 0 2 0 6
81
R
Example 3.19. Evaluate C (xdy − y 2 dx), where C is the positively oriented square bounded by
the lines x = ±1 and y = ±1.
#»
Let F be the vector field x î + y 2 ĵ. Here, M = x, N = y 2 , and D is the region bounded by C. By
Green’s theorem,
I ZZ Z 1Z 1
(M dy − N dx) = (Mx + Ny )dA = (1 − 2y)dxdy = 4.
C D −1 −1
x2 y 2
As an application, to compute the area enclosed by the ellipse C : 2 + 2 = 1, we parameterize
a b
C as x = a cos t, y = b sin t, 0 ≤ t ≤ 2π. And then the area is
1 2π 1 2π
I Z Z
1
(x dy − y dx) = [(a cos t b cos t) − (b sin t (−b sin t))]dt = ab dt = π ab.
2 C 2 0 2 0
H
Example 3.20. Evaluate C (y 2 dx + xy dy), where C is the boundary of the semi- annular region
between the semicircles x2 + y 2 = 1 and x2 + y 2 = 4 in the upper half plane.
82
In fact, Green’s theorem can be applied to domains having holes, provided the domain can be
divided into simply connected regions.
The boundary C of the region D consists of two simple closed curves C1 (Outer) and C2 (inner).
Assume that these boundary curves are oriented so that the region D is always on the left as the
curve C is traversed.
Thus the positive direction is counterclockwise for the outer curve C1 but clockwise for the inner
curve C2 . Divide D into two regions D0 and D00 as shown in the figure. Green’s theorem on D0 and
D00 gives
ZZ ZZ ZZ
(Nx − My )dA = (Nx − My )dA + (Nx − My )dA
D D 0 D 00
Z Z Z
= (M dx + N dy) + (M dx + N dy) = (M dx + N dy).
∂D0 ∂D00 C
This is the general version of Green’s Theorem.
Example 3.21. Show that if C is any positively oriented simple closed path that encloses the
origin, then
−y
I
x
2 2
dx + 2 = 2π,
C x +y x + y2
No idea how to show it for every such curve. So, take a positively oriented circle C 0 , of radius a,
around origin that lies entirely in the region bounded by C. Let D be the annular region bounded
#»
by C and C 0 . Take F (x, y) = (−y î + x ĵ)/(x2 + y 2 ).
83
3.5 Curl and Divergence of a vector field
#»
If F = M î + N ĵ + P k̂ is a vector field in R3 , where the partial derivatives of the component
#»
functions exist, then curl F is a vector field given by
#» ∂P ∂N ∂M ∂P ∂N ∂M
curl F = − î + − ĵ + − k̂.
∂y ∂z ∂z ∂x ∂x ∂y
∂ ∂ ∂
Writing in operator notation, recall that grad = ∇ = î + ĵ + k̂ .
∂x ∂y ∂z
î ĵ k̂
#» #» ∂ ∂ ∂
Then curl F = ∇ × F = ∂x ∂y ∂z .
M N P
#» #»
For example, if F = zx î + xyz ĵ − y 2 k̂, then curl F = −y(2 + x) î + x ĵ + yz k̂.
#»
Theorem 3.8. Let F be a vector field defined over a simply connected region D whose component
#» #»
functions have continuous second order partial derivatives. Then F is conservative iff curl F = 0.
#» #»
Proof of ⇒: If F is conservative, then F = ∇f for some f, where f is some scalar function
defined on D. Now,
î ĵ k̂
∂ ∂ ∂
curl ∇f = ∇ × (∇f ) = ∂x ∂y ∂z
= (fyz − fzy ) î + (fzx − fxz ) ĵ + (fxy − fyx ) k̂ = 0.
fx fy fz
The converse follows from Stokes’ theorem, which we will discuss later.
Remember: The curl of gradient of any scalar function is zero:
curl grad f = 0.
#»
Example 3.22. Is the vector field F = zx î + xyz ĵ − y 2 k̂ conservative?
#» #»
Here, curl F = −y(2 + x) î + x ĵ + yz k̂ 6= 0. So, F is not conservative.
#»
Example 3.23. Is the vector field F = y 2 z 3 î + 2xyz 3 ĵ + 3xy 2 z 2 k̂ conservative?
#»
Here, F is defined on R2 and
î ĵ k̂ (6xy 2 z 2 − 6xy 2 z 2 ) î
#» ∂ ∂ ∂
curl F = ∂x = −(3y 2 z 2 − 3y 2 z 2 ) ĵ = 0.
∂y ∂z
+(2yz 3 − 2yz 3 ) k̂
2 3
y z 2xyz 3 3xy 2 z 2
#» #»
Hence F is conservative. In fact, F = grad f, where f (x, y, z) = xy 2 z 3 .
#»
The name game: curl F measures how quickly a tiny peddle (at a point) in some fluid in a vector
#»
field moves around itself. If curl F = 0, then there is no rotation of such a tiny peddle.
84
#»
If F = M î + N ĵ + P k̂ is a vector field defined on a domain, where its component functions have
first order partial derivatives, then
#» #» ∂M ∂N ∂P
div F = ∇ · F = + + .
∂x ∂y ∂z
The divergence is also called flux or flux density.
#» #»
For example, if F = zx î + xyz ĵ − y 2 k̂, then div F = z + xz.
#»
The divergence of the vector field F = (x2 − y) î + (xy − y 2 ) ĵ is
∂(x2 − y) ∂(xy − y 2 )
+ = 3x − 2y.
∂x ∂y
#»
Intuitively, div F measures the tendency of the fluid to diverge from the point (a, b). When the gas
(fluid) is expanding, divergence is positive; and when it is compressing, the divergence is negative.
#»
The fluid is said to be incompressible iff div F = 0.
#»
Theorem 3.9. Let F = M î + N ĵ + P k̂ be a vector field defined on a simply connected domain
#»
D ⊆ R3 , where M, N, P have continuous second order partial derivatives. Then div curl F = 0.
#» #» ∂ ∂P ∂N ∂ ∂M ∂P ∂ ∂N ∂M
Proof: div curl F = ∇ · (∇ × F ) = − + − + −
∂x ∂y ∂z ∂y ∂z ∂x ∂z ∂x ∂y
This is equal to zero, due to Clairaut’s Theorem.
#»
Example 3.24. Does there exist a vector field G such that F = zx î + xyz ĵ − y 2 k̂ = curl G?
#»
div F = z + xz 6= 0. Hence there is no such G.
Divergence of grad f is the Laplacian of a scalar function f since
#» ∂ 2f ∂ 2f ∂ 2f
div grad f = ∇ · (∇ F ) = + + := ∇2 f.
∂x2 ∂y 2 ∂z 2
∂2 ∂2 ∂2
The operator ∇2 = ∂x2
+ ∂y 2
+ ∂z 2
is called the Laplacian.
Green’s Theorem - Vector form - 1
Let D be a simply connected region whose boundary is the simple closed curve C.
#»
Let F = M î + N ĵ be a vector field defined on D.
Let C be parameterized by #»
r (t) = x(t) î + y(t) ĵ. Then
#» #» #» #»
F · T (t)dt = F · #»
r 0 (t)dt = F · d #»
r = M dx + N dy.
#»
The line integral of F over C is
#» #» #» #»
I I I
F · T (t)dt = F · d r = (M dx + N dy).
C C
#»
Consider F as a vector field on R3 with P = 0. Then
#» #»
curl F = (Nx − My ) k̂ ⇒ curl F · k̂ = Nx − My .
85
Thus Green’s theorem takes the form
#» #» #» #» #»
I I ZZ
F · T (t) dt = F ·dr = (curl F · k̂) dA.
C C D
#»
Recall: T is the unit tangent vector and n̂ is the unit normal vector.
Green’s Theorem - Vector form - 2
Let C be given by #»
r (t) = x(t) î + y(t) ĵ. Then
#» x0 (t) y 0 (t) y 0 (t) x0 (t)
T = #» 0 î + #» 0 , n̂(t) = #» 0 î − #» 0 .
| r (t)| | r (t)| | r (t)| | r (t)|
#»
Consequently, F · n̂ = [M (x(t), y(t))y 0 (t) − N (x(t), y(t))x0 (t)]/| #»
r 0 (t)|.
H #» R b #»
Now, C F · n̂ ds = a F · n̂| #»
r 0 (t)| dt = C (M dy − N dx).
H
RR #» RR
Also, D div F dA = D (Mx + Ny )dA.
Hence Green’s theorem takes the form
#» #»
I ZZ
F · n̂ ds = div F dA.
C D
The first form is called the tangent-form and the second form is called the normal-form of
Green’s theorem.
If a right circular cone has base radius R and slant height `, then its surface area is given by πR`.
Now, for the frustum, we subtract the smaller cone surface area from the larger. Look at the figure.
The area of the frustum is
86
`1 `1 + `
Using similarity of triangles, we have = .
r1 r2
This gives r2 `1 = r1 `1 + r1 ` ⇒ (r2 − r1 )`1 = r1 `. Therefore,
r1 + r2
A = π(r1 ` + r2 `) = 2π r `, where r = .
2
To use this this formula on the frustump obtained on the subinterval [xk−1 , xk ], we notice that the
slant height ` is approximated by (∆xk )2 + (∆yk )2 , where ∆xk = xk − xk−1 and ∆yk =
f (xk ) − f (xk−1 ). Next, the average radius r = r1 +r
2
2
is f (xk−12)+f (xk ) . Thus the area of the frustum
is
f (xk−1 ) + f (xk ) p
Ak = 2π (∆xk )2 + (∆yk )2 .
2
Due to MVT, we have ck ∈ [xk−1 , xk ] such that
Its limit as n → ∞ is the Riemann sum of an integral, which is the required area:
Z b p Z b p
S= 2π f (x) 1 + (f 0 (x))2 dx = 2πy 1 + (f 0 (x))2 dx.
a a
If the arc is given by x = g(y), c ≤ y ≤ d, then the surface area of revolution is given by
Z d p Z d p
S= 0 2
2π g(y) 1 + (g (y)) dy = 2πx 1 + (g 0 (y))2 dy.
c c
Z
Notice that with relevant limits of integration, if the revolution is about x-axis, then S = 2πyds.
Z
If the revolution is about y-axis, then the surface area of revolution is S = 2πxds.
For parameterized curves, suppose the smooth curve is given by x = x(t), y = y(t) for a ≤ t ≤ b.
If the curve is traversed exactly once while t increases from a to b, then the surface area of the
solid generated by revolving the curve about the coordinate axes are as follows:
87
Z b p
1. Revolution about the x-axis (y ≥ 0) : S = 2π y(t) (x0 (t))2 + (y 0 (t))2 dt.
a
Z b p
2. Revolution about the y-axis (x ≥ 0) : S = 2π x(t) (x0 (t))2 + (y 0 (t))2 dt.
a
Example 3.25. Find the surface area of the solid obtained by revolving about x-axis, the arc of the
√
curve y = 2 x, 1 ≤ x ≤ 2.
√ √ p p
Since y = 2 x, y 0 = 1/ x, 1 + (y 0 )2 = 1 + 1/x. Then
8π √ √
Z 2 Z 2 r
1/2 √ 1
S= 2πy 1 + [y 0 ]2 dx = 2π 2 x 1 + dx = (3 3 − 2 2).
1 1 x 3
Example 3.26. The arc of the parabola y = x2 , 1 ≤ x ≤ 2 is revolved about the y-axis. Find the
surface area of revolution.
The curve can be parameterized by #» r (t) = x(t) î + y(t) ĵ, 1 ≤ t ≤ 2, where x(t) = t and
2 0 0
y(t) = t . Then x (t) = 1 and y (t) = 2t. The surface area is
Z 2 p Z 2 √
S = 0 2 0 2
2π x(t) (x (t)) + (y (t)) dt = 2π t 1 + 4t2 dt
1 1
π 2√ 3/2 i2 π √ √
Z
πh
= 1 + 4t2 d(1 + 4t2 ) = 1 + 4t2 = (17 17 − 5 5)
4 1 6 1 6
Example 3.27.
Some examples:
88
p
The cone z = x2 + y 2 , 0 ≤ z ≤ 1 can be parametrized by
Let S be a smooth surface given parametrically by x = x(u, v), y = y(u, v), z = z(u, v), where
(u, v) ranges over a parameter domain D in the uv-plane. Suppose that S is covered exactly once
as (u, v) varies over D. For simplicity, assume that D is a rectangle. We write S in vector form:
#»
r = x(u, v)î + y(u, v)ĵ + z(u, v)k̂.
Divide D into smaller rectangles Rij with the lower left corner point as Pij = (ui , vj ). For sim-
plicity, let the partition be uniform with u-lengths as ∆u and v-lengths as ∆v. The part Sij of S
that corresponds to Rij has the corner Pij with position vector #»
r (ui , vj ). The tangent vectors to S
at Pij are given by
#»
r ∗u := #»
r u (ui , vj ) = xu (ui , vj )î + yu (ui , vj )ĵ + zu k̂(ui , vj )
#»
r ∗v := #»
r v (ui , vj ) = xv (ui , vj )î + yv (ui , vj )ĵ + zv k̂(ui , vj )
The tangent plane to S is the plane that contains the two tangent vectors #» r u (ui , vj ) and #»
r v (ui , vj ).
#» #»
The normal to S at P is the vector r (u , v ) × r (u , v ). Notice that since S is assumed to be
ij u i j v i j
smooth, the normal vector is non-zero.
The part Sij is a curved parallelogram on S whose sides can be approximated by the vectors #»
r ∗u ∆u
and #»
r ∗v ∆v. Then the area of Sij can be approximated by
89
Then an approximation to the area of S is obtained by summing over both indices i and j:
| #»
r ∗u × #»
XX
Area of S ' r ∗v |∆u∆v.
j i
We thus define the surface area by taking the limit of the above approximated quantity. It is as
follows:
Let S be a smooth surface given parametrically by
#»
r = x(u, v)î + y(u, v)ĵ + z(u, v)k̂,
where (u, v) ∈ D, a domain in the uv-plane. Suppose that S is covered exactly once as (u, v)
varies over D. Then the surface area of S is given by
ZZ
Area of S = | #»
r u × #»
r v | dA
D
where #»
r u = xu î + yu ĵ + zu k̂ and #»
r v = xv î + yv ĵ + zv k̂.
In case, the surface S is given by the graph of a function such as z = f (x, y), where (x, y) ∈ D,
then we take the parameters as u = x, v = y and z = z(u, v) = f (x, y). That is, S is given by
#»
r = uî + v ĵ + z k̂.
We see that
#»
r u = î + zu k̂ = î + fx k̂, #» r v = ĵ + zv k̂ = ĵ + fy k̂.
î ĵ k̂
#»
r u × #»
r v = 1 0 fx = −fx î − fy ĵ + k̂.
0 1 fy
Therefore, ZZ ZZ q
Area of S = | #»
r u × #»
r v | dA = fx2 + fy2 + 1 dA.
D D
This formula can also be derived from the first principle as we had done for the parametric form.
For this, suppose that S is given by the equation z = f (x, y) for (x, y) ∈ D. Divide D into smaller
rectangles Rij with area ∆(Rij ) = ∆x∆y. For the corner (xi , yj ) in Rij , closest to the origin, let
Pij be the point (xi , yj , f (xi , yj )) on the surface. The tangent plane to S at Pij is an approximation
to S near Pij .
90
The area Tij of the portion of the tangent plane that lies above Rij approximates the area of Sij ,
the portion of S that is directly above Rij . Therefore, we define the area of the surface S as
m X
X n
∆(S) = lim lim Tij .
m→∞ n→∞
i=1 j=1
#»
Let #»
a and b be the vectors that start at Pij and lie along the sides of the parallelogram whose area
#»
is Tij . Then Tij = | #»
a × b |. However, fx (xi , yj ) and fy (xi , yj ) are the slopes of the tangent lines
#»
through Pij in the directions of #»
a and b , respectively. Therefore,
#» #»
a = ∆x î + fx (xi , yj )∆x k̂, b = ∆y ĵ + fy (xi , yj )∆y k̂.
#»
Tij = | #»
a × b | = | − fx (xi , yj ) î − fy (xi , yj ) ĵ + k| ∆(Rij )
q
= fx2 (xi , yj ) + fy2 (xi , yj ) + 1 ∆(Rij ).
Example 3.28. Find the surface area of the part of the surface z = x2 + 2y that lies above the
triangular region in the xy-plane with vertices (0, 0), (1, 0) and (1, 1).
91
which is the integrand in the surface area formula.
Warning: ∇f · #»p must not be ZERO.
A derivation similar to the surface area formula gives the following:
Let the surface S be given by f (x, y, z) = c. Let R be a closed bounded region which is obtained
by projecting the surface to a plane whose unit normal is #»
p . Suppose that ∇f is continuous on R
#»
and ∇f · p 6= 0 on R. Then
|∇f |
ZZ
The surface area of S = #» dA.
R |∇f · p |
Example 3.29. Find the area of the surface cut from the bottom of the paraboloid x2 + y 2 = z by
the plane z = 4.
92
The surface projected on xy-plane gives R as the disk x2 + y 2 ≤ 1. The surface is f (x, y, z) = 2,
where f (x, y, z) = x2 + y 2 + z 2 . Then
p √
∇f = 2x î + 2y ĵ + 2z k̂, |∇f | = 2 x2 + y 2 + z 2 = 2 2.
#»
p = k. |∇f · #»
p | = |2z| = 2z. Thus the surface area is
ZZ √ √ Z Z −1 √ ZZ
2 2
∆= dA = 2 z dA = 2 (2 − x2 − y 2 )−1 dA.
R 2z R R
Let ∆Pk denote the projection of ∆σk onto the tangent plane at (xk , yk , zk ). Then
If #»
p is the unit normal to the region R, and if #»
u k and #»
v k are the vectors that lie along the edges
of the patch ∆Pk , then
∆Pk = | #» u k × #»
v k |.
Write γ = the angle between u#» × v#» and #»
k k k p . Since #»
p is a unit vector, we have
∆Ak = | #»
u k × #»
v k · #»
p | = | #»
u k × #»
v k | | #»
p | | cos(γk )| = ∆Pk | cos γk |.
93
Also, we have |∇f · #»
p | = |∇f | | #»
p | | cos γ| = |∇f | | cos γ|. Therefore,
Ak |∇f |
∆σk ≈ ∆Pk = = ∆Ak .
| cos γ |k |∇f · #»
p| k
Assuming that g is nearly constant on the smaller surface fragments σk , we form the sum
X |∇f |
g(xk , yk , zk )∆σk ≈ g(xk , yk , zk ) ∆Ak .
k
|∇f · #»
p| k
If this sum converges to a limit as the number of partitions, k approaches ∞, then we define that
limit as the integral of g over the surface S. We thus define the surface integral as follows.
Let S be a surface S given by f (x, y, z) = c. Let the projection of S onto a plane with unit normal
#»
p be the region R. Let g(x, y, z) be defined over S. Then the surface integral of g over S is
|∇f |
ZZ ZZ
g dσ = g(x, y, z) dA.
S R |∇f · #»
p|
Also, we write the surface differential as
|∇f |
dσ = dA.
|∇f · #»
p|
Warning: |∇f · #»
p | must not be ZERO.
If the surface S can be represented as a union of non-overlapping smooth surfaces S1 , . . . , Sn , then
ZZ ZZ ZZ
g dσ = g dσ + · · · + g dσ.
S S1 Sn
Example 3.31. Integrate g(x, y, z) = xyz over the surface of the cube cut from the first octant by
the planes x = 1, y = 1, and z = 1.
94
We integrate g over the six surfaces and add the results. As g = xyz is zero on the coordinate
planes, we need integrals on sides A, B and C.
Side A is the surface defined on the region RA : 0 ≤ x ≤ 1, 0 ≤ y ≤ 1 on the xy-plane. For this
surface and the region,
#»
p = k̂, ∇f = k̂, |∇f | = 1, |∇f · #»
p | = | k̂ · k̂| = 1, g(x, y, z) = xyz z=1 = xy.
Therefore,
1 1 1
|∇f |
ZZ ZZ Z Z Z
y 1
g(x, y, z) dσ = xy dxdy = xydxdy = = .
A R1 |∇f · #»
p| 0 0 0 2 4
Similarly, ZZ ZZ
1
g(x, y, z) dσ = = g(x, y, z) dσ.
B 4 C
ZZ
3
Thus, g dσ = .
S 4
Example 3.32. Evaluate the surface integral of g(x, y, z) = x2 over the unit sphere.
S can be divided into the upper hemisphere and the lower hemisphere. Let S be the upper hemi-
sphere f (x, y, z) := x2 + y 2 + z 2 = 1, z ≥ 0. Its projection on the xy-plane is the region
Here,
#»
p
p = k̂, |∇f | = 2 x2 + y 2 + z 2 = 2,
√
|∇f · #»
p
p | = 2|z| = 2 1 − (x2 + y 2 ) = 2 1 − r2 .
Hence
|∇f | x2
ZZ ZZ ZZ
2 2
x dσ = x dA = √ dA
S R |∇f · #»
p| R 1 − r2
Z 2π Z 1 2 Z 2π Z 1
r cos2 θ 2 r3 2π
= √ r dr dθ cos θ dθ √ dr = .
0 0 1−r 2
0 0 1−r 2 3
Since the integral of x2 on the upper hemisphere is equal to that on the lower hemisphere, the
2π 4π
required integral is 2 × = .
3 3
Recall that when #»p = k̂, that is, when the region R is obtained by projecting the surface S onto the
|∇f | q
xy-plane, = 1 + zx2 + zy2 . Now, if the surface f (x, y, z) = c can be written explicitly
|∇f · #»
p|
by z = h(x, y), then the surface integral takes the form
ZZ ZZ q
g(x, y, z) dσ = g(x, y, h(x, y)) 1 + h2x + h2y dx dy.
S R
95
Similarly, if the surface can be written as y = h(x, z) and R is obtained by projecting S onto the
xz-plane, then
ZZ ZZ p
g(x, y, z) dσ = g(x, h(x, z), z) 1 + h2x + h2z dx dz.
S R
If the surface can be written as x = h(y, z) and R is obtained by projecting S onto the yz-plane,
then ZZ ZZ q
g(x, y, z) dσ = g(h(y, z), y, z) 1 + h2y + h2z dy dz.
S R
RR
Example 3.33. Evaluate S
y dσ, where S is the surface z = x + y 2 , 0 ≤ x ≤ 1, 0 ≤ y ≤ 2.
Projecting the surface onto xy-plane, we obtain the region R as the rectangle
R : 0 ≤ x ≤ 1, 0 ≤ y ≤ 2.
where (u, v) ranges over the region D in the uv-plane. Here, a change of variable happens. The
Jacobian is simply #»
r u × #»
r v . Then
dσ = | #»
r u × #»
r v | dA,
where #»
r u = xu î + yu ĵ + zu k̂ and #»
r v = xv î + yv ĵ + zv k̂. Then
ZZ ZZ
f (x, y, z) dσ = f ( #»
r (u, v))| #»
r u × #»
r v | dA.
S D
Also this formula can directly be derived as we had done for computing surface area when a surface
is given parametrically. It is as follows.
Suppose the smooth surface S has the parametric equation in vector form as
#»
r = x(u, v)î + y(u, v)ĵ + z(u, v)k̂.
Assume that the parameter domain D is a rectangle. Divide D into smaller rectangles Rij by taking
grid lengths ∆u and ∆v.
96
Then the surface S is divided into corresponding patches Sij . We evaluate f at a point Pij in Sij
P P
and form the Riemann sum i j f (Pij )∆Sij , where ∆Sij is the area of the patch Sij . Taking
limit as the number of sub-rectangles approach ∞, we obtain the surface integral of f over S as
ZZ Xn X m
f (x, y, z) dσ = lim lim f (Pij )∆Sij .
S m→∞ n→∞
i=1 j=1
However, ∆Sij = | #»
r u (Pij ) × #»
r v (Pij )|∆u∆v. Therefore, the surface integral is given by
ZZ ZZ
f (x, y, z) dσ = f ( #»
r (u, v)) | #»
r u × #»
r v | dA.
S D
RR
Observe that the surface area of S is simply S 1 dσ as it should be. The relation between a surface
integral and surface area is much the same as that between a line integral and the arc length of a
curve.
RR
Example 3.34. Evaluate S z dσ, where S is the surface whose sides S1 are given by the cylinder
x2 + y 2 = 1, bottom S2 is the disk x2 + y 2 ≤ 1, z = 0, and whose top S3 is part of the plane
z = 1 + x that lies above S2 .
| #»
r u × #»
q
r v | = |(î + zx k̂) × (ĵ + zy k̂)| = zx2 + zy2 + 1.
97
So,
ZZ ZZ q
z dσ = (1 + x) 1 + zx2 + zy2 dA
S3 D
Z 2π Z 1
√ √
= (1 + r cos θ) 1 + 1 + 0 r dr dθ = 2π.
0 0
Hence,
3π √
ZZ ZZ ZZ ZZ
z dσ = z dσ + z dσ + z dσ = + 2π.
S S1 S2 S3 2
If the surface S is given by z = f (x, y), then we take its orientation by considering the unit normal
−fx î − fy ĵ + k̂
vectors n̂ = p .
1 + fx2 + fy2
∇g
If S is a part of a level surface g(x, y, z) = c, then we may take n̂ = .
|∇g|
#»
r u × #»
rv
#»
If S is given parametrically as r (u, v) = x(u, v) î + y(u, v) ĵ + z(u, v) k̂, then n̂ = #» .
#»
| r u × r v|
Sometimes we may take negative sign if it is preferred. Conventionally, the outward direction is
taken as the positive direction. Note that the outward direction of a normal makes sense when the
surface is oriented.
#»
Let F be a continuous vector field defined over an oriented surface S with unit normal n̂. The
#» #»
surface integral of F over S, also called, the flux of F across S is
#»
ZZ
F · n̂ dσ.
S
#»
The flux is the integral of the scalar component of F along the unit normal to the surface. Thus
in a flow, the flux is the net rate at which the fluid is crossing the surface S in the chosen positive
direction.
|∇g|
If S is part of a level surface g(x, y, z) = c, which is defined over the domain D, then dσ = dA.
|∇g. #»
p|
So, the flux across S is
#» #» ±∇g #» ±∇g
ZZ ZZ ZZ
F · n̂ dσ = F· dσ = F· dA.
S S |∇g| D |∇g · #»
p|
98
If S is parametrized by #» r (u, v), where D is the domain in uv-plane, then
#» #»
dσ = | r u × rv | dA. So, flux across S is
#» #» #»r u × r#»v #»
ZZ ZZ ZZ
F · n̂ dσ = F · #» #» dσ = F ( #»
r (u, v)) · ( #»
r u × r#»v ) dA.
S S | r u × r v | D
#»
Example 3.35. Find the flux of F = yz ĵ + z 2 k̂ outward through the surface S which is cut from
the cylinder y 2 + z 2 = 1, z ≥ 0 by the planes x = 0 and x = 1.
#»
ZZ ZZ ZZ
1
F · n̂ dσ = z dA = dA = Area of R = 2.
S R z R
#»
Example 3.36. Find the flux of the vector field F = z î + y ĵ + x k̂ across the unit sphere.
If no direction of the normal vector is given and the surface is a closed surface, we take n̂ in the
positive direction, which is directed outward.
99
Example 3.37. Find the surface integral of the vector field
#»
F = yz î + x ĵ − z 2 k̂
y = x2 , 0 ≤ x ≤ 1, 0 ≤ z ≤ 4.
The surface S has two parts: the top portion S1 and the base S2 . Since S is a closed surface, we
consider its outward unit normal n̂. Projections of both S1 and S2 on xy-plane are D, the unit disk.
100
By the simplified formula for the flux, we have
#»
ZZ ZZ
F · n̂ dσ = (−M fx − N fy + P )dA
S1 D
ZZ
= [−y(−2x) − x(−2y) + 1 − x2 − y 2 ]dA
D
Z 2π Z 1
= (1 + 4r2 cos θ sin θ − r2 ) r dr dθ
Z0 2π 0
1 π
= ( + cos θ sin θ) dθ = .
0 4 2
#» #»
ZZ ZZ ZZ
F · n̂ dσ = (− F · k̂) dσ = (−z)dA = 0
S2 S2 D
since on D = S2 , z = 0. Then
#» #» #»
ZZ ZZ ZZ
π
F · n̂ dσ = F · n̂ dσ + F · n̂ dσ = .
S S1 S2 2
If you walk in the positive direction of C keeping your head pointing towards n̂, then S will be to
your left.
Recall that Green’s theorem relates a double integral in the plane to a line integral over its boundary.
We will have a generalization of this to 3 dimensions. Write the boundary curve of a given smooth
surface as ∂S. The boundary is assumed to be a closed curve, positively oriented unless specified
otherwise.
Theorem 3.10. (Stokes’ Theorem) Let S be an oriented piecewise-smooth surface that is bounded
by a simple, closed, piecewise-smooth boundary curve ∂S with positive orientation.
Let F = M î + N ĵ + P k̂ be a vector field with M, N, P having continuous partial derivatives on
an open region in space that contains S. Then
#» #» #»
I ZZ
F ·dr = curl F · n̂ dσ.
∂S S
101
In particular, if S is a bounded region D in the xy-plane, ∂S = C, the smooth boundary of D, then
n̂ = k̂ and dσ = dA. We obtain
#» #» #»
I ZZ ZZ
F ·dr = curl F · k̂ dA = (Nx − My ) dx dy.
C D D
as Green’s theorem states. In fact, we can use Green’s theorem to prove Stokes’ theorem in case
#»
S is the graph of a smooth function z = f (x, y) with a smooth boundary, and the vector field F is
smooth.
#»
Proof: Let F = M î + N ĵ + P k̂. We see that
#» #»
I I
F ·dr = M dx + N dy + P dz.
∂S ∂S
And
#»
ZZ ZZ
curl F · n̂ dσ = curl (M î) · n̂ dσ
S Z ZS ZZ
+ curl (N ĵ) · n̂ dσ + curl (P k̂) · n̂ dσ.
S S
Thus I Z b
dx
M (x, y, z) dx = M (x(t), y(t), f (x(t), y(t)) dt.
∂S a dt
Or that I Z
M (x, y, z) dx = M (x, y, z) dx.
∂S ∂D
Next, we apply Green’s theorem on the integral on the right to obtain:
I ZZ
M (x, y, z) dx = − My (x, y, f (x, y)) dA.
∂S D
102
Apply Chain rule on the right side integrand to obtain
I ZZ h i
My (x, y, z) dx = − My (x, y, f (x, y)) + Mz (x, y, f (x, y))fy dA.
∂S D
RR
We now compute S
curl (M î)dσ. For this, notice that S has the parameterization:
#»
r (t) = x(t) î + y(t) ĵ + f (x, y) k̂.
−fx î − fy ĵ + k̂
So, n̂ = , where c = | − fx î − fy ĵ + k̂|. Then
c
#» #»
I Z 2π
F ·dr = [(3 sin θ) î − (3 cos θ) ĵ] · [(−3 sin θ) î + (3 cos θ) ĵ] dθ
∂S 0
Z 2π
= [−9 sin2 θ − 9 cos2 θ] dθ = −18π.
0
This is the line integral in Stokes’ theorem. For the surface integral, we have
#»
curl F = (Py − Nz ) î + (Mz − Px ) ĵ + (Nx − My ) k̂ = −2 k̂.
#» |grad g| 2×3 3
p = k̂, dσ = #» dA = dA = dA,
|grad g · p | 2z z
where dA is the differential in the projected area D : x2 + y 2 ≤ 9. Then
#» −2z −2z 3
ZZ ZZ ZZ ZZ
curl F · n̂ dσ = dσ = dA = (−2) dA = −18π.
S S 3 D 3 z D
103
Example 3.40. Evaluate C ((x2 − y) î + 4z ĵ + x2 k̂) · d #»
H
r,
pC is the intersection of the plane z = 2 and the cone
where
z = x2 + y 2 .
Parameterize the cone as
#»
r (r, θ) = r cos θ î + r sin θ ĵ + r k̂
#»
#»
rr ×
rθ 1
n̂ = #»
#» = √ (− cos θ î − sin θ ĵ + k̂).
r |r ×
r θ| 2
#»
curl F = (Py − Nz ) î + (Mz − Px ) ĵ + (Nx − My ) k̂ = −4 î − 2r cos θ ĵ + k̂.
#» 1
curl F · n̂ = √ (4 cos θ + r sin(2θ) + 1)
2
√
dσ = r 2 dr dθ.
By Stokes’ theorem,
#» #» #» 2π 2
I ZZ Z Z
F ·dr = curl F · n̂ dσ = (4 cos θ + r sin(2θ) + 1)r dr dθ = 4π.
C S 0 0
#»
F = M î + N ĵ + P k̂, where M = −y 2 , N = x, P = z 2 .
#»
curl F = (Py − Nz ) î + (Mz − Px ) ĵ + (Nx − My ) k̂ = (1 + 2y) k̂.
Here, there are many surfaces with boundary C. We choose a convenient one: the surface S on the
plane y+z = 2 with boundary as C. Its projection on the xy-plane is the disc D : x2 +y 2 ≤ 1. Then
#» √
p = k̂. With g(x, y) = y + z − 2, we have n̂ = (grad g)/|grad g| = (ĵ + k̂)/ 2, grad g · #»p = 1,
√
and dσ = 2 dA. Stokes’ theorem gives
#» #» #» 1 + 2y √
I ZZ ZZ
F ·dr = curl F · n̂ dσ = √ 2 dA
C S D 2
Z 2π Z 1 Z 2π
1 2
= (1 + 2r sin θ) r dr dθ = + sin θ dθ = π.
0 0 0 2 3
104
RR #» #»
Example 3.42. Compute S curl F · n̂ dσ, where F = xz î + yz ĵ + xy k̂ and S is the part of the
sphere x2 + y 2 + z 2 = 4 that lies inside the cylinder x2 + y 2 = 1 and above the xy-plane.
The boundary curve C is obtained by solving the two equations to get z 2 = 3. Since z > 0, we
√
have the curve C as x2 + y 2 = 1, z = 3. In vector parametric form,
√
C : #»
r (θ) = cos θ î + sin θ ĵ + 3 k̂ for 0 ≤ θ ≤ 2π.
Then √ √
#»
F ( #»
r (θ)) = 3 cos θ î + 3 sin θ ĵ + cos θ sin θ k̂.
By Stokes’ theorem,
#» #» #» #»
ZZ I Z 2π
curl F · n̂ dσ = F ·dr = F · #»
r 0 (θ) dθ
S
ZC2π √ 0
√
= (− 3 cos θ sin θ + 3 sin θ cos θ) dθ = 0.
0
Stokes’ theorem can be generalized to piecewise smooth surfaces like union of sides of a polyhedra.
Here, we take the integral over the sides as the sum of integrals over each individual side.
Similarly, Stokes’ theorem can be generalized to surfaces with holes. The line integrals are to be
taken over all the curves which form the boundaries of the holes.
#»
The surface integral over S of the normal component of curl F is equal to the sum of the line
#»
integrals around all the boundary curves of the tangential component of F . Here, the curves are
traced in the direction induced by the orientation of S.
Recall that a conservative field is one which can be expressed as a gradient of another scalar field.
#» H #»
In such a case, curl F = 0. Then from Stokes’ theorem, it follows that C F · d #»r = 0.
#»
Theorem 3.11. If curl F = 0 at each point of an open simply connected region D in space, then
H #» #»
on any piecewise smooth closed path C lying in D, C
F · d r = 0.
105
R #»
For a domain D in R2 , D (Ny − Mx ) dA = ∂D F · d #»
RR
r.
#» #»
For a surface S in R3 , S curl F · n̂ dσ = C F · d #»
RR R
r.
It suggests a generalization to three dimensions; and we use the divergence of a vector field for
this purpose.
#» #» #» #»
Recall that div F = grad · F = ∇· F . That is, the divergence of a vector field F = M (x, y, z) î+
#»
N (x, y, z) ĵ + P (x, y, z) k̂ is the scalar function div F = Mx + Ny + Pz .
RRR #» RR #»
Our generalization is D
div F dV = S
F · n̂ dσ.
Theorem 3.12. (Gauss’ Divergence Theorem) Let S be a piecewise smooth simple closed bounded
surface that encloses a solid region D in R3 . Suppose S has been oriented positively by its outward
#»
normals. Let F be a vector field whose component functions have continuous partial derivatives
on an open region that contains D. Then
#» #»
ZZ ZZZ
F · n̂ dσ = div F dV.
S D
Proof: We prove this in the special case that D is a box in R3 given by D = [a, b] × [c, d] × [e, f ].
#»
Let F = M î + N ĵ + P k̂. Then
#» #»
ZZZ ZZZ ZZZ ZZZ
div F dV = div M dV + div N dV + div F dV.
D D D D
#»
ZZ ZZ ZZ ZZ
F · n̂ dσ = M · n̂ dσ + N · n̂ dσ + P · n̂ dσ.
S S S S
We prove that the respective components are equal. We thus consider only the î-component. That
#»
is, we take F = M î and prove the divergence theorem in this case.
#»
So, let F = M î. The solid has six faces. The surface integral over S is the sum of integrals over
#» #» #»
these faces. A simplification occurs. F = M î we have F · ĵ = F · k̂ = 0. That is, F is orthogonal
to the normals of the top, bottom, and the two side faces.
106
Writing the remaining faces as Sf and Sb , we have
#» #» #»
ZZ ZZ ZZ
F · n̂ dσ = F · n̂ dσ + F · n̂ dσ.
S Sf Sb
Sf : #»
r = b î + y ĵ + z k̂, Sb : #»
r = a î + y ĵ + z k̂.
#» f d f d
ZZ Z Z Z Z
F · n̂ dσ = M (b, y, z) dydz − M (a, y, z) dydz
S e c e c
Z f Z d
= [M (b, y, z) − M (a, y, z)] dydz
e c
Z f Z dZ b
= Mx (x, y, z) dxdydz
e c a
#»
ZZZ
= div F dV,
D
#» #»
since F = M î ⇒ div F = div M = Mx .
#»
Example 3.43. Consider the field F = x î + y ĵ + z k̂ over the sphere S : x2 + y 2 + z 2 = a2 .
2(x î + y ĵ + z k̂) 1
n̂ = p = (x î + y ĵ + z k̂).
4(x2 + y 2 + z 2 ) a
Example 3.44. Find the outward flux of the vector field xy î + yz ĵ + zx k̂ through the surface cut
from the first octant by the planes x = 1, y = 1 and z = 1.
107
The solid D is a cube having six faces. Call the surface of the cube as S. Instead of computing the
surface integral, we use Divergence theorem.
#»
With F = xy î + yz ĵ + zx k̂, we have
#» ∂xy ∂yz ∂zx
div F = + + = y + z + x.
∂x ∂y ∂z
Therefore the required flux is
#» #»
ZZ ZZZ Z 1Z 1Z 1
3
F · n̂ dσ = div F dV = (y + z + x) dxdydz = .
S D 0 0 0 2
RR #» #» 2
Example 3.45. Evaluate S F · n̂ dσ, where F = xy î + y 2 + exz ĵ + sin(xy) k̂ and S is the
surface of the solid D bounded by the parabolic cylinder z = 1 − x2 , and the planes y = 0, z = 0,
and y + z = 2.
S has four sides. Instead of computing the surface integrals, we use Divergence theorem. We have
#» 2
div F = (xy)x + (y 2 + exz )y + (sin(xy))z = 3y.
And D is given by −1 ≤ x ≤ 1, 0 ≤ z ≤ 1 − x2 , 0 ≤ y ≤ 2 − z.
Therefore,
#» #»
ZZ ZZZ ZZZ
F · n̂ dσ = div F dV = 3y dV
S D D
1 1−x2 2−z 1 1−x2
(2 − z)2
Z Z Z Z Z
= 3y dy dz dx = dz dx
−1 0 0 −1 0 2
Z 1
1 184
= − [(x2 + 1)3 − 8] dx =
.
−12 35
#»
Example 3.46. Find the outward flux of the vector field F across the boundary of the solid D
#» x î + y ĵ + z k̂
where F = 2 and D : 0 < a2 ≤ x2 + y 2 + z 2 ≤ b2 .
(x + y 2 + z 2 )3/2
108
p dρ x #»
Write ρ = x2 + y 2 + z 2 . Then = . With F = M î + N ĵ + P k̂, we have
dx ρ
∂(xρ−3 ) ∂ρ 1 3x2
Mx = = ρ−3 − 3xρ−4 = 3− 5 .
∂x ∂x ρ ρ
1 3y 2 1 3z 2
Similarly, Ny = − and P z = − .
ρ3 ρ5 ρ3 ρ5
#» 3 3x2 + 3y 2 + 3z 2
Then div F = 3 − = 0.
ρ ρ5
RRR #»
Thus the required flux is D
div F dV = 0.
In fact, flux through the inner surface and flux through the outer surface are in opposite directions.
Are their magnitudes equal?
#» 1
Example 3.47. Consider the vector field F = 3 (x î + y ĵ + z k̂) on the sphere S of radius a
a
centered at the origin. Show that the flux through S is a constant.
We compute the flux directly. Let S be the sphere x2 + y 2 + z 2 = a2 for any a > 0. The gradient
computed from f = x2 + y 2 + z 2 − a2 gives the outward unit normal to S as
2x î + 2y ĵ + 2z k̂ x î + y ĵ + z k̂
n̂ = p = .
4x2 + 4y 2 + 4z 2 a
#»
Therefore, on the sphere S with F = (x î + y ĵ + z k̂)/(x2 + y 2 + z 2 )3/2 ,
#» x2 + y 2 + z 2 1
F · n̂ = 4
= 2.
a a
Then
#»
ZZ ZZ
1 1
F · n̂ dσ = dσ = × Area of S = 4π.
S S a2 a2
109
Problem 3.2: Let C be the portion of the curve y = x3 from (1, 1) to (2, 8). Compute
Z
(6x2 y dx + 10xy 2 dy).
C
#» #» #»
Z Z π/2
F ·dr = F ( #»
r (θ)) · #»
r 0 (θ) dθ
C 0
Z π/2
= (− sin θ î − cos θ sin θ ĵ) · (− sin θ î + cos θ ĵ) dθ
0
Z π/2
π 1
= (sin2 θ − cos2 θ sin θ) dθ = − .
0 4 3
#» R #»
Problem 3.4: Let F = 5z î + xy ĵ + x2 z k̂. Is C F · d #» r the same if C is a curve joining (0, 0, 0)
to (1, 1, 1), given by
(a) #»
r (t) = t î + t ĵ + t k̂ for 0 ≤ t ≤ 1; (b) #» r (t) = t î + t ĵ + t2 k̂ for 0 ≤ t ≤ 1?
#»
r (t)) = 5t î + t2 ĵ + t3 k̂. d #»
(a) F ( #» r (t) = î + ĵ + k̂. Thus
#» 1
Z Z
37
F · d #»
r = (5t + t2 + t3 )dt = .
C 0 12
#»
(b) F ( #»
r (t)) = 5t î + t2 ĵ + t3 k̂. d #»
r (t) = î + ĵ + 2t k̂. Thus
#» #»
Z Z 1
28
F ·dr = (5t2 + t2 + 2t5 )dt = .
C 0 12
As we see the line integral is not path-independent.
Problem 3.5: Let D be a simply connected domain containing a smooth curve C from (0, 0, 0) to
R
(1, 1, 1). Evaluate C (2xdx + 2ydy + 4zdz).
#»
F = 2x î + 2y ĵ + 4z k̂ = grad f, where f = x2 + y 2 + 2z 2 . Therefore, the line integral is
independent of path C. Hence its value is f (1, 1, 1) − f (0, 0, 0) = 4.
RR
Problem 3.6: Evaluate S (7x î − z k̂) · n̂ dσ over the surface S : x2 + y 2 + z 2 = 4.
#»
div F = div (7x î − z k̂) = 7 − 1 = 6. So, the integral = 6 × volume of S = 64π.
R
Problem 3.7: Evaluate I = C (3x2 dx + 2yz dy + y 2 dz), where C is a smooth curve joining
#»
(0, 1, 2) to (1, −1, 7) by showing that F has a potential.
110
#»
In order that F = grad f, we should have
fx = M = 3x2 , fy = N = 2yz, fz = P = y 2 .
Problem 3.9: Use Green’s theorem to compute the area of the region
(a) bounded by the ellipse x2 /a2 + y 2 /b2 = 1.
(b) bounded by the cardioid r = a(1 − cos θ) for 0 ≤ θ ≤ 2π.
(a) Recall: Green’s theorem gave Area of D = 21 ∂D (x dy − y dx). The ellipse x2 /a2 + y 2 /b2 = 1
H
has the parameterization x(t) = a cos t, y = b sin t for 0 ≤ t ≤ 2π. Then its area is
1 2π 1 2π
Z Z
0 0
(xy − yx ) dt = (ab cos2 t − (−ab sin2 t)) dt = πab.
2 0 2 0
(b) In polar form, x = r cos θ, y = r sin θ. Then dx = cos θ dr − sin θ dθ and dy = sin θ dr +
r cos θ dθ. Consequently the area is equal to
a2 2π
I I Z
1 1 2 3π 2
(x dy − y dx) = r dθ = (1 − cos θ)2 dθ = a.
2 ∂D 2 ∂D 2 0 2
Problem 3.10: Compute the flux of the water through the parabolic cylinder S : y = x2 , 0 ≤ x ≤
#»
2, 0 ≤ z ≤ 3 if the velocity vector F = 3z 2 î + 6 ĵ + 6zx k̂, speed being measured in m/sec.
Write x = u, z = v. We have y = x2 = u2 . The surface is
S : #»
r = u î − u2 ĵ + v k̂, for 0 ≤ u ≤ 2, 0 ≤ v ≤ 3.
111
Then
#»
n = #»
r u × #»
r v = ( î + 2 ĵ) × k̂ = 2u î − ĵ.
On S,
#»
F ( #»
r (u, v)) = 3v 2 î + 6 ĵ + 6uv k̂.
#»
Hence F ( #»
r (u, v)) · #»
n = 6uv 2 − 6. Consequently the flux is
#» #»
ZZ Z 3Z 2 Z 3
2
F · n dσ = (6uv − 6) du dv = (12v 2 − 12) dv = 72 m3 /sec.
S 0 0 0
Problem 3.11: Find the area of the portion of the surface of the cylinder x2 + y 2 = a2 which is cut
out by the cylinder x2 + z 2 = a2 .
One-eighth of the required surface area is in the first octant. This portion of the surface has the
√
equation y = a2 − x2 . This gives
r
∂y x ∂y p x2 a
= −√ , =0 ⇒ 1 + yx2 + yz2 = 1 + 2 2
=√ .
∂x a − x ∂z
2 2 a −x a − x2
2
x 2 + x 2 ≤ a2 ≤ a2 , x ≥ 0, z ≥ 0.
Problem 3.12: A torus is generated by rotating a circle C about a straight line L in space so that
C does not intersect or touch L. If L is the z-axis and C has radius b and its centre has distance
a (> b) from L, then compute the surface area of the torus.
The surface S of the torus is represented by
#»
r (u, v) = (a + b cos v) cos u î + (a + b cos v) sin u ĵ + b sin v k̂.
Here, v is the angle in describing the circle and u is the angle of rotation. Thus 0 ≤ u, v ≤ 2π.
Projection onto the uv-plane shows that
#»
r (u) = −(a + b cos v) sin u î + (a + b cos v) cos u ĵ
#»
r (v) = −b sin v cos u î − b sin v sin u ĵ + b cos v k̂
#» #»
r (u) × r (v) = b(a + b cos v)(cos u cos v î + sin u cos v ĵ + sin v k̂)
Hence | #»
r (u) × #»
r (v)| = b(a + b cos v) and the area is
ZZ Z 2π Z 2π
#» #»
| r (u) × r (v)| du dv = b(a + b cos v) du dv = 4π 2 ab.
C 0 0
112
RR
triple integral evaluate I = S (x3 dy dz + x2 y dz dx + x2 z dx dy).
#» #»
F = M î + N ĵ + P k̂, where M = x3 , N = x2 y, P = x2 z. Then div F = 5x2 . Let D be the
solid bounded by S. In cylindrical coordinates, using Gauss’ divergence theorem,
ZZZ Z b Z a Z 2π
2 5
I= 5x dV = 5 r2 cos2 θ r dr dθ dz = πa4 b.
D 0 0 0 4
#»
Problem 3.14: Compute the flux of the vector field F = (z 2 + xy 2 ) î +cos(x + z) ĵ +(e−y − zy 2 ) k̂
through the boundary of the surface given in the following figure:
∂ 2 ∂ ∂
div (F ) = (z + xy 2 ) + cos(x + z) + (e−y − zy 2 ) = 0.
∂x ∂y ∂z
Let D be the region enclosed by S. By the Divergence theorem,
#»
ZZZ
Flux through S = div F dV = 0.
D
Problem 3.15: Let a closed smooth surface S be such that any straight line parallel to the z-axis
cuts it in no more than two points. Let n3 denote the z-component of the unit outward normal n̂ to
RR
the surface S. Then what is S zn3 dσ?
In this case, S has an upper part and a lower part. Suppose they are given, respectively, by the
equations
z = fu (x, y), z = fb (x, y).
Let D be the projection of S on the xy-plane. Then
ZZ ZZ ZZ
z n3 dσ = fu (x, y) dA − fb (x, y) dA.
S D D
#» #»
ZZ ZZ ZZZ
z n3 dσ = F · n̂ dσ = div F dV = volume of B.
S S B
Problem 3.16: Prove that the integral of the Laplacian over a planar region is the same as the
integral, over the boundary curve, of the directional derivative in the direction of the unit normal
to the boundary curve.
We rephrase: Let f (x, y) be a function defined over a simply connected region D in the xy-plane.
113
Let C be the boundary curve of D. Denote by Dn f (x, y) the directional derivative of f in the
RR R
direction of the unit outer normal n̂ to C. Show that D (fxx + fyy )dA = C Dn f ds.
Let θ be the angle between n̂ and î, the x-axis. Then n̂ = cos θ î + sin θ ĵ. If α is the angle
between the tangent line to C and the x-axis, then cos α = − sin θ and sin α = cos θ. Then
Problem 3.17: Let f and g be functions with continuous partial derivatives up to second order on
a domain D in space, which has a smooth boundary ∂D. Denote by ∆f and ∆g their Laplacians.
Prove the Green’s formula:
ZZZ ZZ
∂f ∂g
(g∆f − f ∆g)dV = g −f dσ.
D ∂D ∂ n̂ ∂ n̂
#»
Let F = M î + N ĵ + P k̂. Gauss’ divergence theorem says that
#» #»
ZZZ ZZ
div F dV = F · n̂ dσ.
D ∂D
Suppose the unit normal n̂ has the components a, b, c in the x, y, z-directions, respectively. Then
ZZZ ZZ
(Mx + Ny + Pz ) dV = (aM + bN + cP ) dσ.
D ∂D
∂f ∂g
aM + bN + cP = g(afx + bfy + cfz ) − f (agx + bgy + cgz ) = g −f .
∂ n̂ ∂ n̂
Now Green’s formula follows from Gauss’ divergence theorem.
114
Bibliography
[1] Advanced Engineering Mathematics, 10th Ed., E. Kreyszig, John Willey & Sons, 2010.
[2] Basic Multivariable Calculus, J.E. Marsden, A.J. Tromba, A. Weinstein, Springer Verlag,
1993.
[3] Differential and Integral Calculus, Vol. I and II, N. Piskunov, Mir Publishers, 1974.
[7] Thomas Calculus, G.B. Thomas, Jr, M.D. Weir, J.R. Hass, Pearson, 2009.
115
Appendix A
This appendix is devoted to summarizing some results and formulas from calculus of functions
of one real variable that we may use in the class. For details, see Functions of One Variable - A
Survival Guide.
4. |x| > a iff −a < x or x > a iff x ∈ (−∞, −a) ∪ (a, ∞) iff x ∈ R − [−a, a].
116
Graphs of some known functions including | · |, are as follows:
(
x if x ≥ 0
1. y = |x| =
−x if x < 0
−x if x < 0
2. y = x2 if 0 ≤ x ≤ 1
1 if x > 1
(
x if 0 ≤ x ≤ 1
3. y = f (x) =
2 − x if 1 < x ≤ 2
117
7. The power function y = xn for n = −1 and n = −2 look like
118
10. A rational function is a ratio of two polynomials; f (x) = p(x)
q(x)
, where p(x) and q(x) are
polynomials, may or may not be of the same degree. Graphs of some rational functions are as
follows:
11. Algebraic functions are obtained by adding subtracting, multiplying, dividing or taking roots
of polynomial functions. Rational functions are special cases of algebraic functions. Some graphs
of alhebraic functions:
12. Trigonometric functions come from the ratios of sides of a right angled triangle. The angles
are measured in radian. The trigonometric functions have a period. That is, f (x + p) = f (x)
happens for some p > 0. The period of f (x) is the minimum of such p. The period for sin x is 2π.
The functions cos x and sec x are even functions and all others are odd functions. Recall that
f (x) is even if f (−x) = f (x) and it is odd if f (−x) = −f (x) for each x in the domain of the
function. Some of the useful inequalities are
119
13. Exponential functions are in the form y = ax for some a > 0 and a 6= 1. All exponential
functions have domain (−∞, ∞) and co-domain (0, ∞). They never assume the value 0. Graphs
of some exponential functions:
120
15. Trigonometric inverse functions:
Functions that are not algebraic are called transcendental functions. Trigonometric functions, ex-
ponential functions, logarithmic functions and inverse trigonometric functions are examples of
transcendental functions.
lim f (x) = `
x→c
iff for each > 0, there exists a δ > 0 such that for each x ∈ (a, c) ∪ (c, b) with 0 < |x − c| < δ,
we have |f (x) − `| < .
121
Limit Properties: Let k be a constant; or a constant function.
9. (Sandwich) Let f, g, h be functions whose domain include (a, c) ∪ (c, b) for a < c < b.
Suppose that g(x) ≤ f (x) ≤ h(x) for all x ∈ (a, c) ∪ (c, b). If lim g(x) = ` = lim h(x),
x→c x→c
then lim f (x) = `.
x→c
10. (Domination) Let f, g be functions whose domains include (a, c) ∪ (c, b) for a < c < b.
Suppose that both lim f (x) and lim g(x) exist. If f (x) ≤ g(x) for all x ∈ (a, c) ∪ (c, b), then
x→c x→c
lim f (x) ≤ lim g(x).
x→c x→c
Let I be (a, ∞) or [a, ∞) for some a ∈ R. Let f : I → R. Let ` ∈ R. We say that lim f (x) = `
x→∞
if for each > 0, there exists an m > 0 such that if x is any real number greater then m, then
|f (x) − `| < .
Let f (x) have a domain containing (a, c). Then lim f (x) = ∞ iff for each m > 0, there exists a
x→c−
δ > 0 such that for every x with c − δ < x < c, we have f (x) > m.
That is, lim f (x) = ∞ iff, “as x increases to c, f (x) increases without bound”.
x→c−
If D = [a, b) or D = [a, b], then f (x) is called continuous at the left end-point a if lim f (x) = f (a).
x→a+
122
If D = (a, b] or D = [a, b], then f (x) is called continuous at the right end-point b if lim f (x) = f (a).
x→b−
2. Let f (x) be a continuous function, whose domain contains [a, b] for a < b. Then there exist
α, β ∈ R such that {f (x) : x ∈ [a, b]} = [α, β].
3. (Extreme Value Theorem) Let f (x) be continuous on a closed bounded interval [a, b]. Then
there exist numbers c, d ∈ [a, b] such that f (c) ≤ f (x) ≤ f (d) for each x ∈ [a, b].
4. (Intermediate Value Theorem) Let f (x) be continuous on a closed bounded interval [a, b].
Let d be a number between f (a) and f (b). Then there exists c ∈ [a, b] such that f (c) = d.
Let f (x) be a function whose domain includes an open interval (a, b). Let c ∈ (a, b). If the limit
f (c + h) − f (c)
lim
h→0 h
exists, we say that f (x) is differentiable at x = c; and we write the limit as f 0 (c) and call it the
df
derivative of f (x) at x = c. If f 0 (c) exists for each c ∈ (a, b), then we write f 0 (x) as dx .
Also, derivative of f defined on a closed interval [a, b] at the end-point a is taken as the left hand
derivative, where in the defining limit of the derivative we take h → a − . Similarly, derivative at
b is taken as the limit of that ratio for h → 0 + .
Let f (x) be a function defined on an interval I.
We say that f (x) is increasing on I if for all s < t ∈ I, f (s) < f (t).
Similarly, we say that f (x) is decreasing on I if for all s < t ∈ I, f (s) > f (t).
A monotonic function on I is one which either increases on I or decreases on I.
The sum, multiplication by a constant, and product of differentiable functions is differentiable. In
addition, the following are some properties of differentiable functions:
2. Derivatives of Sum, product etc. are respectives equal to sum, product etc of derivatives.
dg(f (x)) dg(f (x)) df (x)
3. (Chain Rule) dx
= df (x)
· dx
.
4. (Rolle’s Theorem) Suppose that f : [a, b] → R is continuous, f (x) is differentiable on (a, b),
and f (a) = f (b). Then f 0 (c) = 0 for some c ∈ (a, b).
5. (Mean value Theorem) Suppose that f : [a, b] → R is continuous and f (x) is differentiable
on (a, b). Then there exists c ∈ (a, b) such that f (b) − f (a) = f 0 (c)(b − a).
123
6. Let I be an interval containing at least two points. Let f : I → R be differentiable. If
f 0 (x) = 0 for each x ∈ I, iff f (x) is a constant function.
7. (Cauchy Mean Value Theorem) Let f (x) and g(x) be continuous on [a, b] and differentiable
0 (c)
on (a, b). If g 0 (x) 6= 0 on (a, b), then there exists c ∈ (a, b) such that fg0 (c) = fg(b)−g(a)
(b)−f (a)
.
(a) If f 0 (x) > 0 on (a, b), then f (x) is increasing on [a, b].
(b) If f 0 (x) < 0 on (a, b), then f (x) is decreasing on [a, b].
Let a function f (x) have domain D. The function f (x) has a local maximum at a point d ∈ D if
f (x) ≤ f (d) for every x in some neighborhood of d contained in D. in such a case, we also say
that the point x = d is a point of local maximum of the function f (x).
Similarly, f (x) has an local minimum at b ∈ D if f (b) ≤ f (x) for every x in some neighborhood
of b contained in D. In this case, we say that the point x = b is a point of local minimum of the
function f (x).
The points of local maximum and local minimum are commonly referred to as local extremum
points; and the function is said to have local extrema at those points.
Let f (x) have domain D. A point c ∈ D is called a critical point of f (x) if c is not an interior
point of D, or if f (x) is not differentiable at x = c, or if f 0 (c) = 0.
If f (x) has an extremum at x = c, then c is a critical point of f (x).
f 0 (x) < 0 on the immediate right of x = c iff x = c is a point of local maximum of f (x).
f 0 (x) > 0 on the immediate right of x = c iff x = c is a point of local minimum of f (x).
124
f 0 (x) > 0 on the immediate left of x = c iff x = c is a point of local maximum of f (x).
If f 00 (x) is positive on one side of x = c and negative on the other side, then the point
(c, f (c)) on the graph of y = f (x) is a point of inflection.
Let f : [a, b] → R. Divide [a, b] into smaller sub-intervals by choosing the break points as
is an approximation to the whole area raised over [a, b] and lying between the curve y = f (x)
and the x-axis. By taking the norm of the partition as kP k = max(xk − xk−1 ), we would say that
k
when the norm of the partition approaches 0, the Riemann sum would approach the required area.
Thus, we define the area of the region bounded by the lines x = a, x = b, y = 0, and y = f (x) as
n
X
lim f (ck )(xk − xk−1 )
kP k→0
k=1
provided that this limit exists. We define this limit (which is the mentioned area here) as the definite
integral of f on the interval [a, b]. That is,
Z b X n
f (x) dx = lim f (ck )(xk − xk−1 ).
a kP k→0
k=1
Rb
Let f : [a, b] → R be a continuous function. Then a
f (x) dx exists.
The definite integral has the following properties:
125
(Properties of Definite Integral)
1. Let f (x) have domain [a, b]. Let c ∈ (a, b). Then f (x) is integrable on [a, b] iff f (x) is
integrable on both [a, c] and [c, b]. In this case,
Z b Z c Z b
f (x)dx = f (x)dx + f (x)dx.
a a c
2. Let f (x) and g(x) be integrable on [a, b]. Then (f + g)(x) is integrable on [a, b] and
Z b Z b Z b Z b
(f + g)(x)dx = (f (x) + g(x)) dx = f (x) dx + g(x) dx.
a a a a
3. Let f (x) be integrable on [a, b]. Let c ∈ R. Then (cf )(x) is integrable on [a.b] and
Z b Z b Z b
(cf )(x) dx = cf (x) dx = c f (x) dx.
a a a
4. Let f (x) and g(x) be integrable on [a, b]. If for each x ∈ [a, b], f (x) ≤ g(x), then
Z b Z b
f (x) dx ≤ g(x) dx.
a a
5. Let f (x) be integrable on [a, b]. If m ≤ f (x) ≤ M for all x ∈ [a, b], then
Z b
m(b − a) ≤ f (x) dx ≤ M (b − a).
a
6. (Average Value Theorem) Let f (x) be continuous on [a, b]. Then there exists c ∈ [a, b] such
that Z b
1
f (c) = f (x) dx.
b−a a
Z b
7. Let f (x) be continuous on [a, b]. If f (x) has the same sign on [a, b] and f (x) dx = 0,
a
then f (x) is the zero function, i.e., f (x) = 0 for each x ∈ [a, b].
We extend the integral even when a 6< b by the following:
Z b
If a = b, then we take f (x) dx = 0.
a
Z b Z a
If a > b, then we take f (x) dx = − f (x) dx.
a b
Also, for any real number c; even when c is outside the interval (a, b) we have
Z b Z c Z b
f (x) dx = f (x) dx + f (x) dx
a a c
126
(Fundamental Theorem of Calculus) Let f (x) be continuous on [a, b].
Rb
1. If F (x) is an antiderivative of f (x), then a f (x) dx = F (b) − F (a).
Rx
2. The function g(x) = a f (t) dt is continuous on [a, b] and differentiable on (a, b). Moreover,
Rx
g 0 (x) = dx
d
a
f (t) dt = f (x).
1. Let u = g(x) be a differentiable function whose range is an interval I. Let f (x) be continu-
ous on I. Then Z Z
0
f (g(x))g (x) dx = f (u) du.
The rpoduct rule for differntiation gives the integration by parts formula.
Z Z Z Z
0
f (x)h(x) dx = f (x) h(x) dx − f (x) h(x) dx dx + C.
The exponential function is the inverse of the natural logarithm. That is,
127
Notice that cosh−1 has domain as x ≥ 1 and tanh−1 has domain as −1 < x < 1.
Let C be a curve given parametrically by x = f (t), y = g(t), a ≤ t ≤ b. Assdume that both f (t)
and g(t) are continuously differentiable.
Z bp
Length of the curve = L = [f 0 (t)]2 + [g 0 (t)]2 dt.
a
If the curve is given as a function y = f (x), a ≤ x ≤ b, then take x = t and y = f (t) as its
parameterization. We then have the length as
Z bp Z bp
L= 0 2
1 + [f (x)] dx = 1 + (y 0 )2 dx.
a a
Notice that this formula is applicable when f 0 (x) is continuous on [a, b].
Rb
We write L = a ds with limits a and b for the variable of integration, which may be x, y or t.
Here,
r s
p p dy 2 dx 2
ds = [x0 (t)]2 + [y 0 (t)]2 dt = (dx)2 + (dy)2 = 1+ dx = 1+ dy.
dx dy
Suppose that a curve is given in polar coordinates by r = f (θ) for a continuous function f (θ),
where α ≤ θ ≤ β. Then the area of the sector and the arc length of the curve are
Z β Z βp
2
Area = r dθ, Length = r2 + (r0 )2 dθ.
α α
A.3 Formulas
Here are some formulas for the exponential and the logarithm functions:
tp
lim t = 0 for p ∈ N and a > 1.
t→∞ a
ln e = 1 = e0 , eln x = x, ln(ex ) = x, ax = ex ln a ,
lim ln x = ∞, lim ln x = −∞, lim ex = ∞, lim ex = 0,
x→∞ x→0+ x→∞ x→−∞
Z e Z
1 1
(ln x)0 = , (ex )0 = ex , x 0 x
(a ) = (ln a)a , dt = 1, ex dx = ex .
x 1 t
ln(1 + xh) eh − 1
lim = 1 for x 6= 0, lim = 1, lim (1 + xh)1/h = ex ,
h→0 xh h→0 h h→0
Below are given some integrals, from which you should get the derivatives by following the simple
rule that if f (x) dx = g(x) + c, then g 0 (x) = f (x).
R
128
129
130
131
132
Index
133
Laplacian, 85 positive orientation, 79
level curves, 5 potential, 73
level surfaces, 6 power function, 117
limit, 6 properties of definite integral, 126
limit of f (x), 121
range, 5
linear approximation, 16
rational function, 119
line integral, 69, 74
region, 4
line integrals, 72
Riemann integrable, 41
local extrema, 124
Riemann sum, 41, 125
local extremum, 26
Rolle’s theorem, 123
local extremum points, 124
local maximum, 26, 124 saddle point, 26
local maximum value, 26 sample points, 41, 125
local minimum, 124 sandwich theorem, 122
logarithmic functions, 120 simple curve, 76
simply connected region, 76
mean value theorem, 123
solid of revolution, 36
minimum, 26
substitution theorem, 127
monotonic, 123
surface, 5
norm, 41, 125 surface area, 90
normal-form of Green’s, 86 surface integral, 94
normal line, 23 surface integral over S, 98
134