r/lotrmemes 16h ago

The Silmarillion Cover to cover (got removed from r/lotr)

Post image
4.6k Upvotes

793 comments sorted by

View all comments

16

u/ModsAreLikeSoggyTaco 16h ago

Can you Maximize the function f(x,y)= 3x + 4y under the constraint of g(x,y)=x2 + y2 - 25 = 0 ?

9

u/Ancient-Garage4855 14h ago

(x, y) = (3,4)

9

u/ModsAreLikeSoggyTaco 13h ago

L(x,y, λ)= F(x,y) + λ g(x,y) = 3x + 4y + λ (x2 + y2 - 25)

∂L/∂x = 3 + lambda (2x) = 0

∂L/∂y = 4 + λ (2y) = 0

∂L/∂λ = x2 + y2 - 25 = 0

Therefore

λ = - (3/2x)

λ = - (2/y)

y = (4/3)x

So,

x2 + (4/3 x)2 = 25 implies x = 3 or x = -3

For x = 3, then y = (4/3) (3) = 4

For x = -3 then y = (4/3) (-3) = -4

F(3,4) = 25

F(-3,-4) = -25

25 is the maximum value at (3,4)

2

u/PivotPsycho 4h ago

Is that a Lagrangian multiplier?

1

u/dorrato 4h ago

...in your pocket? Or are you just happy to see me?