Gaussian Quadrature - Change of Interval

Change of Interval

An integral over must be changed into an integral over before applying the Gaussian quadrature rule. This change of interval can be done in the following way:


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

After applying the Gaussian quadrature rule, the following approximation is:


\int_a^b f(x)\,dx \approx \frac{b-a}{2} \sum_{i=1}^n w_i f\left(\frac{b-a}{2}z_i + \frac{a+b}{2}\right).

Read more about this topic:  Gaussian Quadrature

Famous quotes containing the words change and/or interval:

    “I had heard so much about how hard it was supposed to be that, when they were little, I thought it would be horrible when they got married and left. But that’s silly you know. . . . By the time they grow up, they change and you change. Eventually, they’re not the same little kids and you’re not the same mother. It’s as if everything just falls into a pattern and you’re ready.”
    —Anonymous Mother. As quoted in Women of a Certain Age, by Lillian B. Rubin, ch. 2 (1979)

    “[I have] been in love with one princess or another almost all my life, and I hope I shall go on so, till I die, being firmly persuaded, that if ever I do a mean action, it must be in some interval betwixt one passion and another.”
    —Laurence Sterne (1713–1768)