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