There are two stages to this problem. I think you have done the first but I'll say anyway.
This is a product of two functions so use the product rule:
You can combine the trig functions into a single trig function using the compound angle formulas. You want a cosine so I'll use
To make the derivative look like the right hand side here:
Hope that helps,
Bob
]]>