Lagrange Multipliers Math 115 Calculus 115 How to deal with - - PowerPoint PPT Presentation

lagrange multipliers
SMART_READER_LITE
LIVE PREVIEW

Lagrange Multipliers Math 115 Calculus 115 How to deal with - - PowerPoint PPT Presentation

Christopher Croke University of Pennsylvania Lagrange Multipliers Math 115 Calculus 115 How to deal with constrained optimization. Calculus 115 How to deal with constrained optimization. Lets revisit the problem of finding the cheapest


slide-1
SLIDE 1

Christopher Croke University of Pennsylvania

Lagrange Multipliers

Math 115

Calculus 115

slide-2
SLIDE 2

How to deal with constrained optimization.

Calculus 115

slide-3
SLIDE 3

How to deal with constrained optimization. Let’s revisit the problem of finding the cheapest box (with double bottom) of volume 324 cubic inches.

Calculus 115

slide-4
SLIDE 4

How to deal with constrained optimization. Let’s revisit the problem of finding the cheapest box (with double bottom) of volume 324 cubic inches. Minimize f (x, y, z) = 3xy + 2xz + 2yz. (Objective function)

Calculus 115

slide-5
SLIDE 5

How to deal with constrained optimization. Let’s revisit the problem of finding the cheapest box (with double bottom) of volume 324 cubic inches. Minimize f (x, y, z) = 3xy + 2xz + 2yz. (Objective function) subject to xyz = 324 (constraint equation).

Calculus 115

slide-6
SLIDE 6

How to deal with constrained optimization. Let’s revisit the problem of finding the cheapest box (with double bottom) of volume 324 cubic inches. Minimize f (x, y, z) = 3xy + 2xz + 2yz. (Objective function) subject to xyz = 324 (constraint equation). Previously we used constraint equation to write z as a function of x and y. But you can’t always do that.

Calculus 115

slide-7
SLIDE 7

Problem; Find the minimum value of x2 + y2 + 1 subject to x + y − 2 = 0. (use Maple to graph).

Calculus 115

slide-8
SLIDE 8

Problem; Find the minimum value of x2 + y2 + 1 subject to x + y − 2 = 0. (use Maple to graph). General Problem: Find (x, y) that maximizes (or minimizes) f (x, y) subject to g(x, y) = 0.

Calculus 115

slide-9
SLIDE 9

Problem; Find the minimum value of x2 + y2 + 1 subject to x + y − 2 = 0. (use Maple to graph). General Problem: Find (x, y) that maximizes (or minimizes) f (x, y) subject to g(x, y) = 0. The answer: If (a, b) solves the problem then there is a number λ such that ∇f (a, b) = λ∇g(a, b) and g(a, b) = 0.

Calculus 115

slide-10
SLIDE 10

Problem; Find the minimum value of x2 + y2 + 1 subject to x + y − 2 = 0. (use Maple to graph). General Problem: Find (x, y) that maximizes (or minimizes) f (x, y) subject to g(x, y) = 0. The answer: If (a, b) solves the problem then there is a number λ such that ∇f (a, b) = λ∇g(a, b) and g(a, b) = 0. (Since ∇g is perpendicular to the level curves this says that ∇f is perpendicular to the level curve g(x, y) = 0 at the point (a, b).)

Calculus 115

slide-11
SLIDE 11

Method of Lagrange Multipliers:

Define F(x, y, λ) = f (x, y) + λg(x, y)

Calculus 115

slide-12
SLIDE 12

Method of Lagrange Multipliers:

Define F(x, y, λ) = f (x, y) + λg(x, y) Now find all points that satisfy the three equations: Fx(a, b, λ) = 0, Fy(a, b, λ) = 0, Fλ(a, b, λ) = 0.

Calculus 115

slide-13
SLIDE 13

Method of Lagrange Multipliers:

Define F(x, y, λ) = f (x, y) + λg(x, y) Now find all points that satisfy the three equations: Fx(a, b, λ) = 0, Fy(a, b, λ) = 0, Fλ(a, b, λ) = 0. (Note the last equation is just g(a, b) = 0 which is our constraint equation.)

Calculus 115

slide-14
SLIDE 14

Method of Lagrange Multipliers:

Define F(x, y, λ) = f (x, y) + λg(x, y) Now find all points that satisfy the three equations: Fx(a, b, λ) = 0, Fy(a, b, λ) = 0, Fλ(a, b, λ) = 0. (Note the last equation is just g(a, b) = 0 which is our constraint equation.) Now let’s do our example.

Calculus 115

slide-15
SLIDE 15

This method usually works: Solve both Fx = 0 and Fy = 0 for λ and equate the expressions.

Calculus 115

slide-16
SLIDE 16

This method usually works: Solve both Fx = 0 and Fy = 0 for λ and equate the expressions. Solve for one of x or y.

Calculus 115

slide-17
SLIDE 17

This method usually works: Solve both Fx = 0 and Fy = 0 for λ and equate the expressions. Solve for one of x or y. Plug into Fλ = 0 and solve for one variable.

Calculus 115

slide-18
SLIDE 18

This method usually works: Solve both Fx = 0 and Fy = 0 for λ and equate the expressions. Solve for one of x or y. Plug into Fλ = 0 and solve for one variable. Use result to find other two variables.

Calculus 115

slide-19
SLIDE 19

This method usually works: Solve both Fx = 0 and Fy = 0 for λ and equate the expressions. Solve for one of x or y. Plug into Fλ = 0 and solve for one variable. Use result to find other two variables. Problem: For a firm with production function f (x, y) = 20x

2 3 y 1 3 ,

assume that a unit x of labor costs $10 and a unit y of capital costs $20. If the firm has $12, 000 to spend, how many units of labor and how many units of capital should it use to maximize production.

Calculus 115

slide-20
SLIDE 20

This method usually works: Solve both Fx = 0 and Fy = 0 for λ and equate the expressions. Solve for one of x or y. Plug into Fλ = 0 and solve for one variable. Use result to find other two variables. Problem: For a firm with production function f (x, y) = 20x

2 3 y 1 3 ,

assume that a unit x of labor costs $10 and a unit y of capital costs $20. If the firm has $12, 000 to spend, how many units of labor and how many units of capital should it use to maximize production. In this problem λ turns out to be the marginal productivity of money, i.e. One extra dollar should produce 0.83994 units of production.

Calculus 115

slide-21
SLIDE 21

Can do more variables. Lets try our box example f (x, y, z) = 3xy + 2xz + 2yz with 324 − xyz = 0.

Calculus 115

slide-22
SLIDE 22

Can do more variables. Lets try our box example f (x, y, z) = 3xy + 2xz + 2yz with 324 − xyz = 0. Can handle more constraints. (See book.)

Calculus 115

slide-23
SLIDE 23

Can do more variables. Lets try our box example f (x, y, z) = 3xy + 2xz + 2yz with 324 − xyz = 0. Can handle more constraints. (See book.) Can use to find max and min on a bounded region. Find critical points in the interior.

Calculus 115

slide-24
SLIDE 24

Can do more variables. Lets try our box example f (x, y, z) = 3xy + 2xz + 2yz with 324 − xyz = 0. Can handle more constraints. (See book.) Can use to find max and min on a bounded region. Find critical points in the interior. For each edge solve the constrained problem.

Calculus 115

slide-25
SLIDE 25

Can do more variables. Lets try our box example f (x, y, z) = 3xy + 2xz + 2yz with 324 − xyz = 0. Can handle more constraints. (See book.) Can use to find max and min on a bounded region. Find critical points in the interior. For each edge solve the constrained problem. Check vertices

Calculus 115

slide-26
SLIDE 26

Can do more variables. Lets try our box example f (x, y, z) = 3xy + 2xz + 2yz with 324 − xyz = 0. Can handle more constraints. (See book.) Can use to find max and min on a bounded region. Find critical points in the interior. For each edge solve the constrained problem. Check vertices Take the max (or min) of the first three. Problem: Find the maximum and minimum values of f (x, y) = y2 − y + x2 − 2 on the upper half unit disc.

Calculus 115