BIT203 · 2082 · 5 marks
Integrate int03 (2x3 + 1) dx using Simpson's frac13 rule with n=6.
Integrate $\int_{0}^{3} (2x^3 + 1) dx$ using Simpson's $\frac{1}{3}$ rule with $n=6$. [5]
Simpson's 1/3 Rule: $\int_0^3 (2x^3 + 1),dx$ with $n = 6$
Given
- $f(x) = 2x^3 + 1$
- Limits: $a = 0$, $b = 3$
- Number of intervals: $n = 6$
Step 2: Step Size
$$h = \frac{b-a}{n} = \frac{3-0}{6} = 0.5$$
Step 3: Function Values
| $i$ | $x_i$ | $f(x_i) = 2x_i^3 + 1$ | Coeff | Product |
|---|---|---|---|---|
| 0 | 0.0 | $2(0)+1 = 1.000$ | 1 | 1.000 |
| 1 | 0.5 | $2(0.125)+1 = 1.250$ | 4 | 5.000 |
| 2 | 1.0 | $2(1)+1 = 3.000$ | 2 | 6.000 |
| 3 | 1.5 | $2(3.375)+1 = 7.750$ | 4 | 31.000 |
| 4 | 2.0 | $2(8)+1 = 17.000$ | 2 | 34.000 |
| 5 | 2.5 | $2(15.625)+1 = 32.250$ | 4 | 129.000 |
| 6 | 3.0 | $2(27)+1 = 55.000$ | 1 | 55.000 |
Step 4: Apply the Formula
$$\int_a^b f(x),dx \approx \frac{h}{3}\Big[f_0 + f_6 + 4(f_1+f_3+f_5) + 2(f_2+f_4)\Big]$$
Compute the grouped sums:
- End terms: $1.000 + 55.000 = 56.000$
- Odd terms: $4(1.250 + 7.750 + 32.250) = 4(41.250) = 165.000$
- Even terms: $2(3.000 + 17.000) = 2(20.000) = 40.000$
Total sum: $$S = 56.000 + 165.000 + 40.000 = 261.000$$
Step 5: Final Result
$$\int_0^3 (2x^3+1),dx \approx \frac{0.5}{3}(261) = \frac{261}{6} = 43.5$$
$$\boxed{\int_0^3 (2x^3+1),dx \approx 43.5}$$
Verification (Exact Value)
$$\int_0^3 (2x^3+1),dx = \left[\frac{x^4}{2} + x\right]_0^3 = \frac{81}{2} + 3 = 40.5 + 3 = 43.5$$
Simpson's 1/3 rule gives the exact answer because the integrand is a cubic polynomial (degree $\le 3$), for which the rule is exact.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.