Since g(x) is the product of two terms, we can use the Product Rule to find the derivative.
We essentially have
[tex]g(x)=f(x)\cdot h(x)[/tex]where,
[tex]\begin{gathered} f(x)=x^3\text{ and} \\ h(x)=cosx \end{gathered}[/tex]Thus, the Product Rule states that the derivative is equal to:
[tex]f^{\prime}(x)h(x)+f(x)h^{\prime}(x)[/tex]To differentiate f(x), we can use the Power Rule, where the exponent becomes the coefficient, and we decrement the power.
Therefore,
[tex]f^{\prime}(x)=3x^2[/tex]And from our knowledge of derivatives of trig functions
[tex]h^{\prime}(x)=-\sin x[/tex]We can now plug these values into the product rule expression to get
[tex]3x^2(\cos x)+x^3(-\sin x)[/tex]We can rewrite this as
[tex]3x^2(\cos x)-x^3(\sin x)[/tex]Hence,
[tex]3x^2\cos x-x^3\sin x[/tex]Therefore, the derivative is
[tex]3x^2\cos x-x^3\sin x[/tex]