Method of Lagrange Multipliers

Similar documents
Lagrange Multipliers

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

MATH2070 Optimisation

Lagrange Multipliers

MAT 211 Final Exam. Fall Jennings.

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

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

Practice Midterm 2 Math 2153

Answer sheet: Final exam for Math 2339, Dec 10, 2010

Multivariable Calculus and Matrix Algebra-Summer 2017

25. Chain Rule. Now, f is a function of t only. Expand by multiplication:

Higher order derivative

LB 220 Homework 4 Solutions

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

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

Solutions to Homework 5

(a) The points (3, 1, 2) and ( 1, 3, 4) are the endpoints of a diameter of a sphere.

Math 2163, Practice Exam II, Solution

Solutions to Sample Questions for Final Exam

3 Applications of partial differentiation

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

Link lecture - Lagrange Multipliers

Ph.D. Katarína Bellová Page 1 Mathematics 2 (10-PHY-BIPMA2) EXAM - Solutions, 20 July 2017, 10:00 12:00 All answers to be justified.

Lagrange Multipliers

LESSON 25: LAGRANGE MULTIPLIERS OCTOBER 30, 2017

ENGI Partial Differentiation Page y f x

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

MATH 311 Topics in Applied Mathematics I Lecture 34: Conservative vector fields. Area of a surface. Surface integrals.

26. LECTURE 26. Objectives

2015 Math Camp Calculus Exam Solution

Review for the Final Test

Faculty of Engineering, Mathematics and Science School of Mathematics

3. Minimization with constraints Problem III. Minimize f(x) in R n given that x satisfies the equality constraints. g j (x) = c j, j = 1,...

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

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

Review for the Final Exam

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.

Directional Derivative and the Gradient Operator

MATH20132 Calculus of Several Variables. 2018

3.7 Constrained Optimization and Lagrange Multipliers

Math 10C - Fall Final Exam

Math 210, Final Exam, Spring 2010 Problem 1 Solution

Math 210, Final Exam, Practice Fall 2009 Problem 1 Solution AB AC AB. cosθ = AB BC AB (0)(1)+( 4)( 2)+(3)(2)

(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

Implicit Functions, Curves and Surfaces

UNC Charlotte Super Competition Level 3 Test March 4, 2019 Test with Solutions for Sponsors

Math 207 Honors Calculus III Final Exam Solutions

HOMEWORK 7 SOLUTIONS

Solutions to old Exam 3 problems

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

Math 3c Solutions: Exam 2 Fall 2017

Sections minutes. 5 to 10 problems, similar to homework problems. No calculators, no notes, no books, no phones. No green book needed.

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

Lagrange Multipliers

Lecture 13 - Wednesday April 29th

Constrained Optimization

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

1 Lagrange Multiplier Method

SOLUTIONS TO THE FINAL EXAM. December 14, 2010, 9:00am-12:00 (3 hours)

2.1 Affine and Projective Coordinates

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

g(x,y) = c. For instance (see Figure 1 on the right), consider the optimization problem maximize subject to

MATH 228: Calculus III (FALL 2016) Sample Problems for FINAL EXAM SOLUTIONS

Print Your Name: Your Section:

g(t) = f(x 1 (t),..., x n (t)).

Review Sheet for the Final

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

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

Division of the Humanities and Social Sciences. Supergradients. KC Border Fall 2001 v ::15.45

Written assignment 4. Due Wednesday November 25. Review of gradients, Jacobians, Chain Rule, and the Implicit Function Theorem.

Sec. 1.1: Basics of Vectors

APPM 1350 Exam 2 Fall 2016

MAT 211 Final Exam. Spring Jennings. Show your work!

Computation. For QDA we need to calculate: Lets first consider the case that

IE 5531: Engineering Optimization I

MATH Midterm 1 Sample 4

CHAPTER 7 DIV, GRAD, AND CURL

Lagrange Murderpliers Done Correctly

Taylor Series and stationary points

Directional Derivatives in the Plane

Department of Mathematics, IIT Bombay End-Semester Examination, MA 105 Autumn-2008

THE INVERSE TRIGONOMETRIC FUNCTIONS

Section 14.8 Functions of more than three variables

ECON 186 Class Notes: Optimization Part 2

DRAFT - Math 101 Lecture Note - Dr. Said Algarni

Module 2: First-Order Partial Differential Equations

Tangent Plane. Linear Approximation. The Gradient

Unit #24 - Lagrange Multipliers Section 15.3

Math 118, Fall 2014 Final Exam

ENGI Partial Differentiation Page y f x

Group Law for elliptic Curves

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

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

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

7a3 2. (c) πa 3 (d) πa 3 (e) πa3

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.

SOME PROBLEMS YOU SHOULD BE ABLE TO DO

Tangent Lines and Derivatives

MATHEMATICS (2) Before you begin read these instructions carefully:

Review for the Final Exam

Transcription:

Method of Lagrange Multipliers A. Salih Department of Aerospace Engineering Indian Institute of Space Science and Technology, Thiruvananthapuram September 2013 Lagrange multiplier method is a technique for finding a maximum or minimum of a function F(x,y,z) subject to a constraint (also called side condition) of the form G(x,y,z) = 0. Geometric basis of Lagrange multiplier method can be explained if the functions are of two variables. So we start by trying to find the extreme values of F(x,y) subject to a constraint of the form G(x,y) = 0. In other words, we seek the extreme values of F(x,y) when the point (x,y) is restricted to lie on the level curve G(x,y) = 0. Figure blow shows this curve together with several level curves of F(x,y) = c, where c is a constant. To maximize F(x,y) subject to G(x,y) is to find the largest value of c such that the level curve, F(x,y) = c, intersects G(x,y) = 0. It appears from figure that this happens when these curves just touch each other, that is, when they have a common tangent line. This means that the normal lines at the point (x 0,y 0 ) where they touch are identical. So the gradient vectors are parallel. That is y G(x,y) = 0 0 level curves of F(x, y) = constant x Figure 1: The four possible cases of varying end points in the direction of y. F(x 0,y 0 ) = λ G(x 0,y 0 ) for some scalar λ. The scalar parameter λ is called a Lagrange multiplier. The procedure based on the above equation is as follows. We have from chain rule, df = x dx + dy = 0, y G G dg = dx + x y dy = 0 Multiplying the second equation by λ and add to first equation yields ( ) ( dx + x ) dy = 0 y 1

By choosing λ to satisfy, for example, so that As can be seen, the above two equations are components of the vector equation F λ G = 0 (1) Thus, the maximum and minimum values of F(x,y) subject to the constraint G(x,y) = 0 can be found by solving the following set of equations G(x,y) = 0 This is a system of three equations in the three unknowns x, y, and λ, but it is not necessary to find explicit values for λ. If the function to be extremized F and the side condition G are function of three independent variables x, y, and z, the following system of equation is solved to obtain the minimum or maximum value of F. z + λ G z = 0 G(x,y,z) = 0 This is a system of four equations in the four unknowns x, y, z, and λ. (2) (3) Example 1 A rectangular box without a lid is to be made from 27 m 2 of cardboard. Find the maximum volume of such a box. Method I We first, solve this relatively simple problem without using Lagrange multiplier. Let the length, width, and height of the box (in meters) be x, y, and z. Then the volume of the box is V = xyz We can express V as a function of just two variables x and y by using the fact that the area of the five sides of the box is xy + 2yz + 2xz = 27 2

Solving this equation for z, we get 27 xy z = 2(x + y) so that 27 xy V = xy 2(x + y) = 27xy x2 y 2 2(x + y) We compute the partial derivatives: x = y2 (27 2xy x 2 ) 2(x + y) 2 y = x2 (27 2xy y 2 ) 2(x + y) 2 If V is a maximum, then / x = /, but x = 0 or y = 0 gives V = 0, so we must solve the equations 27 2xy x 2 = 0 27 2xy y 2 = 0 These equations imply that x = y, it may be noted the both x and y must be positive here. Putting y = x in one of these equations, we get 27 3x 2 = 0, which gives x = 3, y = 3, and z = 1.5. Thus the maximum volume occurs at x = 3, y = 3, and z = 1.5, so that the maximum volume of the box is 13.5 m 3. Method II Here we wish to maximize subject to the constraint V = xyz G(x,y,z) = xy + 2yz + 2xz 27 = 0 Using the method of Lagrange multipliers, we look for values of x, y, z, and λ such that which become xy + 2yz + 2xz = 27 z + λ G z = 0 yz + λ(y + 2z) = 0 (4) xz + λ(x + 2z) = 0 (5) xy + λ(2y + 2x) = 0 (6) xy + 2yz + 2xz = 27 (7) To solve this systems of equations in a convenient manner, we multiply the equation (4) by x, (5) by y, and (6) by z, then the left sides of these equations will be identical. Thus, we have xyz = λ(xy + 2xz) (8) xyz = λ(xy + 2yz) (9) xyz = λ(2yz + 2xz) (10) 3

P 1 φ 1 y 1 y 2 φ 2 P 2 L = x 1 + x 2 Figure 2: Illustration of Snell s law We observe that λ 0 because λ = 0 would imply xy = yz = xz = 0 and this would contradict the equation (7). Therefore, from equations (8) and (9), we have xz = yz. Since z cannot be zero, we have x = y. From equations (9) and (10), we have y = 2z. If we now put x = y = 2z in equation (7), we get 12z 2 = 27 Since x, y, and z are all positive, we therefore have z = 1.5 and so x = 3 and y = 3. Example 2 Here we will demonstrate how Lagrange multiplier method can be used for proving Snell s law. In the case of the inhomogeneous optical medium consisting of two homogeneous media in which the speed of light is piecewise constant. Suppose that the light travels from a point P 1 (x 1,y 1 ), with a constant speed v 1, in a homogenous medium M 1 to a point P 2 (x 2,y 2 ), with a constant speed v 2, in another homogeneous medium M 2. The two media are separated by the line y = y 0. The time of transit of light is given by the geometry as T = y 1/cosφ 1 v 1 + y 2/cosφ 2 v 2 and is then subject to the geometrical constraint that Applying the condition (2) L = x 1 + x 2 = y 1 tanφ 1 + y 2 tanφ 2 T + λ L = y 1 secφ 1 tanφ 1 + λy 1 sec 2 φ 1 = 0 φ 1 φ 1 v 1 T + λ L = y 2 secφ 2 tanφ 2 + λy 2 sec 2 φ 2 = 0 φ 2 φ 2 v 2 4

These give as the only solution sinφ 1 = λv 1 sinφ 2 = λv 2 or sinφ 1 = sinφ 2 v 1 v 2 where the angles are measured with respect to the normal of the boundary between the two media. 5