SlideShare a Scribd company logo
Centro de Investigaci´on y de Estudios Avanzados del Instituto Polit´ecnico
Nacional
Unidad Guadalajara
Sistemas el´ectricos de Potencia
M´etodos n´umericos y computaci´on: Investigaci´on
November 25, 2019
Nombre: Alexis Hern´andez San Germ´an
Derive the equation (1)
x2
x0
f(x)dx ≈
h
3
(f0 + 4f1 + f2) (1)
Start with the Lagrange polynomial PM (x) based on x0, x1, . . . , xM that can be used to
approximate f(x):
f(x) ≈ PM (x) =
M
k=0
fk LM,k(x) (2)
where fk = f(xk) for k = 0, 1, . . . , M. An approximation for the integral is obtained by
replacing the integrand f(x) with the polynomial PM (x). This is the general method for
obtaining a Newton-Cotes integration formula:
xM
x0
f(x)dx ≈
xM
x0
PM (x)dx
=
xM
x0
M
k=0
fk LM,k(x) dx =
M
k=0
xM
x0
fkLM,k(x)dx
=
M
k=0
xM
x0
LM,k(x)dx fk =
M
k=0
wkfk
(3)
The details for the general computations of the coefficients of wk in (3) are tedious. We
shall give a sample proof of Simpson’s rule, which is the case M = 2. This case involves the
approximating polynomial
P2(x) = f0
(x − x1)(x − x2)
(x0 − x1)(x0 − x2)
+ f1
(x − x0)(x − x2)
(x1 − x0)(x1 − x2)
+ f2
(x − x0)(x − x1)
(x2 − x0)(x2 − x1)
(4)
Since f0, f1, and f2 are constants with respect to integration, the relations in (3) lead to
x2
x0
f(x)dx ≈ f0
x2
x0
(x − x1)(x − x2)
(x0 − x1)(x0 − x2)
dx + f1
x2
x0
(x − x0)(x − x2)
(x1 − x0)(x1 − x2)
dx
+ f2
x2
x0
(x − x0)(x − x1)
(x2 − x0)(x2 − x1)
dx
(5)
We introduce the change of variable x = x0+ht with dx = h dt to assist with the evaluation
of the integrals in (5). The new limits of integration are from t = 0 to t = 2. The equal spacing
1
nodes xk = x0 + kh leads to xk − xj = (k − j)h and x − xk = h(t − k), which are used to
simplify (5) and get
x2
x0
f(x)dx ≈ f0
2
0
h(t − 1)h(t − 2)
(−h)(−2h)
h dt + f1
2
0
h(t − 0)h(t − 2)
(h)(−h)
h dt
+ f2
2
0
h(t − 0)h(t − 1)
(2h)(h)
h dt
= f0
h
2
2
0
(t2
− 3t + 2) dt − f1h
2
0
(t2
− 2t) dt + f2
h
2
2
0
(t2
− t) dt
= f0
h
2
t3
3
−
3t2
2
+ 2t
t=2
t=0
− f1h
t3
3
− t2
t=2
t=0
+ f2
h
2
t3
3
−
t2
2
t=2
t=0
= f0
h
2
2
3
− f1h
−4
3
+ f2
h
2
2
3
=
h
3
(f0 + 4f1 + f2)
(6)
References
[1] John H. Matthews, Kurtis K. Fink, Numerical Methods using MATLAB 4th Edition,
Pearson Education, 2010
2

More Related Content

What's hot

1508 calculus-fundamental theorem
1508 calculus-fundamental theorem1508 calculus-fundamental theorem
1508 calculus-fundamental theorem
Dr Fereidoun Dejahang
 
Local linear approximation
Local linear approximationLocal linear approximation
Local linear approximation
Tarun Gehlot
 
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
 
1.12 Von Neumann natural numbers
1.12 Von Neumann natural numbers1.12 Von Neumann natural numbers
1.12 Von Neumann natural numbers
Jan Plaza
 
The chain rule
The chain ruleThe chain rule
The chain rule
J M
 
Statistics for Economics Midterm 2 Cheat Sheet
Statistics for Economics Midterm 2 Cheat SheetStatistics for Economics Midterm 2 Cheat Sheet
Statistics for Economics Midterm 2 Cheat Sheet
Laurel Ayuyao
 
Interpolation
InterpolationInterpolation
Interpolation
VARUN KUMAR
 
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...Engineering Mathematics - Total derivatives, chain rule and derivative of imp...
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...
Jayanshu Gundaniya
 
Section5 stochastic
Section5 stochasticSection5 stochastic
Section5 stochastic
cairo university
 
Chain Rule
Chain RuleChain Rule
Chain Rule
Nishant Patel
 
Response Surface in Tensor Train format for Uncertainty Quantification
Response Surface in Tensor Train format for Uncertainty QuantificationResponse Surface in Tensor Train format for Uncertainty Quantification
Response Surface in Tensor Train format for Uncertainty Quantification
Alexander Litvinenko
 
Exercicios de integrais
Exercicios de integraisExercicios de integrais
Exercicios de integrais
Ribeij2
 
A note on variational inference for the univariate Gaussian
A note on variational inference for the univariate GaussianA note on variational inference for the univariate Gaussian
A note on variational inference for the univariate Gaussian
Tomonari Masada
 
Maxima & Minima of Calculus
Maxima & Minima of CalculusMaxima & Minima of Calculus
Maxima & Minima of Calculus
Arpit Modh
 
Integral calculus
Integral calculusIntegral calculus
Integral calculus
IndiraDevi24
 
Statistics for Economics Final Exam Cheat Sheet
Statistics for Economics Final Exam Cheat SheetStatistics for Economics Final Exam Cheat Sheet
Statistics for Economics Final Exam Cheat Sheet
Laurel Ayuyao
 
4.1 the chain rule
4.1 the chain rule4.1 the chain rule
4.1 the chain rule
Aron Dotson
 

What's hot (20)

Htdp27.key
Htdp27.keyHtdp27.key
Htdp27.key
 
1508 calculus-fundamental theorem
1508 calculus-fundamental theorem1508 calculus-fundamental theorem
1508 calculus-fundamental theorem
 
Local linear approximation
Local linear approximationLocal linear approximation
Local linear approximation
 
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
 
1.12 Von Neumann natural numbers
1.12 Von Neumann natural numbers1.12 Von Neumann natural numbers
1.12 Von Neumann natural numbers
 
The chain rule
The chain ruleThe chain rule
The chain rule
 
Statistics for Economics Midterm 2 Cheat Sheet
Statistics for Economics Midterm 2 Cheat SheetStatistics for Economics Midterm 2 Cheat Sheet
Statistics for Economics Midterm 2 Cheat Sheet
 
Interpolation
InterpolationInterpolation
Interpolation
 
Matdis 3.4
Matdis 3.4Matdis 3.4
Matdis 3.4
 
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...Engineering Mathematics - Total derivatives, chain rule and derivative of imp...
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...
 
Section5 stochastic
Section5 stochasticSection5 stochastic
Section5 stochastic
 
mathFin01
mathFin01mathFin01
mathFin01
 
Chain Rule
Chain RuleChain Rule
Chain Rule
 
Response Surface in Tensor Train format for Uncertainty Quantification
Response Surface in Tensor Train format for Uncertainty QuantificationResponse Surface in Tensor Train format for Uncertainty Quantification
Response Surface in Tensor Train format for Uncertainty Quantification
 
Exercicios de integrais
Exercicios de integraisExercicios de integrais
Exercicios de integrais
 
A note on variational inference for the univariate Gaussian
A note on variational inference for the univariate GaussianA note on variational inference for the univariate Gaussian
A note on variational inference for the univariate Gaussian
 
Maxima & Minima of Calculus
Maxima & Minima of CalculusMaxima & Minima of Calculus
Maxima & Minima of Calculus
 
Integral calculus
Integral calculusIntegral calculus
Integral calculus
 
Statistics for Economics Final Exam Cheat Sheet
Statistics for Economics Final Exam Cheat SheetStatistics for Economics Final Exam Cheat Sheet
Statistics for Economics Final Exam Cheat Sheet
 
4.1 the chain rule
4.1 the chain rule4.1 the chain rule
4.1 the chain rule
 

Similar to Numerical_Methods_Simpson_Rule

Coincidence points for mappings under generalized contraction
Coincidence points for mappings under generalized contractionCoincidence points for mappings under generalized contraction
Coincidence points for mappings under generalized contraction
Alexander Decker
 
1_AJMS_229_19[Review].pdf
1_AJMS_229_19[Review].pdf1_AJMS_229_19[Review].pdf
1_AJMS_229_19[Review].pdf
BRNSS Publication Hub
 
On Frechet Derivatives with Application to the Inverse Function Theorem of Or...
On Frechet Derivatives with Application to the Inverse Function Theorem of Or...On Frechet Derivatives with Application to the Inverse Function Theorem of Or...
On Frechet Derivatives with Application to the Inverse Function Theorem of Or...
BRNSS Publication Hub
 
The Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability DistributionThe Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability Distribution
Pedro222284
 
AEM Integrating factor to orthogonal trajactories
AEM Integrating factor to orthogonal trajactoriesAEM Integrating factor to orthogonal trajactories
AEM Integrating factor to orthogonal trajactories
Sukhvinder Singh
 
Numerical differentiation integration
Numerical differentiation integrationNumerical differentiation integration
Numerical differentiation integration
Tarun Gehlot
 
8 fixed point theorem in complete fuzzy metric space 8 megha shrivastava
8 fixed point theorem in complete fuzzy metric space 8 megha shrivastava8 fixed point theorem in complete fuzzy metric space 8 megha shrivastava
8 fixed point theorem in complete fuzzy metric space 8 megha shrivastava
BIOLOGICAL FORUM
 
Differential Calculus
Differential Calculus Differential Calculus
Differential Calculus
OlooPundit
 
A Note on “   Geraghty contraction type mappings”
A Note on “   Geraghty contraction type mappings”A Note on “   Geraghty contraction type mappings”
A Note on “   Geraghty contraction type mappings”
IOSRJM
 
Convexity in the Theory of the Gamma Function.pdf
Convexity in the Theory of the Gamma Function.pdfConvexity in the Theory of the Gamma Function.pdf
Convexity in the Theory of the Gamma Function.pdf
PeterEsnayderBarranz
 
A Fast Algorithm for Solving Scalar Wave Scattering Problem by Billions of Pa...
A Fast Algorithm for Solving Scalar Wave Scattering Problem by Billions of Pa...A Fast Algorithm for Solving Scalar Wave Scattering Problem by Billions of Pa...
A Fast Algorithm for Solving Scalar Wave Scattering Problem by Billions of Pa...
A G
 
B043007014
B043007014B043007014
B043007014
inventy
 
B043007014
B043007014B043007014
B043007014
inventy
 
B043007014
B043007014B043007014
B043007014
inventy
 
Unique fixed point theorems for generalized weakly contractive condition in o...
Unique fixed point theorems for generalized weakly contractive condition in o...Unique fixed point theorems for generalized weakly contractive condition in o...
Unique fixed point theorems for generalized weakly contractive condition in o...
Alexander Decker
 
Stochastic Calculus, Summer 2014, July 22,Lecture 7Con.docx
Stochastic Calculus, Summer 2014, July 22,Lecture 7Con.docxStochastic Calculus, Summer 2014, July 22,Lecture 7Con.docx
Stochastic Calculus, Summer 2014, July 22,Lecture 7Con.docx
dessiechisomjj4
 
fouriertransform.pdf
fouriertransform.pdffouriertransform.pdf
fouriertransform.pdf
ssuser4dafea
 

Similar to Numerical_Methods_Simpson_Rule (20)

Coincidence points for mappings under generalized contraction
Coincidence points for mappings under generalized contractionCoincidence points for mappings under generalized contraction
Coincidence points for mappings under generalized contraction
 
1_AJMS_229_19[Review].pdf
1_AJMS_229_19[Review].pdf1_AJMS_229_19[Review].pdf
1_AJMS_229_19[Review].pdf
 
On Frechet Derivatives with Application to the Inverse Function Theorem of Or...
On Frechet Derivatives with Application to the Inverse Function Theorem of Or...On Frechet Derivatives with Application to the Inverse Function Theorem of Or...
On Frechet Derivatives with Application to the Inverse Function Theorem of Or...
 
The Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability DistributionThe Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability Distribution
 
AEM Integrating factor to orthogonal trajactories
AEM Integrating factor to orthogonal trajactoriesAEM Integrating factor to orthogonal trajactories
AEM Integrating factor to orthogonal trajactories
 
Numerical differentiation integration
Numerical differentiation integrationNumerical differentiation integration
Numerical differentiation integration
 
8 fixed point theorem in complete fuzzy metric space 8 megha shrivastava
8 fixed point theorem in complete fuzzy metric space 8 megha shrivastava8 fixed point theorem in complete fuzzy metric space 8 megha shrivastava
8 fixed point theorem in complete fuzzy metric space 8 megha shrivastava
 
Differential Calculus
Differential Calculus Differential Calculus
Differential Calculus
 
A Note on “   Geraghty contraction type mappings”
A Note on “   Geraghty contraction type mappings”A Note on “   Geraghty contraction type mappings”
A Note on “   Geraghty contraction type mappings”
 
Convexity in the Theory of the Gamma Function.pdf
Convexity in the Theory of the Gamma Function.pdfConvexity in the Theory of the Gamma Function.pdf
Convexity in the Theory of the Gamma Function.pdf
 
A Fast Algorithm for Solving Scalar Wave Scattering Problem by Billions of Pa...
A Fast Algorithm for Solving Scalar Wave Scattering Problem by Billions of Pa...A Fast Algorithm for Solving Scalar Wave Scattering Problem by Billions of Pa...
A Fast Algorithm for Solving Scalar Wave Scattering Problem by Billions of Pa...
 
B043007014
B043007014B043007014
B043007014
 
B043007014
B043007014B043007014
B043007014
 
B043007014
B043007014B043007014
B043007014
 
Unique fixed point theorems for generalized weakly contractive condition in o...
Unique fixed point theorems for generalized weakly contractive condition in o...Unique fixed point theorems for generalized weakly contractive condition in o...
Unique fixed point theorems for generalized weakly contractive condition in o...
 
Stochastic Calculus, Summer 2014, July 22,Lecture 7Con.docx
Stochastic Calculus, Summer 2014, July 22,Lecture 7Con.docxStochastic Calculus, Summer 2014, July 22,Lecture 7Con.docx
Stochastic Calculus, Summer 2014, July 22,Lecture 7Con.docx
 
02_AJMS_186_19_RA.pdf
02_AJMS_186_19_RA.pdf02_AJMS_186_19_RA.pdf
02_AJMS_186_19_RA.pdf
 
02_AJMS_186_19_RA.pdf
02_AJMS_186_19_RA.pdf02_AJMS_186_19_RA.pdf
02_AJMS_186_19_RA.pdf
 
41-50
41-5041-50
41-50
 
fouriertransform.pdf
fouriertransform.pdffouriertransform.pdf
fouriertransform.pdf
 

Recently uploaded

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
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
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
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
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
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
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
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..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
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 

Recently uploaded (20)

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
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
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
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
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
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.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
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..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
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 

Numerical_Methods_Simpson_Rule

  • 1. Centro de Investigaci´on y de Estudios Avanzados del Instituto Polit´ecnico Nacional Unidad Guadalajara Sistemas el´ectricos de Potencia M´etodos n´umericos y computaci´on: Investigaci´on November 25, 2019 Nombre: Alexis Hern´andez San Germ´an Derive the equation (1) x2 x0 f(x)dx ≈ h 3 (f0 + 4f1 + f2) (1) Start with the Lagrange polynomial PM (x) based on x0, x1, . . . , xM that can be used to approximate f(x): f(x) ≈ PM (x) = M k=0 fk LM,k(x) (2) where fk = f(xk) for k = 0, 1, . . . , M. An approximation for the integral is obtained by replacing the integrand f(x) with the polynomial PM (x). This is the general method for obtaining a Newton-Cotes integration formula: xM x0 f(x)dx ≈ xM x0 PM (x)dx = xM x0 M k=0 fk LM,k(x) dx = M k=0 xM x0 fkLM,k(x)dx = M k=0 xM x0 LM,k(x)dx fk = M k=0 wkfk (3) The details for the general computations of the coefficients of wk in (3) are tedious. We shall give a sample proof of Simpson’s rule, which is the case M = 2. This case involves the approximating polynomial P2(x) = f0 (x − x1)(x − x2) (x0 − x1)(x0 − x2) + f1 (x − x0)(x − x2) (x1 − x0)(x1 − x2) + f2 (x − x0)(x − x1) (x2 − x0)(x2 − x1) (4) Since f0, f1, and f2 are constants with respect to integration, the relations in (3) lead to x2 x0 f(x)dx ≈ f0 x2 x0 (x − x1)(x − x2) (x0 − x1)(x0 − x2) dx + f1 x2 x0 (x − x0)(x − x2) (x1 − x0)(x1 − x2) dx + f2 x2 x0 (x − x0)(x − x1) (x2 − x0)(x2 − x1) dx (5) We introduce the change of variable x = x0+ht with dx = h dt to assist with the evaluation of the integrals in (5). The new limits of integration are from t = 0 to t = 2. The equal spacing 1
  • 2. nodes xk = x0 + kh leads to xk − xj = (k − j)h and x − xk = h(t − k), which are used to simplify (5) and get x2 x0 f(x)dx ≈ f0 2 0 h(t − 1)h(t − 2) (−h)(−2h) h dt + f1 2 0 h(t − 0)h(t − 2) (h)(−h) h dt + f2 2 0 h(t − 0)h(t − 1) (2h)(h) h dt = f0 h 2 2 0 (t2 − 3t + 2) dt − f1h 2 0 (t2 − 2t) dt + f2 h 2 2 0 (t2 − t) dt = f0 h 2 t3 3 − 3t2 2 + 2t t=2 t=0 − f1h t3 3 − t2 t=2 t=0 + f2 h 2 t3 3 − t2 2 t=2 t=0 = f0 h 2 2 3 − f1h −4 3 + f2 h 2 2 3 = h 3 (f0 + 4f1 + f2) (6) References [1] John H. Matthews, Kurtis K. Fink, Numerical Methods using MATLAB 4th Edition, Pearson Education, 2010 2