Find the gradient of
$$z=x^y$$
I understand how to get it with respect to $x$ since $y$ is treated as a constant. But when trying to solve it with respect to $y$, why is it incorrect to implicitly differentiate and use the product rule:
$$\ln(z)=y\cdot ln(x)$$
$$\frac{(z_y)}{z}=\Bigr(y\cdot \frac{1}{x}\Bigr)+(1\cdot \ln(x))$$
$$z_y=z\Bigr(\frac{y}{x}+\ln(x)\Bigr)$$
$$z_y=x^y\Bigr(\frac{y}{x}+\ln(x)\Bigr)$$