Lagrange Multipliers

Solving optimization problems for functions of two or more variables can be similar to solving such problems in single-variable calculus. However, techniques for dealing with multiple variables allow us to solve more varied optimization problems for which we need to deal with additional conditions or constraints. In this section, we examine one of the more common and useful methods for solving optimization problems with constraints.

Lagrange Multipliers

[link] was an applied situation involving maximizing a profit function, subject to certain constraints. In that example, the constraints involved a maximum number of golf balls that could be produced and sold in 1

month (x),

and a maximum number of advertising hours that could be purchased per month (y).

Suppose these were combined into a budgetary constraint, such as 20x+4y216,

that took into account the cost of producing the golf balls and the number of advertising hours purchased per month. The goal is, still, to maximize profit, but now there is a different type of constraint on the values of x

and y.

This constraint, when combined with the profit function f(x,y)=48x+96yx22xy9y2,

is an example of an optimization problem, and the function f(x,y)

is called the objective function. A graph of various level curves of the function f(x,y)

follows.

A series of rotated ellipses that become increasingly large. The smallest one is marked f(x, y) = 400, and the biggest one is marked f(x, y) = 150.

In [link], the value c

represents different profit levels (i.e., values of the function f).

As the value of c

increases, the curve shifts to the right. Since our goal is to maximize profit, we want to choose a curve as far to the right as possible. If there was no restriction on the number of golf balls the company could produce, or the number of units of advertising available, then we could produce as many golf balls as we want, and advertise as much as we want, and there would be not be a maximum profit for the company. Unfortunately, we have a budgetary constraint that is modeled by the inequality 20x+4y216.

To see how this constraint interacts with the profit function, [link] shows the graph of the line 20x+4y=216

superimposed on the previous graph.

A series of rotated ellipses that become increasingly large. On the smallest ellipse, which is red, there is a tangent line marked with equation 20x + 4y = 216 that appears to touch the ellipse near (10, 4).

As mentioned previously, the maximum profit occurs when the level curve is as far to the right as possible. However, the level of production corresponding to this maximum profit must also satisfy the budgetary constraint, so the point at which this profit occurs must also lie on (or to the left of) the red line in [link]. Inspection of this graph reveals that this point exists where the line is tangent to the level curve of f.

Trial and error reveals that this profit level seems to be around 395,

when x

and y

are both just less than 5.

We return to the solution of this problem later in this section. From a theoretical standpoint, at the point where the profit curve is tangent to the constraint line, the gradient of both of the functions evaluated at that point must point in the same (or opposite) direction. Recall that the gradient of a function of more than one variable is a vector. If two vectors point in the same (or opposite) directions, then one must be a constant multiple of the other. This idea is the basis of the method of Lagrange multipliers.

Method of Lagrange Multipliers: One Constraint

Let f

and g

be functions of two variables with continuous partial derivatives at every point of some open set containing the smooth curve g(x,y)=0.

Suppose that f,

when restricted to points on the curve g(x,y)=0,

has a local extremum at the point (x0,y0)

and that g(x0,y0)0.

Then there is a number λ

called a Lagrange multiplier, for which

f(x0,y0)=λg(x0,y0).

Proof

Assume that a constrained extremum occurs at the point (x0,y0).

Furthermore, we assume that the equation g(x,y)=0

can be smoothly parameterized as

x=x(s)andy=y(s)

where s is an arc length parameter with reference point (x0,y0)

at s=0.

Therefore, the quantity z=f(x(s),y(s))

has a relative maximum or relative minimum at s=0,

and this implies that dzds=0

at that point. From the chain rule,

dzds=fx·xs+fy·ys=(fxi+jxs)+(fy·ys)=0,

where the derivatives are all evaluated at s=0.

However, the first factor in the dot product is the gradient of f,

and the second factor is the unit tangent vector T(0)

to the constraint curve. Since the point (x0,y0)

corresponds to s=0,

it follows from this equation that

f(x0,y0)·T(0)=0,

which implies that the gradient is either 0

or is normal to the constraint curve at a constrained relative extremum. However, the constraint curve g(x,y)=0

is a level curve for the function g(x,y)

so that if g(x0,y0)0

then g(x0,y0)

is normal to this curve at (x0,y0)

It follows, then, that there is some scalar λ

such that

f(x0,y0)=λg(x0,y0)

To apply [link] to an optimization problem similar to that for the golf ball manufacturer, we need a problem-solving strategy.

Problem-Solving Strategy: Steps for Using Lagrange Multipliers
  1. Determine the objective function f(x,y)

    and the constraint function

    g(x,y).

    Does the optimization problem involve maximizing or minimizing the objective function?

  2. Set up a system of equations using the following template:
    f(x0,y0)=λg(x0,y0)g(x0,y0)=0.
  3. Solve for x0

    and

    y0.
  4. The largest of the values of f

    at the solutions found in step

    3

    maximizes

    f;

    the smallest of those values minimizes

    f.
Using Lagrange Multipliers

Use the method of Lagrange multipliers to find the minimum value of f(x,y)=x2+4y22x+8y

subject to the constraint x+2y=7.

Let’s follow the problem-solving strategy:

  1. The optimization function is f(x,y)=x2+4y22x+8y.

    To determine the constraint function, we must first subtract

    7

    from both sides of the constraint. This gives

    x+2y7=0.

    The constraint function is equal to the left-hand side, so

    g(x,y)=x+2y7.

    The problem asks us to solve for the minimum value of

    f,

    subject to the constraint (see the following graph).


    Two rotated ellipses, one within the other. On the largest ellipse, which is marked f(x, y) = 26, there is a tangent line marked with equation x + 2y = 7 that appears to touch the ellipse near (5, 1).

  2. We then must calculate the gradients of both f and g:
    f(x,y)=(2x2)i+(8y+8)jg(x,y)=i+2j.

    The equation

    f(x0,y0)=λg(x0,y0)

    becomes


    (2x02)i+(8y0+8)j=λ(i+2j),

    which can be rewritten as


    (2x02)i+(8y0+8)j=λi+j.

    Next, we set the coefficients of

    iandj

    equal to each other:


    2x02=λ8y0+8=2λ.

    The equation

    g(x0,y0)=0

    becomes

    x0+2y07=0.

    Therefore, the system of equations that needs to be solved is


    2x02=λ8y0+8=2λx0+2y07=0.
  3. This is a linear system of three equations in three variables. We start by solving the second equation for λ

    and substituting it into the first equation. This gives

    λ=4y0+4,

    so substituting this into the first equation gives


    2x02=4y0+4.

    Solving this equation for

    x0

    gives

    x0=2y0+3.

    We then substitute this into the third equation:

    (2y0+3)+2y07=04y04=0y0=1.

    Since

    x0=2y0+3,

    this gives

    x0=5.
  4. Next, we substitute (5,1)

    into

    f(x,y)=x2+4y22x+8y,

    gives

    f(5,1)=52+4(1)22(5)+8(1)=27.

    To ensure this corresponds to a minimum value on the constraint function, let’s try some other values, such as the intercepts of

    g(x,y)=0,

    Which are

    (7,0)

    and

    (0,3.5).

    We get

    f(7,0)=35

    and

    f(0,3.5)=77,

    so it appears

    f

    has a minimum at

    (5,1).

Use the method of Lagrange multipliers to find the maximum value of f(x,y)=9x2+36xy4y218x8y

subject to the constraint 3x+4y=32.

f

has a maximum value of 976

at the point (8,2).

Hint

Use the problem-solving strategy for the method of Lagrange multipliers.

Let’s now return to the problem posed at the beginning of the section.

Golf Balls and Lagrange Multipliers

The golf ball manufacturer, Pro-T, has developed a profit model that depends on the number x

of golf balls sold per month (measured in thousands), and the number of hours per month of advertising y, according to the function

z=f(x,y)=48x+96yx22xy9y2,

where z

is measured in thousands of dollars. The budgetary constraint function relating the cost of the production of thousands golf balls and advertising units is given by 20x+4y=216.

Find the values of x

and y

that maximize profit, and find the maximum profit.

Again, we follow the problem-solving strategy:

  1. The optimization function is f(x,y)=48x+96yx22xy9y2.

    To determine the constraint function, we first subtract 216 from both sides of the constraint, then divide both sides by

    4,

    which gives

    5x+y54=0.

    The constraint function is equal to the left-hand side, so

    g(x,y)=5x+y54.

    The problem asks us to solve for the maximum value of

    f,

    subject to this constraint.

  2. So, we calculate the gradients of both fand g:
    f(x,y)=(482x2y)i+(962x18y)jg(x,y)=5i+j.

    The equation

    f(x0,y0)=λg(x0,y0)

    becomes


    (482x02y0)i+(962x018y0)j=λ(5i+j),

    which can be rewritten as


    (482x02y0)i+(962x018y0)j=λ5i+λj.

    We then set the coefficients of

    iandj

    equal to each other:


    482x02y0=5λ962x018y0=λ.

    The equation

    g(x0,y0)=0

    becomes

    5x0+y054=0.

    Therefore, the system of equations that needs to be solved is


    482x02y0=5λ962x018y0=λ5x0+y054=0.
  3. We use the left-hand side of the second equation to replace λ

    in the first equation:


    482x02y0=5(962x018y0)482x02y0=48010x090y08x0=43288y0x0=5411y0.

    Then we substitute this into the third equation:


    5(5411y0)+y054=027055y0+y0=021654y0=0y0=4.

    Since

    x0=5411y0,

    this gives

    x0=10.
  4. We then substitute (10,4)

    into

    f(x,y)=48x+96yx22xy9y2,

    which gives


    f(10,4)=48(10)+96(4)(10)22(10)(4)9(4)2=480+38410080144=540.

    Therefore the maximum profit that can be attained, subject to budgetary constraints, is

    $540,000

    with a production level of

    10,000

    golf balls and

    4

    hours of advertising bought per month. Let’s check to make sure this truly is a maximum. The endpoints of the line that defines the constraint are

    (10.8,0)

    and

    (0,54)

    Let’s evaluate

    f

    at both of these points:


    f(10.8,0)=48(10.8)+96(0)10.822(10.8)(0)9(02)=401.76f(0,54)=48(0)+96(54)022(0)(54)9(542)=−21,060.

    The second value represents a loss, since no golf balls are produced. Neither of these values exceed

    540,

    so it seems that our extremum is a maximum value of

    f.

A company has determined that its production level is given by the Cobb-Douglas function f(x,y)=2.5x0.45y0.55

where x represents the total number of labor hours in 1

year and y represents the total capital input for the company. Suppose 1

unit of labor costs $40

and 1

unit of capital costs $50.

Use the method of Lagrange multipliers to find the maximum value of f(x,y)=2.5x0.45y0.55

subject to a budgetary constraint of $500,000

per year.

A maximum production level of 13890

occurs with 5625

labor hours and $5500

of total capital input.

Hint

Use the problem-solving strategy for the method of Lagrange multipliers.

In the case of an optimization function with three variables and a single constraint function, it is possible to use the method of Lagrange multipliers to solve an optimization problem as well. An example of an optimization function with three variables could be the Cobb-Douglas function in the previous example: f(x,y,z)=x0.2y0.4z0.4,

where x

represents the cost of labor, y

represents capital input, and z

represents the cost of advertising. The method is the same as for the method with a function of two variables; the equations to be solved are

f(x,y,z)=λg(x,y,z)g(x,y,z)=0.
Lagrange Multipliers with a Three-Variable Optimization Function

Maximize the function f(x,y,z)=x2+y2+z2

subject to the constraint x+y+z=1.

  1. The optimization function is f(x,y,z)=x2+y2+z2.

    To determine the constraint function, we subtract

    1

    from each side of the constraint:

    x+y+z1=0

    which gives the constraint function as

    g(x,y,z)=x+y+z1.
  2. Next, we calculate f(x,y,z)

    and

    g(x,y,z):
    f(x,y,z)=2x,2y,2zg(x,y,z)=1,1,1.

    This leads to the equations


    2x0,2y0,2z0=λ1,1,1x0+y0+z01=0

    which can be rewritten in the following form:


    2x0=λ2y0=λ2z0=λx0+y0+z01=0.
  3. Since each of the first three equations has λ

    on the right-hand side, we know that

    2x0=2y0=2z0

    and all three variables are equal to each other. Substituting

    y0=x0

    and

    z0=x0

    into the last equation yields

    3x01=0,

    so

    x0=13

    and

    y0=13

    and

    z0=13

    which corresponds to a critical point on the constraint curve.

  4. Then, we evaluate f at the point (13,13,13):
    f(13,13,13)=(13)2+(13)2+(13)2=39=13.

    Therefore, an extremum of the function is

    13.

    To verify it is a minimum, choose other points that satisfy the constraint and calculate

    f

    at that point. For example,


    f(1,0,0)=12+02+02=1f(0,−2,3)=02++(−2)2+32=13.

    Both of these values are greater than

    13,

    leading us to believe the extremum is a minimum.

Use the method of Lagrange multipliers to find the minimum value of the function

f(x,y,z)=x+y+z

subject to the constraint x2+y2+z2=1.

f(33,33,33)=33+33+33=3f(33,33,33)=333333=3.
Hint

Use the problem-solving strategy for the method of Lagrange multipliers with an optimization function of three variables.

Problems with Two Constraints

The method of Lagrange multipliers can be applied to problems with more than one constraint. In this case the optimization function, w

is a function of three variables:

w=f(x,y,z)

and it is subject to two constraints:

g(x,y,z)=0andh(x,y,z)=0.

There are two Lagrange multipliers, λ1

and λ2,

and the system of equations becomes

f(x0,y0,z0)=λ1g(x0,y0,z0)+λ2h(x0,y0,z0)g(x0,y0,z0)=0h(x0,y0,z0)=0.
Lagrange Multipliers with Two Constraints

Find the maximum and minimum values of the function

f(x,y,z)=x2+y2+z2

subject to the constraints z2=x2+y2

and x+yz+1=0.

Let’s follow the problem-solving strategy:

  1. The optimization function is f(x,y,z)=x2+y2+z2.

    To determine the constraint functions, we first subtract

    z2

    from both sides of the first constraint, which gives

    x2+y2z2=0,

    so

    g(x,y,z)=x2+y2z2.

    The second constraint function is

    h(x,y,z)=x+yz+1.
  2. We then calculate the gradients of f,g,andh:
    f(x,y,z)=2xi+2yj+2zkg(x,y,z)=2xi+2yj2zkh(x,y,z)=i+jk.

    The equation

    f(x0,y0,z0)=λ1g(x0,y0,z0)+λ2h(x0,y0,z0)

    becomes


    2x0i+2y0j+2z0k=λ1(2x0i+2y0j2z0k)+λ2(i+jk),

    which can be rewritten as


    2x0i+2y0j+2z0k=(2λ1x0+λ2)i+(2λ1y0+λ2)j(2λ1z0+λ2)k.

    Next, we set the coefficients of

    iandj

    equal to each other:


    2x0=2λ1x0+λ22y0=2λ1y0+λ22z0=−2λ1z0λ2.

    The two equations that arise from the constraints are

    z02=x02+y02

    and

    x0+y0z0+1=0.

    Combining these equations with the previous three equations gives


    2x0=2λ1x0+λ22y0=2λ1y0+λ22z0=−2λ1z0λ2z02=x02+y02x0+y0z0+1=0.
  3. The first three equations contain the variable λ2.

    Solving the third equation for

    λ2

    and replacing into the first and second equations reduces the number of equations to four:


    2x0=2λ1x02λ1z02z02y0=2λ1y02λ1z02z0z02=x02+y02x0+y0z0+1=0.

    Next, we solve the first and second equation for

    λ1.

    The first equation gives

    λ1=x0+z0x0z0,

    the second equation gives

    λ1=y0+z0y0z0.

    We set the right-hand side of each equation equal to each other and cross-multiply:


    x0+z0x0z0=y0+z0y0z0(x0+z0)(y0z0)=(x0z0)(y0+z0)x0y0x0z0+y0z0z02=x0y0+x0z0y0z0z022y0z02x0z0=02z0(y0x0)=0..

    Therefore, either

    z0=0

    or

    y0=x0.

    If

    z0=0,

    then the first constraint becomes

    0=x02+y02.

    The only real solution to this equation is

    x0=0

    and

    y0=0,

    which gives the ordered triple

    (0,0,0).

    This point does not satisfy the second constraint, so it is not a solution.


    Next, we consider

    y0=x0,

    which reduces the number of equations to three:


    y0=x0z02=x02+y02x0+y0z0+1=0.

    We substitute the first equation into the second and third equations:


    z02=x02+x02x0+x0z0+1=0.

    Then, we solve the second equation for

    z0,

    which gives

    z0=2x0+1.

    We then substitute this into the first equation,


    z02=2x02(2x0+1)2=2x024x02+4x0+1=2x022x02+4x0+1=0,

    and use the quadratic formula to solve for

    x0:
    x0=−4±424(2)(1)2(2)=−4±84=−4±224=−1±22.

    Recall

    y0=x0,

    so this solves for

    y0

    as well. Then,

    z0=2x0+1,

    so


    z0=2x0+1=2(−1±22)+1=−2+1±2=−1±2.

    Therefore, there are two ordered triplet solutions:


    (−1+22,−1+22,−1+2)and(−122,−122,−12).
  4. We substitute (−1+22,−1+22,−1+2)

    into

    f(x,y,z)=x2+y2+z2,

    which gives


    f(−1+22,−1+22,−1+2)=(−1+22)2+(−1+22)2+(−1+2)2=(12+12)+(12+12)+(122+2)=642.

    Then, we substitute

    (−122,−122,−12)

    into

    f(x,y,z)=x2+y2+z2,

    which gives


    f(−122,−122,−12)=(−122)2+(−122)2+(−12)2=(1+2+12)+(1+2+12)+(1+22+2)=6+42.

    6+42

    is the maximum value and

    642

    is the minimum value of

    f(x,y,z),

    subject to the given constraints.

Use the method of Lagrange multipliers to find the minimum value of the function

f(x,y,z)=x2+y2+z2

subject to the constraints 2x+y+2z=9

and 5x+5y+7z=29.

f(2,1,2)=9

is a minimum.

Hint

Use the problem-solving strategy for the method of Lagrange multipliers with two constraints.

Key Concepts

Key Equations

For the following exercises, use the method of Lagrange multipliers to find the maximum and minimum values of the function subject to the given constraints.

f(x,y)=x2y;x2+2y2=6
f(x,y,z)=xyz,x2+2y2+3z2=6

maximum: 233,

minimum: −233

f(x,y)=xy;4x2+8y2=16
f(x,y)=4x3+y2;2x2+y2=1

maximum: (22,0,2),

minimum: (22,0,2)

f(x,y,z)=x2+y2+z2,x4+y4+z4=1
f(x,y,z)=yz+xy,xy=1,y2+z2=1

maximum: 32,

minimum = 1

f(x,y)=x2+y2,(x1)2+4y2=4
f(x,y)=4xy,x29+y216=1

maxima: f(322,22)=24,

f(322,−22)=24;

minima: f(322,22)=−24,

f(322,−22)=−24
f(x,y,z)=x+y+z,1x+1y+1z=1
f(x,y,z)=x+3yz,x2+y2+z2=4

maximum: 211

at f(211,611,−211);

minimum: −211

at f(−211,−611,211)

f(x,y,z)=x2+y2+z2,xyz=4

Minimize f(x,y)=x2+y2

on the hyperbola xy=1.

2.0

Minimize f(x,y)=xy

on the ellipse b2x2+a2y2=a2b2.

Maximize f(x,y,z)=2x+3y+5z

on the sphere x2+y2+z2=19.

192

Maximize f(x,y)=x2y2;x>0,y>0;g(x,y)=yx2=0

The curve x3y3=1

is asymptotic to the line y=x.

Find the point(s) on the curve x3y3=1

farthest from the line y=x.

(123,−123)

Maximize U(x,y)=8x4/5y1/5;4x+2y=12

Minimize f(x,y)=x2+y2,x+2y5=0.

f(1,2)=5

Maximize f(x,y)=6x2y2,x+y2=0.

Minimize f(x,y,z)=x2+y2+z2,x+y+z=1.

f(13,13,13)=13

Minimize f(x,y)=x2y2

subject to the constraint x2y+6=0.

Minimize f(x,y,z)=x2+y2+z2

when x+y+z=9

and x+2y+3z=20.

minimum: f(2,3,4)=29

For the next group of exercises, use the method of Lagrange multipliers to solve the following applied problems.

A pentagon is formed by placing an isosceles triangle on a rectangle, as shown in the diagram. If the perimeter of the pentagon is 10

in., find the lengths of the sides of the pentagon that will maximize the area of the pentagon.

A rectangle with an isosceles triangle on top. The side of the isosceles triangle with the two equal angles of size θ overlaps the top length of the rectangle.

A rectangular box without a top (a topless box) is to be made from 12

ft2 of cardboard. Find the maximum volume of such a box.

The maximum volume is 4

ft3. The dimensions are 1×2×2

ft.

Find the minimum and maximum distances between the ellipse x2+xy+2y2=1

and the origin.

Find the point on the surface x22xy+y2x+y=0

closest to the point (1,2,−3).

(1,12,−3)

Show that, of all the triangles inscribed in a circle of radius R

(see diagram), the equilateral triangle has the largest perimeter.

A circle with an equilateral triangle drawn inside of it such that each vertex of the triangle touches the circle.

Find the minimum distance from point (0,1)

to the parabola x2=4y.

1.0

Find the minimum distance from the parabola y=x2

to point (0,3).

Find the minimum distance from the plane x+y+z=1

to point (2,1,1).

3

A large container in the shape of a rectangular solid must have a volume of 480

m3. The bottom of the container costs $5/m2 to construct whereas the top and sides cost $3/m2 to construct. Use Lagrange multipliers to find the dimensions of the container of this size that has the minimum cost.

Find the point on the line y=2x+3

that is closest to point (4,2).

(25,195)

Find the point on the plane 4x+3y+z=2

that is closest to the point (1,−1,1).

Find the maximum value of f(x,y)=sinxsiny,

where xandy

denote the acute angles of a right triangle. Draw the contours of the function using a CAS.

12

An alternating series of hills and holes of amplitude 1 across xyz space.

A rectangular solid is contained within a tetrahedron with vertices at

(1,0,0),(0,1,0),(0,0,1),

and the origin. The base of the box has dimensions x,y,

and the height of the box is z.

If the sum of x,y,andz

is 1.0, find the dimensions that maximizes the volume of the rectangular solid.

[T] By investing x units of labor and y units of capital, a watch manufacturer can produce P(x,y)=50x0.4y0.6

watches. Find the maximum number of watches that can be produced on a budget of $20,000

if labor costs $100/unit and capital costs $200/unit. Use a CAS to sketch a contour plot of the function.

Roughly 3365 watches at the critical point (80,60)


A series of curves in the first quadrant, with the first starting near (2, 120), decreasing sharply to near (20, 20), and then decreasing slowly to (120, 5). The next curve starts near (10, 120), decreases sharply to near (40, 40), and then decreases slowly to (120, 20). The next curve starts near (20, 120), decreases sharply to near (60, 60), and then decreases slowly to (120, 40). The next curve starts near (40, 120), decreases to near (80, 80), and then decreases a little slowly to (120, 60). The last curve starts near (60, 120) and decreases rather evenly through (100, 100) to (120, 90).

Chapter Review Exercises

For the following exercises, determine whether the statement is true or false. Justify your answer with a proof or a counterexample.

The domain of f(x,y)=x3sin−1(y)

is x=

all real numbers, and πyπ.

If the function f(x,y)

is continuous everywhere, then fxy=fyx.

True, by Clairaut’s theorem

The linear approximation to the function of f(x,y)=5x2+xtan(y)

at (2,π)

is given by L(x,y)=22+21(x2)+(yπ).

(34,916)

is a critical point of g(x,y)=4x32x2y+y22.

False

For the following exercises, sketch the function in one graph and, in a second, sketch several level curves.

f(x,y)=e(x2+2y2).
f(x,y)=x+4y2.

Answers may vary

For the following exercises, evaluate the following limits, if they exist. If they do not exist, prove it.

lim(x,y)(1,1)4xyx2y2
lim(x,y)(0,0)4xyx2y2

Does not exist

For the following exercises, find the largest interval of continuity for the function.

f(x,y)=x3sin−1(y)
g(x,y)=ln(4x2y2)

Continuous at all points on the x,y-plane,

except where x2+y2>4.

For the following exercises, find all first partial derivatives.

f(x,y)=x2y2
u(x,y)=x43xy+1,x=2t,y=t3
ux=4x33y, uy=−3x, ut=2, ut=3t2, ut=8x36y9xt2

For the following exercises, find all second partial derivatives.

g(t,x)=3t2sin(x+t)
h(x,y,z)=x3e2yz
hxx(x,y,z)=6xe2yz, hxy(x,y,z)=6x2e2yz, hxz(x,y,z)=3x2e2yz2, hyx(x,y,z)=6x2e2yz, hyy(x,y,z)=4x3e2yz, hyz(x,y,z)=2x3e2yz2, hzx(x,y,z)=3x2e2yz2, hzy(x,y,z)=2x3e2yz2, hzz(x,y,z)=2x3e2yz3

For the following exercises, find the equation of the tangent plane to the specified surface at the given point.

z=x32y2+y1

at point (1,1,−1)

3z3=ex+2y

at point (0,1,3)

z=19x29y+299

Approximate f(x,y)=ex2+y

at (0.1,9.1).

Write down your linear approximation function L(x,y).

How accurate is the approximation to the exact answer, rounded to four digits?

Find the differential dz

of h(x,y)=4x2+2xy3y

and approximate Δz

at the point (1,−2).

Let Δx=0.1

and Δy=0.01.

dz=4dxdy, dz(0.1,0.01)=0.39, Δz=0.432

Find the directional derivative of f(x,y)=x2+6xyy2

in the direction v=i+4j.

Find the maximal directional derivative magnitude and direction for the function f(x,y)=x3+2xycos(πy)

at point (3,0).

385,27,6

For the following exercises, find the gradient.

c(x,t)=e(tx)2+3cos(t)
f(x,y)=x+y2xy
f(x,y)=x+2y22x2yi+(1x1xy2)j

For the following exercises, find and classify the critical points.

z=x3xy+y21

For the following exercises, use Lagrange multipliers to find the maximum and minimum values for the functions with the given constraints.

f(x,y)=x2y,x2+y2=4

maximum: 1633,

minimum: 1633

f(x,y)=x2y2,x+6y=4

A machinist is constructing a right circular cone out of a block of aluminum. The machine gives an error of 5%

in height and 2%

in radius. Find the maximum error in the volume of the cone if the machinist creates a cone of height 6

cm and radius 2

cm.

2.3228

cm3

A trash compactor is in the shape of a cuboid. Assume the trash compactor is filled with incompressible liquid. The length and width are decreasing at rates of 2

ft/sec and 3

ft/sec, respectively. Find the rate at which the liquid level is rising when the length is 14

ft, the width is 10

ft, and the height is 4

ft.

Glossary

constraint
an inequality or equation involving one or more variables that is used in an optimization problem; the constraint enforces a limit on the possible solutions for the problem
Lagrange multiplier
the constant (or constants) used in the method of Lagrange multipliers; in the case of one constant, it is represented by the variable λ
method of Lagrange multipliers
a method of solving an optimization problem subject to one or more constraints
objective function
the function that is to be maximized or minimized in an optimization problem
optimization problem
calculation of a maximum or minimum value of a function of several variables, often using Lagrange multipliers

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

You can also download for free at http://cnx.org/contents/9a1df55a-b167-4736-b5ad-15d996704270@5.1

Attribution: