differentiate f(x)=(x^3 -2)(4x+1)

Multiply it out and differentiate it term by term. You will end up with four terms. The derivative of your polynomial is the sum of the derivatives of the individual terms

Use the rule that the derivative of
a*x^n is a*n*x^(n-1)

The derivative of a constant is zero