\int_{a}^{b}f\left(x \right)dx=\frac{b-a}{2}\int_{-1}^{1}f\left(\frac{\left(b-a \right)z+b+a}{2} \right)dz.