The Midpoint Rule is a numerical technique used to approximate the value of a definite integral. This method involves dividing the integral's interval into subintervals, calculating the function's value at the midpoint of each subinterval, and then using these values to estimate the area under the curve.
- Each subinterval should have equal width, denoted by \( h \).
- The midpoints are the average of the endpoints of each subinterval. For example, between 0 and 0.25, the midpoint is 0.125.
- The formula used for the Midpoint Rule is: \( h[f(x_1) + f(x_2) + \, \ldots \, + f(x_n)] \).
To approximate \( \pi \) using the Midpoint Rule, we divide the interval [0, 1] into four subintervals, each of width 0.25. The midpoints are 0.125, 0.375, 0.625, and 0.875.
You substitute these midpoints into the function \( \frac{4}{1+x^2} \), sum the results, then multiply by the width of the subintervals (0.25). This gives an approximation of the integral, and therefore, approximately \( \pi \).