Given $x + y + z = 0, x + 1 > 0, y + 1 > 0, z + 4 > 0$, find the maximum of $$Q=\frac{x}{x+1} + \frac{y}{y+1} + \frac{z}{z+4}$$
The answer is $\frac{1}{3}$
I've tried inverting each of the fractions then using AM-GM on them, but it doesn't give me the correct answer
First set
Hence, to maximize is $$Q = 3-\left(\frac 1a + \frac 1b + \frac 4c \right)$$
So, minimize $$\left(\frac 1a + \frac 1b + \frac 4c \right) = \frac{a+b+c}6\left(\frac 1a + \frac 1b + \frac 4c\right)$$ $$= \frac 16+\frac 16 + \frac 23 + \frac 16\left(\frac{b+c}{a} + \frac{a+c}{b} + 4\frac{a+b}{c}\right)$$ $$=1 + \frac 16\left( \frac ba+\frac ab + \frac ca + 4 \frac ac + \frac cb + 4 \frac bc\right)$$ $$\stackrel{3\times AM-GM}{\geq} 1 + \frac 16\left( 2+ 4 + 4 \right)= \frac 83 $$
with equality if $\frac ab= 1$ and $\frac ca = \frac cb = 2$. With $a+b+c = 6$ it follows the minimum is achieved for $c=3, a = b=\frac 32$.
So, maximum of $Q$ is $3-\frac 83 = \boxed{\frac 13}$