How do you minimize and maximize #f(x,y)=(x^2+4y)/e^(y)# constrained to #0<x-y<1#?

1 Answer
Jun 29, 2016

There are local minima and local maxima points.

Explanation:

This problem will be solved using the Lagrange Multipliers technique.
(see https://en.wikipedia.org/wiki/Lagrange_multiplier)
This technique applies to analytic maximization/minimization problems with equality restrictions.

We will transform our problem which is with inequality restrictions into an equivalent one, now with equality restrictions. For this purpose we will introduce the so called slack variables #s_1,s_2# and the equivalent problem is stated as:

Minimize/Maximize #f(x,y)=(x^2+4y)/e^y#
subjected to

#g_1(x,y,s_1) =x-y-s_1^2=0#
#g_2(x,y,s_1) =x-y-1+s_2^2=0#

The set of lagrangian stationary points contains the local minima/maxima points.

The lagrangian is stated as

#L(x,y,s_1,s_2,lambda_1,lambda_2)=f(x,y)+lambda_1 g_1(x,y,s_1)+lambda_2g_2(x,y,s_2)#

The lagrangian stationary points are the solutions of

#grad L(x,y,s_1,s_2,lambda_1,lambda_2)=vec 0#

or

#{ (-lambda_1 - lambda_2 + e^-y ( y-1)=0), (lambda_1 + lambda_2 + e^-y x - e^-y (x y-x)=0), (-s_1^2 - x + y=0), (-2 lambda_1 s_1=0), (s_2^2 - x + y-1=0), (2 lambda_2 s_2=0) :}#

This nonlinear system of equations can be solved using a technique similar to Newton-Raphson's
(see https://en.wikipedia.org/wiki/Newton%27s_method)
obtaining

#((x= 0, y= 1., lambda_1 = 0, s_1 = 1., lambda_2= 0, s_2 =0), (x= 0.381966, y= 0.381966, lambda_1= -0.421819, s_1 = 0, lambda_2 = 0, s_2 = -1.), (x = 2., y -> 3., lambda_1 = 0, s_1 = 1., lambda_2 = 0.0995741, s_2= 0), (x= 2.61803, y = 2.61803, lambda_1 = 0.118029, s_1 = 0, lambda_2 = 0, s_2 = 1.))#

The first and the third are qualified by the restriction #g_2(x,y,0)# because #s_2=0#.
The second and fourth are qualified by the restriction #g_1(x,y,0)# because for them #s_1=0#.

The qualification is done over

#f@g_1=f_{g_1} = e^-x (x-1) x # and
#f@g_2=f_{g_2} = e^{-(x+1)} x^2#

So first and second points are local minima
the third and fourth points are local maxima.

Attached the #f(x,y)# contour plot, into the feasible domain, showing the local minima/maxima points.

enter image source here