Simpson's Rule is a numerical method that approximates the value of a definite integral by using quadratic functions.
This method is named after the English mathematician Thomas Simpson \(\left( {1710 - 1761} \right).\)
Simpson's Rule is based on the fact that given three points, we can find the equation of a quadratic through those points.
To obtain an approximation of the definite integral \(\int\limits_a^b {f\left( x \right)dx} \) using Simpson's Rule, we partition the interval \(\left[ {a,b} \right]\) into an even number \(n\) of subintervals, each of width
\[\Delta x = \frac{{b - a}}{n}.\]
On each pair of consecutive subintervals \(\left[ {{x_{i - 1}},{x_i}} \right],\) \(\left[ {{x_i},{x_{i + 1}}} \right],\) we consider a quadratic function \(y = a{x^2} + bx + c\) such that it passes through the points \(\left( {{x_{i - 1}},f\left( {{x_{i - 1}}} \right)} \right),\) \(\left( {{x_i},f\left( {{x_i}} \right)} \right),\) \(\left( {{x_{i + 1}},f\left( {{x_{i + 1}}} \right)} \right).\)
If the function \(f\left( x \right)\) is continuous on \(\left[ {a,b} \right],\) then
Use Simpson's Rule with \(n = 4\) to approximate the integral \[\int\limits_0^8 {\sqrt x dx}.\]
Example 2
A function \(f\left( x \right)\) is given by the table of values. Approximate the area under the curve \(y = f\left( x \right)\) between \(x = 0\) and \(x = 4\) using Simpson's Rule with \(n = 4\) subintervals.
Example 3
A function \(f\left( x \right)\) is given as a table of values. Approximate the area under the curve \(y = f\left( x \right)\) from \(x = -4\) and \(x = 8\) using Simpson's Rule with \(n = 6\) subintervals.
Example 4
Approximate the area under the curve \(y = f\left( x \right)\) between \(x = -1\) and \(x = 5\) using Simpson's Rule with \(n = 6\) subintervals.
Example 5
Approximate the area under the curve \[y = {3^x}\] between \(x = -2\) and \(x = 2\) using Simpson's Rule with \(n = 4\) subintervals.
Example 6
Approximate the integral \[\int\limits_1^2 {\frac{{dx}}{x}}\] using Simpson's Rule with \(n = 2\) subintervals.
Example 1.
Use Simpson's Rule with \(n = 4\) to approximate the integral \[\int\limits_0^8 {\sqrt x dx}.\]
Solution.
It is easy to see that the width of each subinterval is
A function \(f\left( x \right)\) is given by the table of values. Approximate the area under the curve \(y = f\left( x \right)\) between \(x = 0\) and \(x = 4\) using Simpson's Rule with \(n = 4\) subintervals.
Solution.
For \(n= 4\) subintervals, Simpson's rule is given by the following equation:
A function \(f\left( x \right)\) is given as a table of values. Approximate the area under the curve \(y = f\left( x \right)\) from \(x = -4\) and \(x = 8\) using Simpson's Rule with \(n = 6\) subintervals.
Solution.
We use Simpson's rule formula which has the following form for \(n = 6\) subintervals: