Let $g: \mathbb{R}^2 \to \mathbb{R}$, $g(x,y) = |xy|$. Find all the $(x,y) \in \mathbb{R}^2$ where $g$ is differentiable.
I tried to compute the partial derivatives:
$|\frac{g(x+h,y) - g(x,y)}{h}| = |\frac{|(x+h)y|-|xy|}{h}| \leq |\frac{(x+h)y-xy}{h}|=|y|$.
So the partial derivative $\frac{\partial g}{\partial x}= |y|$. Computing in the same way $\frac{\partial g}{\partial y}= |x|$.
Both of the partial derivatives are continous. Therefore the function itself is differentiable.
According to the solutions this is not correct. There are a few "special cases" where this doesn't hold. Where is my mistake?
The partial derivative of $|xy|=|x||y|$ with respect to $x,$ for example, is $$|y|\frac{x}{|x|},$$ so your computation is incorrect.