Equations
$y=x^3$ and $y=x$
obviously when graphing this, it would spit two areas formed.
Thus the "regular" way to set up the integral would be the following: $\int_{-1}^0(x^3-x)+\int_0^1(x-x^3)$ which gives me 0.5
But
how do I write this within one integral?
$$\int_{-1}^1 |x^3 - x|\text{d}x$$
Note that in order to actually solve this integral you'd still split the integral into the two pieces you originally had.