Simpson's 3/8 Rule Calculator for a Function

Approximate an integral (given by a function) using the Simpson's 3/8 rule step by step

An online calculator for approximating a definite integral using Simpson's 3/8 rule, with steps shown.

Related calculators: Simpson's Rule Calculator for a Function, Simpson's 3/8 Rule Calculator for a Table

If the calculator did not compute something or you have identified an error, or you have a suggestion/feedback, please write it in the comments below.

Your Input

Approximate the integral $$$\int\limits_{0}^{3} \sqrt{x^{3} + 5}\, dx$$$ with $$$n = 6$$$ using the Simpson's 3/8 rule.

Solution

The Simpson's 3/8 rule uses cubic polynomials to approximate the area:

$$$\int\limits_{a}^{b} f{\left(x \right)}\, dx\approx \frac{3 \Delta x}{8} \left(f{\left(x_{0} \right)} + 3 f{\left(x_{1} \right)} + 3 f{\left(x_{2} \right)} + 2 f{\left(x_{3} \right)} + 3 f{\left(x_{4} \right)} + 3 f{\left(x_{5} \right)} + 2 f{\left(x_{6} \right)}+\dots+3 f{\left(x_{n-5} \right)} + 3 f{\left(x_{n-4} \right)} + 2 f{\left(x_{n-3} \right)} + 3 f{\left(x_{n-2} \right)} + 3 f{\left(x_{n-1} \right)} + f{\left(x_{n} \right)}\right)$$$

where $$$\Delta x = \frac{b - a}{n}$$$.

We have that $$$f{\left(x \right)} = \sqrt{x^{3} + 5}$$$, $$$a = 0$$$, $$$b = 3$$$, and $$$n = 6$$$.

Therefore, $$$\Delta x = \frac{3 - 0}{6} = \frac{1}{2}$$$.

Divide the interval $$$\left[0, 3\right]$$$ into $$$n = 6$$$ subintervals of the length $$$\Delta x = \frac{1}{2}$$$ with the following endpoints: $$$a = 0$$$, $$$\frac{1}{2}$$$, $$$1$$$, $$$\frac{3}{2}$$$, $$$2$$$, $$$\frac{5}{2}$$$, $$$3 = b$$$.

Now, just evaluate the function at these endpoints.

$$$f{\left(x_{0} \right)} = f{\left(0 \right)} = \sqrt{5}\approx 2.23606797749979$$$

$$$3 f{\left(x_{1} \right)} = 3 f{\left(\frac{1}{2} \right)} = \frac{3 \sqrt{82}}{4}\approx 6.791538853603062$$$

$$$3 f{\left(x_{2} \right)} = 3 f{\left(1 \right)} = 3 \sqrt{6}\approx 7.348469228349534$$$

$$$2 f{\left(x_{3} \right)} = 2 f{\left(\frac{3}{2} \right)} = \frac{\sqrt{134}}{2}\approx 5.787918451395113$$$

$$$3 f{\left(x_{4} \right)} = 3 f{\left(2 \right)} = 3 \sqrt{13}\approx 10.816653826391968$$$

$$$3 f{\left(x_{5} \right)} = 3 f{\left(\frac{5}{2} \right)} = \frac{3 \sqrt{330}}{4}\approx 13.624426593438712$$$

$$$f{\left(x_{6} \right)} = f{\left(3 \right)} = 4 \sqrt{2}\approx 5.65685424949238$$$

Finally, just sum up the above values and multiply by $$$\frac{3 \Delta x}{8} = \frac{3}{16}$$$: $$$\frac{3}{16} \left(2.23606797749979 + 6.791538853603062 + 7.348469228349534 + 5.787918451395113 + 10.816653826391968 + 13.624426593438712 + 5.65685424949238\right) = 9.79911172128198.$$$

Answer

$$$\int\limits_{0}^{3} \sqrt{x^{3} + 5}\, dx\approx 9.79911172128198$$$A