\int_{a}^{b}f\left(x \right)dx=\sum_{i=0}^{n}{\omega }_{i}f\left({x}_{i} \right)