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