The function is .
Consider .
Apply derivative on each side.
.
Substitute and .
We know that then .
Therefore .