suppose we are give task to calculate area of figure,which is bounded by two curve $y=[x]$ and $y=(2-x^2)$, here $[x]$ denotes modulus,not ceiling or rounding of x.
i use wolframalpha to figure out what kind of location,intersection points has this two figure,here is link of this http://www.wolframalpha.com/input/?i=abs%28x%29%3D2-x%5E2 i see that points of intersection are $-1$ and $1$,also i know that area under two curve $y=f_1(x)$ and $y=f_2(x)$ and intersection points are $x_1$ and $x_2$ is $\int_{x_1}^{x_2}(f_2(x)-f_1(x))dx$ but i am confused if i should take $y=[x]$ directly or consider two interval $[-1..0]$ and $[0...1]$ and use $-x$ and $x$ for each interval? please give me some hint