SlideShare a Scribd company logo
Simpson’s Rule of Integration
Dr. Varun Kumar
Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 1 / 9
Outlines
1 Introduction to Simpson’s Rule
2 Mathematical Formulation
3 Example
Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 2 / 9
Introduction to Simpson’s Rule
Important points
⇒ Numerical integration means the numerical evaluation of integrals
J =
Z b
a
f (x)dx = F(b) − F(a), where F0
(x) = f (x) (1)
a and b are given.
f (x) is a function given analytically.
J is the area under curve of f (x) between a and b.
⇒ As per Simpson’s rule
We divide the interval of integration a 5 x 5 b into an even number of
interval.
Ex- n = 2m or sub-interval length h = b−a
n
Interval points are x0 = a, x1, x2, ......, x2m−1, x2m = b.
Including end points, total 2m + 1 points are taken for consideration.
Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 3 / 9
Continued–
⇒ We take and find the two sub-interval and approximate f (x) in the
interval x0 5 x 5 x2 = x0 + 2h.
⇒ Applying the Lagrange’s polynomial p2(x) through (x0, f0), (x1, f1),
(x2, f2)
p2(x) =
(x − x1)(x − x2)
(x0 − x1)(x0 − x2)
f0 +
(x − x0)(x − x2)
(x1 − x0)(x1 − x2)
f1 +
(x − x0)(x − x1)
(x2 − x0)(x2 − x1)
f2 (2)
⇒ The denominator terms are 2h2
, -h2
and 2h2
, respectively.
⇒ Let s = (x−x1)
h
then
p2(x) =
1
2
s(s − 1)f0 − (s + 1)(s − 1)f1 +
1
2
(s + 1)sf2 (3)
Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 4 / 9
Geometrical Interpretation of Simpson’s Rule
Figure: Simpson’s Rule
Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 5 / 9
Algorithm of Simpson’s Rule
Algorithm
It computes the integral
R b
a f (x)dx
Steps
⇒ INPUT: a, b, m, f0, f1, ....., f2m
⇒ Output: Approximate value ˜
J of J.
⇒ Compute s0 = f0 + f2m
s1 = f1 + f3 + ... + f2m−1
s2 = f2 + f4 + ... + f2m−2
h = (b−a)
2m
˜
J = h
3 (s0 + 4s1 + 2s2)
⇒ Mathematical expression of numerical integration using Simpson’s
Rule
Z b
a
f (x)dx ≈
h
3

f0+4f1+2f2+4f3+...+2f2m−2+42f2m−1+f2m

(4)
Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 6 / 9
Example–
Example
Q Evaluate the following definite integral J with 2m = 10, where
J =
Z 1
0
e−x2
dx
⇒ Solve the above integral using Simpson’s rule and estimate the error.
Ans Solution: According to question, a = 0, b = 1, 2m = 10 and
h = 1−0
10 = 0.1
Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 7 / 9
Continued–
˜
J ≈ h
3
h
1.367879 + 4 × 3.740266 + 2 × 3.037901
i
= 0.746825
Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 8 / 9
Integration accuracy
Solve the standard integral and check its accuracy using rectangular
and trapezoidal rule
1
R 1
0 x2dx
2
R 3
1
1
1+x dx
3
R π/2
0
cos x
sin5
x
dx
4
R 2
1 x2e2x dx
5
R 11
4
x3
1+x5 dx
6
R 1
0 x cos xdx
Note: Students can also observe the effect of n on definite integral
accuracy.
Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 9 / 9

More Related Content

What's hot

Numerical Integration: Trapezoidal Rule
Numerical Integration: Trapezoidal RuleNumerical Integration: Trapezoidal Rule
Numerical Integration: Trapezoidal Rule
VARUN KUMAR
 
Dobule and triple integral
Dobule and triple integralDobule and triple integral
Dobule and triple integral
sonendra Gupta
 
MATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and IntegrationMATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and Integration
Ainul Islam
 
Bisection
BisectionBisection
Bisection
Shipon Sarder
 
Application of derivatives 2 maxima and minima
Application of derivatives 2  maxima and minimaApplication of derivatives 2  maxima and minima
Application of derivatives 2 maxima and minima
sudersana viswanathan
 
Gaussian quadratures
Gaussian quadraturesGaussian quadratures
Gaussian quadratures
Tarun Gehlot
 
AEM Fourier series
 AEM Fourier series AEM Fourier series
AEM Fourier series
Siddhi Viradiya
 
Limit and continuity (2)
Limit and continuity (2)Limit and continuity (2)
Limit and continuity (2)
Digvijaysinh Gohil
 
trapezoidal and simpson's 1/3 and 3/8 rule
trapezoidal and simpson's 1/3 and 3/8 ruletrapezoidal and simpson's 1/3 and 3/8 rule
trapezoidal and simpson's 1/3 and 3/8 rule
hitarth shah
 
Fourier Series - Engineering Mathematics
Fourier Series -  Engineering MathematicsFourier Series -  Engineering Mathematics
Fourier Series - Engineering Mathematics
Md Sadequl Islam
 
Application of derivative
Application of derivativeApplication of derivative
Bisection method
Bisection methodBisection method
Bisection method
Isaac Yowetu
 
Odepowerpointpresentation1
Odepowerpointpresentation1 Odepowerpointpresentation1
Odepowerpointpresentation1
Pokarn Narkhede
 
BISECTION METHOD
BISECTION METHODBISECTION METHOD
Beta gamma functions
Beta gamma functionsBeta gamma functions
Beta gamma functions
Selvaraj John
 
MCQs Ordinary Differential Equations
MCQs Ordinary Differential EquationsMCQs Ordinary Differential Equations
MCQs Ordinary Differential Equations
DrDeepaChauhan
 
Presentation on Numerical Integration
Presentation on Numerical IntegrationPresentation on Numerical Integration
Presentation on Numerical Integration
Tausif Shahanshah
 
Trapezoidal Method IN Numerical Analysis
Trapezoidal Method IN  Numerical AnalysisTrapezoidal Method IN  Numerical Analysis
Trapezoidal Method IN Numerical Analysis
Mostafijur Rahman
 
Runge kutta
Runge kuttaRunge kutta
Runge kutta
Shubham Tomar
 

What's hot (20)

Numerical Integration: Trapezoidal Rule
Numerical Integration: Trapezoidal RuleNumerical Integration: Trapezoidal Rule
Numerical Integration: Trapezoidal Rule
 
Dobule and triple integral
Dobule and triple integralDobule and triple integral
Dobule and triple integral
 
MATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and IntegrationMATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and Integration
 
Bisection
BisectionBisection
Bisection
 
Es272 ch6
Es272 ch6Es272 ch6
Es272 ch6
 
Application of derivatives 2 maxima and minima
Application of derivatives 2  maxima and minimaApplication of derivatives 2  maxima and minima
Application of derivatives 2 maxima and minima
 
Gaussian quadratures
Gaussian quadraturesGaussian quadratures
Gaussian quadratures
 
AEM Fourier series
 AEM Fourier series AEM Fourier series
AEM Fourier series
 
Limit and continuity (2)
Limit and continuity (2)Limit and continuity (2)
Limit and continuity (2)
 
trapezoidal and simpson's 1/3 and 3/8 rule
trapezoidal and simpson's 1/3 and 3/8 ruletrapezoidal and simpson's 1/3 and 3/8 rule
trapezoidal and simpson's 1/3 and 3/8 rule
 
Fourier Series - Engineering Mathematics
Fourier Series -  Engineering MathematicsFourier Series -  Engineering Mathematics
Fourier Series - Engineering Mathematics
 
Application of derivative
Application of derivativeApplication of derivative
Application of derivative
 
Bisection method
Bisection methodBisection method
Bisection method
 
Odepowerpointpresentation1
Odepowerpointpresentation1 Odepowerpointpresentation1
Odepowerpointpresentation1
 
BISECTION METHOD
BISECTION METHODBISECTION METHOD
BISECTION METHOD
 
Beta gamma functions
Beta gamma functionsBeta gamma functions
Beta gamma functions
 
MCQs Ordinary Differential Equations
MCQs Ordinary Differential EquationsMCQs Ordinary Differential Equations
MCQs Ordinary Differential Equations
 
Presentation on Numerical Integration
Presentation on Numerical IntegrationPresentation on Numerical Integration
Presentation on Numerical Integration
 
Trapezoidal Method IN Numerical Analysis
Trapezoidal Method IN  Numerical AnalysisTrapezoidal Method IN  Numerical Analysis
Trapezoidal Method IN Numerical Analysis
 
Runge kutta
Runge kuttaRunge kutta
Runge kutta
 

Similar to Simpson's rule of integration

Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference Interpolation
VARUN KUMAR
 
Best polynomial approximation
Best polynomial approximationBest polynomial approximation
Best polynomial approximationDadang Hamzah
 
Newton's Divide and Difference Interpolation
Newton's Divide and Difference InterpolationNewton's Divide and Difference Interpolation
Newton's Divide and Difference Interpolation
VARUN KUMAR
 
Cubic Spline Interpolation
Cubic Spline InterpolationCubic Spline Interpolation
Cubic Spline Interpolation
VARUN KUMAR
 
Twinkle
TwinkleTwinkle
Twinkle
jabi khan
 
Romberg's Integration
Romberg's IntegrationRomberg's Integration
Romberg's Integration
VARUN KUMAR
 
Evaluating definite integrals
Evaluating definite integralsEvaluating definite integrals
Evaluating definite integrals
منتدى الرياضيات المتقدمة
 
Riemann sumsdefiniteintegrals
Riemann sumsdefiniteintegralsRiemann sumsdefiniteintegrals
Riemann sumsdefiniteintegrals
Dr. Jennifer Chang Wathall
 
2. Definite Int. Theory Module-5.pdf
2. Definite Int. Theory Module-5.pdf2. Definite Int. Theory Module-5.pdf
2. Definite Int. Theory Module-5.pdf
RajuSingh806014
 
1519 differentiation-integration-02
1519 differentiation-integration-021519 differentiation-integration-02
1519 differentiation-integration-02
Dr Fereidoun Dejahang
 
10.1007 978 3-642-31137-6-9
10.1007 978 3-642-31137-6-910.1007 978 3-642-31137-6-9
10.1007 978 3-642-31137-6-9
proteas26
 
Statistics formulaee
Statistics formulaeeStatistics formulaee
Statistics formulaee
Sumit Satam
 
MEC232 Numerical integration_Trapez_Simpson1by3_simpson3by8 with MATLAB code....
MEC232 Numerical integration_Trapez_Simpson1by3_simpson3by8 with MATLAB code....MEC232 Numerical integration_Trapez_Simpson1by3_simpson3by8 with MATLAB code....
MEC232 Numerical integration_Trapez_Simpson1by3_simpson3by8 with MATLAB code....
GAURAVRATHORE86
 
Calculus 4.1-4.3
Calculus 4.1-4.3Calculus 4.1-4.3
Calculus 4.1-4.3
JoseCortezAlonso
 
3_1 Exponential functions and their graphs (1).ppt
3_1 Exponential functions and their graphs (1).ppt3_1 Exponential functions and their graphs (1).ppt
3_1 Exponential functions and their graphs (1).ppt
MarchtPataray
 
Applications of Differentiation
Applications of DifferentiationApplications of Differentiation
Applications of Differentiation
Joey Valdriz
 
From moments to sparse representations, a geometric, algebraic and algorithmi...
From moments to sparse representations, a geometric, algebraic and algorithmi...From moments to sparse representations, a geometric, algebraic and algorithmi...
From moments to sparse representations, a geometric, algebraic and algorithmi...
BernardMourrain
 
maths Individual assignment on differentiation
maths Individual assignment on differentiationmaths Individual assignment on differentiation
maths Individual assignment on differentiationtenwoalex
 

Similar to Simpson's rule of integration (20)

Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference Interpolation
 
Best polynomial approximation
Best polynomial approximationBest polynomial approximation
Best polynomial approximation
 
Newton's Divide and Difference Interpolation
Newton's Divide and Difference InterpolationNewton's Divide and Difference Interpolation
Newton's Divide and Difference Interpolation
 
Cubic Spline Interpolation
Cubic Spline InterpolationCubic Spline Interpolation
Cubic Spline Interpolation
 
Twinkle
TwinkleTwinkle
Twinkle
 
Romberg's Integration
Romberg's IntegrationRomberg's Integration
Romberg's Integration
 
Evaluating definite integrals
Evaluating definite integralsEvaluating definite integrals
Evaluating definite integrals
 
3.1
3.13.1
3.1
 
Riemann sumsdefiniteintegrals
Riemann sumsdefiniteintegralsRiemann sumsdefiniteintegrals
Riemann sumsdefiniteintegrals
 
2. Definite Int. Theory Module-5.pdf
2. Definite Int. Theory Module-5.pdf2. Definite Int. Theory Module-5.pdf
2. Definite Int. Theory Module-5.pdf
 
1519 differentiation-integration-02
1519 differentiation-integration-021519 differentiation-integration-02
1519 differentiation-integration-02
 
10.1007 978 3-642-31137-6-9
10.1007 978 3-642-31137-6-910.1007 978 3-642-31137-6-9
10.1007 978 3-642-31137-6-9
 
Statistics formulaee
Statistics formulaeeStatistics formulaee
Statistics formulaee
 
Lar calc10 ch03_sec1
Lar calc10 ch03_sec1Lar calc10 ch03_sec1
Lar calc10 ch03_sec1
 
MEC232 Numerical integration_Trapez_Simpson1by3_simpson3by8 with MATLAB code....
MEC232 Numerical integration_Trapez_Simpson1by3_simpson3by8 with MATLAB code....MEC232 Numerical integration_Trapez_Simpson1by3_simpson3by8 with MATLAB code....
MEC232 Numerical integration_Trapez_Simpson1by3_simpson3by8 with MATLAB code....
 
Calculus 4.1-4.3
Calculus 4.1-4.3Calculus 4.1-4.3
Calculus 4.1-4.3
 
3_1 Exponential functions and their graphs (1).ppt
3_1 Exponential functions and their graphs (1).ppt3_1 Exponential functions and their graphs (1).ppt
3_1 Exponential functions and their graphs (1).ppt
 
Applications of Differentiation
Applications of DifferentiationApplications of Differentiation
Applications of Differentiation
 
From moments to sparse representations, a geometric, algebraic and algorithmi...
From moments to sparse representations, a geometric, algebraic and algorithmi...From moments to sparse representations, a geometric, algebraic and algorithmi...
From moments to sparse representations, a geometric, algebraic and algorithmi...
 
maths Individual assignment on differentiation
maths Individual assignment on differentiationmaths Individual assignment on differentiation
maths Individual assignment on differentiation
 

More from VARUN KUMAR

Distributed rc Model
Distributed rc ModelDistributed rc Model
Distributed rc Model
VARUN KUMAR
 
Electrical Wire Model
Electrical Wire ModelElectrical Wire Model
Electrical Wire Model
VARUN KUMAR
 
Interconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI DesignInterconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI Design
VARUN KUMAR
 
Introduction to Digital VLSI Design
Introduction to Digital VLSI DesignIntroduction to Digital VLSI Design
Introduction to Digital VLSI Design
VARUN KUMAR
 
Challenges of Massive MIMO System
Challenges of Massive MIMO SystemChallenges of Massive MIMO System
Challenges of Massive MIMO System
VARUN KUMAR
 
E-democracy or Digital Democracy
E-democracy or Digital DemocracyE-democracy or Digital Democracy
E-democracy or Digital Democracy
VARUN KUMAR
 
Ethics of Parasitic Computing
Ethics of Parasitic ComputingEthics of Parasitic Computing
Ethics of Parasitic Computing
VARUN KUMAR
 
Action Lines of Geneva Plan of Action
Action Lines of Geneva Plan of ActionAction Lines of Geneva Plan of Action
Action Lines of Geneva Plan of Action
VARUN KUMAR
 
Geneva Plan of Action
Geneva Plan of ActionGeneva Plan of Action
Geneva Plan of Action
VARUN KUMAR
 
Fair Use in the Electronic Age
Fair Use in the Electronic AgeFair Use in the Electronic Age
Fair Use in the Electronic Age
VARUN KUMAR
 
Software as a Property
Software as a PropertySoftware as a Property
Software as a Property
VARUN KUMAR
 
Orthogonal Polynomial
Orthogonal PolynomialOrthogonal Polynomial
Orthogonal Polynomial
VARUN KUMAR
 
Patent Protection
Patent ProtectionPatent Protection
Patent Protection
VARUN KUMAR
 
Copyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy LawCopyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy Law
VARUN KUMAR
 
Property Right and Software
Property Right and SoftwareProperty Right and Software
Property Right and Software
VARUN KUMAR
 
Investigating Data Trials
Investigating Data TrialsInvestigating Data Trials
Investigating Data Trials
VARUN KUMAR
 
Censorship and Controversy
Censorship and ControversyCensorship and Controversy
Censorship and Controversy
VARUN KUMAR
 
Introduction to Censorship
Introduction to Censorship Introduction to Censorship
Introduction to Censorship
VARUN KUMAR
 
Protect your online privacy-2
Protect your online privacy-2Protect your online privacy-2
Protect your online privacy-2
VARUN KUMAR
 
Interception Act vs Privacy Act
Interception Act vs Privacy ActInterception Act vs Privacy Act
Interception Act vs Privacy Act
VARUN KUMAR
 

More from VARUN KUMAR (20)

Distributed rc Model
Distributed rc ModelDistributed rc Model
Distributed rc Model
 
Electrical Wire Model
Electrical Wire ModelElectrical Wire Model
Electrical Wire Model
 
Interconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI DesignInterconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI Design
 
Introduction to Digital VLSI Design
Introduction to Digital VLSI DesignIntroduction to Digital VLSI Design
Introduction to Digital VLSI Design
 
Challenges of Massive MIMO System
Challenges of Massive MIMO SystemChallenges of Massive MIMO System
Challenges of Massive MIMO System
 
E-democracy or Digital Democracy
E-democracy or Digital DemocracyE-democracy or Digital Democracy
E-democracy or Digital Democracy
 
Ethics of Parasitic Computing
Ethics of Parasitic ComputingEthics of Parasitic Computing
Ethics of Parasitic Computing
 
Action Lines of Geneva Plan of Action
Action Lines of Geneva Plan of ActionAction Lines of Geneva Plan of Action
Action Lines of Geneva Plan of Action
 
Geneva Plan of Action
Geneva Plan of ActionGeneva Plan of Action
Geneva Plan of Action
 
Fair Use in the Electronic Age
Fair Use in the Electronic AgeFair Use in the Electronic Age
Fair Use in the Electronic Age
 
Software as a Property
Software as a PropertySoftware as a Property
Software as a Property
 
Orthogonal Polynomial
Orthogonal PolynomialOrthogonal Polynomial
Orthogonal Polynomial
 
Patent Protection
Patent ProtectionPatent Protection
Patent Protection
 
Copyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy LawCopyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy Law
 
Property Right and Software
Property Right and SoftwareProperty Right and Software
Property Right and Software
 
Investigating Data Trials
Investigating Data TrialsInvestigating Data Trials
Investigating Data Trials
 
Censorship and Controversy
Censorship and ControversyCensorship and Controversy
Censorship and Controversy
 
Introduction to Censorship
Introduction to Censorship Introduction to Censorship
Introduction to Censorship
 
Protect your online privacy-2
Protect your online privacy-2Protect your online privacy-2
Protect your online privacy-2
 
Interception Act vs Privacy Act
Interception Act vs Privacy ActInterception Act vs Privacy Act
Interception Act vs Privacy Act
 

Recently uploaded

Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 

Recently uploaded (20)

Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 

Simpson's rule of integration

  • 1. Simpson’s Rule of Integration Dr. Varun Kumar Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 1 / 9
  • 2. Outlines 1 Introduction to Simpson’s Rule 2 Mathematical Formulation 3 Example Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 2 / 9
  • 3. Introduction to Simpson’s Rule Important points ⇒ Numerical integration means the numerical evaluation of integrals J = Z b a f (x)dx = F(b) − F(a), where F0 (x) = f (x) (1) a and b are given. f (x) is a function given analytically. J is the area under curve of f (x) between a and b. ⇒ As per Simpson’s rule We divide the interval of integration a 5 x 5 b into an even number of interval. Ex- n = 2m or sub-interval length h = b−a n Interval points are x0 = a, x1, x2, ......, x2m−1, x2m = b. Including end points, total 2m + 1 points are taken for consideration. Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 3 / 9
  • 4. Continued– ⇒ We take and find the two sub-interval and approximate f (x) in the interval x0 5 x 5 x2 = x0 + 2h. ⇒ Applying the Lagrange’s polynomial p2(x) through (x0, f0), (x1, f1), (x2, f2) p2(x) = (x − x1)(x − x2) (x0 − x1)(x0 − x2) f0 + (x − x0)(x − x2) (x1 − x0)(x1 − x2) f1 + (x − x0)(x − x1) (x2 − x0)(x2 − x1) f2 (2) ⇒ The denominator terms are 2h2 , -h2 and 2h2 , respectively. ⇒ Let s = (x−x1) h then p2(x) = 1 2 s(s − 1)f0 − (s + 1)(s − 1)f1 + 1 2 (s + 1)sf2 (3) Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 4 / 9
  • 5. Geometrical Interpretation of Simpson’s Rule Figure: Simpson’s Rule Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 5 / 9
  • 6. Algorithm of Simpson’s Rule Algorithm It computes the integral R b a f (x)dx Steps ⇒ INPUT: a, b, m, f0, f1, ....., f2m ⇒ Output: Approximate value ˜ J of J. ⇒ Compute s0 = f0 + f2m s1 = f1 + f3 + ... + f2m−1 s2 = f2 + f4 + ... + f2m−2 h = (b−a) 2m ˜ J = h 3 (s0 + 4s1 + 2s2) ⇒ Mathematical expression of numerical integration using Simpson’s Rule Z b a f (x)dx ≈ h 3 f0+4f1+2f2+4f3+...+2f2m−2+42f2m−1+f2m (4) Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 6 / 9
  • 7. Example– Example Q Evaluate the following definite integral J with 2m = 10, where J = Z 1 0 e−x2 dx ⇒ Solve the above integral using Simpson’s rule and estimate the error. Ans Solution: According to question, a = 0, b = 1, 2m = 10 and h = 1−0 10 = 0.1 Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 7 / 9
  • 8. Continued– ˜ J ≈ h 3 h 1.367879 + 4 × 3.740266 + 2 × 3.037901 i = 0.746825 Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 8 / 9
  • 9. Integration accuracy Solve the standard integral and check its accuracy using rectangular and trapezoidal rule 1 R 1 0 x2dx 2 R 3 1 1 1+x dx 3 R π/2 0 cos x sin5 x dx 4 R 2 1 x2e2x dx 5 R 11 4 x3 1+x5 dx 6 R 1 0 x cos xdx Note: Students can also observe the effect of n on definite integral accuracy. Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 9 / 9