Simpson's Rule Formula is used to calculate the integral value of any function. It calculates the value of the area under any curve over a given interval by dividing the area into equal parts. It follows the method similar to integration by parts.
In order to integrate any function f(x) in the interval (a,b), follow the steps given below:
1) Select a value for n, which is the number of parts the interval is divided into. Let the value of n be an even number.
2) Calculate the width, h=b−an
3) Calculate the values of x0 to xn as x0=a,x1=x0+h,⋯,xn−1=xn−2+h,xn=b
4) Consider y=f(x). Now find the values of y(y0 to yn) for the corresponding x(x0 to xn) values.
5) Substitute all the above found values in the Simpson's Rule Formula to calculate the integral value.
∫baf(x) dx=h3[(y0+y1)+4(y1+y3+⋯+yn−1)+2(y2+y4+⋯+yn−2)]