I want to find out the max min by the lagrange theorem.
Find the max min of :; $f(x,y,z)=xyz$
subject to ;
$x+y+z=5$ and $ xy+xz+yz=8$
Okay So I can set the typical lagrangian $L_1=f-\delta_1(x+y+z-5)-\delta_2(xy+xz+yz-8)$
Above, I set the lagrangian to find the max of the objective function. If I wanted to find the min, then I would have done the following :
$L_2=f+\delta_1(x+y+z-5)+\delta_2(xy+xz+yz-8)$ or $L_3=-f-\delta_1(x+y+z-5)-\delta_2(xy+xz+yz-8)$
My question is, from the lagrangian $L_1$ will we always get the max? Suppose you end up with two candidates, will both of them be local maximum? Or can it there be minimum if we end up with two candidates?
Suppose I use $L_1$ again, then is there anyway my only candidate is a min?
Would be great if you help. I don't want to use the bordered Hessian overtime I solve a lagrangian, sometimes I just want to conclude right away that that's a max!
Now, back to the question, how would you recommend me to solve this kind of a question using lagrangian theorem? Should I apply two lagranges $L_1$ and $L_2$ respectively?
Or you can also tell me what I can use besides the lagrangian.
Thanks!
If you don't mind cooking particular solutions to specific problems, you can go about as follows. Rewrite the second restriction as
\begin{align}\tag{1}\label{eq}x(y+z)+yz=x(5-x)+yz=8\end{align}
where on the first equality we have used the first restriction $x+y+z=5$. Then:
$$x^2(5-x)+xyz=8x,$$
that is, if $(x,y,z)$ is under the two restrictions then
\begin{align}\tag{2}\label{eq2}f(x,y,z)=x^3-5x^2+8x\end{align}
which reduces the problem to min-maxing a a function of a single real variable.
Care must be taken with the domain. For which values of $x$ is there an $(x,y,z)$ that satisfies both restrictions? In other words, for which values of $x$ does the system
$$\left\{\begin{array}{l} y+z=(5-x)\\ x(y+z)+yz=8\end{array}\right.$$
have a solution? This system is equivalent to
$$\left\{\begin{array}{l} y+z=(5-x)\\ yz=8-x(5-x)\end{array}\right.$$
and a simple substitution $y=(5-x)-z$ yields that $z$ must satisfy a quadratic equation
$$z^2-(5-x)z+(8-x(5-x))=0$$
so that $\Delta \geq0$ can be written as
$$-3x^2+10x-7\geq0$$
The solution is $x \in \left[1,\frac73\right]$, so that the min-max in $\eqref{eq2}$ is over this range.
A second interesting cooked solution takes advantage of the fact that $f$ and both restrictions are symmetric polynomials in $x,y,z$. We have the identity:
$$(\lambda-x)(\lambda-y)(\lambda-z)={\lambda}^3-(x+y+z){\lambda}^2+(xy+yz+xz)\lambda-xyz$$
Hence, if $(x,y,z)$ satisfy the restrictions we have that for all $\lambda$
$$f(x,y,z)={\lambda}^3-5{\lambda}^2+8\lambda-(\lambda-x)(\lambda-y)(\lambda-z)$$
In particular, taking $\lambda =x$ produces
$$f(x,y,z)=x^3-5x^2+8x,$$
and we may proceed as in $\eqref{eq2}$.