Given $f(x,y) = \dfrac{(x+1)(y+1)(x+y)}{x^2 y^2}$. Can someone help me with evaluating the critical points?
I did $\dfrac{\partial f}{\partial x}$ and got $-x^2y^4 - x^2 y^2 - 2y^2 x^3 -2xy^4 -2xy^3$ but that's not the correct answer.
The answer should be: $\dfrac{\partial f}{\partial x} = -\dfrac{(y+1)(xy+x+2y)}{x^3 y^2}$.
Should I use the product rule or quotient-rule?
Edit: Using the quotientrule and productrule I get the following: \begin{align*} \dfrac{\partial f}{\partial x} &= (x^2 y^2) \Big[(x+1)(y+1)(x+y)\Big]' - \Big[(x+1)(y+1)(x+y)\Big] 2y^2 x \\ &= x^2 y^2 \Big[\Big((x+1)(y+1)\Big)' (x+y) + (x+1)(y+1) \Big] - \Big[(x+1)(y+1)(x+y) \Big] 2y^2 x \\ &= x^2 y^2 \Big[(y+1)(x+y)+(x+1)(y+1) \Big] - \Big[(x+1)(y+1)(x+y) \Big] 2y^2 x \\ &= x^2 y^2 \Big[xy + y^2 +x +y + xy +x + y + 1 \Big] - \Big[(xy+x+y+1)(x+y) \Big] 2y^2 x \\ &= x^3 y^3 + x^2 y^4 + x^3 y^2 + x^2 y^3 + x^3 y^3 + x^3 y^2 + x^2 y^3 + x^2 y^2 - \Big[ x^2 y + x^2 + xy + x + xy^2 + xy + y^2 + y \Big] 2y^2 x \\ & = -x^2 y^4 - x^2 y^2 - 2x^2 y^3 - 2xy^4 - 2xy^3 \end{align*} But that still not correct. Please, where did I go wrong?
Before differentiating, you can take $log_e$ both sides and that will make the calculations easier.
$$f(x,y)=\frac{(x+1)(y+1)(x+y)}{{x^2}{y^2}}$$ $$log_ef(x,y)=log_e\frac{(x+1)(y+1)(x+y)}{{x^2}{y^2}}$$ $$log_ef(x,y)=log_e(x+1)+log_e(y+1)+log_e(x+y)-2log_ex-2log_ey$$ Implicit differentiate both sides and treat $y$ as a constant, you will get: $$\frac{1}{f(x,y)}\frac{\partial f}{\partial x}=\frac{1}{x+1}+\frac{1}{x+y}-\frac{2}{x}$$ $$\therefore\frac{\partial f}{\partial x}=f(x,y)\left[\frac{1}{x+1}+\frac{1}{x+y}-\frac{2}{x}\right]$$ $$\therefore\frac{\partial f}{\partial x}=\frac{(x+1)(y+1)(x+y)}{{x^2}{y^2}}\left[\frac{1}{x+1}+\frac{1}{x+y}-\frac{2}{x}\right]$$ After simplification, you will get the desired result. However, you need to take note that taking $log_e$ on both sides is only for computation purposes. In theory, one can encounter trouble at those points that the function value is non-positive, which will result the $log_e$ taking operation to be illegal (We are in the real setting). Hope it helps.:)