Professional Documents
Culture Documents
Integration With Unequal Segments
Integration With Unequal Segments
Solution:
f ( x 0 ) + f (x 1) f ( x 1 ) + f ( x 2) f ( xn−1 ) + f (xn)
I =h 1 + h2 + …+hn
2 2 2
I=0.0906+ 0.1307+…+0.1298=1.5948
Because the two segment from x = 0.12 to 0.32 are of equal length, their integral can be
computed with Simpson’s 1/3 rule:
1.7434+ 4 ( 1.3052 ) +1.3097
I 2=0.2 =0.2758
6
The next three segment are also equal and, as such, may be evaluated with the 3/8 rule
to give:
I 3=0.2727
Similarly, the 1/3 rule can be applied to the two segments from x= 0.44 to 0.64 to yield:
I 4=0.6685
Finally, the last two segment, which are of unequal length, can be evaluated with the
trapezoidal rule to give values of:
I 5=0.1663
I 6=0.1298
I =1.6037