2081 7

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]

Numerical MethodChapter 3: Numerical Differentiation and IntegrationSimpson's 3/8 ruleNumerical: Simpson's 3/8 rule integration

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$
01.000002.718282.71828
11.166673.211092.75236
21.333333.793672.84525
31.500004.481692.98779
41.666675.294493.17670
51.833336.255143.41190
62.000007.389063.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.