Math 212-Lecture Interior critical points of functions of two variables

Similar documents
Let f(x) = x, but the domain of f is the interval 0 x 1. Note

Solutions to Homework 7

Chapter 7. Extremal Problems. 7.1 Extrema and Local Extrema

HOMEWORK 7 SOLUTIONS

MATH2070 Optimisation

Lagrange Multipliers

Partial Derivatives. w = f(x, y, z).

Tangent spaces, normals and extrema

Math 10C - Fall Final Exam

Calculus 2502A - Advanced Calculus I Fall : Local minima and maxima

LESSON 25: LAGRANGE MULTIPLIERS OCTOBER 30, 2017

Math Maximum and Minimum Values, I

Method of Lagrange Multipliers

McGill University April Calculus 3. Tuesday April 29, 2014 Solutions

3.7 Constrained Optimization and Lagrange Multipliers

1. Find and classify the extrema of h(x, y) = sin(x) sin(y) sin(x + y) on the square[0, π] [0, π]. (Keep in mind there is a boundary to check out).

Math 234 Final Exam (with answers) Spring 2017

MATH20132 Calculus of Several Variables. 2018

Math 2163, Practice Exam II, Solution

3 Applications of partial differentiation

Section 14.8 Maxima & minima of functions of two variables. Learning outcomes. After completing this section, you will inshaallah be able to

Lecture 9: Implicit function theorem, constrained extrema and Lagrange multipliers

Math 291-3: Lecture Notes Northwestern University, Spring 2016

Mathematics 205 HWK 18 Solutions Section 15.3 p725

Multivariable Calculus and Matrix Algebra-Summer 2017

Math 207 Honors Calculus III Final Exam Solutions

Lagrange Multipliers

Higher order derivative

1 Lagrange Multiplier Method

Faculty of Engineering, Mathematics and Science School of Mathematics

MATH 105: PRACTICE PROBLEMS FOR CHAPTER 3: SPRING 2010

Lagrange Multipliers

12.1 Taylor Polynomials In Two-Dimensions: Nonlinear Approximations of F(x,y) Polynomials in Two-Variables. Taylor Polynomials and Approximations.

Review for the First Midterm Exam

MATH Midterm 1 Sample 4

Math 251 Midterm II Information Spring 2018

********************************************************** 1. Evaluate the double or iterated integrals:

MATH H53 : Final exam

LAGRANGE MULTIPLIERS

ALGEBRAIC GEOMETRY HOMEWORK 3

MAT 419 Lecture Notes Transcribed by Eowyn Cenek 6/1/2012

f(x, y) = 1 2 x y2 xy 3

SOLUTIONS to Problems for Review Chapter 15 McCallum, Hughes, Gleason, et al. ISBN by Vladimir A. Dobrushkin

x + ye z2 + ze y2, y + xe z2 + ze x2, z and where T is the

CALCULUS: Math 21C, Fall 2010 Final Exam: Solutions. 1. [25 pts] Do the following series converge or diverge? State clearly which test you use.

Optimization. Sherif Khalifa. Sherif Khalifa () Optimization 1 / 50

3.5 Quadratic Approximation and Convexity/Concavity

Contents. 2 Partial Derivatives. 2.1 Limits and Continuity. Calculus III (part 2): Partial Derivatives (by Evan Dummit, 2017, v. 2.

Math 210, Final Exam, Spring 2012 Problem 1 Solution. (a) Find an equation of the plane passing through the tips of u, v, and w.

MATH529 Fundamentals of Optimization Constrained Optimization I

APPLICATIONS The eigenvalues are λ = 5, 5. An orthonormal basis of eigenvectors consists of

Practice Midterm 2 Math 2153

The University of British Columbia Midterm 1 Solutions - February 3, 2012 Mathematics 105, 2011W T2 Sections 204, 205, 206, 211.

DEPARTMENT OF MATHEMATICS AND STATISTICS UNIVERSITY OF MASSACHUSETTS. MATH 233 SOME SOLUTIONS TO EXAM 2 Fall 2018

Solutions to Sample Questions for Final Exam

e x3 dx dy. 0 y x 2, 0 x 1.

Extrema of Functions of Several Variables

Functions of Several Variables

Calculus 2 A collection of solved exercises

REVIEW OF DIFFERENTIAL CALCULUS

Practice problems for Exam 1. a b = (2) 2 + (4) 2 + ( 3) 2 = 29

Math 210, Final Exam, Fall 2010 Problem 1 Solution. v cosθ = u. v Since the magnitudes of the vectors are positive, the sign of the dot product will

MATH Max-min Theory Fall 2016

Chapter 2: Unconstrained Extrema

Examination paper for TMA4180 Optimization I

Optimization and Calculus

Solutions to old Exam 3 problems

0, otherwise. Find each of the following limits, or explain that the limit does not exist.

Name: Instructor: Lecture time: TA: Section time:

EC /11. Math for Microeconomics September Course, Part II Lecture Notes. Course Outline

Math 0320 Final Exam Review

1 Lecture 25: Extreme values

Unit #24 - Lagrange Multipliers Section 15.3

Calculus I Review Solutions

Solutions to Homework 5

EC /11. Math for Microeconomics September Course, Part II Problem Set 1 with Solutions. a11 a 12. x 2

Final Exam 2011 Winter Term 2 Solutions

Math 40510, Algebraic Geometry

MA102: Multivariable Calculus

z 2 = 1 4 (x 2) + 1 (y 6)

Constrained Optimization in Two Variables

14 Increasing and decreasing functions

1. For each function, find all of its critical points and then classify each point as a local extremum or saddle point.

September Math Course: First Order Derivative

Math 10C Practice Final Solutions

Calculus 221 worksheet

Math 321 Final Exam. 1. Do NOT write your answers on these sheets. Nothing written on the test papers will be graded.

LB 220 Homework 4 Solutions

MATH 019: Final Review December 3, 2017

1. Introduction. 2. Outlines

Engg. Math. I. Unit-I. Differential Calculus

Dimensions = xyz dv. xyz dv as an iterated integral in rectangular coordinates.

LECTURE 5, FRIDAY

Summary Notes on Maximization

Optimization. Escuela de Ingeniería Informática de Oviedo. (Dpto. de Matemáticas-UniOvi) Numerical Computation Optimization 1 / 30

Graphs of Polynomial Functions

MTH4101 CALCULUS II REVISION NOTES. 1. COMPLEX NUMBERS (Thomas Appendix 7 + lecture notes) ax 2 + bx + c = 0. x = b ± b 2 4ac 2a. i = 1.

Math 118, Fall 2014 Final Exam

ROOT FINDING REVIEW MICHELLE FENG

Math 473: Practice Problems for Test 1, Fall 2011, SOLUTIONS

Transcription:

Math 212-Lecture 24 13.10. Interior critical points of functions of two variables Previously, we have concluded that if f has derivatives, all interior local min or local max should be critical points. Do we have a way to distinguish which are local max and which are local min? Actually, we do have some tools to achieve this goal to some extent. Now, we study a method to classify the interior critical points of a function of two variables: Second derivative test. Note that this method may be unable to classify some points. If (a, b) is a critical point, f(a, b) = 0. The Taylor expansion to second order reads: f(x, y) = f(a, b) + f x (a, b)(x a) + f y (a, b)(y b) + 1 2 f xx(a, b)(x a) 2 + f xy (a, b)(x a)(y b) + 1 2 f yy(a, b)(y b) 2 + even smaller = f(a, b) + 1 2 f xx(a, b)(x a) 2 + f xy (a, b)(x a)(y b) + 1 2 f yy(a, b)(y b) 2 + even smaller. Whether the critical point is a local max, local min, or a saddle, might be determined by the quadratic form q(h, k) = 1 2 f xx(a, b)h 2 + f xy (a, b)hk + 1 2 f yy(a, b)k 2 If f xx 0, we can complete the square: q = 1 [(f xx h + f xy k) 2 + (f xx f yy f 2 xy)k 2 ] Clearly, f xx f yy f 2 xy > 0, then q = 1 (u 2 + v 2 ) has a definite sign for (h, k) 0. Hence, the form is definite. If f xx > 0, then q = 1 (u 2 + v 2 ) is positive but 0 at (h, k) = (0, 0). The point (a, b) is a local min. If f xx f yy f 2 xy > 0 but f xx < 0, q = 1 (u 2 + v 2 ) is negative but 0 at (h, k) = (0, 0). The function has a local max. 1

If f xx f yy f 2 xy < 0, q = 1 (u 2 v 2 ), then the point is a saddle point. If f xx f yy f 2 xy = 0, then q = 1 u 2 is either nonpositive or nonnegtive. Along the line determined by u = 0, q is a constant zero. This means (u, v) = (0, anything) is a local extreme of the quadratic form. However, the small error may perturb the function a little bit up or a little bit lower and the behavior of f is unclear. The test fails. If f xx = 0, f xx f yy f 2 xy = f 2 xy. If f xy 0, the point is a saddle. If f xy = 0, the whole quantity is zero and q = 1 2 f yyk 2. We can say nothing since the small error may perturb. In summary, we can check the sign of = f xx f yy f 2 xy first. 1. > 0, f xx > 0 implies local min and f xx < 0 implies local max. (f xx can t be zero in this case) 2. < 0, saddle. 3. = 0, the test is unable to classify the points. We must use other techniques. Exercise: In the Monkey saddle point case, there are three up branches and three down branches. Which case does the Monkey saddle point belongs to? ( = 0 case.) Example: Find and classify the critical points of f(x, y) = x 2 2xy + y 3 y. Solution. Set f = 0. We have From the first equation y = x, then f x = 2x 2y = 0, f y = 2x + 3y 2 1 = 0. 2y + 3y 2 1 = 0. By using either quadratic formula or factoring it to (3y + 1)(y 1) = 0, we have y = 1, y = 1/3. Then, we have (1, 1) and ( 1/3, 1/3). We can verify that both of them are critical points. f xx = 2, f xy = 2, f yy = 6y. 2

At (1, 1), f xx = 2, f xy = 2, f yy = 6. = f xx f yy f 2 xy = 12 ( 2) 2 > 0. Since f xx > 0, the point (1, 1) is a local min. At ( 1/3, 1/3), f xx = 2, f xy = 2, f yy = 2. = f xx f yy f 2 xy = 4 ( 2) 2 < 0. ( 1/3, 1/3) is a saddle point. Example Find and classify the critical points of z = sin(x) sin(y) over the region ( π, π) ( π/2, π). 13.9. Constrained optimization and Lagrange multipliers Review: f is the fastest increasing direction and f is perpendicular with the level set. If u is not along f but it has an acute angle from f, moving along u, we see that f increases. We study a method for finding the maximum and minimum over a level set of another function on which there are no interior points. On such a structure, the gradient at the extremum does not have to zero. Example: Find the point on the surface xyz = 1, x > 0, y > 0, z > 0 such that f(x, y, z) = 2x 2 + y 2 + z 2 achieves the smallest value. Solution. In the 3D space, the surface xyz = 1 contains no interior point. Hence, at minimum point, f may not be 0. One idea is to eliminate one variable, for example z and have h(x, y) = 2x 2 + y 2 + 1. x 2 y 2 Now, h as a function of two variables, the region we consider has interior points now (of course in 2D plane instead of 3D space). As (x, y) is close to x, y axis or as (x, y), h blows up. Then, there must be a minimum point in the interior. That has to be a critical point of h, or h = 0. 4x 2 x 3 y 2 = 0 2y 2 1 x 2 y 3 = 0 x 6 = 1/4 and y 4 = 1/x 2 = 3 4. 3

The method of Lagrange multipliers Usually, z is hard to solve. Then, we use another method called the method of Lagrange multipliers. With one constraint The method is given by the following theorem: Theorem 1. Suppose f and g are two continuously differentiable functions. On the level set g = C(or in other words, with constraint g = C), if the maximum (or minimum) of f happens at P, and g 0, then f and g are parallel or f = λ g, for some λ. λ is called the Lagrange multiplier. (Draw a picture. If f is not parallel with g, then along the level set of g, f will increase. Also, consider drawing the level sets of the two functions and show the idea.) Proof. Let r(t) be any curve in the level set such that r(t 0 ) = P. Then, the function m(t) = f(r(t)), achieves a local maximum or minimum at t = t 0. Hence, m (t 0 ) = f(p ) r (t 0 ) = 0 by the chain rule. Hence, f(p ) is perpendicular with the curve. Since the curve is arbitrary in the level set, f(p ) must be perpendicular with the whole level set. On the other hand, g(p ) is perpendicular with the level set. Hence, f(p ) and g(p ) must be parallel. To consider possible candidates. We should also consider the cases when g = 0 and the points where the functions are not differentiable. Example: Find the smallest value of f(x, y, z) = 2x 2 + y 2 + z 2 on the surface g = xyz = 1, x > 0, y > 0, z > 0 using Lagrange multiplier. Solution. Using the Lagrange Multiplier, f = λ g g = 1. 4

Or 4x = λyz, 2y = λxz, 2z = λxy, xyz = 1. Since yz = 1/x, the first equation tells us that 4x = λ/x or λ = 4x 2. Similarly, λ = 2y 2, λ = 2z 2. Hence, 4x 2 = 2y 2 = 2z 2. With the fact xyz = 1, we have x 2 y 2 z 2 = 1 or x 2 2x 2 2x 2 = 1 or x 6 = 1/4 which agrees with what we had. Similarly, we can solve y and z. Further, in principle, we should also consider g = 0, g = 1. However, since xyz = 1, g can t be zero. Then, we have covered all possibilities. Example: Find the points of the rectangular hyperbola xy = 1 in the first quadrant that are closest to the origin (0, 0). Solution. Let (x, y) be on the rectangular hyperbola. The distance to the origin is d = x 2 + y 2. Then, we would like to minimize f(x, y) = d 2 = x 2 + y 2, with constraint g(x, y) = xy = 1. Further, since xy = 1, g is never 0 on the constraint. Hence, we only need to consider f = λ g. By the Lagrange multiplier method or f x = λg x, f y = λg y, g = xy = 1, 2x = λy 2y = λx xy = 1 hence, 2x 2 = 2y 2. For the point in the first quadrant, we have x = y. Hence, x 2 = 1 or x = 1. (1, 1) is the point and d = 1 2 + 1 2 = 2. Exercise: can we find the points that are farthest to the origin on the surface using Lagrange multipliers? Why? 5

An example of the global extrema Find the global extrema of f = (x 1) 2 + y 2 + z 2 in the region D = {(x, y, z) : x 2 + 4y 2 + 9z 2 36.} With two constraints (Omitted) If we have two constraints, g = C 1 and h = C 2, then at the max or min P, f(p ), g(p ) and h(p ) are co-planar (in the linear algebra language: they are linearly dependent). If g and h are not parallel, then f(p ) = λ g(p ) + µ h(p ), for two constants λ and µ. Of course, the critical points may also happen at the points where g = 0 or h = 0 or some of them are not differentiable. Draw a picture to show the idea. The two surfaces g = C 1 and h = C 2 intersect at one curve. The curve is perpendicular with both g and h. If f is not in the plane determined by g and h, then f will increase along the curve. Example: Suppose we want to maximize f on the constraint g = 1 and h = 2. If at a point P on the intersection of the two surfaces, g = 1, 1, 2 and h = 1, 2, 3 and f = 2, 3, 2. Is it possible for this point to be an extremum? Example: Find the highest and lowest points on the intersection of x + y + z = 12 and z = x 2 + y 2. Solution. Clearly the height is given by the z-coordinate. f(x, y, z) = z, g(x, y, z) = x + y + z = 12, h(x, y, z) = x 2 + y 2 z = 0. by the method of Lagrange multiplier, f = λ g + µ h x + y + z = 12 x 2 + y 2 z = 0 6

or 0 = λ + µ2x 0 = λ + µ2y 1 = λ µ x + y + z = 12 x 2 + y 2 z = 0 Hence, 2µ(x y) = 0. If µ = 0, the from the first equation, λ = 0 which can t make the third equation to be true. Hence, µ 0 and x = y. Then, 2x + z = 12 and 2x 2 z = 0 which gives 2x + 2x 2 = 12 or x 2 + x 6 = 0, x = 3, 2. We therefore have two points ( 3, 3, 18) and (2, 2, 8). The first point is the highest while the second one is the lowest. 7