How do you find the derivative of #f(x) = (x-1)(x^2+2)^3#?