The function is .
Let .
Apply derivative on each side with respect to .
.
Substitute , and in .
Substitute .
or .