lec14

10
5.2 Simpson’s 1/3 rd Rule 5.2.1 Simpson’s Rule: A wide variety of numerical methods have been developed to simplify the integral. Here, we will discuss Simpson’s 1/3 rd Rule of integral approximation, which improves upon the accuracy of the Trapezoidal Rule. Trapezoidal rule was based on approximating the integrand by a first order polynomial, and then integrating the polynomial in the interval of integration. Simpson’s 1/3rd rule is an extension of Trapezoidal rule where the integrand is non- approximated by a second order polynomial. 5.2.2 Deriving Simpson's Rule Hence where is a second order polynomial.

description

doc

Transcript of lec14

Simpson's 1/3rd Rule Textbook Notes: Integration: Computer Engineering

Chapter 5

Simpsons Rule

5.2 Simpsons 1/3rd Rule5.2.1 Simpsons Rule:

A wide variety of numerical methods have been developed to simplify the integral. Here, we will discuss Simpsons 1/3rd Rule of integral approximation, which improves upon the accuracy of the Trapezoidal Rule.

Trapezoidal rule was based on approximating the integrand by a first order polynomial, and then integrating the polynomial in the interval of integration. Simpsons 1/3rd rule is an extension of Trapezoidal rule where the integrand is non-approximated by a second order polynomial.

5.2.2 Deriving Simpson's RuleHence

where is a second order polynomial.

Choose

EMBED Equation.3 and as the three points of the function to evaluate and .

Solving the above three equations for unknowns, and give

Then

Substituting values of and give

Since for Simpsons 1/3rd Rule, the interval is broken into 2 segments, the segment width

Hence the Simpsons 1/3rd rule is given by

Since the above form has 1/3 in its formula, it is also called Simpsons 1/3rd Rule.

Example 1:

Human vision has the remarkable ability to infer 3D shapes from 2D images. The intriguing question is: can we replicate some of these abilities on a computer? Yes, it can be done and to do this, integration of vector fields is required. The following integral needs to integrated.

where

a) Use Simpsons 1/3rd Rule to find the integration.b) Find the true error,

c) Find the absolute relative true error, .

Solution:

a)

b) The exact value of the above integral is found using Maple for calculating the true error and relative true error.

so the true error is

c) The absolute relative true error, , would then be

5.2.3 Multiple Segment Simpsons 1/3rd Rule

Just like in multiple-segment Trapezoidal Rule, one can subdivide the interval into segments and apply Simpsons 1/3rd Rule repeatedly over every two segments. Note that needs to be even. Divide interval into equal segments, hence the segment width .

where

Apply Simpsons 1/3rd Rule over each interval,

Since

then

EMBED Equation.3 H.W: Draw a flow chart to calculate the integral of the function f(x) from a to b using n equal intervals by Simpson Rule.

Example 2:

Human vision has the remarkable ability to infer 3D shapes from 2D images. The intriguing question is: can we replicate some of these abilities on a computer? Yes, it can be done and to do this, integration of vector fields is required. The following integral needs to integrated.

where

a) Use four segment Simpsons 1/3rd Rule to find the value of the integral.

b) Find the true error, Et for part (a).

c) Find the absolute relative true error for part (a).Solution:

a) Using segment Simpsons 1/3rd Rule,

So

b) The exact value of the above integral is found using Maple for calculating the true error and relative true error.

so the true error is

c) The absolute relative true error, , would then be

Table 1: Values of Simpsons 1/3rd Rule for Example 2 with multiple segments

Approximate Value

2

4

6

884.9466726.9166766.606362.3177

-24.15433.875-5.8137-1.5251

39.731%

55.723%

9.5632%

2.5088%

89

_1182690202.unknown

_1182717997.unknown

_1182718396.unknown

_1182718930.unknown

_1182719077.unknown

_1182719352.unknown

_1182719416.unknown

_1182719420.unknown

_1182719445.unknown

_1182719364.unknown

_1182719193.unknown

_1182718997.unknown

_1182719023.unknown

_1182718973.unknown

_1182718807.unknown

_1182718862.unknown

_1182718886.unknown

_1182718835.unknown

_1182718606.unknown

_1182718613.unknown

_1182718428.unknown

_1182718277.unknown

_1182718328.unknown

_1182718388.unknown

_1182718295.unknown

_1182718265.unknown

_1182718270.unknown

_1182718011.unknown

_1182716660.unknown

_1182717757.unknown

_1182717790.unknown

_1182717978.unknown

_1182717246.unknown

_1182717265.unknown

_1182717596.unknown

_1182716668.unknown

_1182705373.unknown

_1182705386.unknown

_1182705488.unknown

_1182705378.unknown

_1182692711.unknown

_1182694693.unknown

_1182705360.unknown

_1182694641.unknown

_1127660953.unknown

_1148372658.unknown

_1155566585.unknown

_1182689533.unknown

_1157027578.unknown

_1180610032.unknown

_1157027524.unknown

_1148372722.unknown

_1155566542.unknown

_1148372684.unknown

_1128234745.unknown

_1148372529.unknown

_1128239773.unknown

_1128239823.unknown

_1128234810.unknown

_1127661513.unknown

_1128234717.unknown

_1127661124.unknown

_1126982304.unknown

_1126986466.unknown

_1126987866.unknown

_1126988891.unknown

_1126990475.unknown

_1127028285.unknown

_1127028297.unknown

_1127026191.unknown

_1126989181.unknown

_1126988049.unknown

_1126986540.unknown

_1126986557.unknown

_1126986525.unknown

_1126986241.unknown

_1126986294.unknown

_1126986333.unknown

_1126986272.unknown

_1126983678.unknown

_1126986212.unknown

_1126983657.unknown

_1126979143.unknown

_1126981880.unknown

_1126982056.unknown

_1126982278.unknown

_1126981943.unknown

_1126979272.unknown

_1126979368.unknown

_1126979035.unknown

_1126979088.unknown

_1126979103.unknown

_1126979124.unknown

_1126979054.unknown

_1126978842.unknown

_1126978909.unknown

_1126469922.unknown

_1126978816.unknown

_1124564462.unknown

_923903395.unknown