3. (15%) Let $$z = f(x, y)$$ and $$ze^2 - x^2y = 0$$.

Prove that $$x\frac{\partial z}{\partial x} - y\frac{\partial z}{\partial y} = 1 - \frac{1}{1 + z}$$, if $$z \neq -1$$.