I'm going to keep the "out" part out so that
We know that generally,
but we must apply the chain rule, or the "derivative of the outside times the derivative of the inside" rule.
That is, we have multiply the derivative of log with the derivative of the stuff inside the parentheses, where
I purposefully wrote it in an unaesthetic way, but now the second derivative is just a power rule question