CSC212 · 2081 · 5 marks
What is an application of numerical integration? Find the value of the integral using Simpson's 3/8 rule with n=6.
What is an application of numerical integration? Find the value of the integral using Simpson's 3/8 rule with n=6. $$\int_{1}^{2} \frac{e^x}{x} dx$$ [5]
Application of Numerical Integration and Simpson's 3/8 Rule
Application of Numerical Integration
Numerical integration computes the approximate value of a definite integral from numerical/tabular values of the integrand. Key application:
- Evaluating definite integrals when no closed-form (analytical) antiderivative exists (such as $\int e^{x}/x,dx$).
- Computing area/volume from experimental or tabular data where only discrete points are known.
- Used in engineering and physics for work, probability, signal processing, etc.
Given Data
$$\int_1^2 \frac{e^x}{x},dx, \qquad a=1,\ b=2,\ n=6$$
Since $n=6$ is a multiple of 3, Simpson's 3/8 rule applies.
Step 1: Step size
$$h = \frac{b-a}{n} = \frac{2-1}{6} = \frac{1}{6} = 0.16667$$
Step 2: Nodes and function values $f(x)=\dfrac{e^x}{x}$
| $i$ | $x_i$ | $e^{x_i}$ | $f(x_i)=e^{x_i}/x_i$ |
|---|---|---|---|
| 0 | 1.00000 | 2.71828 | 2.71828 |
| 1 | 1.16667 | 3.21109 | 2.75236 |
| 2 | 1.33333 | 3.79367 | 2.84525 |
| 3 | 1.50000 | 4.48169 | 2.98779 |
| 4 | 1.66667 | 5.29449 | 3.17670 |
| 5 | 1.83333 | 6.25514 | 3.41190 |
| 6 | 2.00000 | 7.38906 | 3.69453 |
Step 3: Simpson's 3/8 composite rule
$$I \approx \frac{3h}{8}\Big[f_0 + 3(f_1+f_2+f_4+f_5) + 2f_3 + f_6\Big]$$
Grouping:
- $f_0 + f_6 = 2.71828 + 3.69453 = 6.41281$
- $3(f_1+f_2+f_4+f_5) = 3(2.75236+2.84525+3.17670+3.41190) = 3(12.18621)=36.55863$
- $2f_3 = 2(2.98779) = 5.97558$
Sum $= 6.41281 + 36.55863 + 5.97558 = 48.94702$
Step 4: Coefficient and result
$$\frac{3h}{8} = \frac{3\times 0.16667}{8} = \frac{0.50001}{8} = 0.0625$$
$$I \approx 0.0625 \times 48.94702 = 3.05919$$
$$\boxed{I \approx 3.0592}$$
The exact value is $\approx 3.0591$, so the approximation is accurate to 4 significant figures.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.