The function is .
Substitute .
Apply derivative on both sides.
Substitute and .
(since )
We know that then
Substitute and