Find extreme values of $xyz$ given that $x+y+z=a$ I need some suggestions in the reasoning of the following problem.
I would like to find the extreme value of
$$
f=xyz, \quad\text{subject to the constraint } x+y+z=a
$$
To start with, I used the constraint to make the function a problem of two variables. Therefore, I had
$$
f=xy(a-x-y)
$$
Here onwards, I thought to use the partial derivatives to find out the critical points, i.e.,
$$
\begin{align}
f_x=ay-2xy-y^2=0 \\
f_y=ax-2xy-x^2=0
\end{align}
$$
Subtracting $f_x$ from $f_y$ I got
$$
\begin{align}
x^2-y^2-a(x-y)=0 \\
(x-y)(x+y-a)=0
\end{align}
$$
Here I get two solutions, i.e., either $x=y$ or $x+y=a$.
If I use that $x+y=a \implies z=0$, which in turn will give us $xyz=0$, and substituting this in $f_x$, I get the solutions $(a,0,0)$, $(0,a,0)$, and $(a/3,a/3,a/3)$.
The other solutions, using $x=y$ and substituting this into $f_x$, yields $ax-2x^2-x^2=0 \implies x(a-3x)=0$, and therefore, I have two more solutions: $x=0$ and $x=a/3$. Now $x=0 \implies y=0$, and therefore, $z=a$. Thus, $(0,0,a)$ gives us the value of $xyz=0$.
$x=a/3$ will give us the same solution that we found above, i.e., $(a/3,a/3,a/3)$. Now, to test for minima and maxima 
$$
\begin{align}
& f_{xx}=-2y \\
& f_{yy}=-2x \\
& f_{xy}=a-2x-2y
\end{align}
$$
and
$$
\begin{matrix}
pts.&(a,0,0)&(0,a,0)&(0,0,a)&(\frac{a}{3},\frac{a}{3},\frac{a}{3}) \\
f_{xx}& 0&-2a&0&-2a/3\\
f_{yy}&-2a&0&0&-2a/3 \\
f_{xy}&0&0&a&-a/3 \\
f_{xx}f_{yy}-f^2_{xy}&0&0&-a^2&a^2/3
\end{matrix}
$$
Here, I can say with certainity that $(0,0,a)$ is a saddle point, which in turn implies that there are $(a,0,0)$ and $(0,a,0)$, as all these give the same value for $xyz$.
Now, considering the point $(a/3,a/3,a/3)$, according to the values it seems to be a maximum, but I believe that this is only true if $x,y,z>0$. I don't think in any of the above steps, have I made such a constraint on the domain of $x$, $y$, and $z$, and yet I get this maximum point.

$$\color{red}{\text{1]}}$$

For x,y,z= positive,

We can use AM GM inequality

It says
  $$$$
  Arithmetic mean$\ge$ Geometric mean

$$\frac{x+y+z}{3}\ge (xyz)^{\frac{1}{3}}$$
$$\frac{a}{3}\ge (xyz)^{\frac{1}{3}}$$
$$xyz\le \frac{a^3}{27}$$
So extreme value of $xyz=\frac{a^3}{27}$
$$$$$$$$$$$$
$$\color{red}{\text{2]}}$$

For one(or all) out of x,y,z being negative numbers,

$$$$
$$xyz=\text{negative}\not=\text{Maxima}$$
$$$$$$$$$$$$$$\color{red}{\text{3]}}$$

Two out of x,y,z being negative,

$$$$
We can say, $$$$suppose $x,y=\text{-ve}$
$$x+y+z=a$$
$$z-a=-x-y$$
Now we can write ,
$$xyz=zxy$$
$$=z(-x×-y)$$
$$=z(\sqrt{-x×-y})^2$$
And using $\frac{-x-y}{2}\ge \sqrt{-x×-y}$
$$\le z(\frac{-x-y}{2})^2$$
$$\le z(\frac{z-a}{2})^2$$
$$xyz\le z(\frac{z-a}{2})^2$$
As we increase z, $$$$Maxima of $xyz$ increases, $$$$and we can increase z  as much we want $$$$maxima of $xyz=\infty\cdots(\text{when two out x,y,z are negative})$
