When integrating an absolute value function $|f(x)|$, first find the roots of $f(x)=0$. These roots are the points where you need to split the interval of integration. Then, for each sub-interval, determine the sign of $f(x)$ to remove the absolute value bars correctly.