Professional Documents
Culture Documents
Chapter 18
Chapter 18
Chapter 18
Chapter 18:
Simpson's Rule Method
OBJECTIVE:
At the end of this chapter, students will be familiarized of the Simpson’s Rule and its
Microsoft Power Point Application.
DISCUSSION:
Simpson's rule is a Newton-Cotes formula for approximating the integral of a function f
using quadratic polynomials (i.e., parabolic arcs instead of the straight line segments used
in the trapezoidal rule). Simpson's rule can be derived by integrating a third-
order Lagrange interpolating polynomial fit to the function at three equally spaced points.
In particular, let the function f be tabulated at points xo , x1 , and x2 equally spaced by
distance h, and denote fn = f(xn ). Then Simpson's rule states that
𝑥2 𝑥0 +2ℎ
∫ 𝑓 (𝑥 )𝑑𝑥 = ∫ 𝑓 (𝑥 )𝑑𝑥
𝑥𝑜 𝑥𝑜
Formulas:
1|P a ge
ISAT U CEA
Using Simpson’s a.) (1/3) and b.) (3/8) rule, solve for the value of integral given
7
𝑥
𝑓 (𝑥 ) = ∫ 𝑑𝑥 ; 𝑛 = 6
2 1 − √2 + 𝑥
1
𝑖 ℎ 𝑥 𝑓(𝑥) 𝑐𝑎𝑙𝑐( )
3
Where:
1
𝑖 ℎ 𝑥 𝑓(𝑥) 𝑐𝑎𝑙𝑐( )
3
Note: The squares in yellow colour are table headings. Terms in BOLD fonts are
formulas to be “clicked” in corresponding rows and columns. Terms in LIGHT fonts are
to be “typed” in keyboard.
2|P a ge
ISAT U CEA
𝒉 will be the same as in first iteration and 𝒇(𝒙) will be dragged down.
𝒙 will be equal to the sum of the first iteration 𝒙 and the second iteration 𝒉.
Thus:
1
𝑖 ℎ 𝑥 𝑓(𝑥) 𝑐𝑎𝑙𝑐( )
3
0 0.833333 2 -2 -2
=𝒙(𝒊=𝟎) +
1 =𝒉(𝒊=𝟎) 𝒉(𝒊=𝟏) “drag” =IF(ISODD(𝒊𝟏 ),4*𝒇(𝒙)(𝒊=𝟏) ,2*𝒇(𝒙)(𝒊=𝟏) )
Second iteration:
3|P a ge
ISAT U CEA
The third and preceding iterations will be dragged down from second iteration until
reached the nth iteration. Thus
=(B7/3)*SUM(E6:E12)
𝟑
b. The process would be the same as before except that 𝒄𝒂𝒍𝒄(𝟖) will be solved in
middle iterations as
=IF(MOD(A33,3),3*D33,2*D33)
4|P a ge
ISAT U CEA
=(3*B7/8)*SUM(E6:E12)
FOLLOW UP QUESTION:
What is the difference between Simpson’s (1/3) and (3/8) rule in terms of convergence,
approximation, advantages, and disadvantages?
APPLICATIONS:
Using Simpson’s (1/3) and (3/8) rule, approximate the integrals of
9 𝑥+1 2 sin(𝑥)2
a. ∫4 𝑑𝑥 ; 𝑛 = 6 b. ∫0 𝑑𝑥 ; 𝑛 = 6
𝑥+2√ 𝑥−3 1+sin(𝑥)2
5|P a ge