Math 32, October 22 & 27: Maxima & Minima

Similar documents
11.7 Maximum and Minimum Values

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 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:

MULTI-VARIABLE OPTIMIZATION NOTES. 1. Identifying Critical Points

Practice problems from old exams for math 233

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

Partial Differentiation 1 Introduction

Section 14.3 Partial Derivatives

Functions of several variables

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

Section 7.2 Logarithmic Functions

Unit 7 Partial Derivatives and Optimization

11.2 LIMITS AND CONTINUITY

Section 15.3 Partial Derivatives

[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

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

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

Math 148 Exam III Practice Problems

Differentiable functions (Sec. 14.4)

14.7 Maximum and Minimum Values

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

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

Free extrema of two variables functions

FUNCTIONS OF SEVERAL VARIABLES AND PARTIAL DIFFERENTIATION

2.1 Partial Derivatives

18.3. Stationary Points. Introduction. Prerequisites. Learning Outcomes

Calculus 3 Exam 2 31 October 2017

Math 2411 Calc III Practice Exam 2

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

MATH 105: Midterm #1 Practice Problems

CHAPTER 11 PARTIAL DERIVATIVES

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

Definitions and claims functions of several variables

MATH 234 THIRD SEMESTER CALCULUS

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

MATH 261 EXAM II PRACTICE PROBLEMS

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

LECTURE 19 - LAGRANGE MULTIPLIERS

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.

Review Problems. Calculus IIIA: page 1 of??

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

M.Tolotti - Mathematics (Preparatory) - September Exercises. Maximize p(g(x))g(x) q x subject to x R +

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

The Chain Rule, Higher Partial Derivatives & Opti- mization

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

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 206 First Midterm February 1, 2012

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

Practice problems from old exams for math 233

Pre-AP Algebra 2 Unit 8 - Lesson 2 Graphing rational functions by plugging in numbers; feature analysis

Multivariate Calculus

MATH 8 FALL 2010 CLASS 27, 11/19/ Directional derivatives Recall that the definitions of partial derivatives of f(x, y) involved limits

Honors Algebra 2 Assignment Sheet - Chapter 1

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

Math 2321 Review for Test 2 Fall 11

14.2 Limits and Continuity

Math 259 Winter Recitation Handout 9: Lagrange Multipliers

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

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

Math 259 Winter Recitation Handout 6: Limits in Two Dimensions

Exam 1 Study Guide. Math 223 Section 12 Fall Student s Name

Level Curves, Partial Derivatives

Chapter 2: Functions and Graphs Lesson Index & Summary

Mock final exam Math fall 2007

Lesson 6.1 Linear Equation Review

Review #Final Exam MATH 142-Drost

Paper Folding: Maximizing the Area of a Triangle Algebra 2

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

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

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

Calculus II Fall 2014

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

Examples: Find the domain and range of the function f(x, y) = 1 x y 2.

Lecture 4 : Monday April 6th

Partial derivatives and their application.

I II III IV V VI VII VIII IX X Total

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

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

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

MATH 20C: FUNDAMENTALS OF CALCULUS II FINAL EXAM

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

Section 1.3. Slope formula: If the coordinates of two points on the line are known then we can use the slope formula to find the slope of the line.

Independence of Path and Conservative Vector Fields

Lecture 19. Vector fields. Dan Nichols MATH 233, Spring 2018 University of Massachusetts. April 10, 2018.

MATH Exam 2 Solutions November 16, 2015

Sect 4.5 Inequalities Involving Quadratic Function

REVIEW SHEET FOR MIDTERM 2: ADVANCED

Calculus of Several Variables

5.4 Transformations and Composition of Functions

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

MATH Review Exam II 03/06/11

10 GRAPHING LINEAR EQUATIONS

Chapter 3 Exponential and Logarithmic Functions

Math Final Exam - 6/11/2015

Math Lecture 2 Inverse Functions & Logarithms

Conic and Quadric Surface Lab page 4. NORTHEASTERN UNIVERSITY Department of Mathematics Fall 03 Conic Sections and Quadratic Surface Lab

Transcription:

Math 32, October 22 & 27: Maxima & Minima Section 1: Critical Points Just as in the single variable case, for multivariate functions we are often interested in determining extreme values of the function. We may be interested, for instance, in determining the maximal value of a multi-factored profit function, or the minimal value of an actuarial risk function, or an optimal configuration for some complicated mechanical system. All of these types of problems can be represented and modeled using mathematics. This raises the question of how mathematically we determine where to search for these desired values. First, we must defined what mean by the maximal and minimal values of a function. Definition 1 Consider a multivariable function f(x, y) and a point (a, b) D(f). We will say that (a, b) is a: 1. global maximum of f(x, y) if f(a, b) f(x, y) for (x, y) D(f). 2. global minimum of f(x, y) if f(a, b) f(x, y) for (x, y) D(f). 3. local maximum of f(x, y) if f(a, b) f(x, y) for all (x, y) D(f) such that (x a) 2 + (y b) 2 < ɛ for some ɛ > 0. 4. local minimum of f(x, y) if f(a, b) f(x, y) for all (x, y) D(f) such that (x a) 2 + (y b) 2 < ɛ for some ɛ > 0. The condition (x a) 2 + (y b) 2 < ɛ just means that the condition holds if we are close to (a, b). Note also that we often want to consider a restricted region of the input space, but not the entire domain. We can accommodate this in the above definitions by replacing D(f) with this restricted region. 1

The question then becomes determining how we find maximal and minimal values of a multivariate function f(x, y). We have the following. Definition 2 Consider a multivariable function f(x, y). A point (a, b) is said to be a: 1. critical point of f(x, y) if f(a, b) = (0, 0). 2. singular point of f(x, y) if f(a, b) does not exist. 3. boundary point of f(x, y) if (a, b) lies on the edge of D(f). Theorem 1 Consider a multivariable function f(x, y) and a domain D(f). Then, if f(x, y) attains a local maximal or minimal value at (a, b), then (a, b) is either a critical point, singular point, or boundary point of f(x, y). This result tells us that, in order to determine the local maxima and minima of a function, we only have to look at a handful of points. Our technique will be compute f to determine the critical points and singular points, and then to check the boundary by parametrizing the set. Note: The condition f(a, b) = (0, 0) generates two equations in two unknowns (or n equations in n unknowns in higher dimension). These equations can be very difficult to solve because they are typically nonlinear for real-world problems. Solving systems of linear equations is a major component of linear algebra (Math 129A) while solving nonlinear equations is studied in the very active area known as algebraic geometry. Example 1 Determine all critical and singular points of f(x, y) = x 2 y 2 4x + 2y. Solution: The expression has no singular values. To determine the 2

critical values, we need to find the points for which f(x, y) = (0, 0). We have f x (x, y) = 2x 4 = 0 f y (x, y) = 2y + 2 = 0. This implies that x = 2 and y = 1 so that the only critical point is (2, 1). Example 2 Find all critical and singular points of f(x, y) = xy 2 y 3 xy. Solution: Again, there are no singular values, and for the critical values we need to find points such that f x (x, y) = y 2 y = 0 f y (x, y) = 2xy 3y 2 x = 0. The first equation gives us y(y 1) = 0 which can be satisfied if either y = 0 or y = 1. We break this into two cases. If y = 0, the second equation gives 2x(0) 3(0) 2 x = 0 = x = 0. It follows that the point (0, 0) is a critical point. If y = 1, the second equation gives 2x(1) 3(1) 2 x = 0 = x = 3. It follows that the point (3, 1) is also a critical point. Since these are the only two cases which can satisfied both of the required expressions, we are done. Example 3 Find all critical and singular points of f(x, y) = x 2 + y 2. 3

Solution: Notice that we have ( f = x x 2 + y 2, ) y. x 2 + y 2 In order to find critical points, we need to solve x x 2 + y = 0, and y 2 x 2 + y = 0. 2 This seems to give the solution x = 0 and y = 0, but we notice that this yields x 2 + y 2 = 0 so that f is undefined. That is, (0, 0) is a singular point. Section 2: Maxima & Minima Notice that Theorem 1 only tells us where the maximal and minimal values may occur. It remains to determine which of these points actually correspond to maximums (i.e. peaks of our mountains) and which correspond to minimums (i.e. bottoms of the valleys) and whether these extremal values are local or global. It is also possible that these points do not correspond to extremal values, and for functions to not have extremal values. For example, the function may have asymptotes or limits at infinity. (There are also other ways for a function to non-attain a minumum or maximum. This is studied in some depth in mathematical analysis, Math 131A.) We will be particularly interested in classifying critical points, since flat regions of the surface plot can correspond to peaks of mountains, bottoms of valleys, or saddle points, which are a maximum in one direction but a minimum in the other: (a) (b) (c) 4

Above, we have the functions (a) f(x, y) = x 2 + y 2, (b) g(x, y) = x 2 y 2, and (c) h(x, y) = x 2 y 2. All three functions have a single critical value at (x, y) = (0, 0). This means the tangent plane at (0, 0) is flat. We can clearly see, however, that (0, 0) corresponds to a minimum of f(x, y), a maximum of g(x, y), and a saddle of h(x, y). Consider the intuition that we had for single-variable functions. If we are at a maximal value of a function f(x), the function must be concave down, which meant f (x) < 0. Analogously, if we are at a minimal value, the function f(x) must be concave up, which meant f (x) > 0. We can extend this to the two-dimensional case by making use of the second-order partial derivatives. We have the following result. Theorem 2 Suppose (a, b) is a critical point of the function f(x, y) and set Then: A = f xx (a, b), B = f xy (a, b), C = f yy (a, b). 1. If AC B 2 > 0 and A > 0, then f(x, y) has a local minimum at (a, b). 2. If AC B 2 > 0 and A < 0, then f(x, y) has a local maximum at (a, b). 3. If AC B 2 < 0, then f(x, y) has a saddle point at (a, b). 4. If AC B 2 = 0, then we cannot say anything about (a, b). The interpretation is analogous to the one-dimensional case. Condition 1. corresponds to a bowl-shape around (a, b) while Condition 2. corresponds to a cap-shape around (a, b). Condition 3. corresponds to the new case of a saddle, while Condition 4. is similar to the indeterminate case f (x) = 0. Note: The result is derived from a more general result regarding a matrix of second-order partial derivatives known as the Hessian matrix: [ ] fxx (x, y) f xy (x, y) H f (x, y) = f yx (x, y) f yy (x, y). 5

It can be quickly be seen that det(h f (a, b)) = AC B 2, which can be a useful method for remembering the formulas if you are familiar with some linear algebra. Example 4 Classify the critical point (0, 0) for f(x, y) = x 2 +y 2, g(x, y) = x 2 y 2, and h(x, y) = x 2 y 2. Solution: For f(x, y) = x 2 +y 2 we have f x (x, y) = 2x and f y (x, y) = 2y so that A = f xx (x, y) = 2 B = f xy (x, y) = 0 C = f yy (x, y) = 2. It follows that AC B 2 = (2)(2) (0) 2 = 4 > 0 and A = 2 > 0. It follows from Theorem 2 that (0, 0) is a minimum of f(x, y). For g(x, y) = x 2 y 2 we have A = g xx (x, y) = 2 B = g xy (x, y) = 0 C = g yy (x, y) = 2. It follows that AC B 2 = ( 2)( 2) (0) 2 = 4 > 0 and A = 2 < 0. It follows from Theorem 2 that (0, 0) is a maximum of g(x, y). For h(x, y) = x 2 y 2 we have A = h xx (x, y) = 2 B = h xy (x, y) = 0 C = h yy (x, y) = 2. It follows that AC B 2 = (2)( 2) (0) 2 = 2 < 0. It follows from Theorem 2 that (0, 0) is a saddle of h(x, y). 6

Example 5 Find and classify the critical points of f(x, y) = x 2 ln(y) y. Solution: We need to find the critical points, which means we need to find the points satisfying f(x, y) = (0, 0). We have f x (x, y) = 2x ln(y) = 0 f y (x, y) = x2 y 1 = 0. It follows from the first equation that we need either x = 0 or ln(y) = 0 (i.e. y = 1). We can clearly see, however, that x = 0 reduces the second expression to 1 = 0, which is nonsense. If we set y = 1 in the second equation, we have x 2 1 = 0 = x = ±1. It follows that we have the critical points (1, 1) and ( 1, 1). In order to determine whether these points are local maximums, local minimums, or saddle points, we perform the second derivative test. We have It follows that A = f xx (x, y) = 2 ln(y) B = f xy (x, y) = 2 x y C = f yy (x, y) = x2 y 2. AC B 2 = 2 ln(y) x2 y 2 4x2 y 2 = 2 ( x 2 y 2 ) (2 + ln(y)). At both of the points (1, 1) and ( 1, 1) we have AC B 2 = 4 < 0 so that (1, 1) and ( 1, 1) are saddle points at both (1, 1) and ( 1, 1). Example 6 Classify the critical points of f(x, y) = x 3 y 2 using the second deriva- 7

tive test. Solution: To find the critical points, we set f x (x, y) = 3x 2 = 0 = x = 0 f y (x, y) = 2y = 0 = y = 0. It follows that the only critical point is (0, 0). To use the second derivative test, we need A = f xx (x, y) = 6x B = f xy (x, y) = 0 C = f yy (x, y) = 2. It follows that AC B 2 = (6x)(2) (0) 2 = 12x. At the critical point (0, 0), however, we have AC B 2 = 0. The second derivative test does not give us any information with respect to whether (0, 0) is a maximum, minimum, or saddle point. Suggested Problems 1. Determine the critical points of the following functions and then classify them as either local maxima, minima, or saddle points: (a) f(x, y) = x 2 y + 2xy 3y (b) f(x, y) = x 2 + 4xy + 2xy 2 (c) f(x, y) = x 2 2xy + 3y 2 + 4y (d) f(x, y) = ln(xy) x y xy 2. Determine the maximal and minimal values of the following functions: (a) f(x, y) = x x 2 + y 2 + 1 (b) f(x, y) = e x2 y 4 +2y 2 8