The function is .
Consider .
Let .
Apply derivative on each side with respect to .
.
Substitute in
.
Apply derivative on each side with respect to .
Apply formula: .
Substitute .
.
Chain rule of derivatives : .
Substitute and
in the chain rule.
.
.