Trapezoidal Simpson's 3 8
Trapezoidal Simpson's 3 8
TRAPEZOIDAL RULE
The Trapezoidal Rule is a method for estimating the area under a curve by breaking
it into smaller trapezoid-shaped sections rather than rectangles. It works by treating the
space under the curve as a series of trapezoids and adding up their areas. Essentially, it
takes the average of the values at the left and right ends of each interval to make the
calculation.
While the Trapezoidal Rule is a useful tool for approximation, it’s not as accurate as
Simpson’s Rule, especially when dealing with smooth functions. This is because Simpson’s
Rule uses a curved (quadratic) approach to approximate the area, while the Trapezoidal
Rule uses straight lines (linear approximation). Both methods aim to estimate the area, but
Simpson’s Rule tends to be more precise.
Where h is the new base and h = Δx. P and q become yo and y1.
b−a
Where: Δ x =
n
Where the formula is just a summation of all the areas of n no. of trapezoids.
Example 1:
1
Using n= 3, approximate the integral ∫ √ ❑
0
b−a 1−0 1
Δ x= = = =0.3333
n 3 3
y o =f (a)=f (0)=√ ❑
0.3333
Area= (1+ 2(1.054082013+1.201868915)+ 1.414142853)=1.1542
2
Example 2:
1
Using n= 5, approximate the integral ∫ √ ❑
0
b−a 1−0
Δ x= = =0.2
n 5
y o =f (a)=f (0)=√ ❑
0.2
Area= (1+2(1.019803903+ 1.077032961+ 1.166190379+1.280624847)+ 1.414213562)=
2
1.150151774
Based on the 2 examples above, the more subdivisions (n) you have, the smaller the
error, therefore, the approximation is more accurate.
SIMPSON’S RULE
The Simpson's 3/8 rule offers an alternative way to perform numerical integration.
Instead of using quadratic interpolation, it relies entirely on cubic interpolation. And unlike the
Simpson’s ⅓ rule where the integral is divided into 2 subintervals, this rule divides the
integral into 3 subintervals like the figure below.
As stated earlier, the Simpson’s rule in general, is more accurate than both the
trapezoidal and bisection methods. Additionally, compared to the Simpson’s ⅓ rule, the
Simpson’s ⅜ rule is allowed one more degree of freedom as it is a cubic function while the
Simpson’s ⅓ rule is a quadratic function.
The formula for the Simpson’s ⅜ rule is derived from the Lagrange interpolation.
b−a
Like usual, h= Δ x . Where: Δ x =
n
Example:
b−a 5.2−4
Δ x= = =0.2
n 6
REFERENCES:
trapezoidal -rule.php
Cuemath. https://www.cuemath.com/simpsons-rule-formula/
Testbook. (2023, May 4). Simpson’s Rule: Definition & Formula for 1/3 & 1/8