How do you differentiate #g(x) = (x-1)(x-2)(x^2)# using the product rule?