Lagrange multipliers October 2013

Similar documents
Lagrange multipliers 14.8

Constrained Optimization and Lagrange Multipliers

we wish to minimize this function; to make life easier, we may minimize

MATH2111 Higher Several Variable Calculus Lagrange Multipliers

x 6 + λ 2 x 6 = for the curve y = 1 2 x3 gives f(1, 1 2 ) = λ actually has another solution besides λ = 1 2 = However, the equation λ

(c) 0 (d) (a) 27 (b) (e) x 2 3x2

REVIEW I MATH 254 Calculus IV. Exam I (Friday, April 29) will cover sections

MAT203 OVERVIEW OF CONTENTS AND SAMPLE PROBLEMS

1. Suppose that the equation F (x, y, z) = 0 implicitly defines each of the three variables x, y, and z as functions of the other two:

Math 113 Calculus III Final Exam Practice Problems Spring 2003

Math 233. Lagrange Multipliers Basics

Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers

Bounded, Closed, and Compact Sets

Math 209 (Fall 2007) Calculus III. Solution #5. 1. Find the minimum and maximum values of the following functions f under the given constraints:

Math 21a Homework 22 Solutions Spring, 2014

Math 233. Lagrange Multipliers Basics

d f(g(t), h(t)) = x dt + f ( y dt = 0. Notice that we can rewrite the relationship on the left hand side of the equality using the dot product: ( f

Math 241, Final Exam. 12/11/12.

Math 326 Assignment 3. Due Wednesday, October 17, 2012.

Total. Math 2130 Practice Final (Spring 2017) (1) (2) (3) (4) (5) (6) (7) (8)

Grad operator, triple and line integrals. Notice: this material must not be used as a substitute for attending the lectures

Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives

Solution 2. ((3)(1) (2)(1), (4 3), (4)(2) (3)(3)) = (1, 1, 1) D u (f) = (6x + 2yz, 2y + 2xz, 2xy) (0,1,1) = = 4 14

Gradient and Directional Derivatives

Winter 2012 Math 255 Section 006. Problem Set 7

3.3 Optimizing Functions of Several Variables 3.4 Lagrange Multipliers

Math 213 Exam 2. Each question is followed by a space to write your answer. Please write your answer neatly in the space provided.

f xx (x, y) = 6 + 6x f xy (x, y) = 0 f yy (x, y) = y In general, the quantity that we re interested in is

Updated: January 11, 2016 Calculus III Section Math 232. Calculus III. Brian Veitch Fall 2015 Northern Illinois University

MATH Lagrange multipliers in 3 variables Fall 2016

Equation of tangent plane: for implicitly defined surfaces section 12.9

What you will learn today

MATH. 2153, Spring 16, MWF 12:40 p.m. QUIZ 1 January 25, 2016 PRINT NAME A. Derdzinski Show all work. No calculators. The problem is worth 10 points.

Solution of final examination

14.5 Directional Derivatives and the Gradient Vector

Differentiability and Tangent Planes October 2013

Practice problems from old exams for math 233 William H. Meeks III December 21, 2009

14.6 Directional Derivatives and the Gradient Vector

HOMEWORK ASSIGNMENT #4, MATH 253

MAT175 Overview and Sample Problems

8(x 2) + 21(y 1) + 6(z 3) = 0 8x + 21y + 6z = 55.

Math 21a Tangent Lines and Planes Fall, What do we know about the gradient f? Tangent Lines to Curves in the Plane.

Math 253, Section 102, Fall 2006 Practice Final Solutions

Lagrangian Multipliers

. Tutorial Class V 3-10/10/2012 First Order Partial Derivatives;...

MATH 200 (Fall 2016) Exam 1 Solutions (a) (10 points) Find an equation of the sphere with center ( 2, 1, 4).

Calculus III. Math 233 Spring In-term exam April 11th. Suggested solutions

Directional Derivatives and the Gradient Vector Part 2

6. Find the equation of the plane that passes through the point (-1,2,1) and contains the line x = y = z.

1 Vector Functions and Space Curves

The Three Dimensional Coordinate System

Lagrangian Multipliers

Section 4: Extreme Values & Lagrange Multipliers.

Math 206 First Midterm October 5, 2012

13.7 LAGRANGE MULTIPLIER METHOD

Name: Class: Date: 1. Use Lagrange multipliers to find the maximum and minimum values of the function subject to the given constraint.

Without fully opening the exam, check that you have pages 1 through 11.

1. Show that the rectangle of maximum area that has a given perimeter p is a square.

MATH 19520/51 Class 10

Chapter 3 Numerical Methods

= w. w u. u ; u + w. x x. z z. y y. v + w. . Remark. The formula stated above is very important in the theory of. surface integral.

Calculus III Meets the Final

A small review, Second Midterm, Calculus 3, Prof. Montero 3450: , Fall 2008

Directional Derivatives and the Gradient Vector Part 2

13.1. Functions of Several Variables. Introduction to Functions of Several Variables. Functions of Several Variables. Objectives. Example 1 Solution

TEST 3 REVIEW DAVID BEN MCREYNOLDS

Outcomes List for Math Multivariable Calculus (9 th edition of text) Spring

Math (Spring 2009): Lecture 5 Planes. Parametric equations of curves and lines

There are 10 problems, with a total of 150 points possible. (a) Find the tangent plane to the surface S at the point ( 2, 1, 2).

MATH 209, Lab 5. Richard M. Slevinsky

Optimization problems with constraints - the method of Lagrange multipliers

21-256: Lagrange multipliers

Let and be a differentiable function. Let Then be the level surface given by

MATH 2400, Analytic Geometry and Calculus 3

Multivariate Calculus Review Problems for Examination Two

5 Day 5: Maxima and minima for n variables.

Practice problems from old exams for math 233

Chapter 5 Partial Differentiation

Practice problems. 1. Given a = 3i 2j and b = 2i + j. Write c = i + j in terms of a and b.

Inverse and Implicit functions

Mathematically, the path or the trajectory of a particle moving in space in described by a function of time.

Vectors and the Geometry of Space

Background for Surface Integration

MAC2313 Final A. a. The vector r u r v lies in the tangent plane of S at a given point. b. S f(x, y, z) ds = R f(r(u, v)) r u r v du dv.

t dt ds Then, in the last class, we showed that F(s) = <2s/3, 1 2s/3, s/3> is arclength parametrization. Therefore,

Implicit Surfaces or Level Sets of Functions *

CSC418 / CSCD18 / CSC2504

Let s write this out as an explicit equation. Suppose that the point P 0 = (x 0, y 0, z 0 ), P = (x, y, z) and n = (A, B, C).

In other words, we want to find the domain points that yield the maximum or minimum values (extrema) of the function.

. 1. Chain rules. Directional derivative. Gradient Vector Field. Most Rapid Increase. Implicit Function Theorem, Implicit Differentiation

Volumes of Solids of Revolution Lecture #6 a

Quiz 6 Practice Problems

Math 241 Spring 2015 Final Exam Solutions

True/False. MATH 1C: SAMPLE EXAM 1 c Jeffrey A. Anderson ANSWER KEY

Kevin James. MTHSC 206 Section 15.6 Directional Derivatives and the Gra

Dubna 2018: lines on cubic surfaces

Workbook. MAT 397: Calculus III

Geometric Queries for Ray Tracing

Planes Intersecting Cones: Static Hypertext Version

Key points. Assume (except for point 4) f : R n R is twice continuously differentiable. strictly above the graph of f except at x

Transcription:

Lagrange multipliers 14.8 14 October 2013

Example: Optimization with constraint. Example: Find the extreme values of f (x, y) = x + 2y on the ellipse 3x 2 + 4y 2 = 3. 3/2 1 1 3/2

Example: Optimization with constraint. Example: Find the extreme values of f (x, y) = x + 2y on the ellipse 3x 2 + 4y 2 = 3. 3/2 Maximum? 1 1 Minimum? 3/2

Example: Optimization with constraint. Example: Find the extreme values of f (x, y) = x + 2y on the ellipse 3x 2 + 4y 2 = 3. 3/2 Maximum? 1 1 Minimum? 3/2 Idea: f increases most rapidly when you move in the direction

Example: Optimization with constraint. Example: Find the extreme values of f (x, y) = x + 2y on the ellipse 3x 2 + 4y 2 = 3. 3/2 Maximum? 1 1 Minimum? 3/2 Idea: f increases most rapidly when you move in the direction 1, 2 which is f.

Example: Optimization with constraint. Example: Find the extreme values of f (x, y) = x + 2y on the ellipse 3x 2 + 4y 2 = 3. 3/2 Maximum? 1 1 Minimum? 3/2 Idea: f increases most rapidly when you move in the direction 1, 2 which is f. Constraint: 3x 2 + 4y 2 = 3, Objective function: f (x, y) = x + 2y

n f tangent line constraint f can be increased by moving right (clockwise) along curve

f n tangent line constraint f can be increased by moving left (counterclockwise) along curve

f n tangent line constraint f cannot be increased by moving in either direction along curve

constraint Idea: f has a critical point when f is parallel to the normal vector of the constraint.

Optimization with constraint: closer to rigorous. Same idea, closer to being rigorous: At a point on the constraint curve or surface, the possible directions of motion are given by the tangent plane. The rate of change of f in a given direction is the dot product of f with that tangent vector.

Optimization with constraint: closer to rigorous. Same idea, closer to being rigorous: At a point on the constraint curve or surface, the possible directions of motion are given by the tangent plane. The rate of change of f in a given direction is the dot product of f with that tangent vector. The direction in which f increases most rapidly is the projection of f onto the tangent plane.

Optimization with constraint: closer to rigorous. Same idea, closer to being rigorous: At a point on the constraint curve or surface, the possible directions of motion are given by the tangent plane. The rate of change of f in a given direction is the dot product of f with that tangent vector. The direction in which f increases most rapidly is the projection of f onto the tangent plane. The point is a critical point if and only if this projection is zero, i.e., f is orthogonal to the tangent plane.

Optimization with constraint: closer to rigorous. Same idea, closer to being rigorous: At a point on the constraint curve or surface, the possible directions of motion are given by the tangent plane. The rate of change of f in a given direction is the dot product of f with that tangent vector. The direction in which f increases most rapidly is the projection of f onto the tangent plane. The point is a critical point if and only if this projection is zero, i.e., f is orthogonal to the tangent plane. f is orthogonal to the tangent plane if and only if f is parallel to the tangent plane s normal vector. Recall that if the constraint is a level surface of a function g then the normal vector to the tangent plane is given by the gradient vector g.

Lagrange s Theorem. Theorem (Lagrange s Theorem) If P is a critical point of f (x, y) on the curve g(x, y) = k, and g P 0, then f P is parallel to g P : there is a scalar λ such that f P = λ g P.

Lagrange s Theorem. Theorem (Lagrange s Theorem) If P is a critical point of f (x, y) on the curve g(x, y) = k, and g P 0, then f P is parallel to g P : there is a scalar λ such that f P = λ g P. Theorem (Lagrange s Theorem, three variables) If P is a critical point of f (x, y, z) on the surface g(x, y, z) = k, and g P 0, then f P is parallel to g P : there is a scalar λ such that f P = λ g P.

Lagrange s Theorem. Theorem (Lagrange s Theorem) If P is a critical point of f (x, y) on the curve g(x, y) = k, and g P 0, then f P is parallel to g P : there is a scalar λ such that f P = λ g P. Theorem (Lagrange s Theorem, three variables) If P is a critical point of f (x, y, z) on the surface g(x, y, z) = k, and g P 0, then f P is parallel to g P : there is a scalar λ such that f P = λ g P. The scalar λ is called a Lagrange multiplier.

Lagrange s Theorem. Theorem (Lagrange s Theorem) If P is a critical point of f (x, y) on the curve g(x, y) = k, and g P 0, then f P is parallel to g P : there is a scalar λ such that f P = λ g P. Theorem (Lagrange s Theorem, three variables) If P is a critical point of f (x, y, z) on the surface g(x, y, z) = k, and g P 0, then f P is parallel to g P : there is a scalar λ such that f P = λ g P. The scalar λ is called a Lagrange multiplier. Usually looking for the point P or the value f (P), not λ.

Clicker Question: This plot shows the gradient vectors for a (hidden) function f (x, y) and a linear constraint. Which point is closest to the global min of f (x, y) on this constraint? A B C D receiver channel: 41 session ID: bsumath275

Example. f (x, y) = x + 2y g(x, y) = 3x 2 + 4y 2, g(x, y) = 3

Example. f (x, y) = x + 2y g(x, y) = 3x 2 + 4y 2, g(x, y) = 3 We have: f = 1, 2, g = 6x, 8y

Example. f (x, y) = x + 2y g(x, y) = 3x 2 + 4y 2, g(x, y) = 3 We have: f = 1, 2, g = 6x, 8y Solve 1 = 6xλ 2 = 8yλ 3x 2 + 4y 2 = 3

Example. f (x, y) = x + 2y g(x, y) = 3x 2 + 4y 2, g(x, y) = 3 We have: Solve f = 1, 2, g = 6x, 8y 1 = 6xλ 2 = 8yλ 3x 2 + 4y 2 = 3 = λ = 1 6x = 2 = 8y 6x = y = 3 2 x

Example. f (x, y) = x + 2y g(x, y) = 3x 2 + 4y 2, g(x, y) = 3 We have: Solve f = 1, 2, g = 6x, 8y 1 = 6xλ 2 = 8yλ 3x 2 + 4y 2 = 3 = λ = 1 6x = 2 = 8y 6x = y = 3 2 x = 3x 2 + 4( 3 2 x ) 2 = 3 = 12x 2 = 3

Example. f (x, y) = x + 2y g(x, y) = 3x 2 + 4y 2, g(x, y) = 3 We have: Solve f = 1, 2, g = 6x, 8y 1 = 6xλ 2 = 8yλ 3x 2 + 4y 2 = 3 = λ = 1 6x = 2 = 8y 6x = y = 3 2 x = 3x 2 + 4( 3 2 x ) 2 = 3 = 12x 2 = 3 = x = ± 1 2

Example. f (x, y) = x + 2y g(x, y) = 3x 2 + 4y 2, g(x, y) = 3 We have: Solve f = 1, 2, g = 6x, 8y 1 = 6xλ 2 = 8yλ 3x 2 + 4y 2 = 3 = λ = 1 6x = 2 = 8y 6x = y = 3 2 x = 3x 2 + 4( 3 2 x ) 2 = 3 = 12x 2 = 3 = x = ± 1 2 = y = ±3 4

Example, concluded. f = 1, 2, g = 6x, 8y Critical points: ( 1, ) ( 3 2 4, 1, ) 3 2 4. f (1/2, 3/4) = 2, maximum f ( 1/2, 3/4) = 2, minimum 3/2 1 1 3/2

Why is Lagrange s Theorem true? Proof (two-variable case). Let r(t) be a parametrization of the curve g(x, y) = k, with r(0) = P and r (0) 0. (There exists such a parametrization, by the Implicit Function Theorem from real analysis.)

Why is Lagrange s Theorem true? Proof (two-variable case). Let r(t) be a parametrization of the curve g(x, y) = k, with r(0) = P and r (0) 0. (There exists such a parametrization, by the Implicit Function Theorem from real analysis.) By assumption t = 0 is a critical point of f (r(t)).

Why is Lagrange s Theorem true? Proof (two-variable case). Let r(t) be a parametrization of the curve g(x, y) = k, with r(0) = P and r (0) 0. (There exists such a parametrization, by the Implicit Function Theorem from real analysis.) By assumption t = 0 is a critical point of f (r(t)). Thus d dt f (r(t)) t=0 = 0.

Why is Lagrange s Theorem true? Proof (two-variable case). Let r(t) be a parametrization of the curve g(x, y) = k, with r(0) = P and r (0) 0. (There exists such a parametrization, by the Implicit Function Theorem from real analysis.) By assumption t = 0 is a critical point of f (r(t)). Thus d dt f (r(t)) t=0 = 0. The Chain Rule for Paths gives f P r (0) = 0.

Why is Lagrange s Theorem true? Proof (two-variable case). Let r(t) be a parametrization of the curve g(x, y) = k, with r(0) = P and r (0) 0. (There exists such a parametrization, by the Implicit Function Theorem from real analysis.) By assumption t = 0 is a critical point of f (r(t)). Thus d dt f (r(t)) t=0 = 0. The Chain Rule for Paths gives f P r (0) = 0. That is, f P is perpendicular to r (0), the tangent vector to the curve at P. That is, f P is parallel to the normal vector at P, which is g P.

Example. Example: Find the extreme values of f (x, y, z) = xy + z 2 on the unit sphere x 2 + y 2 + z 2 = 1.

Example. Example: Find the extreme values of f (x, y, z) = xy + z 2 on the unit sphere x 2 + y 2 + z 2 = 1. f = y, x, 2z g = 2x, 2y, 2z Solve for (x, y, z) in f = λ g:

Example. Example: Find the extreme values of f (x, y, z) = xy + z 2 on the unit sphere x 2 + y 2 + z 2 = 1. f = y, x, 2z g = 2x, 2y, 2z Solve for (x, y, z) in f = λ g: y = λ2x x = λ2y 2z = λ2z x 2 + y 2 + z 2 = 1

Example. Example: Find the extreme values of f (x, y, z) = xy + z 2 on the unit sphere x 2 + y 2 + z 2 = 1. f = y, x, 2z g = 2x, 2y, 2z Solve for (x, y, z) in f = λ g: y = λ2x x = λ2y 2z = λ2z x 2 + y 2 + z 2 = 1 = y = 4λ 2 y = y = 0 or 4λ 2 = 1

Example, continued. f (x, y, z) = xy + z 2 g(x, y, z) = x 2 + y 2 + z 2 = 1 f = y, x, 2z g = 2x, 2y, 2z y = λ2x, x = λ2y, 2z = λ2z, x 2 + y 2 + z 2 = 1

Example, continued. f (x, y, z) = xy + z 2 g(x, y, z) = x 2 + y 2 + z 2 = 1 f = y, x, 2z g = 2x, 2y, 2z y = λ2x, x = λ2y, 2z = λ2z, x 2 + y 2 + z 2 = 1 y = 0: = x = 0 = z = ±1

Example, continued. f (x, y, z) = xy + z 2 g(x, y, z) = x 2 + y 2 + z 2 = 1 f = y, x, 2z g = 2x, 2y, 2z y = λ2x, x = λ2y, 2z = λ2z, x 2 + y 2 + z 2 = 1 y = 0: = x = 0 = z = ±1 4λ 2 = 1: { = λ = ± 1 2 = z = 0 = x = ±y x 2 + y 2 = 1

Example, continued. f (x, y, z) = xy + z 2 g(x, y, z) = x 2 + y 2 + z 2 = 1 f = y, x, 2z g = 2x, 2y, 2z y = λ2x, x = λ2y, 2z = λ2z, x 2 + y 2 + z 2 = 1 y = 0: = x = 0 = z = ±1 4λ 2 = 1: { = λ = ± 1 2 = z = 0 = x = ±y x 2 + y 2 = 1 Six critical points: (0, 0, ±1), (±1/ 2, ±1/ 2, 0).

Example, concluded. f (0, 0, ±1/2) = 1 f (1/ 2, 1/ 2, 0) = f ( 1/ 2, 1/ 2, 0) = 1 2 f (1/ 2, 1/ 2, 0) = f ( 1/ 2, 1/ 2, 0) = 1 2

Example, concluded. f (0, 0, ±1/2) = 1 f (1/ 2, 1/ 2, 0) = f ( 1/ 2, 1/ 2, 0) = 1 2 f (1/ 2, 1/ 2, 0) = f ( 1/ 2, 1/ 2, 0) = 1 2 The maximum is 1, at (0, 0, ±1). The minimum is 1/2, at ±(1/ 2, 1/ 2, 0).

Multiple constraints. Example: Find the maximum of f (x, y, z) = x on the curve C given as the intersection of g(x, y, z) = 2x 2 + 7y 2 + 5z 2 = 3, h(x, y, z) = x + y + z = 0

Multiple constraints. Example: Find the maximum of f (x, y, z) = x on the curve C given as the intersection of g(x, y, z) = 2x 2 + 7y 2 + 5z 2 = 3, h(x, y, z) = x + y + z = 0 Answer: At critical point P, for some scalars λ, µ. f P = λ g P + µ h P

Multiple constraints. Example: Find the maximum of f (x, y, z) = x on the curve C given as the intersection of g(x, y, z) = 2x 2 + 7y 2 + 5z 2 = 3, h(x, y, z) = x + y + z = 0 Answer: At critical point P, for some scalars λ, µ. f P = λ g P + µ h P f = 1, 0, 0, g = 4x, 14y, 10z, h = 1, 1, 1

Multiple constraints, continued. f = 1, 0, 0, g = 4x, 14y, 10z, h = 1, 1, 1 Solve for (x, y, z) in f P = λ g P + µ h P : 1 = 4λx + µ 0 = 14λy + µ 0 = 10λz + µ 2x 2 + 7y 2 + 5z 2 = 3 x + y + z = 0

Multiple constraints, continued. f = 1, 0, 0, g = 4x, 14y, 10z, h = 1, 1, 1 Solve for (x, y, z) in f P = λ g P + µ h P : 1 = 4λx + µ 0 = 14λy + µ 0 = 10λz + µ 2x 2 + 7y 2 + 5z 2 = 3 x + y + z = 0 ( ) 6 5 = = two critical points: ±, 59 2 59, 7 2 59

Multiple constraints, continued. f = 1, 0, 0, g = 4x, 14y, 10z, h = 1, 1, 1 Solve for (x, y, z) in f P = λ g P + µ h P : 1 = 4λx + µ 0 = 14λy + µ 0 = 10λz + µ 2x 2 + 7y 2 + 5z 2 = 3 x + y + z = 0 ( ) 6 5 = = two critical points: ±, 59 2 59, 7 2 59 6 So, the maximum value of f (x, y, z) = x is. 59

III 3x + y/2 = 12 Clicker (a) I < II, Question: < III (b) III < II < I (c) II < III < I (d) This II < contour I < III plot of f (x, y) also shows the circle of radius 2 (e) centered III < I < II at (0, 0). If you are restricted to being on the circle, how many local maxes and mins does f (x, y) have? 154. This contour plot of f(x, y) also shows the circle of radius 2 centered at (0,0). If you are restricted to being on the circle, how many local maxes and mins does f(x, y) have? A. 1 max, 1 min B. 2 maxes, 2 mins C. 3 maxes, 3 mins D. None receiver channel: 41 48 session ID: bsumath275

Clicker Question: Suppose (a, b, c) (0, 0, 0). How many local maxes and mins does the function f (x, y, z) = ax + by + cz have on the sphere x 2 + y 2 + z 2 = 1? A. 1 max, 1 min B. 2 maxes, 2 mins C. 3 maxes, 3 mins D. None E. Depends on a, b, c receiver channel: 41 session ID: bsumath275