The function is .
Apply derivative on each side with respect to .
The chain rule of derivative: .
(a)
Substitute and in the above equation.
Since .
(b)
Substitute and .
(c)
(a) .
(b).
(c) .