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

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