How do you find the derivative of y=x(x^2+1)?