D6-4 Eng Math Module 2 Multivariable Functions
D6-4 Eng Math Module 2 Multivariable Functions
Module : 65 – 02 – B (2)
1 ©NORTEC 2014
Multivariable Functions 2014
Contents
Foreword 3
Module Objectives 4
UNIT 1: INTRODUCTION TO MULTIVARIABLE FUNCTIONS 5
UNIT 2: PARTIAL DERIVATIVES 7
2.1 Partial derivatives in calculus 7
2.2 Second Order Partial Derivatives in Calculus 10
2.3 The Chain Rule for Functions of Two Variables 13
UNIT 3: APPLICATIONS OF PARTIAL DERIVATIVES 15
3.1 Critical Points of Functions of two variables 15
3.2 Maxima and Minima of Functions of Two Variables 19
3.3 Optimization Problems with Functions of Two Variables 26
2 ©NORTEC 2014
Multivariable Functions 2014
Foreword
Dear Student,
This is the second of the four (4) modules in the engineering mathematics
series. Each module is composed of consecutive units. This module has
four units.
You are urged to follow the order of the units in your studies as these have
been arranged in such a way that the pre-requisites of a unit are discussed
in the previous unit(s).
I have placed exercises at the end of each unit for you to practice your
newly acquired knowledge and skill.
K. S. Banda
3 ©NORTEC 2014
Multivariable Functions 2014
Module Objectives
At the end of this module, you will be able to:
4 ©NORTEC 2014
Multivariable Functions 2014
A multivariable function is a function with several variables. Functions with more than
one variable are needed in order to mathematically model complicated physical
phenomena.
A rectangle has a width W and a length L. The area A of the rectangle is given
by A = W L. It is clear that if W and L vary, area A depends on two variables:
width W and length L. Area A is said to be a function of two variables W and L.
A rectangular solid has width W, length L and height H. The volume V of the
rectangular solid is given by V = W L H. If W, L and H vary, volume V depends
on 3 variables: width W, length L and height H.
In order for you to effectively understand the techniques, you must recall the following
principles of differential calculus;
1. Product rule:
2. Quotient rule:
5 ©NORTEC 2014
Multivariable Functions 2014
3. Chain rule:
You may also need to remember the standard derivatives of common functions shown
below;
Function Standard derivative
1.
2.
3.
4.
5.
6 ©NORTEC 2014
Multivariable Functions 2014
or
or
Let us now present several examples with detailed solution on how to calculate
partial derivatives.
Example 1:
Find the partial derivatives fx and fy if f(x , y) is given by f(x , y) = x2 y + 2x + y
Solution:
7 ©NORTEC 2014
Multivariable Functions 2014
Example 2:
Find fx and fy if f(x , y) is given by
Solution to Example 2:
Differentiate with respect to x assuming y is constant;
Example 3:
Find fx and fy if f(x,y) is given by
8 ©NORTEC 2014
Multivariable Functions 2014
Solution to Example 3:
Example 4:
Find fx and fy if f(x , y) is given by
Solution to Example 4:
Differentiate with respect to x to obtain,
9 ©NORTEC 2014
Multivariable Functions 2014
Solution to Example 5:
We first find fx and fy,
1.
2.
3.
1. ,
2. ,
3.
10 ©NORTEC 2014
Multivariable Functions 2014
Solution to Example 1:
Example 2: Find fxx, fyy, fxy, fyx given that f(x,y) = x3 + 2xy.
11 ©NORTEC 2014
Multivariable Functions 2014
Solution to Example 2:
12 ©NORTEC 2014
Multivariable Functions 2014
Excercise:
Find fxx, fyy, fxy, fyx given that f(x , y) = x3y4 + x2 y.
Solution to Excercise:
Introduction
In physics and chemistry, the pressure P of a gas is related to the volume V, the
number of moles of gas n, and temperature T of the gas by the following
equation:
13 ©NORTEC 2014
Multivariable Functions 2014
Example
Example
Implicit Differentiation
A special case of this chain rule allows us to find dy/dx for functions F(x,y)=0
that define y implicity as a function of x. Suppose x is an independent variable
and y=y(x). Differentiating both sides with respect to x (and applying the chain
rule to the left hand side) yields
which implies
14 ©NORTEC 2014
Multivariable Functions 2014
We may also extend the chain rule to cases when x and y are functions of two
variables rather than one. Let x=x(s,t) and y=y(s,t) have first-order partial
derivatives at the point (s,t) and let z=f(s,t) be differentiable at the point
(x(s,t),y(s,t)). Then z has first-order partial derivatives at (s,t) with
The proof of this result is easily accomplished by holding s constant and applying
the first chain rule discussed above and then repeating the process with the
variable t held constant.
Example
Let z(x,y)=x2+y2 with x(r, )=rcos( ) and y(r, )=rsin( ). The partials of z with
where in the computation of the first partial derivative we have used the identity
We may of course extend the chain rule to functions of n variables each of which
is a function of m other variables. This is most easily illustrated with an example.
Suppose f=f(x_1,x_2,x_3,x_4) and x_i=x_i(t_1,t_2,t_3) (i.e., we have set n=4
and m=3). Then, for example, the partial derivative of f with respect to t_2 is
15 ©NORTEC 2014
Multivariable Functions 2014
f(x , y) = x2 + y2
Solution to Example 1:
fx(x,y) = 2x
fy(x,y) = 2y
fx(x,y) = 2x = 0
fy(x,y) = 2y = 0
16 ©NORTEC 2014
Multivariable Functions 2014
Below is the graph of f(x,y) = x2 + y2 and it looks that at the critical point (0,0)
f has a minimum value.
f(x , y) = x2 – y2
Solution to Example 2:
fx(x,y) = 2x
fy(x,y) = –2y
fx(x,y) = 2x = 0
fy(x,y) = –2y = 0
17 ©NORTEC 2014
Multivariable Functions 2014
f(x,y) = –x2 – y2
Solution to Example 3:
fx(x,y) = –2x
fy(x,y) = –2y
fx(x,y) = - 2x = 0
fy(x,y) = - 2y = 0
The graph of f(x , y) = –x2– y2 is shown below and it has a relative maximum.
18 ©NORTEC 2014
Multivariable Functions 2014
Solution to Example 4:
fx(x,y) = 3x2 + 6x – 9
fy(x,y) = 3y2 – 12
3x2 + 6x – 9= 0
3y2– 12 = 0
The solutions, which are the critical points, to the above system of equations
are given by
19 ©NORTEC 2014
Multivariable Functions 2014
1.
2.
3.
4.
1. (0,0) , (1,1)
2. (1,–1)
3. (16,4) , (1,–1)
4. no critical points.
Theorem
Let f be a function with two variables with continuous second order partial
derivativesfxx, fyy and fxy at a critical point (a,b). Let
20 ©NORTEC 2014
Multivariable Functions 2014
Example 1: Determine the critical points and locate any relative minima, maxima
and saddle points of function f defined by
Solution to Example 1:
fx(x,y) = 4x + 2y – 6
fy(x,y) = 2x + 4y
4x + 2y – 6 = 0
2x + 4y = 0
The above system of equations has one solution at the point (2,–1).
We now need to find the second order partial derivatives f xx(x,y), fyy(x,y) and
fxy(x,y).
fxx(x,y) = 4
fyy(x,y) = 4
fxy(x,y) = 2
D = (4)(4) – 22
D = 12
Since D is positive and fxx(2,–1) is also positive, according to the above theorem
function f has a local minimum at (2,–1).
The 3-Dimensional graph of function f given above shows that f has a local
minimum at the point (2,–1,f(2,–1)) = (2,–1,–6).
21 ©NORTEC 2014
Multivariable Functions 2014
Example 2: Determine the critical points and locate any relative minima, maxima
and saddle points of function f defined by
Solution to Example 2:
fx(x,y) = 4x – 4y
Determine the critical points by solving the equations f x(x,y) = 0 and fy(x,y) = 0
simultaneously. Hence.
4x – 4y = 0
- 4x + 4y3 = 0
22 ©NORTEC 2014
Multivariable Functions 2014
–4y + 4y3 = 0
4y(–1 + y2) = 0
y = 0 , y = 1 and y = –1
fxx(x,y) = 4
fyy(x,y) = 12y2
fxy(x,y) = –4
We now use a table to study the signs of D and fxx(a,b) and use the above theorem to
decide on whether a given critical point is a saddle point, relative maximum or minimum.
A 3-Dimensional graph of function f shows that f has two local minima at (–1,–1,1) and
(1,1,1) and one saddle point at (0,0,2).
23 ©NORTEC 2014
Multivariable Functions 2014
Example 3: Determine the critical points and locate any relative minima, maxima
and saddle points of function f defined by
Solution to Example 3:
fx(x,y) = – 4x3 + 4y
fy(x,y) = – 4y3 + 4x
We now solve the equations fy(x,y) = 0 and fx(x,y) = 0 to find the critical points..
24 ©NORTEC 2014
Multivariable Functions 2014
– 4x3 + 4y = 0
– 4y3 + 4x = 0
The first equation gives y = x3. Combined with the second equation, we obtain.
– 4(x3)3 + 4x = 0
x(x4– 1)(x4 + 1) = 0
x = 0 ,–1 and 1.
fxx(x,y) = – 12x2
fyy(x,y) = – 12y2
fxy(x,y) = 4
The table below shows the signs of D and fxx(a,b). Then the above theorem is
used to decide on what type of critical points it is.
critical point (a,b) (0,0) (1,1) (– 1,1)
fxx(a,b) 0 – 12 – 12
fyy(a,b) 0 – 12 – 12
fxy(a,b) 4 4 4
D – 16 128 128
saddle point relative maximum relative maximum
25 ©NORTEC 2014
Multivariable Functions 2014
Exercise: Determine the critical points of the functions below and find out
whether each point corresponds to a relative minimum, maximum, saddle point
or no conclusion can be made.
Answer to Exercise:
Several optimization problems are solved and detailed solutions are presented.
These problems involve optimizing functions in two variables using first and
second order partial derivatives.
26 ©NORTEC 2014
Multivariable Functions 2014
Problem 1: You decide to build a box that has the shape of a rectangular prism
with a volume of 1000 cubic centimeters. Find the dimensions x, y and z of the
box so that the total surface area of all 6 faces of the box is minimum.
Solution to Problem 1:
The total area A of all six faces of the prism is given by.
xyz = 1000
z = 1000 / (xy)
We now need to find x and y that minimize the area A. We first need to find the
critical points and then test the second partial derivatives. The first order partial
derivatives of A are given by
27 ©NORTEC 2014
Multivariable Functions 2014
The critical points are found by setting Ax(x,y) = 0 and Ay(x,y) = 0 and solving
the system obtained. Which gives
x = 10 and y = 10
Axx(x,y) = 4000/(x3)
Ayy(x,y) = 4000/(y3)
Axy(x,y) = 2
We now need to test the values of Axx, Ayy and Axy at the point (10,10) in order to
use the theorem on minima and maxima of functions with 2 variables.
x = 10 cm
y = 10 cm
z = 1000/(xy) = 10 cm.
Problem 2: Find the dimensions of a six-faced box that has the shape of a
rectangular prism with the largest possible volume that you can make with 12
squared meters of cardboard.
28 ©NORTEC 2014
Multivariable Functions 2014
Solution to Problem 2:
Using all available cardboard to make the box, the total area A of all six faces of
the prism is given by.
V = xyz
z = (6 - xy) / (x + y)
V(x,y) = xy (6 - xy) / (x + y)
Let us find the critical points by first finding the first order partial derivatives
x2 + 2xy - 6 = 0
and
y2 + 2xy - 6 = 0
x2 - y 2 = 0
Solve to obtain
x = y and x = - y
The solution x = -y is not valid for this problem since both x and y are
29 ©NORTEC 2014
Multivariable Functions 2014
x2 + 2x2 - 6 = 0
Solve for x
x = sqrt(2)
Find y
y = x = sqrt(2)
Vxx(x,y) = -2y2( y2 + 6 ) / (x + y) 3
Vyy(x,y) = -2x2( x2 + 6 ) / (x + y) 3
We now need the values of Axx, Ayy and Axy to find the value of
x = sqrt(2) meters
y = sqrt(2) meters
Problem 3: Find the distance from the point (1,2,-1) to the plane given by the
equation x - y + z = 3.
30 ©NORTEC 2014
Multivariable Functions 2014
Solution to Problem 3:
One way to find the distance from a point to a plane is to take a point (x,y,z) on
the plane; find the distance between this point and the given point and minimize
it. Because the distance involves the square root, it would be better to minimize
the square of the distance. Let the square of the distance between the given
point and the point (x,y,z) on the plane be f.
z=3-x+y
Substitute z in f by 3 - x + y in f.
We now need to find the critical points by setting the first partial derivatives
equal to zero.
Fxx(x,y) = 4
Fyy(x,y) = 4
Fxy(x,y) = -2
31 ©NORTEC 2014
Multivariable Functions 2014
D = 4 * 4 - (-2)2 = 12
Since D is positive and Fxx is positive, F has a minimum at the point (8/3,1/3)
which correspond to a point on the plane given by
(8/3,-1/3,2/3)
The distance d between the given point and the plane is given by
= 5 / sqrt(3)
32 ©NORTEC 2014