Numerical integration

Numerical integration involves approximating the definite integral

\[ \int_a^b f(x) dx. \]

This is typically done through a summation, for example

\[ \int_a^b f(x) dx \approx \sum_i w_i f(x_i) \Delta x. \] Where the evaluation points \(x_i\) and the weights \(w_i\) can be chosen.