Since g(x) is the product of two terms, we can use the Product Rule to find the derivative.
We essentially have

where,

Thus, the Product Rule states that the derivative is equal to:

To differentiate f(x), we can use the Power Rule, where the exponent becomes the coefficient, and we decrement the power.
Therefore,

And from our knowledge of derivatives of trig functions

We can now plug these values into the product rule expression to get

We can rewrite this as

Hence,

Therefore, the derivative is
