[Math] partial derivative of $x^{y^z}$

derivatives

Can someone tell me the correct partial derivative of $x^{y^z}$ on the variable z. I got two solutions:

$x^{y^z}\ln\left(x^y\right)$

and

$x^{y^z}y^z\ln x\ln y$

They both seem right to me so I am confused.
Which one is correct and why?

Best Answer

If $$f(x,y,z) = x^{y^{z}} \text{ then } \frac{\partial}{\partial z} f(x,y,z) = \log(x) y^z \log y x^{y^{z}}$$ And if, $$f(x,y,z) = (x^y)^{z} \text{ then } \frac{\partial}{\partial z} f(x,y,z) = (x^y)^{z} \log(x^y)$$ These results are different due to the different ways the power of $z$ has been executed. Hope it helps.

Related Question