This preview shows pages 1–3. Sign up to view the full content.
OPMT 5701
Two Variable Optimization
Using Calculus For Maximization Problems
OneVar
iab
leCase
If we have the following function
y
=10
x
−
x
2
we have an example of a
dome shaped
function. To
f
nd the maximum of the dome, we
simply need to
f
ndthepo
intwherethes
lopeo
fthedomeiszero
,or
dy
dx
−
2
x
=0
10 = 2
x
x
=5
and
y
=25
Two Variable Case
Suppose we want to maximize the following function
z
=
f
(
x,y
)=10
x
+10
y
+
xy
−
x
2
−
y
2
Notethattherearetwounknownsthatmustbeso
lvedfor
:
x
and
y
. This function is an
example of a
threedimensional dome.
(i.e. the roof of
BC Place
)
To solve this maximization problem we use
partial derivatives.
We take a partial
derivative for each of the unknown choice variables and set them equal to zero
∂
z
∂
x
=
f
x
=10+
y
−
2
x
The slope in the ”x” direction = 0
∂
z
∂
y
=
f
y
x
−
2
y
The slope in the ”y” direction = 0
This gives us a set of equations, one equation for each of the unknown variables. When
you have the same number of independent equations as unknowns, you can solve for each of
the unknowns.
rewrite each equation as
y
=2
x
−
10
x
y
−
10
substitute one into the other
x
=2(2
x
−
10)
−
10
x
=4
x
−
30
3
x
=30
1
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document x
=10
similarly,
y
REMEMBER:
To maximize (minimize) a function of many variables you use the
technique of partial di
f
erentiation. This produces a set of equations, one equation for each
of the unknowns. You then solve the set of equations simulaneously to derive solutions for
each of the unknowns.
Second order Conditions (second derivative Test)
To test for a maximum or minimum we need to check the second partial derivatives. Since
we have two
f
rst partial derivative equations (
f
x
,
f
y
) and two variable in each equation, we
will get four
second partials (
f
xx
,f
yy
xy
yx
)
Using our original
f
rst order equations and taking the partial derivatives for each of them
(a second time) yields:
f
x
=10+
y
−
2
x
=0
f
y
x
−
2
y
f
xx
=
−
2
f
yy
=
−
2
f
xy
=1
f
yx
The two partials,
f
xx
,and
f
are the direct e
f
ects of of a small change in
x
and
y
on
the respective slopes in in the
x
and
y
direction. The partials,
f
xy
and
f
yx
are the indirect
e
f
ects, or the cross e
f
ects of one variable on the slope in the other variable’s direction. For
both
Maximums and Minimums
, the direct e
f
ects must outweigh the cross e
f
ects
Rules for two variable Maximums and Minimums
1. Maximum
f
xx
<
0
f
<
0
f
yy
f
xx
−
f
xy
f
yx
>
0
2. Minimum
f
xx
>
0
f
>
0
f
yy
f
xx
−
f
xy
f
yx
>
0
3. Otherwise, we have a
Saddle Point
From our second order conditions, above,
f
xx
=
−
2
<
0
f
=
−
2
<
0
f
xy
f
yx
and
f
f
xx
−
f
xy
f
yx
=(
−
2)(
−
2)
−
(1)(1) = 3
>
0
therefore we have a maximum.
This is the end of the preview. Sign up
to
access the rest of the document.
This note was uploaded on 03/03/2012 for the course ECON 345 taught by Professor Wendywu during the Fall '11 term at Wilfred Laurier University .
 Fall '11
 WendyWu
 Economics

Click to edit the document details