Professional Documents
Culture Documents
CITY
INTERNATIONAL UNIVERSITY
2 Partial derivatives
5 Double integrals
V (r , h) = πr 2 h
Example
The surface area of a human (in square meters) has been approximated by
The set D is the domain of f and its range is the set of values that f takes
on, that is R = {f (x, y )|(x, y ) ∈ D}.
Nguyen Minh Quan (HCMIU-VNU) Chapter 1. Multivariable calculus Fall 2015 5 / 88
Functions of two variables
Example
Let f (x, y ) = 4x 2 + 2xy + 3/y and find the following
a. f (−1, 3)
a. f (3, −1)
c. f (1, 0)
Solution
a. Substitute x = −1 and y = 3 to obtain
3
f (−1, 3) = 4 (−1)2 + 2 (−1) (3) + = −1
3
b. Similarly,
3
f (3, −1) = 4 (3)2 + 2 (3) (−1) + = 27
−1
c. f (1, 0) is undefined!
Thus, the domain consists of all points (x, y ) lying below the parabola
y = 9 − x 2 . The range of f is R = [0, ∞].
Example
Find and sketch the domains of
f (x, y ) = x ln y 2 − x
g (x, y ) = ln(9 − x 2 − 4y 2 )
Definition
A function of three variables, f , is a rule that assigns to each ordered triple
(x, y , z) in a domain D of R3 a unique real number denoted by f (x, y , z).
Example
1. Let
f (x, y , z) = 4xz − 3x 2 y + 2z 2 .
then
f (2, −3, 1) = 4 (2) (1) − 3 (2)2 (−3) + 2 (1)2 = 46
2. The temperature T at a point on the surface of the Earth depends on
the longitude x and latitude y of the point and on the time t, so we could
write T = f (x, y , t).
Example
Graph of 2x + y + z = 6.
Example
Graph of x + z = 6.
The intersections of the surface with planes parallel to the xy-plane, i.e. the
planes z = k [or f (x, y ) = k] where k is a constant, are called level curves.
A contour map is a plot in the xy-plane that shows the level curves
f (x, y ) = c for equally spaced values of c.
The famous triple peaks Eiger, Monch, and Jungfrau in the Swiss alps.
The steepness at a point in a mountain range is measured by the gradient,
a concept defined in this chapter.
Rate of change of a function f(x,y) depends on the direction!
Informal Definition
Let z = f (x, y ) be a function of two independent variables.
The partial derivative of f with respect to x, denoted by fx (x, y ), is
the derivative of f as a function of x by considering y as a constant.
The partial derivative of f with respect to y, denoted by fy (x, y ), is
the derivative of f as a function of y by considering x as a constant.
Example
Compute the partial derivatives of f (x, y ) = x 2 y 5 .
fx (x, y ) = 2xy 5
fy (x, y ) = 5x 2 y 4
Formal Definition
Let z = f (x, y ) be a function of two independent variables. Let all
indicated limits exist.
Then the partial derivative of f with respect to x is:
∂ f (x + h, y ) − f (x, y )
fx (x, y ) = f (x, y ) = lim
∂x h→0 h
The partial derivative of f with respect to y is:
∂ f (x, y + h) − f (x, y )
fy (x, y ) = f (x, y ) = lim
∂y h→0 h
Formal Definition
Let z = f (x, y ) be a function of two independent variables. Let all
indicated limits exist.
Then the partial derivative of f with respect to x is:
∂ f (x + h, y ) − f (x, y )
fx (x, y ) = f (x, y ) = lim
∂x h→0 h
The partial derivative of f with respect to y is:
∂ f (x, y + h) − f (x, y )
fy (x, y ) = f (x, y ) = lim
∂y h→0 h
Example
If
f (x, y ) = 4x 2 − 9xy + 6y 3
then
fx (x, y ) = 8x − 9y
fy (x, y ) = −9x + 18y 2
Example
∂f
If f (x, y ) = sin x 2 y 5 , compute
∂x
Using the chain rule
∂f (x, y )
= 2xy 5 cos x 2 y 5
∂x
Example
If
f (x, y ) = 2x 2 + 3xy 3 + 2y + 5
then
∂f
(x, y ) = 4x + 3y 3 ,
∂x
∂f
(−1, 2) = 4 (−1) + 3 (2)3 = 20,
∂x
∂f
(x, y ) = 9xy 2 + 2,
∂y
∂f
(−1, −3) = 9 (−1) (−3)2 + 2 = 20.
∂y
f (x, y , z) = 3x 2 yz + z 3 y
Example
Suppose that the temperature of the water at the point on a river where a
nuclear power plant discharges its hot waste water is approximated by
T (x, y ) = 2x + 5y + xy − 40
where x represents the temperature of the river water (in degrees Celsius)
before it reaches the power plant and y is the number of megawatts (in
hundreds) of electricity being produced by the plant.
Find and interpret Tx (9, 5).
Solution
Tx (x, y ) = 2 + y
This partial derivative gives the rate of change of T with respect to x.
Replacing x with 9 and y with 5 gives
Tx (9, 5) = 2 + 5 = 7
3.62m0.75
F (m, v ) = 25.92m0.68 + ,
v
where F (m, v ) is the energy used (in kcal per hour), m is the mass (in g),
and v is the speed of movement (in km per hour) of the animal. Source:
Wildlife Feeding and Nutrition.
a. Find F (300, 10).
b. Find Fm (300, 10) and interpret.
c. If a mouse could run at the same speed that an elephant walks, which
animal would expend more energy? How can partial derivatives be used to
explore this question?
∂2z
∂ ∂z
= = fxx (x, y ) = zxx
∂x ∂x ∂x 2
∂2z
∂ ∂z
= = fyy (x, y ) = zyy
∂y ∂y ∂y 2
∂2z
∂ ∂z
= = fxy (x, y ) = zxy
∂y ∂x ∂y ∂x
∂2z
∂ ∂z
= = fyx (x, y ) = zyx
∂x ∂y ∂x∂y
fy (x, y ) = 3x 2 + 2 cos(xy )x − 3y 2
∂
fxy (x, y ) = fx (x, y ) = 6x − 2 sin(xy )xy + 2 cos(xy )
∂y
∂
fyx (x, y ) = fy (x, y ) = 6x − 2 sin(xy )xy + 2 cos(xy )
∂x
f (x, y ) = 2e x − 8x 3 y 2
Suppose f is defined in a disk D that contains the point (a, b). If fxy and
fyx are continuous on D, then:
Note: For most functions found in applications and for all of the functions
in this book, the second-order partial derivatives fxy and fyx are equal.
Example
Suppose f is a function of x and y, each of which is a function of t, then
df ∂f dx ∂f dy
= +
dt ∂x dt ∂y dt
Example
df
Let f (x, y ) = x 2 y , x = 2t − 1, y = t 2 . Find dt .
Note:
a. An extremum can be a maximum, a minimum.
a. The theorem on location of extrema suggests a useful strategy for
finding extrema: locate all critical points.
Example
Find all critical points of
Solution
To find the critical points, we solve
fx (x, y ) = 12x + 6y + 36 = 0
and
fy (x, y ) = 12y + 6x = 0
These two equations make up a system of linear equations. The solution of
this system is (x, y ) = (−4, 2).
Note that at a critical point the function f(x,y) may or may not attain an
extremum.
Definition
If f (x, y ) does not attain an extremum at a critical point (a, b), then
(a, b) is called a saddle point.
Example
Find the local maximum and minimum values and saddle points of
f (x, y ) = x 4 + y 4 − 4xy + 1
Solution
We first locate the critical points by solving
fx (x, y ) = 4x 3 − 4y = 0
fy (x, y ) = 4y 3 − 4x = 0
We substitute y = x 3 from the first equation into the second one. This
leads to the three critical points
Example (Cont.)
We now apply the Second Derivative Test
D (x, y ) = 144x 2 y 2 − 16
D(0, 0) = −16 < 0: The origin is a saddle point. That is, f has no
local maximum or minimum at (0, 0).
D(1, 1) = 128 > 0 and fxx (1, 1) = 12 > 0: (1, 1) is a local minimum.
D(−1, −1) = 128 > 0 and fxx (−1, −1) = 12 > 0: (−1, −1) is a local
minimum.
Example
Find the local maximum and minimum values and saddle points of
f (x, y ) = 9xy − x 3 − y 3 − 6
where x is the number of kilograms of sugar per batch and y is the number
of grams of flavoring per batch. Find the amounts of sugar and flavoring
that result in minimum cost per batch.
What is the minimum cost?
Answer C (4, 18) = 1336.
where T is the temperature (in o C) and t is the frying time (in min).
Source: Critical Reviews in Food Science and Nutrition.
a. What is the value of E prior to cooking? (Assume that T = 0.)
b. Use this function to estimate the total change in color of a potato strip
that has been cooked for 10 minutes at 180o C.
c. Determine the critical point of this function and determine if a
maximum, minimum, or saddle point occurs at that point. Describe what
may be happening at this point.
dz = fx (x, y ) dx + fy (x, y ) dy
(Sometimes dz is written df .)
Example
Consider z = f (x, y ) = 9x 3 − 8x 2 y + 4y 3
a. Find dz
dz = −2.21
Nguyen Minh Quan (HCMIU-VNU) Chapter 1. Multivariable calculus Fall 2015 51 / 88
Approximations
Formula
f (x + ∆x, y + ∆y ) ≈ f (x, y ) + fx (x, y ) ∆x + fy (x, y ) ∆y
Example
Approximate p
2.982 + 4.012
Solution p
Let f (x, y ) = x 2 + y 2 , (x, y ) = (3, 4), ∆x = −0.02, ∆y = 0.01.
We need to approximate f (2.98, 4.01) = f (x + ∆x, y + ∆y ).
Solution
We have
Thus
3 4
f (2.98, 4.01) ≈ f (3, 4) + (−0.02) + (0.01) = 5 − 0.004 = 4.996
5 5
Example
A can of beer has the shape of a right circular cylinder with radius r=1 in.
and height h=4 in. How sensitive is the volume to changes in the radius
compared with changes in the height?
Solution
The volume of a right circular cylinder is given by V = πr 2 h.
Hint:
The volume of the bone
V (h, r ) = πr 2 h
dV = 2πrhdr + πr 2 dh
r = 1.4, dr = 0.09, h = 7, dh = 2 × 0.09 (cm). Thus, the volume of
preservative used is estimated by
dV = 6.65 cm3
In general,
Zb Zd
f (x, y )dx = g (y ), f (x, y )dy = h(x)
a c
The results are functions of one variable. Therefore, they can also be
integrated!
Z1 x=1
2 2 2
x 3 x 2y x 3 y 2 1 y y2
x + xy + x y dx = + + = + +
3 2 3 x=0 3 2
3
0
Example
Evaluate the integral
Z1 Z1
x 2 + xy + x 2 y 2 dx dy
I1 =
0 0
Z1 1
y2 y 2 y 3
1 y y 25
I1 = + + dy = + + =
3 2 3 3 4 9 0 36
0
Z1 Z1
x 2 + xy + x 2 y 2 dy dx
I2 =
0 0
Z1 y =1
2 2 2
2xy 2 x 2 y 3 2 x x2
x + xy + x y dy = x y + + = x + +
2 3 y =0 2 3
0
Thus
Z1 1
x2 x 3 x 2 x 3
2 x 25
I2 = x + + dx = + + = = I1
2 3 3 4 9 0 36
0
Nguyen Minh Quan (HCMIU-VNU) Chapter 1. Multivariable calculus Fall 2015 60 / 88
Iterated integrals
Funibi’s Theorem
Zd Zb Zb Zd
f (x, y )dx dy = f (x, y )dy dx
c a a c
R = {(x, y ) : a 6 x 6 b, c 6 y 6 d}
Zd Zb Zb Zd
f (x, y )dx dy or f (x, y )dy dx
c a a c
1 3 3 27
Z 3
3 2
= x dx = x =
0 2 2 0 2
Example
6xy 2 + 12x 2 y + 4ydxdy over a rectangular region R is defined by
RR
Find
R
3 6 x 6 5, 1 6 y 6 2
Answer: 712
Example
√
RR 3 xy
Find y 2 +1
dxdy over a rectangular region R is defined by
R
0 6 x 6 4, 0 6 y 6 2
Answer: 8 ln 5
Answer: ZZ
512
V = x 2 + y 2 dxdy =
3
R
Nguyen Minh Quan (HCMIU-VNU) Chapter 1. Multivariable calculus Fall 2015 67 / 88
Volume
Example
A product design consultant for a cosmetics company has been asked to
design a bottle for the company’s newest perfume. The thickness of the
glass is to vary so that the outside of the bottle has straight sides and the
inside has curved sides, with flat ends shaped like parabolas on the 4-cm
sides, as shown in figure below. Before presenting the design to
management, the consultant needs to make a reasonably accurate
estimate of the amount each bottle will hold. If the base of the bottle is to
be 4 cm by 3 cm, and if a cross section of its interior is to be a parabola of
the form z = −y 2 + 4y , what is its internal volume?
Hint
Z3 Z4
−y 2 + 4y dydx = 32
V =
0 0
ZZ Z b Z g2 (x)
f (x, y )dxdy = f (x, y )dydx
D a g1 (x)
Example
RR
Evaluate I = D (x + 2y )dxdy where D is the region enclosed by y = 2x
and y = x 2 .
Solution
D = (x, y ) : 0 6 x 6 2, x 2 6 y 6 2x
ZZ Z2 Z2x Z2
y =2x
I = (x + 2y ) dxdy = (x + 2y ) dydx = xy + y 2 y =x 2 dx
R 0 x2 0
Z2
28
6x 2 − x 3 − x 4 dx =
I =
5
0
Example
Evaluate I = D (x + 2y )dxdy where D is the region enclosed by y = 2x 2
RR
and y = 1 + x 2 .
D = {(x, y ) : c ≤ y ≤ d, h1 (y ) ≤ x ≤ h2 (y )}
ZZ Z d Z h2 (y )
f (x, y )dxdy = f (x, y )dxdy
D c h1 (y )
Example
Evaluate
2
Z2 Zy
I = xydxdy
1 y
Solution
Integrate first with respect to x, then with respect to y.
2
2
Z2 Zy Z2 Zy Z2 5
y3
y 27
I = xydxdy = xydx dy = − dy =
2 2 8
1 y 1 y 1
√
Re-write D = (x, y ) : 0 6 y 6 4, y /2 6 x 6 y .
√
ZZ Z4 Z y
I = (x + 2y ) dxdy = (x + 2y ) dxdy
R 0 y /2
Z4 √ 2 y 2
!
y 2
√ y 28
I = − + 2y y− =
2 8 2 5
0
Example
Evaluate
Z16 Z4 p
x 3 + 4dxdy
√
0 y
We re-write D as
D = (x, y ) : 0 6 y 6 x 2 , 0 6 x 6 4
Z4 Zx 2 p Z4 p x 2
I = x 3 + 4dydx = y x 3 + 4 dx
0
0 0 0
Z4 4
p
2
3
2 3 3/2
= x x + 4dx = (x + 4) = 122.83
9 0
0
Definition
The average value of the function z = f (x, y ) over a region R is defined as
ZZ
1
z= f (x, y )dxdy
A
R
f (x, y ) = 3x 2 + 6y 2 ,
where D: 0 6 x 6 1, 0 6 y 6 2.
Solution
We have A = 1 × 2 = 2.
ZZ Z1 Z2 Z1
2 2 2 2
2
(3x + 6y )dxdy = (3x + 6y )dydx = (3x 2 y + 2y 3 )0 dx =
D 0 0 0
Z1
1
= (6x 2 + 16)dx = (2x 3 + 16x)0 = 2 + 16 = 18
0
1
Thus, the average value of F (x, y ) is z = A (18) = 9.
Nguyen Minh Quan (HCMIU-VNU) Chapter 1. Multivariable calculus Fall 2015 82 / 88
Average value
Example
A city occupies a semicircular region of radius 3km bordering on the
ocean. Find the average distance from points in the city to the ocean.
Solution
πr 2 9π
A= = , distance = f (x, y ) = y
2 2
√
ZZ Z3 Z9−x 2 Z3
1
9 − x 2 dx = 18
I = ydxdy = ydy dx =
2
R −3 0 −3
Example
The surface area of a human (in square meters) has been approximated by
Exercise
In a psychological experiment, x units of stimulus A and y units of
stimulus B are applied to a subject, whose performance on a certain task is
then measured by the function
2 −y 2
P (x, y ) = 10 + xye 1−x
Section 9.2: 1, 4, 6-7, 10-13, 17-19, 24, 25, 27, 33-34, 53-55, 57-59.
Section 9.6: 1-3, 9-10, 11-13, 20-23, 27-28, 30-33, 37, 40-41, 46, 53-54,
58, 67.