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