\[\int_{a}^{b}f(x)w(x)\,\mathrm{d}x=\sum_{k=1}^{n}w_{k}f(x_{k}).\]