How to find a derative by definition for such a function:
Chain rule: .
Product rule: .
So in your case:
Can you see that this is a product of functions? So you need to use the product rule with and .
Now to find you need to use the chain rule twice...
Can you go from here?