Take the derivative of $$-(z-x)^4$$ with respect to $z$
This is my method using the chain rule
$$-4(z-x)^3$$
But the right answer is
$$-4(x-z)^3$$ where $x$ and $z$ have switched signs.
Why so? What happened to make the variables switch sign?
Thanks
Take the derivative of $$-(z-x)^4$$ with respect to $z$
This is my method using the chain rule
$$-4(z-x)^3$$
But the right answer is
$$-4(x-z)^3$$ where $x$ and $z$ have switched signs.
Why so? What happened to make the variables switch sign?
Thanks
Nothing happened, you are right when you say the answer is
$$-4(z-x)^3.$$
The chain rule works perfectly here.
If a book gives a different answer, it is probably a typo.
Edit
Notice that
$$-4(z-x)^3=4(-1)^3(z-x)^3=4(-(z-x))^2=4(x-z)^3.$$