I wish to maximise
$ g(x,y) = \frac{x}{x + y} + \frac{50 - x}{100 - x - y}$
subject to the constraints $x , y \in \mathbb{N}$. $ 1≤ x≤ 50 ,0≤y≤50$
I know $g(x,y) = f(x,y) + f(50-x,50-y)$ if that helps.
I know it is maximised at $x = 1$, $y = 0$, but cannot rigorously show why, I have tried finding the gradient, and then the critical points, but the gradient is just messy, so I don't think this is the correct way.
Hint: your $$f(x,y)$$ is given as $$f(x,y)=\frac{x^2+x y-150 x-50 y}{(x+y-100) (x+y)}$$ Now compute the partial derivatives with respect to $x$ and $y$