expand ((x^2)+1)^3