Isrt Multivariable 2020 Lagrange Multipliers
Isrt Multivariable 2020 Lagrange Multipliers
f x , y 2x 2 y 2
or
g x , y , z 2xe yz
or
h x1 , x2 , x3, x 4 2x1 x2 4x3 x 4
Hopefully you can see the notation for functions of several
variables is similar to the notation you’ve used with single variable
functions.
z f x , y 2x 2 y 2
or
w g x , y , z 2xe yz
or
h x1 , x2 , x3, x 4 2x1 x2 4x3 x 4
f x , y 2x 2 y 2
f 2,3 2 22 32 2 4 9 17
f 4,3 2 42 3 2 16 9 41
2
f 5, y 2 52 y 2 2 25 y 2 50 y 2
The operations we performed with one-variable functions can also
be performed with functions of several variables.
f g x , y f x , y g x , y
f g x , y f x , y g x , y
So
f(–5, 50) = –15
Domains of Functions of Several Variables:
Unless the domain is given, assume the domain is the set of all
points for which the equation is defined.
For example, consider the functions
1
f x , y 3x 2 y 2 and g x , y
xy
The domain of g(x, y) is the set of all points (x, y) in the xy-plane
such that the product xy is greater than 0. This would be all the
points in the first quadrant and the third quadrant.
Example 1: Find the domain of the function: f x , y 25 x 2 y 2
Solution: The domain of f(x, y) is the set of all points that satisfy the
inequality:
25 x y 0
2 2 or 25 x 2 y 2
You may recognize that this is similar to the equation of a circle and
the inequality implies that any ordered pair on the circle or inside
the circle x y 25 is in the domain.
2 2
y
The highlighted area is the
domain to f.
x
Example 2: Find the domain of the function:
g x , y , z x 2 y 2 z 2 16
Solution:
Note that g is a function of three variables, so the domain is NOT an
area in the xy-plane. The domain of g is a solid in the 3-dimensional
coordinate system.
This implies that any ordered triple outside of the sphere centered
at the origin with radius 4 is in the domain.
Example 3: Find the domain of the function: h x , y lnxy
Solution:
We know the argument of the natural log must be greater than zero.
So, x y 0
x
Graphs of Functions of Several Variables
As you learned in 2-dimensional space the graph of a function can be
helpful to your understanding of the function. The graph gives an
illustration or visual representation of all the solutions to the
equation. We also want to use this tool with functions of two
variables.
z f x , y 25 x 2 y 2
the value of the radicand will only vary between 0 and 25.
x 2 y 2 z 2 25
The function z 25 x 2
y 2
and the equation x 2
y 2
z 2
25
are not exactly the same. The equation does NOT represent z as a
function of x and y – meaning there is not a unique value for z for
each (x, y). Keep in mind that the function had a range of 0 z 5 ,
which means the function is only the top half of the sphere.
As you have done before when sketching a surface in 3-dimensions
it may be helpful for you to use the traces in each coordinate plane.
4. Let z = 3: 3 25 x 2 y 2 or x 2 y 2 16
5. Let z = 4: 4 25 x 2 y 2 or x 2 y 2 9
z=4
z=3
Here is a graph of the function using the 3-dimensional
graphing utility DPGraph.
z
x
Example 5: Sketch the surface: z 9 x 2 y 2
x2 y2 9 Circle
z y 2 9 Parabola
z x 2 9 Parabola
Solution to Example 5 Continued:
5 9x2 y2
or
Circle centered at (0, 0, 5) with
x2 y2 4 radius 2.
7 9x2 y2
or
Circle centered at (0, 0, -7) with
x y 16
2 2
radius 4.
Here is a sketch of the traces in z
each coordinate plane.
This paraboloid extends below the
xy-plane.
z y 2 9
z x 2 9
x2 y2 9
x
Here’s a graph of the surface using DPGraph.
Level Curves
Figure 19
Level Curves
c 4: 4 25 x 2 y 2 x2 y 2 9 Circle with r 3
c 3: 3 25 x 2 y 2 x2 y 2 16 Circle with r 4
c 0 : 0 x 2 2y 2 Point at 0,0
x2 y2
c 2: 2 x 2
2y 2
Ellipse : 1
2 1
x2 y2
c 4: 4 x 2
2y 2
Ellipse : 1
4 2
x2 y2
c 6: 6 x 2
2y 2
Ellipse : 1
6 3
x2 y2
c 8: 8 x 2
2y 2
Ellipse : 1
8 4
Solution to Example 7 Continued: Contour map with point (0, 0) for c
= 0 and then ellipses expanding out from the center for the
remaining values of c.
Example 7 Continued:
z x2 y 2
Note:
L. K. Saha
LIMITS AND CONTINUITY
L. K. Saha
LIMITS AND CONTINUITY
L. K. Saha
Partial Derivatives
On a hot day, extreme humidity makes us think the
temperature is higher than it really is, whereas in very dry
air we perceive the temperature to be lower than the
thermometer indicates.
Solution:
Holding y constant and differentiating with respect to x,
we get
fx(x, y) = 3x2 + 2xy3
and so fx(2, 1) = 3 22 + 2 2 13 = 16
Solution:
We have
fx(x, y) = –2x fy(x, y) = –4y
fx(1, 1) = –2 fy(1, 1) = –4
Example 2 – Solution cont’d
Figure 2
Example 2 – Solution cont’d
Figure 3
Functions of More Than Two
Variables
Functions of More Than Two Variables
Partial derivatives can also be defined for functions of three
or more variables. For example, if f is a function of three
variables x, y, and z, then its partial derivative with respect
to x is defined as
Solution:
Holding y and z constant and differentiating with respect
to x, we have
fx = yexy ln z
Similarly,
fy = xexy ln z and fz =
Higher Derivatives
Higher Derivatives
If f is a function of two variables, then its partial derivatives
fx and fy are also functions of two variables, so we can
consider their partial derivatives (fx)x, (fx)y, (fy)x, and (fy)y,
which are called the second partial derivatives of f.
If z = f(x, y), we use the following notation:
Higher Derivatives
Thus the notation fxy (or ∂2f/∂y ∂x) means that we first
differentiate with respect to x and then with respect to y,
whereas in computing fyx the order is reversed.
Example 6
Find the second partial derivatives of
f(x, y) = x3 + x2y3 – 2y2
Solution:
In Example 1 we found that
fx(x, y) = 3x2 + 2xy3 fy(x, y) = 3x2y2 – 4y
Therefore
fxx = (3x2 + 2xy3)
= 6x + 2y3
Example 6 – Solution cont’d
= 6xy2
= 6xy2
= 6x2y – 4
Higher Derivatives
Notice that fxy = fyx in Example 6. This is not just a
coincidence.
It turns out that the mixed partial derivatives fxy and fyx are
equal for most functions that one meets in practice.
L. K. Saha
Exampe (Computing Partial Derivatives)
L. K. Saha
Exercise (Computing Partial Derivatives)
1.
2.
L. K. Saha
Exercise (Computing Partial Derivatives)
L. K. Saha
Exercise (Computing Partial Derivatives)
L. K. Saha
Exercise (Computing Partial Derivatives)
L. K. Saha
Exercise (Computing Partial Derivatives)
L. K. Saha
Exercise (Computing Partial Derivatives)
L. K. Saha
Partial Differential Equations
Partial Differential Equations
Partial derivatives occur in partial differential equations that
express certain physical laws.
Solution:
We first compute the needed second-order partial
derivatives:
ux = ex sin y uy = ex cos y
uxx = ex sin y uyy = –ex sin y
Figure 8
Solution:
The Chain Rule gives
Therefore
The Chain Rule
We now consider the situation where z = f(x, y) but each of
x and y is a function of two variables s and t:
x = g(s, t), y = h(s, t).
Figure 2
The Chain Rule
We draw branches from the dependent variable z to the
intermediate variables x and y to indicate that z is a
function of x and y. Then we draw branches from x and y to
the independent variables s and t.
and
L. K. Saha
L. K. Saha
L. K. Saha
L. K. Saha
Implicit Differentiation
Implicit Differentiation
The Chain Rule can be used to give a more complete
description of the process of implicit differentiation.
We suppose that an equation of the form F(x, y) = 0
defines y implicitly as a differentiable function of x, that is,
y = f(x), where F(x, f(x)) = 0 for all x in the domain of f.
Solution:
The given equation can be written as
F(x, y) = x3 + y3 – 6xy = 0
so Equation 6 gives
Implicit Differentiation
Now we suppose that z is given implicitly as a function
z = f(x, y) by an equation of the form F(x, y, z) = 0.
This means that F(x, y, f(x, y)) = 0 for all (x, y) in the
domain of f. If F and f are differentiable, then we can use
the Chain Rule to differentiate the equation F(x, y, z) = 0 as
follows:
Implicit Differentiation
But and
Figure 1
Dr. Litan Kumar Saha, AST105
Maximum and Minimum Values
• There are two points (a, b) where f has a local maximum,
that is, where f(a, b) is larger than nearby values of f(x, y).
• Then
• f x(x, y) = 2x – 2 f y (x, y) = 2y – 6
z = x2 + y2 – 2x – 6y + 14
Figure 2
• D = {(x, y)| x2 + y2 1}
• Solution:
Since f is a polynomial, it is continuous on the closed,
bounded rectangle D, so Theorem 8 tells us there is both
an absolute maximum and an absolute minimum.
• fx = 2x – 2y = 0 fy = –2x + 2 = 0
Dr. Litan Kumar Saha, AST105
Example 7 – Solution cont’d
• so the only critical point is (1, 1), and the value of f there
is f(1, 1) = 1.
Figure 12
• On L1 we have y = 0 and
• f(x, 0) = x2 0x3
• f(3, y) = 9 – 4y 0y2
• On L3 we have y = 2 and
• f(x, 2) = x2 – 4x + 4 0x3
• f(0, y) = 2y 0y2
f(x, y) = x2 – 2xy + 2y
Figure 13
Dr. Litan Kumar Saha, AST105
13.8 Lagrange Multipliers
Figure 1
Figure 1
• Solution:
Let x, y, and z be the length, width, and height,
respectively, of the box in meters.
• V = xyz
• Vx = gx
• Vy = gy
• Vz = gz
• 2xz + 2yz + xy = 12
• xz = (2z + x)
• xy = (2x + 2y)
• 2xz + 2yz + xy = 12
• This means that the gradient vector f(x0, y0, z0) is in the
plane determined by g(x0, y0, z0) and h(x0, y0, z0). (We
assume that these gradient vectors are not zero and not
parallel.)
Dr. Litan Kumar Saha, AST105
Two Constraints
• So there are numbers and (called Lagrange
multipliers) such that
• fx = gx + hx
• fy = gy + hy
• fz = gz + hz
• g(x, y, z) = k
• h(x, y, z) = c
Dr. Litan Kumar Saha, AST105
Example 5 – A maximum problem with two constraints
• Solution:
• We maximize the function f(x, y, z) = x + 2y + 3z subject
to the constraints g(x, y, z) = x – y + z = 1 and
h(x, y, z) = x2 + y2 = 1.
• 2 = – + 2y
• 3=
• x–y+z=1
• x2 + y2 = 1
• and so 2 = ,= .