The function is
(Apply the first derivative)
(Apply the product rule)
(Apply the power rule)
(Apply the chain rule) \ \
(Apply the power rule)
(Simpify)
\
(Apply the second derivative)
(Apply the difference rule)
(Apply the product rule)
(Apply the chain rule) \ \
(Apply the product rule)
(Simpify)
\
Therefore the first derivative is
The second derivative is