LESSON 25: LAGRANGE MULTIPLIERS OCTOBER 30, 2017

Similar documents
LESSON 23: EXTREMA OF FUNCTIONS OF 2 VARIABLES OCTOBER 25, 2017

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

Solutions to Homework 7

Math 10C - Fall Final Exam

2015 Math Camp Calculus Exam Solution

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

Lesson 26 MA Nick Egbert

Lagrange Multipliers

Math 2163, Practice Exam II, Solution

Solutions to Homework 5

MATH Midterm 1 Sample 4

Multivariable Calculus and Matrix Algebra-Summer 2017

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

Math 2142 Homework 5 Part 1 Solutions

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

Math 10C Practice Final Solutions

Math Maximum and Minimum Values, I

Partial Derivatives Formulas. KristaKingMath.com

HOMEWORK 7 SOLUTIONS

(to be used later). We have A =2,B = 0, and C =4,soB 2 <AC and A>0 so the critical point is a local minimum

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

Optimization: Problem Set Solutions

Practice Midterm 2 Math 2153

LESSON 21: DIFFERENTIALS OF MULTIVARIABLE FUNCTIONS OCTOBER 18, 2017

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

MAT 122 Homework 7 Solutions

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.

Do Now 5 Minutes. Topic Scientific Notation. State how many significant figures are in each of the following numbers. How do you know?

14.7: Maxima and Minima

Final Exam Study Guide

Math 1314 Lesson 24 Maxima and Minima of Functions of Several Variables

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

Date Lesson Text TOPIC Homework. Verifying Equations WS 3.1. Solving Multi-Step Equations WS 3.3. Solving Equations with Rationals WS 3.

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

Bob Brown Math 251 Calculus 1 Chapter 4, Section 1 Completed 1 CCBC Dundalk

FINAL REVIEW FALL 2017

MATH Max-min Theory Fall 2016

Math 222 Spring 2013 Exam 3 Review Problem Answers

MATH 105: PRACTICE PROBLEMS FOR CHAPTER 3: SPRING 2010

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

14 Increasing and decreasing functions

Homework #6 Solutions

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

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

Review for the First Midterm Exam

Final Exam Study Guide and Practice Problems Solutions

Math 265H: Calculus III Practice Midterm II: Fall 2014

LESSON 21: DIFFERENTIALS OF MULTIVARIABLE FUNCTIONS MATH FALL 2018

Maxima and Minima of Functions

Method of Lagrange Multipliers

Lecture 9 - Increasing and Decreasing Functions, Extrema, and the First Derivative Test

Unit #24 - Lagrange Multipliers Section 15.3

MATH20132 Calculus of Several Variables. 2018

Faculty of Engineering, Mathematics and Science School of Mathematics

A. Incorrect! Replacing is not a method for solving systems of equations.

Math 121 Winter 2010 Review Sheet

Solutions of Math 53 Midterm Exam I

3.7 Constrained Optimization and Lagrange Multipliers

MATH 3B (Butler) Practice for Final (I, Solutions)

3 Applications of partial differentiation

Math 210, Final Exam, Spring 2010 Problem 1 Solution

Int Math 3 Midterm Review Handout (Modules 5-7)

Lagrange Multipliers

MATH529 Fundamentals of Optimization Constrained Optimization I

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

Math 21a Partial Derivatives Fall, 2016

Lesson 59 Rolle s Theorem and the Mean Value Theorem

Find the absolute maximum and the absolute minimum of the function. f(x, y) = 3x + 4y. g(x, y) = x 2 + y 2 = 25.

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

3 Algebraic Methods. we can differentiate both sides implicitly to obtain a differential equation involving x and y:

This exam will be over material covered in class from Monday 14 February through Tuesday 8 March, corresponding to sections in the text.

Lesson 3: Solving Equations A Balancing Act

MA 123 (Calculus I) Lecture 13: October 19, 2017 Section A2. Professor Jennifer Balakrishnan,

Chapter 6: Rational Expr., Eq., and Functions Lecture notes Math 1010

Exam 2 Solutions October 12, 2006

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

Higher order derivative

Polynomial functions right- and left-hand behavior (end behavior):

Which one of the following is the solution to the equation? 1) 4(x - 2) + 6 = 2x ) A) x = 5 B) x = -6 C) x = -5 D) x = 6

1.1 Basic Algebra. 1.2 Equations and Inequalities. 1.3 Systems of Equations

Math1a Set 1 Solutions

Math 180, Exam 2, Practice Fall 2009 Problem 1 Solution. f(x) = arcsin(2x + 1) = sin 1 (3x + 1), lnx

LESSON EII.C EQUATIONS AND INEQUALITIES

Maxima and Minima. Marius Ionescu. November 5, Marius Ionescu () Maxima and Minima November 5, / 7

First Derivative Test

Solve for the variable by transforming equations:

Math 16A Second Midterm 6 Nov NAME (1 pt): Name of Neighbor to your left (1 pt): Name of Neighbor to your right (1 pt):

26. LECTURE 26. Objectives

Math-2. Lesson 1-2 Solving Single-Unknown Linear Equations

Math 234 Final Exam (with answers) Spring 2017

Section 3.3 Maximum and Minimum Values

Math 0312 EXAM 2 Review Questions

Edexcel New GCE A Level Maths workbook Solving Linear and Quadratic Simultaneous Equations.

2x (x 2 + y 2 + 1) 2 2y. (x 2 + y 2 + 1) 4. 4xy. (1, 1)(x 1) + (1, 1)(y + 1) (1, 1)(x 1)(y + 1) 81 x y y + 7.

Chapter 6. Systems of Equations and Inequalities

Math 2204 Multivariable Calculus Chapter 14: Partial Derivatives Sec. 14.7: Maximum and Minimum Values

Need help? Try or 4.1 Practice Problems

Math Boot Camp Functions and Algebra

LAGRANGE MULTIPLIERS

Math 263 Assignment #4 Solutions. 0 = f 1 (x,y,z) = 2x 1 0 = f 2 (x,y,z) = z 2 0 = f 3 (x,y,z) = y 1

Transcription:

LESSON 5: LAGRANGE MULTIPLIERS OCTOBER 30, 017 Lagrange multipliers is another method of finding minima and maxima of functions of more than one variable. In fact, many of the problems from the last homework would have been easier via this method. However, this method only applies if you need to find the extrema subject to some constraint. So not every homework problem could have been done using this method. The Method of Lagrange Multipliers: Suppose we want to minimize or maximize a function f(x, y) subject to the constraint g(x, y) = C. Introduce a dummy variable, λ, and solve the system of equations (1) () (3) for (x, y). f x (x, y) = λg x (x, y) f y (x, y) = λg y (x, y) g(x, y) = C Ex 1. Maximize the area of a rectangular garden subject to the constraint that its perimeter is 100 ft. Solution: Let x be the length and y the width of the garden. Then the function we are maximizing is But this is subject to the constraint that f(x, y) = xy. x + y = 100. perimeter By our method, we set up a system of equations We solve for x and y. y = λ () f x g x x = λ () f y x + y g(x,y) g y = 100 C = λ = λ Since x = λ and y = λ, we see that given x + y = 100, 100 = ( λ ) + ( λ ) = 4λ + 4λ = 8λ. x y 1

MATH 1600 Then λ = 100 8 = 5. Therefore, x = ( ) ( ) 5 5 = 5 and y = = 5. We conclude that the area is maximized when x = 5 and y = 5 and the maximum area of the garden is 5(5) = 65 ft. Question: How do we know this is a maximum and not a minimum? Because the minimum area of the garden is 0 ft. For these problems, you always need to consider whether your answer makes sense in context. Note 1. Lagrange multipliers will never tell you if there is a saddle point. Examples. 1. Minimize f(x, y) = (x + 1) + (y ) subject to g(x, y) = x + y = 15. Solution: Taking derivatives, we see that f x = (x + 1), f y = (y ), g x = x, g y = y. Setting up our equations (x + 1) = λ(x) = λx (y ) = λ(y) = λy x + y = 15 The method of Lagrange multipliers calls for a little creativity so try to be flexible when solving these types of problems. We focus on the first two equations. We have Thus, (x + 1) = λx x + 1 = λx (y ) = λy y = λy x + 1 = λx x λx + 1 = 0 x(1 λ) + 1 = 0 x(1 λ) = 1 y = λy y λy = 0 y(1 λ) = 0 y(1 λ) = From this we gather that x, y 0 else these equations can t be true. This means that we may divide by x and y. Hence, 1 x = 1 λ = y, but by cross-multiplication this becomes y = x y = x.

By our constraint, g(x, y) = x + y = 1, we see 15 = x + y = x + ( x) = x + 4x = 5x 5 = x MATH 1600 3 We conclude that x = ±5, which implies y = (±5) = 10. extrema points are (5, 10) and ( 5, 10). Evaluating f(x, y) at these points, Thus, our f(5, 10) = (5 + 1) + ( 10 ) = 6 + ( 1) = 36 + 144 = 180 Max f( 5, 10) = ( 5 + 1) + (10 ) = ( 4) + (8) = 16 + 64 = 80 Min Therefore, the minimum of our function is 80.. Find the minimum value of x e y subject to y + x = 6. Solution: Whatever function we are finding the extrema for is our f(x, y) and the constraint is g(x, y). Thus, we have Next, we find derivatives: f(x, y) = x e y and g(x, y) = y + x = 6. f x = xe y, f y = x ye y, g x =, g y = 4y. We set up our equations to get xe y = λ x ye y = 4λy y + x = 6 By the first equation, we see that xe y = λ xe y = λ. Substituting this into the second equation, we get yx e y = 4 (xe y ) y. λ We may divide both sides by e y because this is never 0. Thus, this equation becomes x y = xy. Subtracting y from both sides, this becomes yx xy = 0 y(x x) = 0.

4 MATH 1600 Hence, either y = 0 or x x = 0 x(x ) = 0 x = 0 or x =. We check all three of these cases: Case 1. y = 0 Case. x = 0 Case 3. x = If y = 0, then our constraint implies that Thus, one solution is (3, 0). 0 + x = 6 x = 3. If x = 0, then by our constraint: y + 0 = 6 y = 3 y = ± 3. So two of our solutions are (0, 3) and (0, 3). If x =, then y + () = 6 y = y = 1 y = ±1. This adds another two solutions: (, 1) and (, 1). Putting this all together, our solutions are (3, 0), (0, 3), (0, 3), (, 1), (, 1). Finally, we check the function values: f(3, 0) = (3) e (0) = 9(1) = 9 f(0, 3) = (0) e ( 3) = 0 min f(0, 3) = (0) e ( 3) = 0 min f(, 1) = () e (1) = 4e max f(, 1) = () e ( 1) = 4e max Therefore, the function s minimum value is 0. 3. Find the extrema of f(x, y) = e xy subject to 9x + 4y 7. Solution: This is a slightly different problem than what we have encountered so far. Here, our constraint is an inequality rather than an equality. Fortunately, this is not as daunting as this may appear. We break this problem into two parts: first, we find the critical points of f(x, y) which are contained in the region described by g(x, y) = 9x + 4y 7, and second, we apply the Lagrange multiplier method to f(x, y) subject to g(x, y) = 9x + 4y = 7.

The derivatives of f(x, y) are MATH 1600 5 f x = ye xy and f y = xe xy. Setting these equal to 0, we see that x = 0, y = 0 because e xy is never 0. Since the point (0, 0) satisfies g(x, y) = 9x + 4y 7, we include this in our list of solutions. Now, we assume that g(x, y) = 9x + 4y = 7 and proceed with the Lagrange multiplier method as we have been. The derivatives of g(x, y) are g x = 18x and g y = 8y. Setting up our system of equations, Next, we solve for (x, y). ye xy = 18λx xe xy = 8λy 9x + 4y = 7 We observe that if any of x, y, or λ are 0, then x = 0 and y = 0. But this case has already been covered, so we assume that x, y, λ 0. This means we can divide by x and y to get λ by itself. Write y 18x e xy = λ and x 8y e xy = λ. Thus, y 18x e xy = x 8y e xy. Because e xy is never zero, we may divide through on both sides to get Cross-multiplying, we get y 18x = x 8y. 8y = 18x y = 18 8 x = 9 4 x. Now, we return to our constraint and substitute for y, 7 = 9x + 4y ( ) 9 = 9x + 4 4 x y = 9x + 9x = 18x.

6 MATH 1600 Solving for x, we see that x = ±. Since y = 9 4 x, we get y = 9 y = ±3. Therefore, we get the following 4 solutions: (, 3), (, 3), (, 3), (, 3). We need to check the function values at each of our solutions: f(0, 0) = e (0)(0) = 1 f(, 3) = e ()(3) = e 6 min f(, 3) = e ()( 3) = e 6 max f(, 3) = e ( )(3) = e 6 max f(, 3) = e ( )( 3) = e 6 min is e 6. Thus, the minimum function value is e 6 and the maximum function value 4. Find the minimum value of f(x, y) = y x 4x subject to y = 8 x. Solution: Our f(x, y) = y x 4x but we need to determine our g(x, y). We are told our constraint is y = 8 x and, adding x to both sides, we have x + y = 8. Hence g(x, y) = x + y = 8. Next, we differentiate: Setting up our equations, f x = x 4, f y = y, g x =, g y = 1. x 4 = λ y = λ x + y = 8 We know immediately that y = λ, so, substituting into the first equation, we get Dividing both sides by 4, we get x 4 = (y) = 4y. λ y = 1 x 1. According to our constraint, 8 = x + y = x + ( 1 ) x 1 = x 1 x 1 = 3 x 1. y

MATH 1600 7 We solve 8 = 3 x 1 for x: 8 = 3 x 1 9 = 3 x 18 = 3x 6 = x Since x = 6, we have y = 1 (6) 1 = 3 1 = 4. Thus, our solution is (6, 4). Plugging this into the function, f(6, 4) = ( 4) (6) 4(6) = 16 36 4 = 44. Note. We should check that this is actually a minimum as opposed to a maximum. To do this, we check any other point that satisfies x + y = 8, say (0, 8). If 44 is a minimum, then we must have 44 < f(0, 8) = 8 (0) 4(0) = 64. So we can rest easy knowing that this really is the minimum of the function subject to the given constraint. 5. Find the maximum value of f(x, y) = 3 x3/ y subject to x = 10 y. Solution: Again, we need to rearrange our constraint a little to determine our g(x, y). Adding y to both sides of x = 10 y, we get x + y = 10. Hence, Next, we differentiate: g(x, y) = x + y = 10. f x = x 1/ y, f y = 3 x3/, g x = 1, g y = 1. Now, we set up our equations: x 1/ y = λ 3 x3/ = λ x + y = 10 Since λ = x 1/ y and λ = 3 x3/, we can write x 1/ y = 3 x3/. Multiplying through by x 1/, we get xy = 3 x.

8 MATH 1600 Subtracting xy from both sides and regrouping, this becomes 0 = ( ) 3 x xy = x 3 x y. Hence, either x = 0 or 3 x y = 0 x = y. We check both cases. 3 Case 1. x = 0 If x = 0, our constraint implies that 0 + y = 10 y = 10. Hence, one solution is (0, 10). Case. 3 x = y If x = y, then 3 10 = x + y = x + 3 x = 5 3 x 10 = 5 3 x x = 6. Thus, since y = (6) = 4, one solution is (6, 4). 3 Putting this together, we have two solutions: (0, 10) and (6, 4). We check the function values at these points: f(0, 10) = 3 (0)3/ (10) = 0 min f(6, 4) = 3 (6)3/ (4) = 16 6 max Therefore, the maximum value is 16 6.