if $x$, $y$ and $z$ are positive real numbers such that $x+y+z=4$ Find the maximum value of $$S=\frac{x}{\sqrt{x+y}}+\frac{y}{\sqrt{y+z}}+\frac{z}{\sqrt{z+x}}$$
I tried as follows.
The given expression can be rewritten as
$$S=\sqrt{4-x}+\sqrt{4-y}+\sqrt{4-z}-\left(\frac{y}{\sqrt{x+y}}+\frac{z}{\sqrt{y+z}}+\frac{x}{\sqrt{z+x}}\right)$$
But by symmetry $$S=\left(\frac{y}{\sqrt{x+y}}+\frac{z}{\sqrt{y+z}}+\frac{x}{\sqrt{z+x}}\right)$$
so
$$2S=\sqrt{4-x}+\sqrt{4-y}+\sqrt{4-z}$$ and by Cauchy Scwartz inequality
$$2S \le \sqrt{4-x+4-y+4-z}\times \sqrt{3}$$ so
$$2S \le \sqrt{24}$$
so
$$S \le \sqrt{6}$$
Is this approach correct?
No, this approach is not correct, since
$$S=\left(\frac{y}{\sqrt{x+y}}+\frac{z}{\sqrt{y+z}}+\frac{x}{\sqrt{z+x}}\right)$$
does not necessarily hold. For example, consider $x=\frac12$, $y = \frac32$ and $z=2$, then $S=\left(\frac{x}{\sqrt{x+y}}+\frac{y}{\sqrt{y+z}}+\frac{z}{\sqrt{z+x}} \right) \approx 2.420$, but $\left(\frac{y}{\sqrt{x+y}}+\frac{z}{\sqrt{y+z}}+\frac{x}{\sqrt{z+x}}\right) \approx 2.445$.
Also, if this were correct, you would need to provide $x, y$ and $z$ such that $S = \sqrt{6}$.