Q. If $xe^{xy}=y+\sin^2x$, then find $\frac{dy}{dx}$ at x=0.
If we differentiate the function directly as follows:
$e^{xy}+xe^{xy}\left[y+x\frac{dy}{dx}\right]=\frac{dy}{dx}+\sin\left(2x\right)$
At x=0 We have
$1+0=\frac{dy}{dx}+0$ which gives
$\frac{dy}{dx}=1$
But if we apply logarithm and differentiate we have:
$\log\left(x\right)+xy=\log\left(y+\sin^2x\right)$ which when differentiated gives
$\frac{1}{x}+y+x\frac{dy}{dx}=\frac{\frac{dy}{dx}+\sin2x}{y+\sin^2x}$
If we take x=0 here, we get undefined values. And we are unable to obtain the value of dy/dx individually. Is there any mistake in the logarithmic method?
If x=0 then log(x) is undefined. If you continue and solve for dy/dx you get the indeterminate form 0/0 as x approaches 0.