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