Chap 4
Chap 4
Recall that the partial derivative @u/@x defined rate of change of the function u along the
x-axis. In general, the rate of change of the function along any direction is characterised by
the derivative in that direction.
Figure 4.1: A line L, which passes through the point M0 in the direction of the unit vector ~l
f (M ) f (M0 )
lim
M !M0 ,M 2L M0 M
57
Calculus of Several Variables (G5210) 2018-19 Lecture notes
is called the derivative of function u = f (M ) at the point M along the vector ~l and is denoted
as @f /@l(M0 ) or D~l f (M0 ).
Suppose z = f (x, y), and we want to find the derivative of z at the point (x0 , y0 ) in the direction
of the unit vector ~u = (u1 , u2 ). In order to do this, we can introduce an s-axis with its origin
at (x0 , y0 ) and its positive direction in the direction of ~u, as shown in Figs 4.2.
Figure 4.2: A directional derivative in the direction of the unit vector ~u = (u1 , u2 ).
Then the point s on the s-axis has xy-coordinates x = x0 + su1 , y = y0 + su2 . The value of
z = f (x, y) at the point s on the s-axis is
and is it called the cross-section through (x0 , y0 ) of z = f (x, y) in the direction of ~u.
Definition 18 The directional derivative of z = f (x, y) at the point (x0 , y0 ) in the direction
of the unit vector ~u = (u1 , u2 ) is
d
D~u f (x0 , y0 ) = f (x0 + su1 , y0 + su2 ) .
ds s=0
The chain rule allows us to calculate the directional derivative of z = f (x, y) using partial
derivatives.
Theorem 17 For any unit vector ~u = (u1 , u2 ), the directional derivative of z = f (x, y) at
(x0 , y0 ) in the direction of ~u is
Proof: Following the definition 19 and using the chain rule, we have
d
F 0 (s) = [f (x0 + su1 , y0 + su2 )]
ds
d d
= fx (x0 + su1 , y0 + su2 ) (x0 + su1 ) + fy (x0 + su1 , y0 + su2 ) (y0 + su2 )
ds ds
as required. ⌅
and ✓ ◆
@f 1 4 1 4
fy (x, y) = 4xy x y = 4x y3.
@x 4 4
At the point (1, 1) we have
fx (1, 1) = 4( 1) 13 = 3
and
fy (1, 1) = 4(1) ( 1)3 = 3.
Figure p4.3: Apdirectional derivative at the point (1, 1) in the direction of the unit vector
~u = ( 12 2, 12 2).
p p
The directional derivative along the vector ~v = ( 12 2, 1
2
2) can now be calculated as
D~u f (1, 1) = fx (1, 1)u1 + fy (1, 1)u2
✓ ◆ ✓ ◆
1p 1p p
=3 2 + ( 3) 2 = 3 2.
2 2
⌅
Example: Find the derivative of the function f (x, y) = x2 y 5 at a point P = (3, 1) in the
direction towards the point Q = (4, 3).
P~Q (1, 4)
~u = (u1 , u2 ) = = p ,
~
|P Q| 17
which gives
1 4
u1 = p , u2 = p .
17 17
Finally,
✓ ◆ ✓ ◆
1 4 174
D~v f (3, 1) = fx (3, 1)u1 + fy (3, 1)u2 = 6 p + 45 p = p .
17 17 17
⌅
Theorem 18 Let the unit vector ~u = (cos ↵, cos , cos ), the directional derivative of u =
f (x, y, z) at (x0 , y0 , z0 ) in the direction of ~u is
It is worth noting that the directional derivative can be written in the form of the scalar/dot
product, i.e.
Definition
Pn 21 Let ~ei be the standard orthonormal coordinate basis in Rn , so that ~r =
i=1 xi~
ei . The gradient of the function f = f (x1 , x2 , ..., xn ) is defined as
n
X
~ (x1 , x2 , ..., xn ) = @f (x1 , x2 , ..., xn )
rf ~ei .
i=1
@xi
~ ⌘ r ⌘ grad.
r
The symbol r is read as ”nabla” (from ancient Hebrew), and short notation for the directional
derivative has the form
~ (x,0 , y0 ) · ~u,
D~u f (x,0 , y0 ) = rf ~ (x,0 , y0 , z0 ) · ~u,
D~u f (x,0 , y0 , z0 ) = rf ~ · ~u,
D~u f = rf
where · denotes the scalar/dot product. This representation is useful since we know that the
scalar/dot product m~ · ~n of two non-zero vectors equals the product |m||~
~ n| cos ✓ of their lengths
and the cosine of the angle ✓ between them. Since ~u is a unit vector, its length |~u| is equal to
1, and we obtain the following theorem.
~ and ~u.
Figure 4.4: An angle between rf
~ (x0 , y0 )| is a
It is clear from the expression (4.1) that if the point (x0 , y0 ) is fixed, then |rf
positive constant, and as ✓ changes, cos ✓ varies between 1 and 1. Moreover, cos ✓ = 1 when
~ (x0 , y0 ) and ~u have the same direction, and cos ✓ = 1 when rf
rf ~ (x0 , y0 ) and ~u have opposite
~
directions and ✓ is a straight angle, and cos ✓ = 0 when rf (x0 , y0 ) and ~u are perpendicular, so
that ✓ is the right angle. This gives the following theorem.
~ (x0 , y0 ) is not a zero vector. Then
Theorem 20 Suppose that rf
~ (x0 , y0 )| and occurs for ~u with
(i) the maximum directional derivative of f at (x0 , y0 ) is |rf
~ (x0 , y0 );
the same direction as rf
(ii) the minimum directional derivative of f at (x0 , y0 ) is ~ (x0 , y0 )| and occurs for ~u with
|rf
~ (x0 , y0 );
the opposite direction as rf
(iii) the directional derivative of f at (x0 , y0 ) is zero for ~u with either of the two directions
~ (x0 , y0 ).
perpendicular to rf
rf (1, 1) = (2, 1)
rf ( 1, 2) = ( 4, 1)
rf ( 2, 11) = (4, 4).
Figure 4.5: Vectors rf (1, 1) = (2, 1), rf ( 1, 2) = ( 4, 1), and rf ( 2, 11) = (4, 4).
Example:
(i) Find the maximum directional derivative of h(x, y) = y 2 e2x at the point (2, 1), and
establish in the direction of which unit vector it occurs.
(ii) Find the minimum directional derivative of h(x, y) = y 2 e2x at the point (2, 1), and
establish in the direction of which unit vector it occurs.
(i) From the Theorem 20, we know that the maximum directional derivative is
p p
|rh()| = |(2e4 , 2e4 )| = (2e4 )2 + ( 2e4 )2 = 8e4 ,
(ii) From Theorem 20, we know that the minimum directional derivative is
p 4
|rh(2, 1) = 8e ,
Double integrals
5.1 Introduction
Before we look at the multiple integrals, let us recall a few things about integrals for functions
of one variable. Suppose function y = f (x) is non-negative and continuous on the interval
[a, b]. The figure bounded by the graph of the function y = f (x), the x-axis and the vertical
lines x = a and x = b as shown in Fig 5.1 is called a curvilinear trapezoid. The area of the
curvilinear trapezoid is Z b
A= f (x)dx. (5.1)
a
Solution. The area of the ellipse is 4 times larger than the shaded area shown in Fig.r5.2. The
x2
shaded area can be calculated using the formula (5.1) by taking a = 0, b = a, f (x) = b 1 .
a2
Therefore,
Z ar
x2
A = 4b 1 dx.
0 a2
65