Note that the Gauss-Legendre method is not limited to an interval [-1,1], since we can always through a change of variable t=b−a2x+b+a2, rewrite the integral for an interval [a,b] ∫baf(t)dt=b−a2∫1−1f((b−a)x2+b+a2)dx.