Apply the chain rule. You should have gotten from that
as you said it was the second derivative you had trouble with.
The key is to differentiale both sides of the above result with respect to t:
Use the product rule:
Now apply the chain rule to the remaining derivative:
And you should be able to proceed from here.