Day8-9 - Function of Several Variables - v5
Day8-9 - Function of Several Variables - v5
z
f(x, y) = x2 + y2
x2 + y2 = 16
x 2 + y2 = 9
x2 + y2 = 4
x2 + y2 = 1
y
x2 + y2 = 0
x
Functions of Two Variables
A real-valued function of two variables f, consists of
1. The domain of the function.
2. A rule that associates with each ordered pair in the
domain of f one and only one real number, denoted by z =
f(x, y).
Examples
• Let f be the function defined by
f ( x, y ) x xy y 2 2
Solution
• f(x, y) is defined for all real values of x and y,
so the domain of the function f is the set of all
points (x, y) in the xy-plane.
Solution
• g(x, y) is defined for all xy ≠ y, so the domain of
the function g is the set of all points y=x
(x, y) in
the xy-plane except those lying on the y = x
line.
x
Solution
• We require that 1 – x2 – y2 0 or x2 + y2 1
y
which is the set of all points (x, y) lying on and
inside the circle of radius
1 1 xwith center
+y =1 2
at the
2
origin:
x
–1 1
–1
Example 2, page 536
Applied Example: Revenue Functions
• Acrosonic manufactures a bookshelf loudspeaker
system that may be bought fully assembled or in
a kit.
• The demand equations that relate the unit price,
p and q, to the quantities demanded weekly, x and
y, of the assembled and kit versions of the
loudspeaker systems are given by
1 1 1 3
p 300 x y and q 240 x y
4 8 8 8
Solution
• To compute ∂f/∂x, think of the variable y as a constant
and differentiate the resulting function of x with respect
to x: 2 2 3
f ( x, y ) x y x y
f
2x y2
x
f ( x, y ) x 2 xy 2 y 3
• Use the partials to determine the rate of change of f in the
x-direction and in the y-direction at the point (1, 2).
Solution
• To compute ∂f/∂y, think of the variable x as a constant and
differentiate the resulting function of y with respect to y:
f ( x , y ) x 2 xy 2 y 3
f
2 x y 3 y 2
y
y( y 2 x2 )
2
( x y 2 )2
Example 2, page 547
The Cobb-Douglas Production Function
• The Cobb-Douglass Production Function is of the
form
f(x, y) = axby1– b(0 < b < 1)
where
a and b are positive constants,
x stands for the cost of labor,
y stands for the cost of capital equipment,
and
f measures the output of the finished
product.
The Cobb-Douglas Production
Function
• The Cobb-Douglass Production Function is of the
form
f(x, y) = axby1– b (0 < b < 1)
Solution
•First, calculate fx and use it to find fxx and fxy:
3
f x ( x 3x 2 y 3xy 2 y 2 ) 3x 2 6 xy 3 y 2
x
f xx (3x 2 6 xy 3 y 2 ) f xy (3x 2 6 xy 3 y 2 )
x y
6x 6 y 6 x 6 y
Example 6,page
6( x552
y) 6( y x )
Examples
• Find the second-order partial derivatives of the
function
f ( x, y ) x 3 3x 2 y 3xy 2 y 2
Solution
• Then, calculate fy and use it to find fyx and fyy:
3
fy ( x 3x 2 y 3xy 2 y 2 ) 3x 2 6 xy 2 y
y
2
f yx ( 3x 6 xy 2 y ) f yy ( 3x 2 6 xy 2 y )
x y
6 x 6 y 6x 2
6( y x ) 2(3 x 1)
Example 6, page 552
• the small increments formula.
• Implicit .....
Unconstrained Optimization
x (g, h)
(a, b) y
(c, d)
(e, f )
Relative Extrema of a Function of Two
Variables
• Let f be a function defined on a region R containing
the point (a, b).
• Then, f has a relative maximum at (a, b) if
f(x, y) f(a, b)
for all points (x, y) that are sufficiently close to (a, b).
– The number f(a, b) is called a relative maximum value.
• Similarly, f has a relative minimum at (a, b) if
f(x, y) f(a, b)
for all points (x, y) that are sufficiently close to (a, b).
– The number f(a, b) is called a relative minimum value.
Graphic Example
There is a relative maximum at (a, b).
x y
(a, b)
Graphic Example
There is an absolute maximum at (c, d).
(It is also a relative maximum)
z
x y
(c, d)
Graphic Example
There is an absolute minimum at (g, h).
(It is also a relative minimum)
z
x (g, h)
y
The Necessary Condition
f
x 0
f ( x, y ) ( a, b) stationary point
0
y
z
f(x, y) = 2x2 + y2
h(x) = 3x2 – 2x + 1
y
(a, b)
g(x, y) = 0
x
Constrained Optimization
• In many practical optimization problems, we must
maximize or minimize a function in which the
independent variables are subjected to certain
further constraints.
We need to find 2
L
' '
g1 g x1 (M 0 ); g 2 g x2 (M 0 ); Lij (M 0 ) i, j 1, 2
xix j
Set up the following matrix
0 g1 g2
H g1 L11 L12
g2 L21 L22
• In practice, of course, x and y may both change simultaneously. If this is the case then the net change in z will be the
sum of the individual changes brought about by changes in x and y separately, so that
• The small increments formula
with PA and Y held constant. The same following mathematical argument presented there
we deduce that
The partial derivative notation is used here because Q is now a function of several variables,
and PA and Y are held constant.
• The cross-price elasticity of demand
with P and Y held constant. Again, the usual mathematical argument shows that
The sign of EPA could turn out to be positive or negative depending on the nature of the
alternative good. If the alternative good is substitutable then Q increases as PA rises,
because consumers buy more of the given good as it becomes relatively less expensive.
Consequently,
If the alternative good is complementary then Q decreases as P A rises, because the bundle of
goods as a whole becomes more expensive. Consequently,
The income elasticity of demand