Professional Documents
Culture Documents
Title: Numerical Integration Intended Learning Outcomes:: A = f (x) dx≈ Δx 2 (f (x) +2 f (x) +2 f (x) +... +2 f (x) +f (x) )
Title: Numerical Integration Intended Learning Outcomes:: A = f (x) dx≈ Δx 2 (f (x) +2 f (x) +2 f (x) +... +2 f (x) +f (x) )
Title: Numerical Integration Intended Learning Outcomes:: A = f (x) dx≈ Δx 2 (f (x) +2 f (x) +2 f (x) +... +2 f (x) +f (x) )
Intended Learning Outcomes : At the end of this lesson, you should be able to :
1. Determine an area under a curve using the trapezoidal rule
2. Determine an area under a curve using the Simpsons 1/3 rule
Discussions :
1. Trapezoidal Rule
Illustrative problem 1. Estimate the area under the curve f(x) = x2 +sin (x) within the limits x = 1
and x= 4. Use the trapezoidal rule. Use n = 6.
18.0000
16.0000
14.0000
12.0000
10.0000
8.0000
6.0000
4.0000
2.0000
0.0000
0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5
Solution :
x f(x)
1.0 1.8415
1.5 3.2475
2.0 4.9093
2.5 6.8485
3.0 9.1411
3.5 11.8992
4.0 15.2432
3. Verify Results
A = 22.1940 (using calculator )
%Error = |22.1940 – 22.2940| / 22.1940 x 100% = 0.45%
Illustrative problem 1. Estimate the area under the curve f(x) = x 2 + sin (x) within the limits x = 1
and x= 4. Use the Simpson's 1/3 rule. Use n = 6.
Solution :
1. Fill-in the table (n must be even)
x f(x) W
1.0 1.8415 1
1.5 3.2475 4
2.0 4.9093 2
2.5 6.8485 4
3.0 9.1411 2
3.5 11.8992 4
4.0 15.2432 1
3. Verify Results
%Error = |22.1940 – 22.1944| / 22.1940 x 100% = 0.002%
P1. Estimate the area under the curve f(x) = 2x3 - 2sin (x) within the limits x = 1 and x = 3. Use the
Trapezoidal Rule. Use n = 6.
P2. Estimate the area under the curve f(x) = 2x3 - 2sin (x) within the limits x = 1 and x = 3. Use the
Simpson's 1/3 rule. Use n = 6.
References :
1. Applied Numerical Methods with MATLAB for Engineers and Scientist
Steven C. Chapra, McGraw Hill International Edition c.2005