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