MULTI-VARIABLE OPTIMIZATION NOTES. 1. Identifying Critical Points

Similar documents
11.7 Maximum and Minimum Values

Math 233. Extrema of Functions of Two Variables Basics

Similarly, the point marked in red below is a local minimum for the function, since there are no points nearby that are lower than it:

Maxima and Minima. Terminology note: Do not confuse the maximum f(a, b) (a number) with the point (a, b) where the maximum occurs.

Lecture 19 - Partial Derivatives and Extrema of Functions of Two Variables

Math 32, October 22 & 27: Maxima & Minima

MATH 105: Midterm #1 Practice Problems

ANSWER KEY. (a) For each of the following partials derivatives, use the contour plot to decide whether they are positive, negative, or zero.

Practice problems from old exams for math 233

FUNCTIONS OF SEVERAL VARIABLES AND PARTIAL DIFFERENTIATION

Review guide for midterm 2 in Math 233 March 30, 2009

CHAPTER 11 PARTIAL DERIVATIVES

Math 148 Exam III Practice Problems

14.7 Maximum and Minimum Values

Discussion 8 Solution Thursday, February 10th. Consider the function f(x, y) := y 2 x 2.

Review Sheet for Math 230, Midterm exam 2. Fall 2006

Math 5BI: Problem Set 1 Linearizing functions of several variables

Solutions to the problems from Written assignment 2 Math 222 Winter 2015

Unit 7 Partial Derivatives and Optimization

Goals: To study constrained optimization; that is, the maximizing or minimizing of a function subject to a constraint (or side condition).

MATH Exam 2 Solutions November 16, 2015

Functions of several variables

14.4. Tangent Planes. Tangent Planes. Tangent Planes. Tangent Planes. Partial Derivatives. Tangent Planes and Linear Approximations

Math 2411 Calc III Practice Exam 2

4 to find the dimensions of the rectangle that have the maximum area. 2y A =?? f(x, y) = (2x)(2y) = 4xy


Definitions and claims functions of several variables

Calculus 3 Exam 2 31 October 2017

Lecture 15. Global extrema and Lagrange multipliers. Dan Nichols MATH 233, Spring 2018 University of Massachusetts

Partial Differentiation 1 Introduction

18.3. Stationary Points. Introduction. Prerequisites. Learning Outcomes

Exam 2 Summary. 1. The domain of a function is the set of all possible inputes of the function and the range is the set of all outputs.

Math 259 Winter Recitation Handout 9: Lagrange Multipliers

Free extrema of two variables functions

2.1 Partial Derivatives

Section 15.3 Partial Derivatives

LECTURE 19 - LAGRANGE MULTIPLIERS

Name: ID: Section: Math 233 Exam 2. Page 1. This exam has 17 questions:

SOLUTIONS 2. PRACTICE EXAM 2. HOURLY. Problem 1) TF questions (20 points) Circle the correct letter. No justifications are needed.

Maxima and Minima. Chapter Local and Global extrema. 5.2 Continuous functions on closed and bounded sets Definition of global extrema

11/18/2008 SECOND HOURLY FIRST PRACTICE Math 21a, Fall Name:

Calculus of Several Variables

SYDE 112, LECTURE 34 & 35: Optimization on Restricted Domains and Lagrange Multipliers

Exam 2 Review Sheet. r(t) = x(t), y(t), z(t)

MATH 261 EXAM II PRACTICE PROBLEMS

This exam contains 9 problems. CHECK THAT YOU HAVE A COMPLETE EXAM.

Practice problems from old exams for math 233

Math 2321 Review for Test 2 Fall 11

Section 14.3 Partial Derivatives

Review Problems. Calculus IIIA: page 1 of??

I II III IV V VI VII VIII IX X Total

Review #Final Exam MATH 142-Drost

Mathematics 205 HWK 19b Solutions Section 16.2 p750. (x 2 y) dy dx. 2x 2 3

EXERCISES CHAPTER 11. z = f(x, y) = A x α 1. x y ; (3) z = x2 + 4x + 2y. Graph the domain of the function and isoquants for z = 1 and z = 2.

MATH 12 CLASS 9 NOTES, OCT Contents 1. Tangent planes 1 2. Definition of differentiability 3 3. Differentials 4

Math for Economics 1 New York University FINAL EXAM, Fall 2013 VERSION A

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

The Chain Rule, Higher Partial Derivatives & Opti- mization

1. Vector Fields. f 1 (x, y, z)i + f 2 (x, y, z)j + f 3 (x, y, z)k.

Lecture 4 : Monday April 6th

MATH 259 FINAL EXAM. Friday, May 8, Alexandra Oleksii Reshma Stephen William Klimova Mostovyi Ramadurai Russel Boney A C D G H B F E

MATH 20C: FUNDAMENTALS OF CALCULUS II FINAL EXAM

7/26/2018 SECOND HOURLY PRACTICE I Maths 21a, O.Knill, Summer Name:

[f(t)] 2 + [g(t)] 2 + [h(t)] 2 dt. [f(u)] 2 + [g(u)] 2 + [h(u)] 2 du. The Fundamental Theorem of Calculus implies that s(t) is differentiable and

Calculus II Fall 2014

11/2/2016 Second Hourly Practice I Math 21a, Fall Name:

MATH Review Exam II 03/06/11

Independence of Path and Conservative Vector Fields

Section 3.5. Equations of Lines

Test Yourself. 11. The angle in degrees between u and w. 12. A vector parallel to v, but of length 2.

WESI 205 Workbook. 1 Review. 2 Graphing in 3D

University of California, Berkeley Department of Mathematics 5 th November, 2012, 12:10-12:55 pm MATH 53 - Test #2

INTEGRATION OVER NON-RECTANGULAR REGIONS. Contents 1. A slightly more general form of Fubini s Theorem

MATH 234 THIRD SEMESTER CALCULUS

11.2 LIMITS AND CONTINUITY

MATH 253 Page 1 of 7 Student-No.: Midterm 2 November 16, 2016 Duration: 50 minutes This test has 4 questions on 7 pages, for a total of 40 points.

Math Final Exam - 6/11/2015

i + u 2 j be the unit vector that has its initial point at (a, b) and points in the desired direction. It determines a line in the xy-plane:

B) 0 C) 1 D) No limit. x2 + y2 4) A) 2 B) 0 C) 1 D) No limit. A) 1 B) 2 C) 0 D) No limit. 8xy 6) A) 1 B) 0 C) π D) -1

1.6. QUADRIC SURFACES 53. Figure 1.18: Parabola y = 2x 2. Figure 1.19: Parabola x = 2y 2

10 GRAPHING LINEAR EQUATIONS

DIFFERENTIAL EQUATIONS. A principal model of physical phenomena.

Calculus I Handout: Curves and Surfaces in R 3. 1 Curves in R Curves in R 2 1 of 21

Math Final Exam - 6/13/2013

REVIEW SHEET FOR MIDTERM 2: ADVANCED

Mock final exam Math fall 2007

14.6 Directional Derivatives

State Math Contest Junior Exam SOLUTIONS

Independent of path Green s Theorem Surface Integrals. MATH203 Calculus. Dr. Bandar Al-Mohsin. School of Mathematics, KSU 20/4/14

Math 259 Winter Recitation Handout 6: Limits in Two Dimensions

Estimating Areas. is reminiscent of a Riemann Sum and, amazingly enough, will be called a Riemann Sum. Double Integrals

Differentiable functions (Sec. 14.4)

Algebra I CC Exam Review #1 H o2m0b1l3v 7KRu9tmal NSIoffrtGwaafrKeB 5LZLhCe.h m na3ldll 3rPiagBhlt8sm 4rEe0sPevr3vKe6dR.S. y x y. ( k ) ( 10) ( ) ( )

Level Curves in Matlab

Chapter 9 Linear equations/graphing. 1) Be able to graph points on coordinate plane 2) Determine the quadrant for a point on coordinate plane

Math 232. Calculus III Limits and Continuity. Updated: January 13, 2016 Calculus III Section 14.2

F13 Study Guide/Practice Exam 3

3.5 Marginal Distributions

Double Integrals over More General Regions

Section 7.2 Logarithmic Functions

Transcription:

MULTI-VARIABLE OPTIMIZATION NOTES HARRIS MATH CAMP 2018 1. Identifying Critical Points Definition. Let f : R 2! R. Then f has a local maximum at (x 0,y 0 ) if there exists some disc D around (x 0,y 0 ) such that f(x, y) apple f(x 0,y 0 ) for every (x, y) 2 D. Similarly, f has a local minimum at (x 0,y 0 )if there exists some disc D around (x 0,y 0 ) such that f(x, y) f(x 0,y 0 ) for every (x, y) 2 D. Local maxima and local minima are called local extrema.. Suppose that f : R 2! R and (x 0,y 0 ) is a local maximum. Then the graph of f intersected with the plane y = y 0 is a curve with a local maximum at x = x 0.So d dx f(x, y 0)= @f @x (x 0,y 0 ) = 0. Similarly, @f @y (x 0,y 0 ) = 0. In other words, at all local minima and maxima, rf(x 0,y 0 ) = 0. So once again, to identify local extrema we need only identify points at which rf(x 0,y 0 ) = 0 and then classify them as local minimia, local maxima, or non-extrema. Definition. If rf(x 0,y 0 ) = 0, then (x 0,y 0 )isacritical point. Classifying critical points is more di cult in two (or more) dimensions than in a single dimension, because behavior in di erent directions can be di erent. For example, if f(x, y) =x 2 y 2,thenrf(0, 0) = 0. But f(x, 0) = x 2 has a minimum at (0, 0), and f(0,y)= y 2 has a local maximum at (0, 0). Therefore (0, 0) is not a local extrema. Definition. A saddle point of a function f : R 2! R is a point (x 0,y 0 ) so that f(x 0,y 0 ) is a local minimum in one direction and a local maximum in another. 1

2 HARRIS MATH CAMP 2018 In this definition, (0, 0) is a saddle point of the function f(x, y) =x 2 y 2,sinceinthex-direction (0, 0) is a local maximum, and it is a local minimum in the y-direction. Notice that a function f : R 2! R could have a local minimum (or maximum) at (x 0,y 0 ) in both the x-direction and the y-direction, and still have a saddle point at (x 0,y 0 ). In particular, imagine that f(x, y) is a saddle with four ru es (i.e. it is a saddle for a person with four legs) in such a way that the legs are placed one per quadrant. Then f has a local minimum at (0, 0) in both the x- and y- directions, but a local maximum in the direction of the line y = x. Hence (0, 0) is a saddle point. " ' fi. 2. Second Derivative Test In one dimension, we can classify local minima and maxima by the First Derivative Test, in which we identify the roots of f 0 (x) and then test the sign of f 0 on each complementary interval. This is more di in higher dimensions, because @f @f @x and @y on the same intervals. cult need not have zeros at the same points, or behave in the same way Instead, we will use an analogue of the Second Derivative Test. Recall that in one dimension, we found critical points and then used the behavior of the second derivative to classify them. We will do the same in higher dimensions. The only snag is that we have multiple second derivatives, and we need to look at all of their behaviors simultaneously.

MULTI-VARIABLE OPTIMIZATION NOTES 3 To do this, we create a new function. For f : R 2! R, defined f : R 2! R as D f (x, y) =f xx (x, y) f yy (x, y) [f xy (x, y)] 2. As a hint of where this comes from, the Hessian matrix is defined as: H f (x, y) = 2 6 4 f xx(x, y) f xy (x, y) f yx (x, y) f yy (x, y) 3 7 5, which gives a mathematical way of looking at all the partial derivatives simultaneously. The discriminant of this matrix is precisely D f (x, y), as long as the mixed partials are equivalent. Theorem 2.1. (Second Derivative Test - Multivariable) Suppose (a, b) is a critical point of f : R 2! R. (1) If D f (a, b) < 0, then (a, b) is a saddle point. (2) If D f (a, b) > 0 and f xx (a, b) < 0 then (a, b) is a local maximum. (3) If D f (a, b) > 0 and f xx (a, b) then (a, b) is a local minimum. If D f (a, b) =0the test is inconclusive. 3. Lagrange Multipliers In the real world, we may need to optimize a function subject to some constraints. For example, suppose that a company makes two items. The total output of the factory is constrained (by factory space, time, materials, etc). To optimize the profit of the company, we need to find the maximum of the profit function subject to the constraints of production. Geometrically, this corresponds to finding an extremum over a subspace of R 2. In the case that our subspace is a line, we could potentially solve the optimization problem as a single variable function. In particular, suppose that our constraint is y = Ax+B. Thenf(x, y) under this constraint is equal to f(x, Ax + B), a function in a single variable. We can maximize this according to rules of single variable functions. On the other hand, suppose that our constraints are a region rather than a single line. Then we could find our extrema by finding all the extrema of the function, restricting our view to those that lie in our region, and then compare these extrema to all the border values. However this can be di cult (or even impossible) depending on the complexity of the constraint. But notice that for any constraint g(x, y) =k, f(x, y) has the relative extrema as the function F (x, y, )=f(x, y) [g(x, y) k],

4 HARRIS MATH CAMP 2018 where is a new variable, called the Lagrange Multiplier. To find the extrema of F, compute its partial derivatives F x = f x g x, F y = f y g y, F = (g k). The solve the equations F x = F y = F = 0. In otherwords, solve f x = g x, f y = g y, g = k. These are the potential extrema of F, and hence also potential extrema of f. Finally, we need only evaluate f at all of these potential extrema. It should be noted that the method of Lagrange multipliers does not tell you whether any constrained extrema exist - it says only where a constrained extrema would exist. Example. Suppose that we are going to fence in a rectangular field of size 5000 sq. yd. along a river, so we need fencing on only three sides. What is the minimum length of fencing needed? If x is the length of the field and y the width, then A(x, y)xy and L(x, y) =x +2y. We want to minimize L subject to the constraint A(x, y) = 5000. Then f x =1, f y =1, g x = y, g y = x. So our three Lagrange equations are f x =1= g x, f y =1= g y, g = xy = 5000. Hence and x =2y. Soxy =2y 2 = 5000, and y = 50, x = 100. = 1 y = 2 x, Example. Find the extrema of f(x, y) =xy subject to x 2 + y 2 = 8. We have a constraint g(x, y) =x 2 + y 2, so our partial derivatives are f x = y, f y = x, g x =2x, g y =2y. The three Lagrange equations give us y =2 x, x =2 y, x 2 + y 2 =8. Solving these, we get 2 = y x = x y, so x2 = y 2. In the final equation, we get 2x 2 = 8, or x = ±2, and y = ±2.

MULTI-VARIABLE OPTIMIZATION NOTES 5 Then f(2, 2) = f( 2, 2) = 4, and f(2, 2) = f( 2, 2) = 4. So that maximal value of f(x, y) subject to x 2 + y 2 = 8 is 4, and the minimal value is 4. If we want to find extrema of a function over a closed region R of R 2, then we need to (1) find any local extrema inside that region, then (2) compare boundary values. To do this, we use the Second Derivative Test to find and classify any critical points in R, then use Lagrange multipliers to test the boundaries for extrema, and compare these to the extrema inside R. Example. Suppose f(x, y) =xy. We want to optimize this over the region D given by x 2 + y 2 apple 8 and y 0. First, we need to identify extrema within D. To do this we use the Second Derivative Test. So: f x = y, f y = x, f xx = f yy =0,f xy = f yx =1. Then rf =(y, x) =(0, 0) only at (0, 0). But D f (x, y) = 1 < 0 for all (x, y), so this is a saddle point. Along the constraint y = 0, then f(x, 0) = x 2, which has a minimum at x = 0, where f(0, 0) = 0. We have the constraint g(x, y) =x 2 + y 2 = 8. Then g x =2x and g y =2y, so the Lagrange equations give y = 2x, x = 2y, x 2 + y 2 =8. Solving these for x and y, x = ±2 and y = 2. Checking these values, we have f(2, 2) = 4, and f( 2, 2) = 4. Thus there is a global maximum at (2, 2) and a global minimum at ( 2, 2).