The composite function is .
is a twice differentiable function.
.
Differentiate with respect to on each side.
Product rule of derivatives: .
and .