Question
Question: How do you maximize and minimize \(f\left( x,y \right)=x-x{{y}^{2}}\) constrained to \(0\le {{x}^{2}...
How do you maximize and minimize f(x,y)=x−xy2 constrained to 0≤x2+y≤1 ?
Solution
We need to find the local maxima and local minima for the given question. We start to solve the problem by assuming two slack variables. Then, we use the Lagrange multipliers technique to get the required result.
Complete step by step solution:
We are given a function in x, y and need to find the local maxima, local minima of the same. We will solve the question by using the Lagrange multipliers technique.
A slack variable is used to transform an inequality constraint into an equality. The transformation is done by adding a value on the left-hand side of the inequality. The value of the slack variable cannot be negative. Its value can be either positive or zero.
Let us consider two slack variables a, b.
The given function is f(x,y)=x−xy2
Now, According to Lagrange multiplier technique,
⇒g1(x,y,a)=x2+y−a2−1=0
⇒g2(x,y,b)=x2+y−b2−1=0
Forming the function from the above, we get,
⇒L(x,y,a,b,λ1,λ2)=f(x,y)+λ1g1(x,y,a)+λ2g2(x,y,b)
The local maxima and local minima can be found by solving further,
⇒∇L(x,y,a,b,λ1,λ2)=0
The above expression can also be written as,
⇒1+2(λ1+λ2)x−y2=0
⇒λ1+λ2−2xy=0
⇒a2−x2−y=0
⇒λ1a=0
⇒b2+x2+y−1=0
⇒λ2b=0
Now, we have to solve for the values of x,y,a,b,λ1,λ2
The five values obtained for each of the variables are given as follows,
x=0,−1.09545,1.09545,−0.66874,0.66874;
y=1,−0.2,−0.2,−0.447214,−0.447214;
a=−1,−1,−1,0,0;
b=0,0,0,−1,−1;
λ1=0,0,0,0.59814,−0.59814;
λ2=0,0.438178,−0.438178,0,0
The above points are required to be qualified.
The first and third values in the above activate constraint g2(x,y,0)
The second and fourth values in the above activate constraint g1(x,y,0)
From the above,
⇒f∘g1(x)=x−x5
⇒f∘g2(x)=−x3(x2−2)
Substituting the values of x in the above equation,
⇒dx2d2(f∘g1(−0.66874))=5.9814
The point is a local minimum
⇒dx2d2(f∘g1(0.66874))=5.90567
The point is a local maximum
⇒dx2d2(f∘g2(0))=0
The point is non-decidable whether it is local minima or maxima
⇒dx2d2(f∘g2(−1.09545))=13.1453
The point is a local minimum
⇒dx2d2(f∘g2(1.09545))=−13.1453
The point is a local maximum
∴ There are many local minima and maxima for the given function.
Note: The given question can also be solved plotting a graph for the given function. The absolute maximum of a function is the highest point attained in the graph and absolute minimum is the lowest point attained in the domain of the function.