Lagrange Multipliers

Similar documents
Functions of Several Variables, Limits and Derivatives

Arc Length, Curvature and The TNB Frame

Functions of Several Variables

Functions of Several Variables

14.5 Directional Derivatives and the Gradient Vector

Mat 241 Homework Set 7 Due Professor David Schultz

we wish to minimize this function; to make life easier, we may minimize

Lagrange multipliers October 2013

Parametric Surfaces and Surface Area

Lagrange multipliers 14.8

Equation of tangent plane: for explicitly defined surfaces

13.1. Functions of Several Variables. Introduction to Functions of Several Variables. Functions of Several Variables. Objectives. Example 1 Solution

7/26/2018 SECOND HOURLY PRACTICE V Maths 21a, O.Knill, Summer 2018

(c) 0 (d) (a) 27 (b) (e) x 2 3x2

13.7 LAGRANGE MULTIPLIER METHOD

Outcomes List for Math Multivariable Calculus (9 th edition of text) Spring

What you will learn today

Optimizations and Lagrange Multiplier Method

Section 4: Extreme Values & Lagrange Multipliers.

Calculus III. 1 Getting started - the basics

3.3 Optimizing Functions of Several Variables 3.4 Lagrange Multipliers

Calculus III. Math 233 Spring In-term exam April 11th. Suggested solutions

13.6 Directional derivatives,

Winter 2012 Math 255 Section 006. Problem Set 7

Chapter 5 Partial Differentiation

Functions of Several Variables

Quiz 6 Practice Problems

ID: Find all the local maxima, local minima, and saddle points of the function.

7/28/2011 SECOND HOURLY PRACTICE V Maths 21a, O.Knill, Summer 2011

3.6 Directional Derivatives and the Gradient Vector

Lesson 4: Gradient Vectors, Level Curves, Maximums/Minimums/Saddle Points

Introduction to Functions of Several Variables

MATH2111 Higher Several Variable Calculus Lagrange Multipliers

REVIEW I MATH 254 Calculus IV. Exam I (Friday, April 29) will cover sections

LECTURE 18 - OPTIMIZATION

Multivariate Calculus Review Problems for Examination Two

PURE MATHEMATICS 212 Multivariable Calculus CONTENTS. Page. 1. Assignment Summary... i 2. Summary Assignments...2

Math 113 Calculus III Final Exam Practice Problems Spring 2003

Optimization problems with constraints - the method of Lagrange multipliers

A small review, Second Midterm, Calculus 3, Prof. Montero 3450: , Fall 2008

An Introduction to Maple and Maplets for Calculus

16.6 Parametric Surfaces and Their Areas

Math 210, Exam 2, Spring 2010 Problem 1 Solution

Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives

Math 21a Homework 22 Solutions Spring, 2014

Daily WeBWorK, #1. This means the two planes normal vectors must be multiples of each other.

Practice problems from old exams for math 233 William H. Meeks III December 21, 2009

f(x) = C. (1) f(x,y) = C implies that x 2 + y 2 = C 0. (2)

Math 326 Assignment 3. Due Wednesday, October 17, 2012.

11.2 RECTANGULAR COORDINATES IN THREE DIMENSIONS

11.5 Cylinders and cylindrical coordinates

In other words, we want to find the domain points that yield the maximum or minimum values (extrema) of the function.

January 30, 2019 LECTURE 2: FUNCTIONS OF SEVERAL VARIABLES.

Worksheet 3.4: Triple Integrals in Cylindrical Coordinates. Warm-Up: Cylindrical Volume Element d V

Equation of tangent plane: for implicitly defined surfaces section 12.9

Math 21a Tangent Lines and Planes Fall, What do we know about the gradient f? Tangent Lines to Curves in the Plane.

Math 326A Exercise 4. Due Wednesday, October 24, 2012.

Constrained Optimization and Lagrange Multipliers

x 6 + λ 2 x 6 = for the curve y = 1 2 x3 gives f(1, 1 2 ) = λ actually has another solution besides λ = 1 2 = However, the equation λ

Multivariate Calculus: Review Problems for Examination Two

11/1/2017 Second Hourly Practice 11 Math 21a, Fall Name:

Inverse and Implicit functions

Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers

Math 213 Exam 2. Each question is followed by a space to write your answer. Please write your answer neatly in the space provided.

11/6/2012 SECOND HOURLY Math 21a, Fall Name:

Practice with Parameterizing Curves and Surfaces. (Part 1)

form are graphed in Cartesian coordinates, and are graphed in Cartesian coordinates.

You may know these...

EXTRA-CREDIT PROBLEMS ON SURFACES, MULTIVARIABLE FUNCTIONS AND PARTIAL DERIVATIVES

Lab 2B Parametrizing Surfaces Math 2374 University of Minnesota Questions to:

7/20/2017 SECOND HOURLY PRACTICE VI Maths 21a, O.Knill, Summer 2017

Second Midterm Exam Math 212 Fall 2010

Math 209 (Fall 2007) Calculus III. Solution #5. 1. Find the minimum and maximum values of the following functions f under the given constraints:

Math 253, Section 102, Fall 2006 Practice Final Solutions

Curve and Surface Basics

Find the specific function values. Complete parts (a) through (d) below. f (x,y,z) = x y y 2 + z = (Simplify your answer.) ID: 14.1.

Worksheet 2.7: Critical Points, Local Extrema, and the Second Derivative Test

f xx (x, y) = 6 + 6x f xy (x, y) = 0 f yy (x, y) = y In general, the quantity that we re interested in is

MATH 209, Lab 5. Richard M. Slevinsky

d f(g(t), h(t)) = x dt + f ( y dt = 0. Notice that we can rewrite the relationship on the left hand side of the equality using the dot product: ( f

Lagrange Multipliers and Problem Formulation

14.6 Directional Derivatives and the Gradient Vector

12.7 Tangent Planes and Normal Lines

First we consider how to parameterize a surface (similar to a parameterized curve for line integrals). Surfaces will need two parameters.

Mathematically, the path or the trajectory of a particle moving in space in described by a function of time.

Functions of Several Variables

. Tutorial Class V 3-10/10/2012 First Order Partial Derivatives;...

Exam 2 Preparation Math 2080 (Spring 2011) Exam 2: Thursday, May 12.

HOW CAN I USE MAPLE TO HELP MY STUDENTS LEARN MULTIVARIATE CALCULUS?

COMPUTER AIDED ENGINEERING DESIGN (BFF2612)

SPECIAL TECHNIQUES-II

MA 243 Calculus III Fall Assignment 1. Reading assignments are found in James Stewart s Calculus (Early Transcendentals)

MATH. 2153, Spring 16, MWF 12:40 p.m. QUIZ 1 January 25, 2016 PRINT NAME A. Derdzinski Show all work. No calculators. The problem is worth 10 points.

PURE MATHEMATICS 212 Multivariable Calculus CONTENTS. Page. 1. Assignment Summary... i 2. Introduction Timetable Assignments...

1. Suppose that the equation F (x, y, z) = 0 implicitly defines each of the three variables x, y, and z as functions of the other two:

MEI Desmos Tasks for AS Pure

Curves: We always parameterize a curve with a single variable, for example r(t) =

16.6. Parametric Surfaces. Parametric Surfaces. Parametric Surfaces. Vector Calculus. Parametric Surfaces and Their Areas

Principles of Linear Algebra With Maple TM The Newton Raphson Method

1.6 Quadric Surfaces Brief review of Conic Sections 74 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE. Figure 1.18: Parabola y = 2x 2

Transcription:

Lagrange Multipliers Introduction and Goals: The goal of this lab is to become more familiar with the process and workings of Lagrange multipliers. This lab is designed more to help you understand the reason why the Lagrange multiplier method works than it is to use Maple to solve more difficult problems. Before You Start: Make sure that you read and understand the mathematics from the corresponding sections in your textbook. Textbook Correspondence: Stewart 5 th Edition: 5.8. Stewart 5 th Edition Early Transcendentals: 4.8. Thomas Calculus 0 th Edition Early Transcendentals:.8. Maple Commands and Packages Used: Packages: plots, VectorCaclulus. Commands: plotd, solve, evalf, Del, implicitplot, implicitplotd, contourplot, display, spacecurve. History & Biographies: Maple Commands: As you know from the problem sets in your text, Lagrange multipliers can be rather tricky to solve. You usually have between three and five variables to solve for and at times you need to do some fancy footwork to obtain all of the possibilities. This can be very hard for us lowly humans to do but it can be even more difficult for a computer. The fancy footwork that we sometimes need to do often involves manipulating the equations in a non-algorithmic or even intuitive way. Intuition is one thing we have not been able to program into a computer, yet. So sometimes Maple will be able to solve the equations we get in the Lagrange multiplier process, sometimes it will get a few solutions and other times it will fail miserably in obtaining the solutions. As a result, we can use Maple to help solve these equations and we can use the graphics that Maple has to get a better understanding of how and why the process works. This lab is devoted more to using Maple to help visualize the Lagrange multiplier process than it is to using Maple to

solve Lagrange multiplier problems. Before we get started we need to load two packages into Maple, plots and VectorCalculus. > with(plots): Warning, the name changecoords has been redefined > with(vectorcalculus): Warning, the assigned names <,> and < > now have a global binding Warning, these protected names have been redefined and unprotected: *, +,., Vector, diff, int, limit, series Let s start with a relatively simple example. Maximize the function f ( x, y) = 4x + 6y under the constraint x + y =. If we approach this from a purely algorithmic point of view we define the function to be maximized and the constraint. > f:=(x,y)->4*x+6*y; f := ( x, y ) VectorCalculus:-`+` ( VectorCalculus:-`*` ( 4, x ), VectorCalculus:-`*` ( 6, y )) > g:=(x,y)->x^+y^; g := ( x, y ) VectorCalculus:-`+` ( x, y ) We then find their gradient vectors. > df:=del(f(x,y),[x,y]); df := 4 e + 6 e x y > dg:=del(g(x,y),[x,y]); dg := x e + x y e y Solve the equations for x, y and λ. f = λ g and x + y =, simultaneously to get the possibilities > solve({df[]=lambda*dg[],df[]=lambda*dg[],g(x,y)=}, {x,y,lambda}); { λ =, x =, y = }, { y = -, x = -, λ = -} Finally, we take each of the solutions and evaluate them in the function f. > f(,); > f(-,-); 6-6

Hence the maximum is 6 at the point (,) and the minimum is 6 at the point (, ). Our conclusion relies heavily on the assumption that the solve command produced all of the possible solutions to the equations. In this example it has but in general this is a very big assumption. We will see an example later where the solve command gives us only a few of the possible answers. Before we move onto another example lets look at this example a little closer. As you know from your reading the reason that we solve the equation f = λ g along with the constraint x + y =, is to force the constraint to be tangent to a level curve of the function we are maximizing or minimizing. We will take two views of this situation. First we will graph the constraint with the contour map of the surface. > display(implicitplot(g(x,y)=,x=-4..4,y=-4..4), contourplot(f(x,y),x=-4..4,y=-4..4,contours=6)); Notice that the constraint, the circle, is tangent to a level curve of the function at two points, (,) and (, ). These are precisely the points that the solve command gave us above. Now we will look at this same situation by projecting the constraint on the surface. To do this we need to graph the surface and a space curve. The only difficulty is that to graph the space curve we need to parameterize the constraint equation. In some cases this is difficult but here it is a snap since the constraint is a circle centered at the origin with radius. So the parameterization of this curve is x = y = cos sin ( θ ) ( θ ) To display both the curve and surface we use the display command with the plotd and spacecurve commands. > display(plotd(f(x,y),x=-4..4,y=-4..4), spacecurve([sqrt()*cos(t),sqrt()*sin(t), f(sqrt()*cos(t),sqrt()*sin(t))],t=0..*pi,color=black, thickness=),axes=boxed);

Think of yourself as being in the mountains hiking on a trail that follows the constraint curve and the surface is the side of the mountain. As you hike the trail you will either gain altitude or lose altitude. When you are approaching the point of highest altitude, the maximum, you start walking in a direction that does not gain or lose any altitude. If you were still gaining altitude you would not be close to the maximum. If you are walking in a direction that is not gaining or losing altitude then you would be following a contour, since contour lines are by definition line on a surface that do not gain or lose altitude. If you are waking in a direction that follows a contour at the maximum altitude then your path must be tangent to a contour at that point. The same holds for minimums. If you adjust the view of the above plot to that you are looking down the z-axis and then press the button that displays the contour on the surface you get an image similar to the one that we generated above.

Let s look at another example. Find the maximum and minimum of 4 4 f ( x, y) = x + y under the constraint x + y =. First define the functions for the surface and constraint. > f:=(x,y)->x^+y^; f := ( x, y ) VectorCalculus:-`+` ( x, y ) > g:=(x,y)->x^4+y^4; g := ( x, y ) VectorCalculus:-`+` ( x 4, y 4 ) Find their gradients > df:=del(f(x,y),[x,y]); df := x e + x y e y > dg:=del(g(x,y),[x,y]); dg := 4 x e + 4 y e x y and solve the system of equations. > solve({df[]=lambda*dg[],df[]=lambda*dg[],g(x,y)=}, {x,y,lambda}); { y = 0, x =, λ = }, { y = 0, x = -, λ = }, { λ = -, y = 0, x = RootOf (_Z + ) }, { x = 0, λ =, y = }, { x = 0, λ =, y = -}, { λ = -, x = 0, y = RootOf (_Z + ) }, { y = RootOf ( _Z 4 ), x = RootOf ( _Z 4 ), λ = RootOf ( _Z 4 ) }, { y = RootOf ( _Z 4 ), λ = RootOf ( _Z 4 ), x = RootOf ( _Z 4 ) } > evalf(%); { y = 0., x =., λ = 0.5000000000 }, { y = 0., λ = 0.5000000000, x = -.}, { y = 0., λ = -0.5000000000, x =. I }, { λ = 0.5000000000, x = 0., y =. }, { y = -., λ = 0.5000000000, x = 0. }, { y =. I, λ = -0.5000000000, x = 0. }, { λ = 0.70706786, y = 0.840896455, x = 0.840896455 }, { λ = 0.70706786, y = 0.840896455, x = -0.840896455} Note that we get 8 solutions, two of which are imaginary. So we have six real solutions in all. As we will see later, we are missing a couple. Let s take a look at the situation graphically. The constraint looks like the following, > implicitplot(g(x,y)=,x=-..,y=-..);

The surface of interest is as below. > plotd(f(x,y),x=-.5...5,y=-.5...5,axes=boxed); To view the constraint on the surface we can either parameterize the curve, which we will do later, or we can turn the constraint curve into a cylinder and examine the intersection of the surface and cylinder and surface. > display(plotd(f(x,y),x=-.5...5,y=-.5...5,axes=boxed), implicitplotd(g(x,y)=,x=-..,y=-..,z=0..4));

As we can see from the graph there seems to be maxima at the corners of the constraint and minima at the edges. If we look straight down the z-axis and press the contour button we see that the constraint and the contours are tangent at the corners and the edges. This gives a total of 8 real solutions, so we are missing two from our solve command above. First note that the decimal number 0.840896455 in the solve output is actually. 4 > evalf(/^(/4)); 0.840896455

So our solve command produced ( 0, ± ), (,0) ( 4,± 4 ). ± and ( 4, 4 ) ±. The missing points are > f(,0); > f(-,0); > f(0,); > f(0,-); > f(/^(/4),/^(/4)); > f(-/^(/4),/^(/4)); > f(/^(/4),-/^(/4)); > f(-/^(/4),-/^(/4)); So our maximum is at all four corners and our minimum is at each of the four edges. If we wanted to create an image similar to the one from the last example, that is, with the constraint curve plotted on the surface, we need to first parameterize the restraint 4 4 curve. Since the constraint is x + y = the obvious parameterization is x = y = cos sin ( θ ) ( θ ) Unfortunately, these do not give the entire curve, they simply produce one corner. For example, > plot([sqrt(cos(t)),sqrt(sin(t)),t=0..*pi]);

We can however use four parameterizations to construct the entire constraint. For example, > p:=plot([sqrt(cos(t)),sqrt(sin(t)),t=0..*pi]): > p:=plot([-sqrt(cos(t)),sqrt(sin(t)),t=0..*pi]): > p:=plot([-sqrt(cos(t)),-sqrt(sin(t)),t=0..*pi]): > p4:=plot([sqrt(cos(t)),-sqrt(sin(t)),t=0..*pi]): > display(p,p,p,p4); To project this onto the surface we simply create space curves from each component where the z value is on the surface. > p5:=plotd(x^+y^,x=-.5...5,y=-.5...5):

> p6:=spacecurve([sqrt(cos(t)),sqrt(sin(t)),subs({ x=sqrt(cos(t)),y=sqrt(sin(t))},x^+y^)],t=0..*pi, color=black,numpoints=500,thickness=): > p7:=spacecurve([-sqrt(cos(t)),sqrt(sin(t)),subs({ x=sqrt(cos(t)),y=sqrt(sin(t))},x^+y^)],t=0..*pi, color=black,numpoints=500,thickness=): > p8:=spacecurve([sqrt(cos(t)),-sqrt(sin(t)),subs({ x=sqrt(cos(t)),y=sqrt(sin(t))},x^+y^)],t=0..*pi, color=black,numpoints=500,thickness=): > p9:=spacecurve([-sqrt(cos(t)),-sqrt(sin(t)),subs({ x=sqrt(cos(t)),y=sqrt(sin(t))},x^+y^)],t=0..*pi, color=black,numpoints=500,thickness=): > display(p5,p6,p7,p8,p9,axes=boxed); One further thing we can do for a better visual effect is to also place the constraint curve on the xy-plane. Again we can do this with space curves. > p:=spacecurve([sqrt(cos(t)),sqrt(sin(t)),0],t=0..*pi, color=black,numpoints=500,thickness=): > p:=spacecurve([-sqrt(cos(t)),sqrt(sin(t)),0],t=0..*pi, color=black,numpoints=500,thickness=): > p:=spacecurve([sqrt(cos(t)),-sqrt(sin(t)),0],t=0..*pi, color=black,numpoints=500,thickness=): > p4:=spacecurve([-sqrt(cos(t)),-sqrt(sin(t)),0],t=0..*pi, color=black,numpoints=500,thickness=): > display(p5,p6,p7,p8,p9,p,p,p,p4,axes=boxed);

Let s move up one dimension now. Say we wanted to find the maxima and minima of the function f ( x, y) = x y z under the constraint of the unit sphere, that is x + y + z =. Unfortunately, we can no longer graph the surface since it is a function of three variables. As with the functions of two variables we define the functions and take their gradients. > f:=(x,y,z)->x^*y^*z^; f := ( x, y, z ) VectorCalculus:-`*` ( VectorCalculus:-`*` ( x, y ), z ) > g:=(x,y,z)->x^+y^+z^; g := ( x, y, z ) VectorCalculus:-`+` ( VectorCalculus:-`+` ( x, y ), z ) > df:=del(f(x,y,z),[x,y,z]); df := x y z e + x y z e + x y z e x y z > dg:=del(g(x,y,z),[x,y,z]); dg := x e + y e + z e x y z Solving the system of equations gives, > solve({df[]=lambda*dg[],df[]=lambda*dg[], df[]=lambda*dg[],g(x,y,z)=},{x,y,z,lambda});

{ x = 0, λ = 0, y = RootOf (_Z + z ), z = z }, { y = 0, λ = 0, z = z, x = RootOf (_Z + z )}, { z = 0, λ = 0, y = y, x = RootOf (_Z + y )}, { z = RootOf ( _Z ), x = RootOf ( _Z ), y = RootOf ( _Z ), λ = } 9, { z = RootOf ( _Z ), y = RootOf ( _Z ), x = RootOf ( _Z ), λ = } 9, { z = RootOf ( _Z ), y = RootOf ( _Z ), x = RootOf ( _Z ), λ = } 9, { z = RootOf ( _Z ), x = RootOf ( _Z ), y = RootOf ( _Z ), λ = } 9 > evalf(%); { y = RootOf (_Z + z ), z = z, λ = 0., x = 0. }, { y = 0., z = z, x = RootOf (_Z + z ), λ = 0. }, { z = 0., y = y, x = RootOf (_Z + y ), λ = 0. }, { y = 0.5775069, λ = 0., z = 0.5775069, x = 0.5775069 }, { λ = 0., z = 0.5775069, y = -0.5775069, x = -0.5775069}, { λ = 0., z = 0.5775069, y = -0.5775069, x = 0.5775069 }, { y = 0.5775069, λ = 0., z = 0.5775069, x = -0.5775069} > evalf(/sqrt()); 0.5775069 As you can see, there seems to be 4 real solutions, ( ±,, ) and (,, ) ±, each occurring when λ =. Maple also outputs some unreadable solutions for 9 λ = 0. Solve ±,, and the system by hand, you should obtain four more solutions, ( ) ( ),, λ =. You should also note that when = 0 ±, for 9 λ we may have any one or two (but not three) coordinates equaling 0. This produces the following set of possibilities: ( 0, y, z), ( x, 0, z), ( x, y,0) where the x, y and z must satisfy the constraint. Again Maple does not produce all of the possibilities. From this it is easy to see that the minimum is 0 and the maximum is 7. Although we cannot graph the function f we can graph its level surfaces along with the constraint. As we saw in the two-dimensional case the constraint should be tangent to the level surface at the maximum. To graph the level surface of f at the maximum we graph the implicit equation ( x, y, z) = 7 f. > p0:=implicitplotd(f(x,y,z)=/7,x=-..,y=-..,z=-..): > p:=implicitplotd(g(x,y,z)=,x=-..,y=-..,z=-..): > display(p0,p);

Notice that the level surface and the constraint are tangent at eight points on the surface,, ±, ± ±. Now consider the following image, corresponding to the points ( ) obtained from graphing the constraint along with the level surface ( x, y, z) = f. > p:=implicitplotd(f(x,y,z)=/,x=-..,y=-..,z=-..,grid=[0,0,0]): > display(p,p);

Notice that there are no points of intersection between the level surface and the constraint. Hence, the function never attains the value of ½on the constraint and thus ½ can not be a maximum or a minimum. Now consider the level surface f ( x, y, z) = 000 graphed along with the constraint. > p:=implicitplotd(f(x,y,z)=/000,x=-..,y=-..,z=-..,grid=[0,0,0]): > display(p,p); Since there is an intersection between the level surface and the constraint the function does attain the value /000 over the constraint. Hence the graph is telling us that the maximum of the function over the constraint is at least /000 and it is probably higher. Thinking of this dynamically, if we consider level surfaces starting at 0 and increasing, as long as the constraint intersects the level surface there are points on the constraint in which the function attains the surface value. We keep increasing the value until the moment where the constraint and level surface no longer intersect. At this moment, the level value is the maximum of the function on the constraint, and consequently the level surface and constraint are tangent. Unfortunately, the graphical image of the minimum of the function over the constraint is not as satisfying. Recall that the minimum of this function over the constraint is 0. This is, of course, the absolute minimum of the function as well. If we were to graph

( x, y, z) = 0 f on Maple we would get an empty plot. The actual image of this level surface would be the three coordinate planes. There is, of course, an intersection between the constraint and the three coordinate planes. Hence the function does attain its absolute minimum at an infinite number of points on the constraint even though the level surface is not tangent to the constraint. Exercises:. The following sequence of exercises are to find and analyze the maximum and minimum of the function f ( x, y) = sin ( x y) on the constraint x + y =. a. Use Maple to define the functions, find their gradients and solve the system of equations. How many real solutions did you get for the system? b. Using the real solutions to the system determine the absolute maximum and minimum of the function over the constraint. c. Create the following graphs: i. The surface along with the constraint, viewed on the surface. ii. The constraint with a contour plot of the surface. iii. The height of the surface on the constraint curve as a function of the curve parameter t in the range [ 0,π ]. From the graphs, how many real solutions should there be to the system? If there are any missing, find them. d. Using the new set of real solutions to the system determine the absolute maximum and minimum of the function over the constraint.. The following sequence of exercises are to find and analyze the maximum and minimum of the function f ( x, y) = sin ( x y) on the constraint x + y =. a. Use Maple to define the functions, find their gradients and solve the system of equations. How many real solutions did you get for the system?

b. Using the real solutions to the system determine the absolute maximum and minimum of the function over the constraint. c. Create the following graphs: i. The surface along with the constraint, viewed on the surface. ii. The constraint with a contour plot of the surface. iii. The height of the surface on the constraint curve as a function of the curve parameter t in the range [ 0,π ]. From the graphs, how many real solutions should there be to the system? If there are any missing, find them. d. Using the new set of real solutions to the system determine the absolute maximum and minimum of the function over the constraint. e. What differences are there in your analysis of this problem as opposed to the previous exercise? Does there appear to be a discrepancy in the geometry behind the Lagrange multiplier method? Why or why not?. The following sequence of exercises are to find and analyze the maximum and minimum of the function f ( x, y, z) = x + x z + y z on the unit sphere centered at the origin. a. Use Maple to define the functions, find their gradients and solve the system of equations. How many real solutions did you get for the system? b. Solve the system of equations by hand. Did you get any new points of interest? Did you get any new values for the multiplier? c. Using the solutions to the system determine the absolute maximum and minimum of the function over the constraint. d. Graph the level surface at the maximum along with the constraint. Does your graph correspond with the solutions you derived? e. Graph the level surface at the minimum along with the constraint. Does your graph correspond with the solutions you derived? 4. The following sequence of exercises are to find and analyze the maximum and minimum of the function f ( x, y, z) = x + y z on the unit sphere centered at the origin. a. Use Maple to define the functions, find their gradients and solve the system of equations. How many real solutions did you get for the system? b. Solve the system of equations by hand. Did you get any new points of interest? Did you get any new values for the multiplier? c. Using the solutions to the system determine the absolute maximum and minimum of the function over the constraint. d. Graph the level surface at the maximum along with the constraint. Does your graph correspond with the solutions you derived? e. Graph the level surface at the minimum along with the constraint. Does your graph correspond with the solutions you derived? 5. The following sequence of exercises are to find and analyze the maximum and minimum of the function f ( x, y, z) = x + y z on the ellipsoid x + y + z =. a. Use Maple to define the functions, find their gradients and solve the system of equations. How many real solutions did you get for the system?

b. Solve the system of equations by hand. Did you get any new points of interest? Did you get any new values for the multiplier? c. Using the solutions to the system determine the absolute maximum and minimum of the function over the constraint. d. Graph the level surface at the maximum along with the constraint. Does your graph correspond with the solutions you derived? e. Graph the level surface at the minimum along with the constraint. Does your graph correspond with the solutions you derived? 6. Use Maple to help you find the absolute maximum and minimum of the function f ( x, y, z) = x + y z on the plane x + y + z = 0. Is there a major difference between this exercise and the ones above? If so, how?