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.
Differentiate again on each side with respect to
.

Second derivative of the function is
.
First Derivative of the function is
.
Second Derivative of the function is
.