The function is
.
The function is in the form of composite function
.
Consider
and
.
Consider
.
Differentiate on each side with respect to
.

Consider
.
Differentiate on each side with respect to
.

.
.
Chain Rule of derivatives:
.
Substitute
and
in chain rule.
.
.