Integrate: $$\int_{-1}^{1}(\{x+1\}\{x^2+2\})+(\{x^2+3\}\{x^3+4\})dx$$
My attempt: We know that within the interval $[0,1)$, the following is true: $$\{x+1\}=x$$ $$\{x^2+2\}=x^2$$ $$\{x^2+3\}=x^2$$ $$\{x^3+4\}=x^3$$ Therefore $$I_1=\int_{0}^{1}x^3+x^5=5/12.$$
Similarily on the interval $[-1,0)$ we can write: $$\{x+1\}=x+1$$ $$\{x^2+2\}=x^2$$ $$\{x^2+3\}=x^2$$ $$\{x^3+4\}=x^3+1$$ Therefore, $$I_2=\int_{-1}^{0}x^3+2x^2+x^5=2/3-5/12.$$ Hence $$\int_{-1}^{1}(\{x+1\}\{x^2+2\})+(\{x^2+3\}\{x^3+4\})dx=2/3.$$ However the answer is $-2/3.$ I think I've made a mistake in the second transformations. Regardless, please explain where am I going wrong.