differentiate:

g(t)=tˆ3cos(t)

using the product rule,

g' = 3t^2 cost + t^3 (-sint)
= t^2 (3cost - t sint)