Fun - of - Several - Variables - (Semanas 1-6) PDF
Fun - of - Several - Variables - (Semanas 1-6) PDF
SCHOOL OF DEPARTMENT OF
BASIC SCIENCES MATHEMATICS & STATISTICS
2019
Outline
Outline
Outline
Our goal
Review
X f :X ⊂R→Y ⊂R
Domain
x
x 7→ y = f (x )
Range
y = f(x)
Y
BASIC SCIENCES - Functions of Several Variables 6 of 159
Functions of Several Variables
Review
X f :X ⊂R→Y ⊂R
Domain
x
x 7→ y = f (x )
f
f (x ) = 2x 2 − 4x + 1
Range
y = f(x) f (•) = 2(•)2 − 4(•) + 1
Y
BASIC SCIENCES - Functions of Several Variables 6 of 159
Functions of Several Variables
Review
The Domain and Range of a Function
f(x) = x−1
Range: y ≥ 0
x
1 2 3 4
Domain: x ≥ 1
Review
The Domain and Range of a Function
y f(x) = tan x
y 3
2
f(x) = x−1
Range: y ≥ 0
2
1
Range
1 x
π 2π
x
1 2 3 4
Domain: x ≥ 1
Review
The Graph of a Function
y y y y
f(x) = x f(x) = x 2
2 4 2 4
1 3 1 3 f(x) = x
f(x) = x 3
x 2 x 2
−2 −1 1 2 −2 −1 1 2
−1 1 −1 1
−2 x −2 x
−2 −1 1 2 1 2 3 4
y y y y
1
f (x) =
4 2 x 2 2
f (x) = sin x f(x) = cos x
f(x) = x
3 1 1 1
2 x x x
−1 1 2 −π π 2π −2 π −π π 2π
1 −1 −1
x −2 −2
−2 −1 1 2
Review
Transformations of Functions
y y
4 4
y = x2 + 2
3 3
1 y = x2 1
y = (x + 2)2 y = x2
x x
−2 −1 1 2 −3 −2 −1 1
y y
4
2
3
1 y = 1 − (x + 3)2
2
y = x2 y = x2
1
x
−2 −1 1 2 x
−5 −3 −1 1 2
−1 y = − x2
−2
−2
Review
Transformations of Functions
Review
Transformations of Functions
Review
Conic Sections
Review
Focus d2
(x, y)
p d1
d2
Vertex d1
Directrix
Review
Review
(h, k + b)
b
(h, k) a (h + a, k)
(h − a, k)
(h, k − b)
Asymptote
In this section we study functions of two or more variables from four points of
view:
• verbally (by a description in words)
• numerically (by a table of values)
• algebraically (by an explicit formula)
• visually (by a graph or level curves)
Definition
Definition
Example 1
In regions with severe winter weather, the wind-chill index is often used to
describe the apparent severity of the cold. This index W is a subjective
temperature that depends on the actual temperature T and the wind speed
v.
Example 1
2 3 4 5 6 6 7 8 9 9 10
5 7 9 11 12 12 13 14 15 16 16 17
10 13 15 17 18 19 20 21 22 23 23 24
15 19 21 23 24 25 26 27 29 30 30 31
20 24 27 29 30 32 33 34 35 36 37 38
25 30 33 35 37 38 39 41 42 43 44 45
30 36 39 41 43 44 46 48 49 50 51 52
35 41 45 48 49 51 52 54 56 57 58 60
40 47 51 54 56 57 59 61 63 64 65 67
Example 1
For instance, the table shows that if the temperature is –10◦ C and the wind
speed is 30 km/h, then subjectively it would feel as cold as a temperature of
about –20◦ C with no wind.
So
W = f (−10, 30) = −20.
Example
Find the domains of the following multi-variable functions.
5y 2
1. f (x , y ) =
y − x3
p
2. f (x , y ) = x 2 + y 2 − 4
3. f (x , y ) = ln(xy − 6)
p x +y
4. f (x , y ) = x 2 − y 2 e x −y
The graph of a function of two variables is the set of all points (x , y , z ) for
which z = f (x , y ) and (x , y ) is in the domain of f .
z
{ x, y, f (x, y)}
S
f(x, y)
0
D y
x (x, y, 0)
Example 1
y
x
Example 1
Example 2
x y
(c) f(x, y)=sin x+sin y
Example 3
x y
sin x sin y
(d) f(x, y)=
xy
Surfaces in Space
Surfaces in Space
Cylinder:
Let C be a curve in a plane and let L be a line not
in a parallel plane. The set of all lines parallel to L
and intersecting C is a cylinder. The curve C is
the generating curve (or directrix) of the
cylinder, and the parallel lines are rulings.
Generating
Rulings intersect C z curve C
and are parallel to L.
L intersects C.
x
y
Surfaces in Space
Cylinder:
Let C be a curve in a plane and let L be a line not
in a parallel plane. The set of all lines parallel to L z
y
Generating
Rulings intersect C z curve C
x
and are parallel to L.
Surfaces in Space
Quadric Surface
The equation of a quadric surface in space is a second-degree equation in
three variables. The general form of the equation is
Ax2 1 By2 1 Cz2 1 Dxy 1 Exz 1 Fyz 1 Gx 1 Hy 1 Iz 1 J 5 0.
There are six basic types of quadric surfaces: ellipsoid, hyperboloid of one
sheet, hyperboloid of two sheets, elliptic cone, elliptic paraboloid, and
hyperbolic paraboloid.
Surfaces in Space
Quadric Surface
The equation of a quadric surface in space is a second-degree equation in
three variables. The general form of the equation is
Ax2 1 By2 1 Cz2 1 Dxy 1 Exz 1 Fyz 1 Gx 1 Hy 1 Iz 1 J 5 0.
There are six basic types of quadric surfaces: ellipsoid, hyperboloid of one
sheet, hyperboloid of two sheets, elliptic cone, elliptic paraboloid, and
hyperbolic paraboloid.
The intersection of a surface with a plane is called the trace of the surface
in the plane.
There are three main types of traces: f (k , y ) = z , f (x , k ) = z , and
f (x , y ) = k (Level Curves) where k is some constant.
Quadric Surface
z Ellipsoid z
yz-trace
x2 y2 z2 xz-trace
1 1 51
a2 b2 c2
Trace Plane
Ellipse Parallel to xy-plane
Ellipse Parallel to xz-plane
y y
x
Ellipse Parallel to yz-plane x
The surface is a sphere when xy-trace
a 5 b 5 c Þ 0.
Quadric Surface
x2 y2 z2
1 2 51
a2 b2 c2
Trace Plane
Ellipse Parallel to xy-plane
Hyperbola Parallel to xz-plane
Hyperbola Parallel to yz-plane
y
xy-trace y
The axis of the hyperboloid
x corresponds to the variable whose x
coefficient is negative.
yz-trace
xz-trace
Quadric Surface
Quadric Surface
z Elliptic Cone z
xz-trace
x2 y2 z2
1 2 50
a2 b2 c2
Trace Plane
Ellipse Parallel to xy-plane
Hyperbola Parallel to xz-plane
Hyperbola Parallel to yz-plane xy-trace
(one point)
y The axis of the cone corresponds to the y
x variable whose coefficient is negative. x parallel to
The traces in the coordinate planes xy-plane
parallel to this axis are intersecting
lines.
yz-trace
Quadric Surface
z Elliptic Paraboloid z
yz-trace xz-trace
x2 y2
z5 21 2
a b
Trace Plane
Ellipse Parallel to xy-plane
Parabola Parallel to xz-plane
Parabola Parallel to yz-plane
The axis of the paraboloid corresponds parallel to
xy-plane
to the variable raised to the first power.
y y
x x xy-trace
(one point)
Quadric Surface
z Hyperbolic Paraboloid z
yz-trace
y2 x2
z5 22 2
b a
Trace Plane
y Hyperbola Parallel to xy-plane y
x
Parabola Parallel to xz-plane x
Parabola Parallel to yz-plane
The axis of the paraboloid
corresponds to the variable raised to
the first power. parallel to
xy-plane
xz-trace
Example
Graph the following functions.
1. f (x , y ) = −2
2. f (x , y ) = −x 2
p
3. f (x , y ) = 9 − x2 − y2
4. f (x , y ) = x 2 + y 2 − 1
5. f (x , y ) = y 2 − x 2
k k
Contour Maps
k
A contour map displays the level sets of a function of two variables as
curves in a plane.
z
40
45
00
45
00
50
00
/21(620(071
0
A
55
00
B
x y
50
00
k=45
450
k=40 k
Cree
0
k=35
me
k=30 eso
k=25 Lon
f(x, y)=20 k=20
Example
Match the following functions to their contour plots.
p
1. f (x , y ) = 64 − x 2 − y 2
2. f (x , y ) = y 2 − x 2
Example
Match the following functions to their contour plots.
p
1. f (x , y ) = 64 − x 2 − y 2
2. f (x , y ) = y 2 − x 2
y
Surface: c1 = 0 c5 = 4
f(x, y) = 64 − x 2 − y 2 c2 = 1 8 c6 = 5
c3 = 2 c7 = 6
z c4 = 3 c8 = 7
4
8
c9 = 8
x
−8 −4 4 8
−4
8 y
8
x
−8
BASIC SCIENCES - Functions of Several Variables 36 of 159
Hemisphere Contour map
Functions of Several Variables
Example
Match the following functions to their contour plots.
p
1. f (x , y ) = 64 − x 2 − y 2
2. f (x , y ) = y 2 − x 2
z
12
c = 12 c=0
10 c = −2
c=2 y
8 c = −4
6 4 c = −6
4 c = −8
2 c = −10
4 y c = −12
x 4
x
−4 4
Surface:
z = y2 − x2 −4
Homework
Outline
Our goal
Open sets
Open sets are needed to understand limits, and limits are in turn needed to
understand continuity and differentiability.
Open sets
Open sets are needed to understand limits, and limits are in turn needed to
understand continuity and differentiability.
Definition (Open disk)
Let ~x0 ∈ Rn and let r be a positive real number. The open disk (or open ball)
of radius r and center ~x0 is defined to be the set
The number r 0 can depend on the point x0 , and generally r will shrink as x0 gets
Drto(~
closer ) =of{~
x0“edge”
the ∈ Rnspeaking,
Ux. Intuitively : ||~xa − set U~ || <
xis0open whenr }.
the “boundary”
points of U do not lie in U . In Figure 2.2.2, the dashed line is not included in U .
y
z
r Dr (x0)
x0 Dr (x0)
r
Dr (x0)
x0
x x y
x0 − r x0 x0 + r
n =1 n=2 x n=3
(b)
(a)BASIC SCIENCES - Functions of Several Variables (c) 41 of 159
Functions of Several Variables
Open sets
Open sets
x0
Dr ( x0 )
figure An open set is one that
) about
of its points
We establish the convention that the empty set (the set consisting of no elements) is
open.
We have defined an open disk and an open set. From our choice of terms it would
seem that an open disk should also be an open set. A little thought shows that this fact
requires some
BASIC SCIENCES proof. The
- Functions following
of Several theorem does this.
Variables 42 of 159
Functions of Several Variables
Open sets
x0
Dr ( x0 )
figure An open set is one that
) about
of its points
We establish the convention that the empty set (the set consisting of no elements) is
A neighborhood of ~x ∈ Rnopen.
is an open set U containing the point ~x .
We have defined an open disk and an open set. From our choice of terms it would
seem that an open disk should also be an open set. A little thought shows that this fact
requires some
BASIC SCIENCES proof. The
- Functions following
of Several theorem
Variables does this. 42 of 159
Functions of Several Variables
Boundary Points
A consideration of Figure 2.2.6 and the definition will make this clear. [The reader
be asked to prove this in Exercise 28(c).] figure
( x ,y )
A = Dr (x , y )
0 0
Boundary points 0 0
Limits
Definition (Limit)
Let f : A ⊂ Rn → R, where A is an open set. Let ~x0 be in A or be a
boundary point of A, and let N be a neighborhood of b ∈ R.
Limits
Definition (Limit)
Let f : A ⊂ Rn → R, where A is an open set. Let ~x0 be in A or be a
boundary point of A, and let N be a neighborhood of b ∈ R.We say f (~x )
approaches b as ~x approaches ~x0 , or, in symbols,
Limits
Definition (Limit)
Let f : A ⊂ Rn → R, where A is an open set. Let ~x0 be in A or be a
boundary point of A, and let N be a neighborhood of b ∈ R.We say f (~x )
approaches b as ~x approaches ~x0 , or, in symbols,
Limits
Definition (Limit)
Let f : A ⊂ Rn → R, where A is an open set. Let ~x0 be in A or be a
boundary point of A, and let N be a neighborhood of b ∈ R.We say f (~x )
approaches b as ~x approaches ~x0 , or, in symbols,
It may be that as ~x approaches ~x0 , the values f (~x ) do not get close to any
particular real number. In this case, we say that lim f (~x ) does not exist.
~x →~x0
Limits
z
Limits in terms of neighborhoods. If
N ~x ∈ U , then f (~x ) ∈ N . (The little open
b
(x , f (x) ) circle denotes that the point does not
figure in terms of
lie on the graph.) Inneighborhoods;
the figure, If
is in , then x) will be in
. (The little open circle
on the graph.)
:
In thef figure,
A =x { y x 2 y 2 } → 1. (The
= {( , ) : + < } → R.
x
is not in the graph of .)
Theorem
Let f : A ⊂ Rn → R and let ~x0 be in A or be a boundary point of A. Then
lim f (~x ) = L if and only if for every number > 0 there is a δ > 0 such that
~x →~x0
for any ~x ∈ A satisfying 0 < ||~x − ~x0 || < δ , we have |f (~x ) − L| < .
Theorem
Let f : A ⊂ Rn → R and let ~x0 be in A or be a boundary point of A. Then , to
lim f (~x ) = L if and only if for every number > 0 there is 1 by
a δmeans of anthat
> 0 such arrow di
~x →~x0 , then we can find a disk
for any ~x ∈ A satisfying 0 < ||~x − ~x0 || < δ , we have |f (~x ) − L| < .
y z
(x, y)
D ∂
L+∑
)
(a, b) f
L
0 x L-∑
(
0
FIGURE 1
BASIC SCIENCES - Functions of Several Variables 46 of 159
Functions of Several Variables
L-∑
0
D∂ y
x
(a, b)
2
BASIC SCIENCES - Functions of Several Variables 46 of 159
Functions of Several Variables
Example
Show that lim y = 1 using the − δ method.
(x ,y )→(0,1)
Example
Show that lim y = 1 using the − δ method.
(x ,y )→(0,1)
Proof.
Goal: Given > 0, we are required to find a δ > 0 (generally depending on
) with the property that 0 < ||(x , y ) − (0, 1)|| < δ implies |y − 1| < .
p
Note that if δ > 0, ||(x , y ) − (0, 1)|| = x 2 + (y − 1)2 < δ implies
p p
|y − 1| = (y − 1)2 ≤ x 2 + (y − 1)2 < δ.
Theorem
Let b1 and b2 be real numbers, and let f and g be functions such that
f (~x ) → b1 and g (~x ) → b2 as ~x → ~x0 ;
then
1. Sum or difference: lim [f (~x ) ± g (~x )] = b1 ± b2
~x →~x0
2. Product: lim [f (~x )g (~x )] = b1 b2
~x →~x0
f (~x ) b1
3. Quotient: lim = , b2 6= 0
~x →~x0 g (~x ) b2
4. Power: lim [f (~x )]n = b1n , n ∈ Z+
~x →~x0
1/n
5. Root: lim [f (~x )]1/n = b1 , n ∈ Z+ , and if n is even, we
~x →~x0
assume that b1 > 0.
Verifying a Limit
Example
Evaluate the following limit, if it exists.
x +y
lim
(x ,y )→(2,−1) x 2 − 2xy
Verifying a Limit
Example
Evaluate the following limit, if it exists.
x +y
lim
(x ,y )→(2,−1) x 2 − 2xy
Solution
lim (x + y )
x +y (x ,y )→(2,−1)
lim =
(x ,y )→(2,−1) x 2 − 2xy lim (x 2 − 2xy )
(x ,y )→(2,−1)
2 + (−1)
=
22 − 2(2)(−1)
1
=
8
BASIC SCIENCES - Functions of Several Variables 49 of 159
Functions of Several Variables
Uniqueness of Limits
The limit of f (~x ) as ~x approaches ~x0 must be the same no matter which path
the approach takes.
Uniqueness of Limits
The limit of f (~x ) as ~x approaches ~x0 must be the same no matter which path
the approach takes.
Uniqueness of Limits
The limit of f (~x ) as ~x approaches ~x0 must be the same no matter which path
the approach takes.
Example 1
Example 1
1.0
0.5
1.0
z
0.0
-0.5 0.5
-1.0
-1.0 0.0y
-0.5
0.0 -0.5
x
0.5
-1.0
1.0
Example 2
Example 2
0.5
1.0
z
0.0
0.5
-0.5
-1.0 0.0 y
-0.5
0.0 -0.5
x
0.5
-1.0
1.0
Example 3
Example 3
0.5
1.0
z
0.0
0.5
-0.5
-1.0 0.0 y
-0.5
0.0 -0.5
x
0.5
-1.0
1.0
Theorem
Let ~x and ~x0 be in Rn . Suppose that
|f (~x ) − b| ≤ g (~x )
lim g (~x ) = 0
~x →~x0
then
lim f (~x ) = b.
~x →~x0
Example (1 of 2)
Example (1 of 2)
1
1.0
z 0
0.5
-1
-1.0 0.0y
-0.5
0.0 -0.5
x
0.5
-1.0
1.0
BASIC SCIENCES - Functions of Several Variables 55 of 159
Functions of Several Variables
Example (2 of 2)
Since
lim 3|y | = lim 3|y | = 0
(x ,y )→(0,0) y →0
then
3x 2 y
lim = 0.
(x ,y )→(0,0) x2 + y2
Continuity
Definition
Suppose that f (x , y ) is defined in a neighborhood of (a, b). We say that f is
continuous at (a, b) if
Continuity
Definition
Suppose that f (x , y ) is defined in a neighborhood of (a, b). We say that f is
continuous at (a, b) if
Definition
A function is continuous if it is continuous at every point of its domain. If f is
discontinuous at some point in its domain, we say f is discontinuous.
97
Continuity
z z
Break in the
surface z = f(x, y)
z = f(x, y)
f(x0)
y y
x x x0
Set of discontinuities of f;
i.e., the set of points
where f is discontinuous
(a) (b)
figure A discontinuous function of two variables. (b) A continuous function.
BASIC SCIENCES - Functions of Several Variables 58 of 159
Functions of Several Variables
Continuity
Example
Determine where the following function is continuous.
3x 2 y
x2 + y2
Continuity
Example
Determine where the following function is continuous.
3x 2 y
x2 + y2
3x 2 y 3a2 b
lim = = f (a , b )
(x ,y )→(a,b) x2 + y2 a2 + b 2
Continuity
Example
Determine where the following function is continuous.
2
3x y if (x , y ) 6= (0, 0),
f (x , y ) = x 2 + y 2
0 if (x , y ) = (0, 0).
Continuity
Example
Determine where the following function is continuous.
2
3x y if (x , y ) 6= (0, 0),
f (x , y ) = x 2 + y 2
0 if (x , y ) = (0, 0).
Continuity
h(x , y ) = (g ◦ f )(x , y ) = g (f (x , y ))
Continuity
Example
Where is the function h(x , y ) = tan−1 (y /x ) continuous?
Continuity
Example
Where is the function h(x , y ) = tan−1 (y /x ) continuous?
1
1.0
z 0
0.5
-1
-1.0 0.0y
-0.5
0.0 -0.5
x
0.5
-1.0
1.0
Example
1. Find the following limit, if it exists.
x 2 + 2y 2 + 3z 2
lim .
(x ,y ,z )→(0,0,0) x 2 + y 2 + z2
Homework
Outline
Our goal
as simple as one might think. Toward this end, however, let us introduce the notion of the
partialuse
• Find and derivative
partial . This notion relies only
derivatives on our knowledge of one-variable calculus.
(A quick review of the definition ofof
theaderivative
function
in of two variables
a one-variable calculus text might
be advisable
• Find and use partial at this point.)
derivatives of a function of three or more variable
• Find higher-order partial derivatives of a function of two or three variables
z
z
z = f(x, y) Peak
Corner
y Fold
y
x Pit
x
(a) (b)
figure A smooth graph and (b) a nonsmooth one.
Figure: (a) A smooth graph and (b) a nonsmooth one.
erage Background
rate of change of with respect to over the inter
aches 0, point will slide along the curve, getting closer
ee Figure 29, which shows successive positions
The
es of the derivativesecant
corresponding giveslines
a way to find
approach both
a limit as the
slope of a graph and the
instantaneous rate of change of a function.
f(x) y
S1
MOVES FORWARD
S2
Points slide Speeds Steady Slows
down graph.
S3 up (y = const) down
S4 Tangent line
0 x 0 1 2 3 4
FIGURE 29
erage Background
rate of change of with respect to over the inter
aches 0, point will slide along the curve, getting closer
ee Figure 29, which shows successive positions
The
es of the derivativesecant
corresponding giveslines
a way to find
approach both
a limit as the
slope of a graph and the
instantaneous rate of change of a function.
f(x) y
S1
MOVES FORWARD
S2
Points slide Speeds Steady Slows
down graph.
S3 up (y = const) down
S4 Tangent line
0 x 0 1 2 3 4
FIGURE 29
For a function of several variables, changes in any of the variables may affect
the value of the function. Thus we introduce the partial derivative.
of y = ƒ1x2 at the point 1a, ƒ1a22 is the line thr
through
hrough this
hr
BASIC SCIENCES - Functions of Several Variables
up 67 of 159
Functions of Several Variables
Partial Derivatives
Definition
Let U ⊂ Rn be an open set and suppose f : U → R is a real-valued
function. Then ∂ f /∂ x1 , . . . , ∂ f /∂ xn , the partial derivatives of f with respect
to the first, second,. . . , nth variable, are the real-valued functions of n
variables, which, at the point (x1 , . . . , xn ) = ~x , are defined by
∂f f (x1 , x2 , . . . , xj + h, . . . , xn ) − f (x1 , . . . , xn )
(x1 , . . . , xn ) = lim
∂ xj h→0 h
f (~x + h~ej ) − f (~x )
= lim
h→0 h
if the limits exist, where 1 ≤ j ≤ n and ~ej is the jth standard basis vector
defined by ~ej = (0, . . . , 1, . . . , 0), with 1 in the jth slot. The domain of the
function ∂ f /∂ xj is the set of ~x ∈ Rn for which the limit exists.
Partial Derivatives
Vertical axis in
the plane y = y0
P(x0, y0, f (x0, y0))
z = f(x, y)
The curve z = f(x, y0)
in the plane y = y0
Tangent line
0
x0
y0
x
(x0, y0) y
(x0 + h, y0)
Horizontal axis in the plane y = y0
FIGURE 14.16
BASIC SCIENCES - Functions of Several Variables
= y
69 of 159
Functions of Several Variables
∂f f (x0 , y0 + h) − f (x0 , y0 )
(x0 , y0 ) = lim
∂y h →0 h
Vertical axis
if the limit exist. in the plane z plane (Fig
x = x0
line to the
ixed at t
Tangent line
z = f(x, y)
0
x0 y0
, ,
face at ? We wi
x
(x0, y0) y
(x0, y0 + k)
( , ), , ),
Partial Derivatives
now have two tangent lines associated with the surface , at
, , , )) (Figure 14.18). Is the plane they determine tangent to the sur
face at ? We will see that it is for the differentiable functions defined at the end of this
Tangent lines associated with how to thefindsurface = inf (Section
the tangentzplane x , y ) 14.6.
at theFirstpoint
we have to
P (x0 , y0 , f (x0 , y0 )) vatives.
z = f(x, y)
y = y0 (x0, y0) x = x0
y
FIGURE 14.18
∂f ∂f
Notation: (x , y ) = fx (x , y ), and
, , ))
(x , y ) = fy (x , y ).
∂x ∂y
BASIC SCIENCES - Functions of Several Variables 71 of 159
Functions of Several Variables
Examples
Example
1. Find the first partial derivatives of the following function.
f (x , y ) = x 3 + x 2 y 3 − 2y 2
Since the first partial derivatives of a function of two variables are themselves
functions of two variables, they have partial derivatives.
∂ ∂f ∂2f
= 2 = fxx
∂x ∂x ∂x
∂ ∂f ∂2f
= = fyx
∂x ∂y ∂x ∂y
∂ ∂f ∂2f
= = fxy
∂y ∂x ∂y ∂x
∂ ∂f ∂2f
= = fyy
∂y ∂y ∂y 2
Example
Example
Find the four second partial derivatives of the following function.
f (x , y ) = x 3 + x 2 y 3 − 2y 2
∂f f (x + h, y , z ) − f (x , y , z )
(x , y , z ) = lim
∂x h→0 h
∂f f (x , y + h, z ) − f (x , y , z )
(x , y , z ) = lim
∂y h→0 h
∂f f (x , y , z + h) − f (x , y , z )
(x , y , z ) = lim
∂z h→0 h
Example
Example
Find the three first partial derivatives and the nine second partial derivatives
of the following function.
f (x , y , z ) = x 3 + y 3 + z 3 + 6xyz
60. Health The body mass index (BMI) is a number that can be
calculated for any individual as follows: Multiply a person’s
weight by 703 and divide by the person’s height squared. That is,
703w
B = , a relationship
h2
various water d
where w is in pounds and h is in inches. The National Heart, dive
Lung and Blood Institute uses the body mass index to determine
whether a person is “overweight” 125 … B 6 302 or “obese” given by the following fo
1B Ú 302. Source: The National Institutes of Health.
(a) Calculate the body mass index for St. Louis Rams offensive
tackle Jake Long, who weighs 317 lb and is 6′7″ tall.
is in minutes, is
0B 0B
(b) Calculate and and interpret.
0w 0h divin
(c) Using the fact that 1 in. = 0.0254 m, and 1 lb. = 0.4536 kg.,
transform this formula to handle metric units.
ve to the body mass index
A Body
ven by
where and are the waist and height, respectively, in meters, and
is the BMI. (See the definition of BMI in the previous exercise.)
The National Heart, Lung and Blood Institute uses the BMI to
BASICwhether
determine SCIENCES - Functions
a person of Several Variables
is “overweight” 02 78 of 159
Functions of Several Variables tackle Jake Long, who weighs 317 lb and is tall.
is in minutes, is
divin
Example (Application
(c) Using the factin
that Life Sciences)
and 2 ,
transform this formula to handle metric units.
61. Body Shape Index An alternative to the body mass index
(BMI) for estimating the health risks of obesity is A Body
Shape Index (ABSI), given by
w
ABSI = ,
b2/3h1/2
where w and h are the waist and height, respectively, in meters, and
b is the BMI. (See the definition of BMI in the previous exercise.)
The National Heart, Lung and Blood Institute uses the BMI to
determine whether a person is “overweight” 125 … BMI 6 302
or “obese” 1BMI Ú 302. Source: PLoS One.
(a) Suppose a man is 1.85 m tall with a waist of 0.864 m and
a BMI of 23.1. Find the ABSI for such a person. How does
this compare with the average ABSI for a 52-year-old man
of 0.0831?
(b) For the person described in part (a), find the rate that the
ABSI is going up with respect to his waist. an
(c) For the person described in part (a), find the rate that the
ABSI is changing with respect to his height. Haldane estimated th
dives could be avoide
(d) Based on your answers to parts (b) and (c) which has a
exceed 2.15 atm. Fin
greater effect on the person’s ABSI, an increase in waist
diver could stay down
or an increase in height of the same amount? Explain why
ing back up) if he or
this makes sense intuitively.
ex
saw in the previous section, researchers have
vered that the amo
various
BASIC SCIENCES - Functions of Several Variables species 79 of 159
exposed to cold air depen
Functions of Several Variables
Homework
Outline
Our goal
The approximation
f (x , y ) ≈ L(x , y )
Definition (Differenciability)
Let f : R2 → R. We say f is differentiable at (x0 , y0 ), if fx and fy exist at
(x0 , y0 ) and if
as (x , y ) → (x0 , y0 ).
Definition (Differenciability)
Let f : R2 → R. We say f is differentiable at (x0 , y0 ), if fx and fy exist at
(x0 , y0 ) and if
as (x , y ) → (x0 , y0 ).
Definition (Differenciability)
Let f : R2 → R. We say f is differentiable at (x0 , y0 ), if fx and fy exist at
(x0 , y0 ) and if
as (x , y ) → (x0 , y0 ).
Definition (Differenciability)
Let f : R2 → R. We say f is differentiable at (x0 , y0 ), if fx and fy exist at
(x0 , y0 ) and if
as (x , y ) →Visual
(x14.40 ,shows
y0 ).
an animation , . Notice that the more we zoom in, the
flatter the graph appears and the more it resembles its tangent plane.
40 40
40
20 20 20
z 0 z 0 z 0
_20
_20 _20
_4
_2 _4
_2 _2 _2 0 0
0 0
y 2 0 0 1 1
2 x y x y x
4 4 2 2 2 2
(a) (b) (c)
2
FIGURE The elliptic paraboloid ward 1, 1, 3d
BASIC SCIENCES - Functions of Several Variables 85 of 159
3 we corroborate this impression by zooming in toward the point (1, 1) on a
Functions of Several Variables
Theorem (Differenciability)
Let f : U ⊂ Rn → R. Suppose the partial derivatives ∂ f /∂ xj of f all exist
and are continuous in a neighborhood of a point ~x ∈ U . Then f is
differentiable at ~x .
Theorem (Differenciability)
Let f : U ⊂ Rn → R. Suppose the partial derivatives ∂ f /∂ xj of f all exist
and are continuous in a neighborhood of a point ~x ∈ U . Then f is
differentiable at ~x .
Example
Let
cosx + exy
f (x , y ) = .
x2 + y2
Show that f is differentiable at all points (x , y ) 6= (0, 0).
∆y = f (a + ∆x ) − f (a)
f (a + ∆x ) − f (a)
= ∆x
∆x
≈ f 0 (a)∆x
= dy
∆z = f (x0 + ∆x , y0 + ∆y ) − f (x0 , y0 )
Definition
If we set dx = ∆x and dy = ∆y then the differential of z is defined to be
dz = fx (x , y )dx + fy (x , y )dy .
∆z = f (x0 + ∆x , y0 + ∆y ) − f (x0 , y0 )
Definition
If we set dx = ∆x and dy = ∆y then the differential of z is defined to be
dz = fx (x , y )dx + fy (x , y )dy .
Example
Example
Example
1. The dimensions of a rectangular box are measured to be 75 cm, 60 cm,
and 40 cm with a maximum measurement error of 0.2 cm. Approximate
the propagated error and the relative error in the calculated volume of the
box.
2. Suppose z = x 2 + 3xy − y 2 . Find ∆z and dz as x changes from 2 to
2.05 and y changes from 3 to 2.96.
3. The base radius and height of a right circular cone are 10 cm and 25 cm
respectively, with a possible error in measurement of up to 0.1 cm.
Estimate the maximum error in the calculation of the volume of the cone.
1
V = πr 2h
3
Homework
Outline
Our goal
dw dw dx
=
dt dx dt
dw dw dx a single v
= is a differentiable function of an
dt dx dt fferentiable function of dw dt
dw dt
dw
dt
Chain Rule For this composite function
Dependent as the “intermediate variable,
w = f (x)
variable gives the value of from the function
diagram” in the margin. Such diagrams cap
dw
dx
For functions of several variables the
how many independent and i
Intermediate
x variables are taken into account, t
variable
dx
dt
Independent Functions of Two Variables
t variable
dw dw dx a for a differentia
=
dt dx dt fferentiable functions o
Theorem
If w = f (x , y ) where f is a differentiable function of x and y , and if x = x (t )
and y = y (t ) are differentiable functions of t , then
dw ∂ w dx ∂ w dy
= +
dt ∂ x dt ∂ y dt
Theorem
If w = f (x , y ) where f is a differentiable function of x and y , and
dw dt if x = x (t )
and y = y (t ) are differentiable functions of t , then
Chain Rule
w = f (x, y) Dependent
variable
'w 'w
'x 'y
dw ∂ w dx ∂ w dy However, th
= + x y Intermediate
dt ∂ x dt ∂ y dt variables
a function
dx dy ,
dt dt
dw dt, dx d
Independent
t and
variable
dw
=
'w dx
+
'w dy With that un
dt 'x dt 'y dt text whenev
Often we write ∂∂wx or ∂∂wy for the partial derivative ∂∂xf or ∂∂yf .
Theorem
Suppose that w = f (x , y ), x = x (r , s), and y = y (r , s). If all three functions
are differentiable, then
∂w ∂w ∂x ∂w ∂y
= +
∂r ∂x ∂r ∂y ∂r
∂w ∂w ∂x ∂w ∂y
= +
∂s ∂x ∂s ∂y ∂s
Theorem
Suppose that w = f (x , y ), x = x (r , s), and y = y (r , s). If all three functions
are differentiable, then
Chain Rule
w = f (x, y)
∂w ∂w ∂x ∂w ∂y 'w 'w
= + 'x 'y
∂r ∂x ∂r ∂y ∂r x y
∂w ∂w ∂x ∂w ∂y
= + 'x 'y
∂s ∂x ∂s ∂y ∂s 'r 'r
r
'w 'w 'x 'w 'y
= +
'r 'x 'r 'y 'r
FIGURE 14.23
Examples
Example
1. Find dw /dt where p
w = x2 + y2
Examples
Example
1. Show that h(x , y , t ) = g (2x + at , 3y + bt ) is a solution to the partial
differential equation
∂h a ∂h b ∂h
= +
∂t 2 ∂x 3 ∂y
for any differentiable function g (u , v ).
2. If f (x , y ) is a differentiable function such that
sen(f (x , y )) + f (x , y ) + xy = 0
Examples
r
r2
h
r1 R
50. Volume and Surface Area The two radii of the frustum
of a right circular cone are increasing at a rate of 4 centimeters
per minute, and the height is increasing at a rate of 12 centimeters
per minute (see figure). Find the rates at which the volume and
surface area are changing when the two radii are 15 centimeters
and 25 centimeters, and the height is 10 centimeters.
Implicit Differentiation (1 of 2)
d d
f (x , y (x )) = (C )
dx dx
∂f dx ∂f dy
(x , y ) + (x , y ) =0
∂x dx ∂y dx
∂f
dy (x , y )
= − ∂∂xf
dx
∂ y (x , y )
assuming ∂∂yf (x , y ) 6= 0.
Implicit Differentiation (2 of 2)
Theorem
If F (x , y , z ) = C (a constant) determines an implicit, differentiable function f
depending on x and y such that z = f (x , y ) then
∂z Fx (x , y , z ) ∂z Fy (x , y , z )
=− and =−
∂x Fz (x , y , z ) ∂y Fz (x , y , z )
provided Fz (x , y , z ) 6= 0.
Example
Example
1. If x 3 + y 3 + z 3 + 6xyz = 1 find ∂ z /∂ x and ∂ z /∂ y
2. Higher Order Derivatives: If g (u , v ) = f (x (u , v ), y (u , v )) find gvu .
Homework
Outline
Our goal
Background
Background
Given z = f (x , y ) we understand
FIGURE 14.26
that We know from Section 14.4 that if ƒ( , ) i
∂f fferentiable curv
: gives the rate of change of z in the positive x −direction. dƒ
∂x Yosemite National Park dt
∂f ey,
: gives the rate of change v)
of z in the positive
any y − direction.
point , t
∂y and therefore dep
Question: what about rates of change in other directions? e is a
line measured from in the dire
y
ƒ with respect to distanc
Line x = x 0 + su 1, y = y 0 + su 2
, we find the rates at which ƒ changes wi
different directions. We now define this ide
ƒ( , ) is de
,
u = u1i + u 2 j su
Direction of
increasing s
line through parallel to
in the direction of , we find the rate of
R
lating ds
P0(x 0, y0 )
x
0 DEFINITION vative of
vector
FIGURE 14.27
BASIC SCIENCES - Functions of Several Variables dƒ 106 of 159
P
Functions of Several Variables
Directional Derivatives
Definition
The directional derivative of f (x , y ) at the point (a, b) and in the direction of
the vector u = hu1 , u2 i is given by
, xy (1, 2)
Directional Derivatives (Illustration)
z
Surface S:
z = f(x, y) f(x0 + su1, y0 + su2) − f (x0, y0)
Tangent line
Q
y
C
FIGURE 14.28 P
lim PQ
dƒ
ds ,
, xy (1, 2)
Directional Derivatives (Illustration)
z
Surface S:
z = f(x, y) f(x0 + su1, y0 + su2) − f (x0, y0)
Tangent line
Q
y
C
FIGURE 14.28 P
Geometric examination
lim of the
PQdirectional derivative of a function of two
Directional Derivatives
Theorem
Suppose that f is differentiable at (a, b) and u = hu1 , u2 i is any unit vector.
Then
Du f (a, b) = fx (a, b)u1 + fy (a, b)u2
Directional Derivatives
Theorem
Suppose that f is differentiable at (a, b) and u = hu1 , u2 i is any unit vector.
Then
Du f (a, b) = fx (a, b)u1 + fy (a, b)u2
Example
1. Find the derivative of f (x , y ) = sin x + exy in the direction of v = h1, 1i .
2. Find the derivative of f (x , y ) = x 3 sin 3y in the direction of v = h2, π/3i .
Gradients
Definition
The gradient of f (x , y ) is the vector-valued function
∂f ∂f ∂f ∂f
∇f (x , y ) = , = i+ j
∂x ∂y ∂x ∂y
provided both partial derivatives exist.
Gradients
Definition
The gradient of f (x , y ) is the vector-valued function
∂f ∂f ∂f ∂f
∇f (x , y ) = , = i+ j
∂x ∂y ∂x ∂y
provided both partial derivatives exist.
Theorem
If f is a differentiable function of x and y and u is a unit vector, then
Du f (x , y ) = ∇f (x , y ) · u
Example
Example
1. Find the gradient of f (x , y ) = x 2 y 3 − 4y .
2. If g (x , y ) = x /y and v = h−1, 3i , find Dv g (x , y ).
A physical illustration
in which f is increasing the fastest and the direction that is orthogonal to the level sur-
A faces (or curvesillustration
physical in the plane) of f . That it does both of these at once is quite plausible.
To see this, imagine a hill as shown in Figure 2.6.5(a). Let h be the height function,
a function of two variables. If we draw level curves of h , these are just level contours
Theof gradient
the hill. Wevector
could has
imagine them as geometric
important level paths onsignificance.
the hill [see Figure 2.6.5(b)].
It shows the One
thing should
direction be obvious
in which to anyone
a function who has gone
f is increasing theforfastest
a hike:and
To getthetodirection
the top ofthat
the
hill the fastest, we should walk perpendicular
is orthogonal to the level curves in the plane of f . to level contours. 5 This is consistent with
Theorems 13 and 14, which state that the direction of fastest increase (the gradient) is
orthogonal to the level curves.
h50 =
n
h 100
=
h = 150
h h = 200 n
A curve of Countour
Earthh steepest ascent map of a hill
up the hill 250 feet high
(a) (b)
figure A physical illustration of the two facts (a) is the direction of fastest increase of
is orthogonal toBASIC
theSCIENCES - Functions of Several Variables
level curves. 112 of 159
Functions of Several Variables
Theorem
Let f : U ⊂ Rn → R be differentiable at each point ~x ∈ U .
Theorem
Let f : U ⊂ Rn → R be differentiable at each point ~x ∈ U .
1. If ∇f (~x ) 6= 0, then ∇f (~x ) points in the direction along which f is
increasing the fastest. The derivative in this direction is
D∇f f (~x ) = ||∇f (~x )||.
Theorem
Let f : U ⊂ Rn → R be differentiable at each point ~x ∈ U .
1. If ∇f (~x ) 6= 0, then ∇f (~x ) points in the direction along which f is
increasing the fastest. The derivative in this direction is
D∇f f (~x ) = ||∇f (~x )||.
2. Analogously, if ∇f (~x ) 6= 0, then −∇f (~x ) points in the direction along
which f is decreasing the fastest. The derivative in this direction is
D−∇f f (~x ) = −||∇f (~x )||.
Theorem
Let f : U ⊂ Rn → R be differentiable at each point ~x ∈ U .
1. If ∇f (~x ) 6= 0, then ∇f (~x ) points in the direction along which f is
increasing the fastest. The derivative in this direction is
D∇f f (~x ) = ||∇f (~x )||.
2. Analogously, if ∇f (~x ) 6= 0, then −∇f (~x ) points in the direction along
which f is decreasing the fastest. The derivative in this direction is
D−∇f f (~x ) = −||∇f (~x )||.
3. Any direction u orthogonal to a gradient ∇f (~x ) 6= 0 is a direction of zero
change in f (i.e. Du f (~x ) = 0.)
Theorem
Let f : U ⊂ Rn → R be differentiable at each point ~x ∈ U .
1. If ∇f (~x ) 6= 0, then ∇f (~x ) points in the direction along which f is
increasing the fastest. The derivative in this direction is
D∇f f (~x ) = ||∇f (~x )||.
2. Analogously, if ∇f (~x ) 6= 0, then −∇f (~x ) points in the direction along
which f is decreasing the fastest. The derivative in this direction is
D−∇f f (~x ) = −||∇f (~x )||.
3. Any direction u orthogonal to a gradient ∇f (~x ) 6= 0 is a direction of zero
change in f (i.e. Du f (~x ) = 0.)
4. If we have f : R2 → R and consider a level curve
C = {(x , y ) ∈ R2 : f (x , y ) = k }, then ∇f (x0 , y0 ) is perpendicular to C
for any point (x0 , y0 ) on C .
z z = f(x, y)
x2 y2
= +
2 2
(1, 1, 1)
1
y
1 −∇f (1, 1)
Zero change
Most rapid in f
x
decrease in f = -
Most rapid ∇f = i + j
increase in f
FIGURE 14.30
, y)
(1,1) + j
BASIC SCIENCES - Functions of Several Variables
Gradients and Tan
114 of 159
Functions of Several Variables
Proof.
Recall the formula for the directional derivative,
Du f (~x ) = ∇f (~x ) · u
= ||∇f (~x )||||u|| cos θ
= ||∇f (~x )|| cos θ
Proof.
Recall the formula for the directional derivative,
Du f (~x ) = ∇f (~x ) · u
= ||∇f (~x )||||u|| cos θ
= ||∇f (~x )|| cos θ
https://mathinsight.org/applet/gradient_directional_
derivative_mountain
BASIC SCIENCES - Functions of Several Variables 115 of 159
Functions of Several Variables
Example
Find the directions in which
x2 y2
f (x , y ) = +
2 2
Example
Example
Suppose you are climbing a hill whose shape is given by the equation
where x , y , and z are measured in meters, and you are standing at a point
with coordinates (60, 40, 966). The positive x −axis points east and the
positive y −axis points north.
1. If you walk due south, will you start to ascend or descend? At what rate?
2. If you walk northwest, will you start to ascend or descend? At what rate?
3. In which direction is the slope largest? What is the rate of ascent in that
direction? At what angle above the horizontal does the path in that
direction begin?
Definition
The directional derivative of f (x , y , z ) at the point (x0 , y0 , z0 ) and in the
direction of the vector u = hu1 , u2 , u3 i is given by
Generalization
Theorem
Let f : U ⊂ Rn → R be differentiable at each point ~x ∈ U . The directional
derivative at ~x in the direction u ∈ Rn is given by
Du f (~x ) = ∇f (~x ) · u.
Generalization
Theorem
Let f : U ⊂ Rn → R be differentiable at each point ~x ∈ U . The directional
derivative at ~x in the direction u ∈ Rn is given by
Du f (~x ) = ∇f (~x ) · u.
Example
1. Suppose f (x , y , z ) = x sin(yz ). Find the gradient of f and the directional
derivative in the direction of v = i + 2j − k.
2. Suppose the temperature at point (x , y , z ) is given by the function
T (x , y , z ) = 4x 2 − y 2 + 16z 2 . At the point with coordinates
(x , y , z ) = (4, −2, 1),
◦ in what direction does the temperature change most rapidly?
◦ what is the maximum rate of change in temperature?
Homework
Outline
Our goal
Theorem
Suppose that f (x , y , z ) has continuous partial derivatives at the point
(x0 , y0 , z0 ) and that ∇f (x0 , y0 , z0 ) 6= 0. Then, ∇f (x0 , y0 , z0 ) is a normal
vector to the tangent plane to the surface f (x , y , z ) = k at the point
(x0 , y0 , z0 ). The equation of the tangent plane is
The normal line to the surface through the point (x0 , y0 , z0 ) is given
parametrically by
x = x0 + fx (x0 , y0 , z0 )t
y = y0 + fy (x0 , y0 , z0 )t
z = z0 + fz (x0 , y0 , z0 )t
z
Tangent plane
of graph atf
( 0, 0, ( 0, 0))
x y f x y
figure
of the tange
( 0, 0, ( 0, 0))
x y f x y
of
(, )
x y
( , )
x 0 0
y
Example
Find the equations of the tangent plane and normal line through the surface
4x 2 − y 2 + 16z 2 = 76
Homework
Outline
Our goal
Our goal
September 27, 2011 9:38 169
z z
Graph of f Graph of f
bles.
y y
x x
x0 x0
Local minimum Local maximum
(a) (b)
First-DerivativeBASIC
Test for Local
SCIENCES Extrema
- Functions of Several Variables 128 of 159
Functions of Several Variables
Background (1 of 3)
Theorem
Suppose that f is continuous on a closed, bounded interval [a, b]. The
absolute extrema of f must occur at the endpoints of the interval (x = a or
x = b) or at a critical number.
Background (2 of 3)
Background (3 of 3)
Local Extrema
Definition
We call
1. f (a, b) a local maximum of f if there is a neighborhood V of (a, b), for
which
f (a, b) ≥ f (x , y )
for all (x , y ) in V .
2. f (a, b) is a local minimum of f if there is a neighborhood V of (a, b), for
which
f (a, b) ≤ f (x , y )
for all (x , y ) in V .
In either case, f (a, b) is called a local or relative extremum of f .
Local Extrema
z z
(a, b, z)
(a, b, z)
(a, b) (a, b)
y y
x x
As before, the word extremum is used for either a relative maximum or a relative minimum.
Examples of a relative maximum and a relative minimum are given in Figures 17 and 18.
BASIC SCIENCES - Functions of Several Variables 133 of 159
Functions of Several Variables
Critical Points
Definition
The point (a, b) is a critical point of the function f (x , y ) if (a, b) is in the
domain of f and either
∂f ∂f
(a, b) = (a, b) = 0
∂x ∂y
∂f ∂f
or one or both of and do not exist at (a, b).
∂x ∂y
Critical Points
Definition
The point (a, b) is a critical point of the function f (x , y ) if (a, b) is in the
domain of f and either
∂f ∂f
(a, b) = (a, b) = 0
∂x ∂y
∂f ∂f
or one or both of and do not exist at (a, b).
∂x ∂y
Theorem
If f (x , y ) has a local extremum at (a, b), then (a, b) must be a critical point
of f .
Example (1 of 2)
Example
Find the critical points of f (x , y ) = x 2 + y 2 − 2x − 6y + 14.
Example (1 of 2)
Example
Find the critical points of f (x , y ) = x 2 + y 2 − 2x − 6y + 14.
Remark: to find extrema we will look for critical points; however, not all critical
points are extrema. Consider the following function:
f (x , y ) = x 4 + y 4 − 4xy
Find the critical points, then examine the graph of the function.
Example (2 of 2)
0
y
40
2
z
20
1
-1 0
-2 0 y
-1
0 -1
-2 x
-2 -1 0 1 2 1
x -2
2
Saddle Points
example Consider the function f : 2 , ( x , y ) 7→ x 2 y 2 . Ignoring for the moment that this
function has a saddle and no extrema, apply the method of Theorem 4 for the location
of extrema.
Definition
solution As in Example 1, we find that f has only one critical point, at the origin, and the value
The point P (a, b, f (a, b))ofisf athere is zero. point
saddle Examining = fof(xf ,directly
of zvalues y ) if (fora,points
b) isnear
a the origin, we see
critical
that f ( x , 0) f (0,
point of f and if every neighborhood of 0)(aand
, bf)(0,contains
y) f (0, 0), with strict inequalities when x =
points (x , y ) in the 6 0 and
6 0. Because x or y can be taken arbitrarily small, the origin cannot be either a relative
y =
Graaph of f
1. If D (a, b) > 0 and fxx (a, b) > 0, then f has a local minimum at (a, b).
2. If D (a, b) > 0 and fxx (a, b) < 0, then f has a local maximum at (a, b).
3. If D (a, b) < 0, then f has a saddle point at (a, b).
4. If D (a, b) = 0, then no conclusion can be drawn.
Examples
Example
1. Find the extrema and saddle points of f (x , y ) = x 4 + y 4 − 4xy .
2. Find the extrema and saddle points (if any) of
f (x , y ) = 2x 2 + y 3 − x 2 y − 3y .
3. Find the points on the surface z 2 = xy + 1 that are closest to the origin.
Examples
Example
1. Find the extrema and saddle points of f (x , y ) = x 4 + y 4 − 4xy .
2. Find the extrema and saddle points (if any) of
f (x , y ) = 2x 2 + y 3 − x 2 y − 3y .
3. Find the points on the surface z 2 = xy + 1 that are closest to the origin.
2
y 1
-1
-2
2
z
0
-1
-2
-2
-1
0
x
1
Examples
Examples
Because
0 when
f(x, y) = x 2 y 2
z xx , yy
1
xx , yy ,
16
y
2
2 = −12
x If x = 0,
0 when either
then f(x, y) = 0.
If y = 0, , for
then f(x, y) = 0. other points, you can
minimum, as shown in F
Definition
• We call f (a, b) the absolute maximum of f on the region U if
f (a, b) ≥ f (x , y ) for all (x , y ) in U .
• Similarly, f (a, b) the absolute minimum of f on the region U if
f (a, b) ≤ f (x , y ) for all (x , y ) in U .
Definition
• We call f (a, b) the absolute maximum of f on the region U if
f (a, b) ≥ f (x , y ) for all (x , y ) in U .
• Similarly, f (a, b) the absolute minimum of f on the region U if
f (a, b) ≤ f (x , y ) for all (x , y ) in U .
Definition
• A set D ⊂ Rn is said to be bounded if there is a number M > 0 such that
||~x || < M for all ~x ∈ D . (In other words, if there exist a (large) disk or ball
that completely contains D .
• A set is closed if it contains all its boundary points.
Example
Find the absolute extrema of f (x , y ) = x 2 + 2xy + y 2 over the region D ,
where D = {(x , y ) : |x | ≤ 2, |y | ≤ 1}.
Example
Find the absolute extrema of f (x , y ) = x 2 + 2xy + y 2 over the region D ,
where D = {(x , y ) : |x | ≤ 2, |y | ≤ 1}.
Example
Find the absolute extrema of f (x , y ) = x 2 + y 2 − 2x − 4y on D , a triangle in
the xy −plane with vertices at (0, 0), (0, 3), and (3, 3).
Example
Find the absolute extrema of f (x , y ) = x 2 + 2xy + y 2 over the region D ,
where D = {(x , y ) : |x | ≤ 2, |y | ≤ 1}.
Example
Find the absolute extrema of f (x , y ) = x 2 + y 2 − 2x − 4y on D , a triangle in
the xy −plane with vertices at (0, 0), (0, 3), and (3, 3).
0
0
-2
z
-4
3 2 1 0
y
Homework
Outline
Example
he criteria for the test S oc ia l S cie nce s
xx , 7 0, while 40. Political Science The probability that a three-person jury will
ut , 2? Based on make a correct decision is given by
does this seem intui
P1a, r, s2 = a 33r 211 - r2 + r 34
+ 11 - a233s 211 - s2 + s 34,
Example
Example
2 km
x Q
1 km R
y S
10 km
Homework
Outline
Constrained Optimization
In previous sections we found the local or absolute extrema of a function
either on the entire domain of the function or on a bounded region.
Constrained in a curve that lies on this graph. The problem of maximizing or minimizing (
Optimization f x
the level set for g with value c [recall that this is the set of points x
constraints or side conditions. with g( x) n
z = f (x, y) z = ( , ) subject
f x y
to the connstraint
x
2+ 2=1 y
figure
of maximizing to the
1.
oint on 2 + 2 = 1
Point x y
y
where is maximized
f
Theorem
All relative extrema of the function z = f (x , y ), subject to a constraint
g (x , y ) = 0, will be found among those points (x , y ) for which there exists a
value of λ 6= 0 such that
Fx (x , y , λ) = 0, Fy (x , y , λ) = 0, Fλ (x , y , λ) = 0,
where
F (x , y , λ) = f (x , y ) − λg (x , y ),
Theorem
All relative extrema of the function z = f (x , y ), subject to a constraint
g (x , y ) = 0, will be found among those points (x , y ) for which there exists a
value of λ 6= 0 such that
Fx (x , y , λ) = 0, Fy (x , y , λ) = 0, Fλ (x , y , λ) = 0,
where
F (x , y , λ) = f (x , y ) − λg (x , y ),
Example (1 of 2)
Example
Find the extreme values of f (x , y ) = 2x 3 y subject to x 2 + y 2 = 4.
0
y
-1
-2
-3
-3 -2 -1 0 1 2 3
x
Example (2 of 2)
2
1
y
0
-1
-2
10
z
0
-5
-10
-2
-1
0
x
1
Inequality Constraint
Example
Find the extrema of f (x , y ) = 4xy subject to x 2 + 4y 2 ≤ 8.
0
y
-1
-2
-3
-3 -2 -1 0 1 2 3
x
Inequality Constraint
Example
Find the extrema of f (x , y ) = 4xy subject to x 2 + 4y 2 ≤ 8.
3 y
2
0
2 -2
1 5
z 0
0
y
-5
-1
-2
-2 0
2
x
-3
-3 -2 -1 0 1 2 3
x
Several Constraints
X
k
F (~x , λ1 , . . . , λk ) = f (~x ) − λj gj (~x ).
j =1
Example
Maximize
f (x , y , z ) = 3x + y + 2z
subject to
y 2 + z2 = 1 and x + y − z = 0.
Homework