Material by the IntegralPaso project. Conditions and limits are stated in each guide; external teaching review is pending.
For an approximation use numerical quadrature. Trapezoids use segments; Simpson uses parabolas and requires even n. Check smoothness, singularities and error: an approximation is not an exact primitive.
Common mistake
Do not present a numerical result as exact without justification.
Step-by-step example
Apply Simpson with two subintervals.
Evaluate at 0, 1/2 and 1.
Here it gives the exact value because the function is quadratic.