SlideShare a Scribd company logo
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Numerical Integration
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Objectives
• The student should be able to
– Understand the need for numerical integration
– Derive the trapezoidal rule using geometric
insight
– Apply the trapezoidal rule
– Apply Simpson’s rule
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Need for Numerical Integration!
( )
6
11
01
2
1
3
1
23
1
1
0
231
0
2
=−





++=






++=++= ∫ x
xx
dxxxI
( ) 11
0
1
0
1 −−−
−=−== ∫ eedxeI xx
∫
−
=
1
0
2
dxeI x
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Area under the graph!
• Definite integrations always result in the
area under the graph (in x-y plane)
• Are we capable of evaluating an
approximate value for the area?
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Example
• To perform the
definite integration of
the function between
(x0 & x1), we may
assume that the area
is equal to that of the
trapezium:
( ) ( )01
01
2
1
0
xx
yy
dxxf
x
x
−
+
≈∫
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Adding adjacent areas
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
The Trapezoidal Rule
( ) ( )
( ) ( )
2
2
12
12
01
01
yy
xx
yy
xxI
+
−+
+
−≈
Integrating from x0 to x2:
( ) ( ) ( ) ( )
2
212112101001 yxxyxxyxxyxx
I
−+−+−+−
≈
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
The Trapezoidal Rule
( ) ( ) hxxxx =−=− 1201
If the points are equidistant
2
2110 hyhyhyhy
I
+++
≈
( )210 2
2
yyy
h
I ++≈
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Dividing the whole interval into “n”
subintervals






++≈ ∑
−
=
n
n
i
i yyy
h
I
1
1
0 2
2
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
The Algorithm
• To integrate f(x) from a to b, determine the
number of intervals “n”
• Calculate the interval length h=(b-a)/n
• Evaluate the function at the points yi=f(xi)
where xi=x0+i*h
• Evaluate the integral by performing the
summation






++≈ ∑
−
=
n
n
i
i yyy
h
I
1
1
0 2
2
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Note that
X0=a
Xn=b
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Example
• Integrate
• Using the trapezoidal
rule
• Use 2,3,&4 points and
compare the results
∫=
1
0
2
dxxI
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Solution
• Using 2 points (n=1),
h=(1-0)/(1)=1
• Substituting:
( )21
2
1
yyI +≈ ( ) 5.010
2
1
=+≈I
X Y
0 0
1 1
2 points, 1 interval
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Solution
• Using 3 points (n=2),
h=(1-0)/(2)=0.5
• Substituting:
( )321 2
2
5.0
yyyI ++≈
( ) 375.0125.0*20
2
5.0
=++≈I
X Y
0 0
0.5 0.25
1 1
3 points, 2 interval
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Solution
• Using 4 points (n=3),
h=(1-0)/(3)=0.333
• Substituting:
( )4321 22
2
333.0
yyyyI +++≈
( ) 3519.01444.0*2111.0*20
2
333.0
=+++≈I
X Y
0 0
0.33 0.111
0.667 0.444
1 1
4 points, 3 interval
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Let’s use Interpolation!
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Interpolation!
• If we have a function that needs to be
integrated between two points
• We may use an approximate form of the
function to integrate!
• Polynomials are always integrable
• Why don’t we use a polynomial to
approximate the function, then evaluate
the integral
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Example
• To perform the
definite integration of
the function between
(x0 & x1), we may
interpolate the
function between the
two points as a line.
( ) ( )0
01
01
0 xx
xx
yy
yxf −
−
−
+≈
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Example
• Performing the integration on the approximate
function:
( ) ( )∫∫ 





−
−
−
+≈=
1
0
1
0
0
01
01
0
x
x
x
x
dxxx
xx
yy
ydxxfI
1
0
0
2
01
01
0
2
x
x
xx
x
xx
yy
xyI 













−
−
−
+≈
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Example
• Performing the integration on the approximate
function:
















−
−
−
+−
















−
−
−
+≈ 00
2
0
01
01
0010
2
1
01
01
10
22
xx
x
xx
yy
xyxx
x
xx
yy
xyI
( ) ( )
2
01
01
yy
xxI
+
−≈
• Which is equivalent to the area of the trapezium!
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
The Trapezoidal Rule
( ) ( )
2
01
01
yy
xxI
+
−≈
( ) ( )
( ) ( )
2
2
12
12
01
01
yy
xx
yy
xxI
+
−+
+
−≈
Integrating from x0 to x2:
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Simpson’s Rule
Using a parabola to join three
adjacent points!
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Quadratic Interpolation
• If we get to interpolate a quadratic equation
between every neighboring 3 points, we may use
Newton’s interpolation formula:
( ) ( ) ( )( )103021 xxxxbxxbbxf −−+−+≈
( ) ( ) ( )( )1010
2
3021 xxxxxxbxxbbxf ++−+−+≈
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Integrating
( ) ( ) ( )( )1010
2
3021 xxxxxxbxxbbxf ++−+−+≈
( ) ( ) ( )( )∫∫ ++−+−+≈
2
0
2
0
1010
2
3021
x
x
x
x
dxxxxxxxbxxbbdxxf
( ) ( )
2
0
2
0
10
2
10
3
30
2
21
232
x
x
x
x
xxx
x
xx
x
bxx
x
bxbdxxf 











++−+





−+≈∫
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
After substitutions and
manipulation!
( ) [ ]210 4
3
2
0
yyy
h
dxxf
x
x
++≈∫
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Working with three points!
( ) [ ]210 4
3
2
0
yyy
h
dxxf
x
x
++≈∫
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
For 4-Intervals
( ) [ ]432210 44
3
4
0
yyyyyy
h
dxxf
x
x
+++++≈∫
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
In General: Simpson’s Rule
( ) 





+++≈ ∑∑∫
−
=
−
=
n
n
i
i
n
i
i
x
x
yyyy
h
dxxf
n 2
,..4,2
1
,..3,1
0 24
30
NOTE: the number of intervals HAS TO BE even
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Example
• Integrate
• Using the Simpson
rule
• Use 3 points
∫=
1
0
2
dxxI
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Solution
• Using 3 points (n=2),
h=(1-0)/(2)=0.5
• Substituting:
• Which is the exact
solution!
( )210 4
3
5.0
yyyI ++≈
( )
3
1
125.0*40
3
5.0
=++≈I
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Homework #7
• Chapter 21, p. 610, numbers:
21.5, 21.6, 21.10, 21.11.

More Related Content

What's hot

Applied numerical methods lec8
Applied numerical methods lec8Applied numerical methods lec8
Applied numerical methods lec8
Yasser Ahmed
 
Curve fitting - Lecture Notes
Curve fitting - Lecture NotesCurve fitting - Lecture Notes
Curve fitting - Lecture Notes
Dr. Nirav Vyas
 
Numerical method-Picards,Taylor and Curve Fitting.
Numerical method-Picards,Taylor and Curve Fitting.Numerical method-Picards,Taylor and Curve Fitting.
Numerical method-Picards,Taylor and Curve Fitting.
Keshav Sahu
 
Spline Interpolation
Spline InterpolationSpline Interpolation
Spline Interpolation
aiQUANT
 
Cambio Climatico CO2 y la Diferencial de una funcion
Cambio Climatico CO2 y la Diferencial de una funcionCambio Climatico CO2 y la Diferencial de una funcion
Cambio Climatico CO2 y la Diferencial de una funcion
Judith Medina Vela
 
NUMERICAL INTEGRATION : ERROR FORMULA, GAUSSIAN QUADRATURE FORMULA
NUMERICAL INTEGRATION : ERROR FORMULA, GAUSSIAN QUADRATURE FORMULANUMERICAL INTEGRATION : ERROR FORMULA, GAUSSIAN QUADRATURE FORMULA
NUMERICAL INTEGRATION : ERROR FORMULA, GAUSSIAN QUADRATURE FORMULA
KHORASIYA DEVANSU
 
1519 differentiation-integration-02
1519 differentiation-integration-021519 differentiation-integration-02
1519 differentiation-integration-02
Dr Fereidoun Dejahang
 
Applied numerical methods lec14
Applied numerical methods lec14Applied numerical methods lec14
Applied numerical methods lec14
Yasser Ahmed
 
Numerical integration;Gaussian integration one point, two point and three poi...
Numerical integration;Gaussian integration one point, two point and three poi...Numerical integration;Gaussian integration one point, two point and three poi...
Numerical integration;Gaussian integration one point, two point and three poi...
vaibhav tailor
 
Basic concepts of curve fittings
Basic concepts of curve fittingsBasic concepts of curve fittings
Basic concepts of curve fittings
Tarun Gehlot
 
Techniques of intergration
Techniques of intergrationTechniques of intergration
Techniques of intergration
hirrahAzhar
 
INTERPOLATION
INTERPOLATIONINTERPOLATION
INTERPOLATION
tirath prajapati
 
Gauss Quadrature Formula
Gauss Quadrature FormulaGauss Quadrature Formula
Gauss Quadrature Formula
Maitree Patel
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
Sunny Chauhan
 
Curve fitting
Curve fitting Curve fitting
Curve fitting
shopnohinami
 
Non linear curve fitting
Non linear curve fitting Non linear curve fitting
Non linear curve fitting
Anumita Mondal
 
1575 numerical differentiation and integration
1575 numerical differentiation and integration1575 numerical differentiation and integration
1575 numerical differentiation and integration
Dr Fereidoun Dejahang
 
Integral Calculus
Integral CalculusIntegral Calculus
Integral Calculusitutor
 
Data Approximation in Mathematical Modelling Regression Analysis and Curve Fi...
Data Approximation in Mathematical Modelling Regression Analysis and Curve Fi...Data Approximation in Mathematical Modelling Regression Analysis and Curve Fi...
Data Approximation in Mathematical Modelling Regression Analysis and Curve Fi...
Dr.Summiya Parveen
 
Curve fitting of exponential curve
Curve fitting of exponential curveCurve fitting of exponential curve
Curve fitting of exponential curve
Divyang Rathod
 

What's hot (20)

Applied numerical methods lec8
Applied numerical methods lec8Applied numerical methods lec8
Applied numerical methods lec8
 
Curve fitting - Lecture Notes
Curve fitting - Lecture NotesCurve fitting - Lecture Notes
Curve fitting - Lecture Notes
 
Numerical method-Picards,Taylor and Curve Fitting.
Numerical method-Picards,Taylor and Curve Fitting.Numerical method-Picards,Taylor and Curve Fitting.
Numerical method-Picards,Taylor and Curve Fitting.
 
Spline Interpolation
Spline InterpolationSpline Interpolation
Spline Interpolation
 
Cambio Climatico CO2 y la Diferencial de una funcion
Cambio Climatico CO2 y la Diferencial de una funcionCambio Climatico CO2 y la Diferencial de una funcion
Cambio Climatico CO2 y la Diferencial de una funcion
 
NUMERICAL INTEGRATION : ERROR FORMULA, GAUSSIAN QUADRATURE FORMULA
NUMERICAL INTEGRATION : ERROR FORMULA, GAUSSIAN QUADRATURE FORMULANUMERICAL INTEGRATION : ERROR FORMULA, GAUSSIAN QUADRATURE FORMULA
NUMERICAL INTEGRATION : ERROR FORMULA, GAUSSIAN QUADRATURE FORMULA
 
1519 differentiation-integration-02
1519 differentiation-integration-021519 differentiation-integration-02
1519 differentiation-integration-02
 
Applied numerical methods lec14
Applied numerical methods lec14Applied numerical methods lec14
Applied numerical methods lec14
 
Numerical integration;Gaussian integration one point, two point and three poi...
Numerical integration;Gaussian integration one point, two point and three poi...Numerical integration;Gaussian integration one point, two point and three poi...
Numerical integration;Gaussian integration one point, two point and three poi...
 
Basic concepts of curve fittings
Basic concepts of curve fittingsBasic concepts of curve fittings
Basic concepts of curve fittings
 
Techniques of intergration
Techniques of intergrationTechniques of intergration
Techniques of intergration
 
INTERPOLATION
INTERPOLATIONINTERPOLATION
INTERPOLATION
 
Gauss Quadrature Formula
Gauss Quadrature FormulaGauss Quadrature Formula
Gauss Quadrature Formula
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
Curve fitting
Curve fitting Curve fitting
Curve fitting
 
Non linear curve fitting
Non linear curve fitting Non linear curve fitting
Non linear curve fitting
 
1575 numerical differentiation and integration
1575 numerical differentiation and integration1575 numerical differentiation and integration
1575 numerical differentiation and integration
 
Integral Calculus
Integral CalculusIntegral Calculus
Integral Calculus
 
Data Approximation in Mathematical Modelling Regression Analysis and Curve Fi...
Data Approximation in Mathematical Modelling Regression Analysis and Curve Fi...Data Approximation in Mathematical Modelling Regression Analysis and Curve Fi...
Data Approximation in Mathematical Modelling Regression Analysis and Curve Fi...
 
Curve fitting of exponential curve
Curve fitting of exponential curveCurve fitting of exponential curve
Curve fitting of exponential curve
 

Viewers also liked

NUMERICAL INTEGRATION AND ITS APPLICATIONS
NUMERICAL INTEGRATION AND ITS APPLICATIONSNUMERICAL INTEGRATION AND ITS APPLICATIONS
NUMERICAL INTEGRATION AND ITS APPLICATIONS
GOWTHAMGOWSIK98
 
[4] num integration
[4] num integration[4] num integration
[4] num integration
imamfaizin212
 
8.7 numerical integration
8.7 numerical integration8.7 numerical integration
8.7 numerical integrationdicosmo178
 
System of linear algebriac equations nsm
System of linear algebriac equations nsmSystem of linear algebriac equations nsm
System of linear algebriac equations nsm
Rahul Narang
 
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
Anu Bhatt
 
MATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and IntegrationMATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and Integration
Ainul Islam
 
Numerical and statistical methods new
Numerical and statistical methods newNumerical and statistical methods new
Numerical and statistical methods new
Aabha Tiwari
 
numerical method in statistics (MEAN AND MEDIAN)
numerical method in statistics (MEAN AND MEDIAN)numerical method in statistics (MEAN AND MEDIAN)
numerical method in statistics (MEAN AND MEDIAN)METRO MANILA COLLEGE
 
Arrays & functions in php
Arrays & functions in phpArrays & functions in php
Arrays & functions in php
Ashish Chamoli
 
Probability mass functions and probability density functions
Probability mass functions and probability density functionsProbability mass functions and probability density functions
Probability mass functions and probability density functionsAnkit Katiyar
 
Math1003 1.13 - Significant Digits, Accuracy, Precision
Math1003 1.13 - Significant Digits, Accuracy, PrecisionMath1003 1.13 - Significant Digits, Accuracy, Precision
Math1003 1.13 - Significant Digits, Accuracy, Precisiongcmath1003
 
Polynomial regression
Polynomial regressionPolynomial regression
Polynomial regression
naveedaliabad
 
Introduction to Finite Elements
Introduction to Finite ElementsIntroduction to Finite Elements
Introduction to Finite Elements
Srinivas Varanasi, Ph.D.
 
Regression
RegressionRegression
Regression
RAVI PRASAD K.J.
 
Linear programming graphical method (feasibility)
Linear programming   graphical method (feasibility)Linear programming   graphical method (feasibility)
Linear programming graphical method (feasibility)
Rajesh Timane, PhD
 
Probability Density Function (PDF)
Probability Density Function (PDF)Probability Density Function (PDF)
Probability Density Function (PDF)
AakankshaR
 

Viewers also liked (20)

NUMERICAL INTEGRATION AND ITS APPLICATIONS
NUMERICAL INTEGRATION AND ITS APPLICATIONSNUMERICAL INTEGRATION AND ITS APPLICATIONS
NUMERICAL INTEGRATION AND ITS APPLICATIONS
 
[4] num integration
[4] num integration[4] num integration
[4] num integration
 
8.7 numerical integration
8.7 numerical integration8.7 numerical integration
8.7 numerical integration
 
Calc 4.6
Calc 4.6Calc 4.6
Calc 4.6
 
System of linear algebriac equations nsm
System of linear algebriac equations nsmSystem of linear algebriac equations nsm
System of linear algebriac equations nsm
 
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
 
MATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and IntegrationMATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and Integration
 
Numerical and statistical methods new
Numerical and statistical methods newNumerical and statistical methods new
Numerical and statistical methods new
 
numerical method in statistics (MEAN AND MEDIAN)
numerical method in statistics (MEAN AND MEDIAN)numerical method in statistics (MEAN AND MEDIAN)
numerical method in statistics (MEAN AND MEDIAN)
 
5 random variables
5 random variables5 random variables
5 random variables
 
Arrays & functions in php
Arrays & functions in phpArrays & functions in php
Arrays & functions in php
 
Probability mass functions and probability density functions
Probability mass functions and probability density functionsProbability mass functions and probability density functions
Probability mass functions and probability density functions
 
07 interpolation
07 interpolation07 interpolation
07 interpolation
 
Gauss jordan
Gauss jordanGauss jordan
Gauss jordan
 
Math1003 1.13 - Significant Digits, Accuracy, Precision
Math1003 1.13 - Significant Digits, Accuracy, PrecisionMath1003 1.13 - Significant Digits, Accuracy, Precision
Math1003 1.13 - Significant Digits, Accuracy, Precision
 
Polynomial regression
Polynomial regressionPolynomial regression
Polynomial regression
 
Introduction to Finite Elements
Introduction to Finite ElementsIntroduction to Finite Elements
Introduction to Finite Elements
 
Regression
RegressionRegression
Regression
 
Linear programming graphical method (feasibility)
Linear programming   graphical method (feasibility)Linear programming   graphical method (feasibility)
Linear programming graphical method (feasibility)
 
Probability Density Function (PDF)
Probability Density Function (PDF)Probability Density Function (PDF)
Probability Density Function (PDF)
 

Similar to 09 numerical integration

08 interpolation lagrange
08 interpolation   lagrange08 interpolation   lagrange
08 interpolation lagrangeMohammad Tawfik
 
09 numerical differentiation
09 numerical differentiation09 numerical differentiation
09 numerical differentiationMohammad Tawfik
 
Applications of Differential Calculus in real life
Applications of Differential Calculus in real life Applications of Differential Calculus in real life
Applications of Differential Calculus in real life
OlooPundit
 
Interpolation
InterpolationInterpolation
Interpolation
Brijesh Padhiyar
 
Secant Method
Secant MethodSecant Method
Secant Method
Nasima Akhtar
 
11 initial value problems system
11 initial value problems   system11 initial value problems   system
11 initial value problems systemMohammad Tawfik
 
Newton’s Divided Difference Interpolation 18.pptx
Newton’s Divided Difference Interpolation 18.pptxNewton’s Divided Difference Interpolation 18.pptx
Newton’s Divided Difference Interpolation 18.pptx
RishabhGupta238479
 
Btech_II_ engineering mathematics_unit3
Btech_II_ engineering mathematics_unit3Btech_II_ engineering mathematics_unit3
Btech_II_ engineering mathematics_unit3
Rai University
 
SPDE presentation 2012
SPDE presentation 2012SPDE presentation 2012
SPDE presentation 2012
Zheng Mengdi
 
Integration techniques
Integration techniquesIntegration techniques
Integration techniquesKrishna Gali
 
Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5
Rai University
 
Interpolation In Numerical Methods.
 Interpolation In Numerical Methods. Interpolation In Numerical Methods.
Interpolation In Numerical Methods.
Abu Kaisar
 
technical-mathematics-integration-17-feb_2018.pptx
technical-mathematics-integration-17-feb_2018.pptxtechnical-mathematics-integration-17-feb_2018.pptx
technical-mathematics-integration-17-feb_2018.pptx
GolaotsemangLebese2
 
B.tech ii unit-3 material multiple integration
B.tech ii unit-3 material multiple integrationB.tech ii unit-3 material multiple integration
B.tech ii unit-3 material multiple integration
Rai University
 
Numerical Methods and Analysis
Numerical Methods and AnalysisNumerical Methods and Analysis

Similar to 09 numerical integration (20)

03 open methods
03 open methods03 open methods
03 open methods
 
04 gaussmethods
04 gaussmethods04 gaussmethods
04 gaussmethods
 
B.Tech-II_Unit-V
B.Tech-II_Unit-VB.Tech-II_Unit-V
B.Tech-II_Unit-V
 
08 interpolation lagrange
08 interpolation   lagrange08 interpolation   lagrange
08 interpolation lagrange
 
07 interpolationnewton
07 interpolationnewton07 interpolationnewton
07 interpolationnewton
 
09 numerical differentiation
09 numerical differentiation09 numerical differentiation
09 numerical differentiation
 
Applications of Differential Calculus in real life
Applications of Differential Calculus in real life Applications of Differential Calculus in real life
Applications of Differential Calculus in real life
 
13 weightedresidual
13 weightedresidual13 weightedresidual
13 weightedresidual
 
Interpolation
InterpolationInterpolation
Interpolation
 
Secant Method
Secant MethodSecant Method
Secant Method
 
11 initial value problems system
11 initial value problems   system11 initial value problems   system
11 initial value problems system
 
Newton’s Divided Difference Interpolation 18.pptx
Newton’s Divided Difference Interpolation 18.pptxNewton’s Divided Difference Interpolation 18.pptx
Newton’s Divided Difference Interpolation 18.pptx
 
Btech_II_ engineering mathematics_unit3
Btech_II_ engineering mathematics_unit3Btech_II_ engineering mathematics_unit3
Btech_II_ engineering mathematics_unit3
 
SPDE presentation 2012
SPDE presentation 2012SPDE presentation 2012
SPDE presentation 2012
 
Integration techniques
Integration techniquesIntegration techniques
Integration techniques
 
Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5
 
Interpolation In Numerical Methods.
 Interpolation In Numerical Methods. Interpolation In Numerical Methods.
Interpolation In Numerical Methods.
 
technical-mathematics-integration-17-feb_2018.pptx
technical-mathematics-integration-17-feb_2018.pptxtechnical-mathematics-integration-17-feb_2018.pptx
technical-mathematics-integration-17-feb_2018.pptx
 
B.tech ii unit-3 material multiple integration
B.tech ii unit-3 material multiple integrationB.tech ii unit-3 material multiple integration
B.tech ii unit-3 material multiple integration
 
Numerical Methods and Analysis
Numerical Methods and AnalysisNumerical Methods and Analysis
Numerical Methods and Analysis
 

More from Mohammad Tawfik

Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073
Mohammad Tawfik
 
Supply Chain Management 01 - Introduction
Supply Chain Management 01 - IntroductionSupply Chain Management 01 - Introduction
Supply Chain Management 01 - Introduction
Mohammad Tawfik
 
Supply Chain Management 02 - Logistics
Supply Chain Management 02 - LogisticsSupply Chain Management 02 - Logistics
Supply Chain Management 02 - Logistics
Mohammad Tawfik
 
Supply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory ManagementSupply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory Management
Mohammad Tawfik
 
Creative problem solving and decision making
Creative problem solving and decision makingCreative problem solving and decision making
Creative problem solving and decision making
Mohammad Tawfik
 
Digital content for teaching introduction
Digital content for teaching introductionDigital content for teaching introduction
Digital content for teaching introduction
Mohammad Tawfik
 
Crisis Management Basics
Crisis Management BasicsCrisis Management Basics
Crisis Management Basics
Mohammad Tawfik
 
DISC Personality Model
DISC Personality ModelDISC Personality Model
DISC Personality Model
Mohammad Tawfik
 
Training of Trainers
Training of TrainersTraining of Trainers
Training of Trainers
Mohammad Tawfik
 
Effective Delegation Skills
Effective Delegation SkillsEffective Delegation Skills
Effective Delegation Skills
Mohammad Tawfik
 
Train The Trainer
Train The TrainerTrain The Trainer
Train The Trainer
Mohammad Tawfik
 
Business Management - Marketing
Business Management - MarketingBusiness Management - Marketing
Business Management - Marketing
Mohammad Tawfik
 
Stress Management
Stress ManagementStress Management
Stress Management
Mohammad Tawfik
 
Project Management (CAPM) - Integration
Project Management (CAPM) - IntegrationProject Management (CAPM) - Integration
Project Management (CAPM) - Integration
Mohammad Tawfik
 
Project Management (CAPM) - The Framework
Project Management (CAPM) - The FrameworkProject Management (CAPM) - The Framework
Project Management (CAPM) - The Framework
Mohammad Tawfik
 
Project Management (CAPM) - Introduction
Project Management (CAPM) - IntroductionProject Management (CAPM) - Introduction
Project Management (CAPM) - Introduction
Mohammad Tawfik
 
The Creative Individual
The Creative IndividualThe Creative Individual
The Creative Individual
Mohammad Tawfik
 
Introduction to Wind Energy
Introduction to Wind EnergyIntroduction to Wind Energy
Introduction to Wind Energy
Mohammad Tawfik
 
Finite Element for Trusses in 2-D
Finite Element for Trusses in 2-DFinite Element for Trusses in 2-D
Finite Element for Trusses in 2-D
Mohammad Tawfik
 
Future of Drones ITW'16
Future of Drones ITW'16Future of Drones ITW'16
Future of Drones ITW'16
Mohammad Tawfik
 

More from Mohammad Tawfik (20)

Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073
 
Supply Chain Management 01 - Introduction
Supply Chain Management 01 - IntroductionSupply Chain Management 01 - Introduction
Supply Chain Management 01 - Introduction
 
Supply Chain Management 02 - Logistics
Supply Chain Management 02 - LogisticsSupply Chain Management 02 - Logistics
Supply Chain Management 02 - Logistics
 
Supply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory ManagementSupply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory Management
 
Creative problem solving and decision making
Creative problem solving and decision makingCreative problem solving and decision making
Creative problem solving and decision making
 
Digital content for teaching introduction
Digital content for teaching introductionDigital content for teaching introduction
Digital content for teaching introduction
 
Crisis Management Basics
Crisis Management BasicsCrisis Management Basics
Crisis Management Basics
 
DISC Personality Model
DISC Personality ModelDISC Personality Model
DISC Personality Model
 
Training of Trainers
Training of TrainersTraining of Trainers
Training of Trainers
 
Effective Delegation Skills
Effective Delegation SkillsEffective Delegation Skills
Effective Delegation Skills
 
Train The Trainer
Train The TrainerTrain The Trainer
Train The Trainer
 
Business Management - Marketing
Business Management - MarketingBusiness Management - Marketing
Business Management - Marketing
 
Stress Management
Stress ManagementStress Management
Stress Management
 
Project Management (CAPM) - Integration
Project Management (CAPM) - IntegrationProject Management (CAPM) - Integration
Project Management (CAPM) - Integration
 
Project Management (CAPM) - The Framework
Project Management (CAPM) - The FrameworkProject Management (CAPM) - The Framework
Project Management (CAPM) - The Framework
 
Project Management (CAPM) - Introduction
Project Management (CAPM) - IntroductionProject Management (CAPM) - Introduction
Project Management (CAPM) - Introduction
 
The Creative Individual
The Creative IndividualThe Creative Individual
The Creative Individual
 
Introduction to Wind Energy
Introduction to Wind EnergyIntroduction to Wind Energy
Introduction to Wind Energy
 
Finite Element for Trusses in 2-D
Finite Element for Trusses in 2-DFinite Element for Trusses in 2-D
Finite Element for Trusses in 2-D
 
Future of Drones ITW'16
Future of Drones ITW'16Future of Drones ITW'16
Future of Drones ITW'16
 

Recently uploaded

PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 

Recently uploaded (20)

PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 

09 numerical integration

  • 1. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Numerical Integration
  • 2. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Objectives • The student should be able to – Understand the need for numerical integration – Derive the trapezoidal rule using geometric insight – Apply the trapezoidal rule – Apply Simpson’s rule
  • 3. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Need for Numerical Integration! ( ) 6 11 01 2 1 3 1 23 1 1 0 231 0 2 =−      ++=       ++=++= ∫ x xx dxxxI ( ) 11 0 1 0 1 −−− −=−== ∫ eedxeI xx ∫ − = 1 0 2 dxeI x
  • 4. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Area under the graph! • Definite integrations always result in the area under the graph (in x-y plane) • Are we capable of evaluating an approximate value for the area?
  • 5. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Example • To perform the definite integration of the function between (x0 & x1), we may assume that the area is equal to that of the trapezium: ( ) ( )01 01 2 1 0 xx yy dxxf x x − + ≈∫
  • 6. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Adding adjacent areas
  • 7. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik The Trapezoidal Rule ( ) ( ) ( ) ( ) 2 2 12 12 01 01 yy xx yy xxI + −+ + −≈ Integrating from x0 to x2: ( ) ( ) ( ) ( ) 2 212112101001 yxxyxxyxxyxx I −+−+−+− ≈
  • 8. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik The Trapezoidal Rule ( ) ( ) hxxxx =−=− 1201 If the points are equidistant 2 2110 hyhyhyhy I +++ ≈ ( )210 2 2 yyy h I ++≈
  • 9. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Dividing the whole interval into “n” subintervals       ++≈ ∑ − = n n i i yyy h I 1 1 0 2 2
  • 10. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik The Algorithm • To integrate f(x) from a to b, determine the number of intervals “n” • Calculate the interval length h=(b-a)/n • Evaluate the function at the points yi=f(xi) where xi=x0+i*h • Evaluate the integral by performing the summation       ++≈ ∑ − = n n i i yyy h I 1 1 0 2 2
  • 11. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Note that X0=a Xn=b
  • 12. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Example • Integrate • Using the trapezoidal rule • Use 2,3,&4 points and compare the results ∫= 1 0 2 dxxI
  • 13. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Solution • Using 2 points (n=1), h=(1-0)/(1)=1 • Substituting: ( )21 2 1 yyI +≈ ( ) 5.010 2 1 =+≈I X Y 0 0 1 1 2 points, 1 interval
  • 14. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Solution • Using 3 points (n=2), h=(1-0)/(2)=0.5 • Substituting: ( )321 2 2 5.0 yyyI ++≈ ( ) 375.0125.0*20 2 5.0 =++≈I X Y 0 0 0.5 0.25 1 1 3 points, 2 interval
  • 15. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Solution • Using 4 points (n=3), h=(1-0)/(3)=0.333 • Substituting: ( )4321 22 2 333.0 yyyyI +++≈ ( ) 3519.01444.0*2111.0*20 2 333.0 =+++≈I X Y 0 0 0.33 0.111 0.667 0.444 1 1 4 points, 3 interval
  • 16. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Let’s use Interpolation!
  • 17. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Interpolation! • If we have a function that needs to be integrated between two points • We may use an approximate form of the function to integrate! • Polynomials are always integrable • Why don’t we use a polynomial to approximate the function, then evaluate the integral
  • 18. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Example • To perform the definite integration of the function between (x0 & x1), we may interpolate the function between the two points as a line. ( ) ( )0 01 01 0 xx xx yy yxf − − − +≈
  • 19. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Example • Performing the integration on the approximate function: ( ) ( )∫∫       − − − +≈= 1 0 1 0 0 01 01 0 x x x x dxxx xx yy ydxxfI 1 0 0 2 01 01 0 2 x x xx x xx yy xyI               − − − +≈
  • 20. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Example • Performing the integration on the approximate function:                 − − − +−                 − − − +≈ 00 2 0 01 01 0010 2 1 01 01 10 22 xx x xx yy xyxx x xx yy xyI ( ) ( ) 2 01 01 yy xxI + −≈ • Which is equivalent to the area of the trapezium!
  • 21. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik The Trapezoidal Rule ( ) ( ) 2 01 01 yy xxI + −≈ ( ) ( ) ( ) ( ) 2 2 12 12 01 01 yy xx yy xxI + −+ + −≈ Integrating from x0 to x2:
  • 22. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Simpson’s Rule Using a parabola to join three adjacent points!
  • 23. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Quadratic Interpolation • If we get to interpolate a quadratic equation between every neighboring 3 points, we may use Newton’s interpolation formula: ( ) ( ) ( )( )103021 xxxxbxxbbxf −−+−+≈ ( ) ( ) ( )( )1010 2 3021 xxxxxxbxxbbxf ++−+−+≈
  • 24. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Integrating ( ) ( ) ( )( )1010 2 3021 xxxxxxbxxbbxf ++−+−+≈ ( ) ( ) ( )( )∫∫ ++−+−+≈ 2 0 2 0 1010 2 3021 x x x x dxxxxxxxbxxbbdxxf ( ) ( ) 2 0 2 0 10 2 10 3 30 2 21 232 x x x x xxx x xx x bxx x bxbdxxf             ++−+      −+≈∫
  • 25. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik After substitutions and manipulation! ( ) [ ]210 4 3 2 0 yyy h dxxf x x ++≈∫
  • 26. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Working with three points! ( ) [ ]210 4 3 2 0 yyy h dxxf x x ++≈∫
  • 27. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik For 4-Intervals ( ) [ ]432210 44 3 4 0 yyyyyy h dxxf x x +++++≈∫
  • 28. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik In General: Simpson’s Rule ( )       +++≈ ∑∑∫ − = − = n n i i n i i x x yyyy h dxxf n 2 ,..4,2 1 ,..3,1 0 24 30 NOTE: the number of intervals HAS TO BE even
  • 29. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Example • Integrate • Using the Simpson rule • Use 3 points ∫= 1 0 2 dxxI
  • 30. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Solution • Using 3 points (n=2), h=(1-0)/(2)=0.5 • Substituting: • Which is the exact solution! ( )210 4 3 5.0 yyyI ++≈ ( ) 3 1 125.0*40 3 5.0 =++≈I
  • 31. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Homework #7 • Chapter 21, p. 610, numbers: 21.5, 21.6, 21.10, 21.11.