Constrained extrema of two variables functions

Similar documents
Absolute extrema of two variables functions

Lagrangian Multipliers

Constrained Optimization and Lagrange Multipliers

Lagrangian Multipliers

5 Day 5: Maxima and minima for n variables.

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

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

Section 4: Extreme Values & Lagrange Multipliers.

1. Show that the rectangle of maximum area that has a given perimeter p is a square.

Lagrange multipliers October 2013

MATH Lagrange multipliers in 3 variables Fall 2016

Lagrange multipliers 14.8

LECTURE 18 - OPTIMIZATION

Bounded, Closed, and Compact Sets

Constrained Optimization

Math 21a Homework 22 Solutions Spring, 2014

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

Math 233. Lagrange Multipliers Basics

Second Midterm Exam Math 212 Fall 2010

Lagrange Multipliers

MATH 19520/51 Class 10

Inverse and Implicit functions

MATH2111 Higher Several Variable Calculus Lagrange Multipliers

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 213 Exam 2. Each question is followed by a space to write your answer. Please write your answer neatly in the space provided.

Lecture 2 Optimization with equality constraints

Machine Learning for Signal Processing Lecture 4: Optimization

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

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

3.3 Optimizing Functions of Several Variables 3.4 Lagrange Multipliers

Winter 2012 Math 255 Section 006. Problem Set 7

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

Lagrange multipliers. Contents. Introduction. From Wikipedia, the free encyclopedia

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

Math 113 Calculus III Final Exam Practice Problems Spring 2003

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

Math 233. Lagrange Multipliers Basics

MAC2313 Test 3 A E g(x, y, z) dy dx dz

Name: Class: Date: 1. Use Lagrange multipliers to find the maximum and minimum values of the function subject to the given constraint.

Physics 235 Chapter 6. Chapter 6 Some Methods in the Calculus of Variations

[Anton, pp , pp ] & [Bourne, pp ]

Instructions and information

Lecture 2 - Introduction to Polytopes

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

Optimization problems with constraints - the method of Lagrange multipliers

21-256: Lagrange multipliers

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:

MATH 19520/51 Class 6

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 λ

Mat 241 Homework Set 7 Due Professor David Schultz

Math 126 Winter CHECK that your exam contains 8 problems.

Lagrange Multipliers. Joseph Louis Lagrange was born in Turin, Italy in Beginning

Math 241, Final Exam. 12/11/12.

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

Direction Fields; Euler s Method

Tangent Planes and Linear Approximations

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

Solution 2. ((3)(1) (2)(1), (4 3), (4)(2) (3)(3)) = (1, 1, 1) D u (f) = (6x + 2yz, 2y + 2xz, 2xy) (0,1,1) = = 4 14

EC5555 Economics Masters Refresher Course in Mathematics September Lecture 6 Optimization with equality constraints Francesco Feri

NAME: Section # SSN: X X X X

The following information is for reviewing the material since Exam 3:

R f da (where da denotes the differential of area dxdy (or dydx)

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

Applied Lagrange Duality for Constrained Optimization

Computational Methods. Constrained Optimization

Surfaces and Integral Curves

Introduction to optimization

MA EXAM 2 Form 01 April 4, You must use a #2 pencil on the mark sense sheet (answer sheet).

Multivariate Calculus Review Problems for Examination Two

14.5 Directional Derivatives and the Gradient Vector

Graphs of Exponential

Lecture 2 September 3

MATH 2400, Analytic Geometry and Calculus 3

CS231A. Review for Problem Set 1. Saumitro Dasgupta

Lagrange Multipliers

Math 253, Section 102, Fall 2006 Practice Final Solutions

14.4: Tangent Planes and Linear Approximations

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

30. Constrained Optimization

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

HOMEWORK ASSIGNMENT #4, MATH 253

SECTION 1.2 (e-book 2.3) Functions: Graphs & Properties

Demo 1: KKT conditions with inequality constraints

Chapter 3 Numerical Methods

Solution of final examination

Grad operator, triple and line integrals. Notice: this material must not be used as a substitute for attending the lectures

What you will learn today

Introduction to Functions of Several Variables

Continuity and Tangent Lines for functions of two variables

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.

Math 210, Exam 2, Spring 2010 Problem 1 Solution

1 Linear Programming. 1.1 Optimizion problems and convex polytopes 1 LINEAR PROGRAMMING

1 Vector Functions and Space Curves

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

POLYHEDRAL GEOMETRY. Convex functions and sets. Mathematical Programming Niels Lauritzen Recall that a subset C R n is convex if

Numerical Optimization

Chapter 5 Partial Differentiation

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

Calculus III Meets the Final

= w. w u. u ; u + w. x x. z z. y y. v + w. . Remark. The formula stated above is very important in the theory of. surface integral.

Transcription:

Constrained extrema of two variables functions Apellidos, Nombre: Departamento: Centro: Alicia Herrero Debón aherrero@mat.upv.es) Departamento de Matemática Aplicada Instituto de Matemática Multidisciplnar Escuela Técnica Superior de Ingeniería del Diseño Universitat Politècnica de València

1. Abstract and objectives In this paper we work with functions of two variables and introduce the concept of constrained extrema for this kind of functions. That is, we calculate the maximum and minumum value of a function of two variables under some extra conditions constraints). These extreme values are not necessarily the free extreme values of the function, they depend on the conditions considered. This fact represents a difference between calculating free or constrained extreme values of a two variables function. Once studied this paper the student will be able to determine the constrained extrema of a function of two variables under some extra conditions. 2. Introduction For many problems it is important to know in which points a function reaches the biggest or smallest value. But sometimes we have more conditions to be satisfaid and we can be interested in knowing where the function has the biggest or the smallest value between the points that satisfy some equality. For example, it can be useful to know which point of an sphere is nearest to a given point in the space or which is the distance between a point and a line. First of all, we recall that for a function the concept of maxima and minima values consists on those points for which the value of the function is bigger or smaller than any other point near them. But may be those points do not satisfy the constraint equations we are considering. Then, the idea of maxima and minima of the function under some conditions is different from the idea of relative or free) maxima and minima of the function. When we talk about constrained extrema of a function under one or more conditions, we are talking about those points that satisfy all the conditions and for which the value of the function is bigger or smaller than for any other point satisfying the conditions considered. So, our problem consists on determine the maximum and minimum value of a function between the points that are solution of the equality constraints considered in the domain of definition of the function. That is to obtain the constrained extrema of fx, y). Then, we are going to study how to obtain these extrema. 1

3. Constrained extrema of a function of two variables First of all, we recall that the maxima and minima values of a function are those points for which the value of the function is bigger or smaller than any other point near them. That is, Definition 1 A real function fx, y) has a relative maximum at the point x 0, y 0 ) if there exists δ > 0 such that x, y) R 2 with x, y) x 0, y 0 ) < δ it is satisfied that fx, y) fx 0, y 0 ) a relative minimum at the point x 0, y 0 ) if there exists δ > 0 such that x, y) R 2 with x, y) x 0, y 0 ) < δ it is satisfied that fx, y) fx 0, y 0 ) These extrema are also called free or local extrema of the function. These definitions are the same concepts of maximum and minumim value for a one variable function in R. However, sometimes problems of calculus of extrema of functions are subjected to some equality constraints. That is, the problem consists on determining the maximum and minimum value of a function fx, y) under some extra equality constraints in the domain of the function. In this case, we are talking about constrained extrema of fx, y). For example, the problem of finding the closest point to the origin on the line 2x + 3y = 6 is to minimize the function fx, y) = x 2 + y 2 where x, y) must satisfy the line equation. This idea of constrained extrema in one variable functions is reduced to calculate the value of the function at a point if the constraint is like x = a) or to calculate the intersection points between the constraints and the function and to compare which has the biggest or smallest value of the y coordinate if the constraints are of the form gx, y) = 0). For a function of two variables, the technique of working will be different depending on the condition. We are going to work with constraints given in the form gx, y) = 0. 2

3.1. Lagrange multipliers As we have said, the problem consists on determining the maximum and minimum value of a function fx, y) under an extra equality constraint in the domain of definition of the function given in the form gx, y) = 0. In this case we have two methods of working: Reduce the problem to a one variable problem of relative extrema or Use Lagrange multipliers The first method can be applied if the constraint allows to express one of the variables as a function of the other variable as we show in the following example. Example 1 Find the closest point to the origin on the line 2x + 3y = 6. Solution: Since the distance from x, y) to the origin is given by x 2 + y 2, the problem consists on minimizing this function, subject to 2x + 3y 6 = 0. Equivalently, the problem is to minimize the function fx, y) = x 2 +y 2 subject to 2x + 3y 6 = 0. In this case, from the constraint, y = 6 2x and define 3 gx) = f x, 6 2x ) ) 2 6 2x = x 2 + = 13x2 24x + 36. 3 3 9 The minimum of gx) will be the minimum searched. The problem has been reduced to a one variable calculus. The nullity of the first derivative of gx) give the equation g x) = 26x 24 9 = 0 x = 12 13 y = 18 ). 13 And, from the second derivative criterium, g x) = 26 > 0, this point is a 9 relative minimum. 12 Then, the point 13, 18 ) is the point of the line closest to the origin. 13 3

But, sometimes it is not possible to reduce the problem to calculation of maxima and minima in one variable functions. In those cases we need to use the second method: Lagrange multipliers method. This method is also valid even when the reduction is possible. In general, one has to maximize or minimize the function under the constraint gx, y) = 0. z = fx, y), The Lagrange multipliers method consists on: Step 1 Construct the Lagrangian function: Lx, y, λ) = fx, y) + λgx, y) where λ is called Lagrange multiplier. Step 2 Obtain the critical points of the Lagrangian function. The constrained maxima and minima of fx, y) are some of these critical points. Step 3 To determine which of the critical points obtained in Step 2 is the constrained maximum and minimum of fx, y) under the condition gx, y) = 0. To do this we can use geometrical methods that is, plotting the function and the constraint) or one of the following methods: Second differential method: Given the critical point x 0, y 0, λ 0 ), define the function L 0 x, y) = fx, y) + λ 0 gx, y) and calculate d 2 L 0 x 0, y 0 ) = 2 L 0 x 2 x 0, y 0 )dx 2 +2 2 L 0 x y x 0, y 0 )dx dy+ 2 L 0 y 2 x 0, y 0 )dy 2 under the consdition g g dx + dy = 0. x y If d 2 L 0 x 0, y 0 ) > 0 the point x 0, y 0, fx 0, y 0 )) is a constraint minimum and if d 2 L 0 x 0, y 0 ) < 0 the point x 0, y 0, fx 0, y 0 )) is a constraint maximum. In other cases we have to use another method. 4

Hessian method: Given the critical point x 0, y 0, λ 0 ), define the function L 0 x, y) = fx, y) + λ 0 gx, y) and calculate the Hessian 2 L 0 H L0 x 0, y 0 ) = x x 2 L 0 0, y 2 0 ) x y x 0, y 0 ) 2 L 0 y x x 2 L 0 0, y 0 ) y x 0, y 2 0 ) If H L0 x 0, y 0 ) > 0 and 2 L 0 x 2 x 0, y 0 ) > 0, we have that x 0, y 0, fx 0, y 0 )) is a constrained minimum of fx, y). If H L0 x 0, y 0 ) > 0 and 2 L 0 x 2 x 0, y 0 ) < 0, we have that x 0, y 0, fx 0, y 0 )) is a constrained maximum of fx, y). In othe cases we will have to use other methods. In the following examples we illustrate the method. Example 2 Find the closest point to the origin on the line 2x + 3y = 6. Solution: Since the distance from x, y) to the origin is given by x 2 + y 2, the problem consists on minimizing this function, or equivalently the function fx, y) = x 2 + y 2, subject to gx, y) = 2x + 3y 6 = 0. Using the Lagrange multipliers method, one has: Step 1 The Lagrangian function is Lx, y, λ) = fx, y) + λgx, y) = x 2 + y 2 + λ2x + 3y 6). Step 2 Obtain the critical points of Lx, y, λ). Solve the system: = 2x + 2λ = 0 x = 2y + 3λ = 0 y = 2x + 3y 6 = 0 λ The unique solution of this system is x 0, y 0, λ 0 ) = 12 13, 18 13, 6 468 ).

Step 3 The constrained minima of fx, y) is exactly the point found at 12 Step 2. Then, the point 13, 18 ) is the closest point of the line to the 13 origin. We can check that it is a minimum using, for example, the Hessian method. The function ) 6 L 0 x, y, = x 2 + y 2 6 2x + 3y 6) 468 468 has a Hessian of the form H L0 x, y) = 2 0 0 2 = 4 > 0. Moreover 2 L 0 x 2 = 2 > 0. Then, the point is a minimum. Example 3 Find the maximum and minimum value of fx, y) = 2x + y on the elipse 9x 2 + 16y 2 = 144. Solution: Using the Lagrange multipliers method, one has: Step 1 The Lagrangian function is Lx, y, λ) = 2x + y + λ9x 2 + 16y 2 144). Step 2 Obtain the critical points of Lx, y, λ). Solve the system: x = 2 + 18λx = 0 y = + 32λy = 0 λ = 9x2 + 16y 2 144 = 0 The solution of this system are the points x 0, y 0, λ 0 ) = and x 1, y 1, λ 1 ) = 32 17, 4 17, 17 ). 288 6 32 17, 4 17, 17 ) 288

Step 3 The constrained maximum and minimum of fx, y) will be some of the points found at Step 2. Using the second differential method, we define L 0 x, y) = 2x+y+λ 0 9x 2 +16y 2 144) = 2x+y 17 288 9x2 +16y 2 144) and calculate d 2 L 0 x 0, y 0 ) = 18λ 0 dx 2 + 32λ 0 dy 2 = 2λ 0 9dx 2 + 16dy 2 ). Clearly d 2 L 0 x 0, y 0 ) < 0 and then x 0, y 0 ) represents a constrained maximum. Analogously, for x 1, y 1, λ 1 ) we have L 1 x, y) = 2x + y + λ 1 9x 2 + 16y 2 144) = 2x + y + 17 288 9x2 + 16y 2 144) and d 2 L 1 x 1, y 1 ) = 18λ 1 dx 2 + 32λ 1 dy 2 = 2λ 1 9dx 2 + 16dy 2 ) > 0. Then x 1, y 1 ) represents a constrained minimum. Therefore, calculating 32 f 17, 4 ) 17 and f = 2 32 17 + 4 17 = 17 32 ) 17, 4 = 2 32 17 17 4 17 = 17, we have that the maximum value of fx, y) on the elipse is 17 and it 32 occurs at the point 17, 4 ) ; and the minimum value of fx, y) on the 17 elipse is 17 and it occurs at the point 32 17, 4 17 Remark: Note that, in the case we have more than one critical point for the Lagrangian function and the constraint represents a bounded curve like an elipse, circumference,...), then we can assure that the continuous function fx, y) reaches a maximum and a minimum value on the curve. Therefore, ). 7

Step 3 can be reduced to compare the value of the function fx, y) for the critical points obtained in Step 2 in order to obtain the maximum and the minimum points. In the previous example, clearly the point 32 17, 4 ) was a maximum and the point 32 ) 32 17 17, 4 was a minimum because f 17 17, 4 ) = 17 17 is bigger than f 32 ) 17, 4 = 17. 17 However, if the constraint is not a bounded curve a straight line, parabole,...) then the extreme values of the function fx, y) may not exist no critical points for the Lagrangian function) or in case of existing they will represent local maxima or minima. In this case we cannot reduce the work to be done in Step 3 and we have to use some criterium to determine the character of the point. 3.2. Several constraints and functions of three variables Lagrange multipliers method can be generalized for functions with three or more variables and for two or more constraints taking into account that the more conditions we have, the more Lagrange multipliers we have to add. Example 4 Find the maximum and minimum value of fx, y, z) = x under the constraints x + 2z = 0 and x 2 + y 2 + z 2 = 1. Solution: Using the Lagrange multipliers method, ones has: Step 1 The Lagrangian function is Lx, y, λ, µ) = x + λx + 2z) + µx 2 + y 2 + z 2 1). 8

Step 2 Obtain the critical points of Lx, y, z, λ, µ). Solve the system: x = 1 + λ + 2xµ = 0 y = 2yµ = 0 = 2λ + 2zµ = 0 z λ = x + 2z = 0 µ = x2 + y 2 + z 2 1 = 0 From the second equation µ = 0 or y = 0. If µ = 0 then, the first equation tells that λ = 1 and the third equation leads to λ = 0, which is a contradiction. So, the case µ = 0 is not possible and necessarily y = 0. For y = 0 one has λ = 1 2xµ λ = zµ x = 2z x 2 + z 2 = 1 Then, 2z) 2 + z 2 = 1, which implies z = ± 1. So, the critical points are: 2 1, 0,, 1 ), and 2, 0, 1, 1 ) 3,. 3 Step 3 The constrained maximum and minimum of fx, y, z) are some of the points found at Step 2. Since the constraints represent the intersection of an sphere an a plane, that is, a circumference, the curve is bounded and we can reduce this step to evaluate fx, y, z) for the critical points and compare the results. Then, from f 2, 0, ) 1 = 2 and f 2, 0, 1 ) = 2, 9

one has that the maximum value of fx, y, z) under both constraints is 2 2 and it occurs at the point, 0, 1 ); and the minimum value of fx, y, z) under both constraints is 2 and it occurs at the point 2, 0, 1 ). 4. Closing We have studied how to calculate the maximum and minimum values of a function fx, y) under a constraint of the form gx, y) = 0. We can assure that these extreme values exist for a continuous function if the constraint is a bounded curve. In other cases, the extreme values will be local extrema or even they may not exist. The constrained extrema can be obtained using the Lagrange multipliers method and they are the critical points of the Lagrangian function, which is defined using the function and the constraints. In the case of a bounded constraint the comparison between the calue of the function on the critical points is enough to choose the maximum and the minimum values. When the constraint is not a bounded curve we have to use other criterion second differential method or Hessian method) to choose the relative constrained maximum and minimum of the function. We have presented some examples to clarify the method. The Lagrange multipliers method can also be generalized to functions with three or more variables and for two or more constraints. An example illustrates the method in this situation.. Bibliography There are many books studying several variables functions. Some of them are: 1. Cálculo en varias variables. Jon Rogawski. 2. 000 problemas de análisis matemático. B.P. Demidóvich. 10

3. Cálculo de una y varias variables con geometría analítica, tomo 1. Saturnino L. Salas. 4. Cálculo y geometría analítica, vol. 2. Howard Anton.. Cálculo diferencial e integral, vol. 2. N. Piskunov. 6. Cálculo multivariable. James Stewart. 7. Numerical methods for mathematics, science, and engineering. John H. Mathews. 8. Calculus. Ron Larson. 9. Calculus. James Stewart. 11