Material by the IntegralPaso project. Conditions and limits are stated in each guide; external teaching review is pending.
Locate formula or sign changes and split the interval. Integrate each expression on its own piece and add the results. For continuous global primitives adjust constants between pieces when possible.
Common mistake
Do not remove |x| as if x were always positive.
Step-by-step example
Split where the sign changes.
Evaluate each piece separately.
Add the positive areas.