SlideShare una empresa de Scribd logo
1 de 18
Descargar para leer sin conexión
Numerical Methods - Numerical
Integration
N. B. Vyas
Department of Mathematics,
Atmiya Institute of Tech. and Science, Rajkot (Guj.)
niravbvyas@gmail.com
N. B. Vyas Numerical Methods - Numerical Integration
Numerical Integration
Let I =
b
a
y dx where y = f(x) takes the values y0, y1, . . . , yn for
x0, x1, . . . , xn
N. B. Vyas Numerical Methods - Numerical Integration
Numerical Integration
Let I =
b
a
y dx where y = f(x) takes the values y0, y1, . . . , yn for
x0, x1, . . . , xn
Let us divide the interval (a, b) into n sub-intervals of width h so
that x0 = a, x1 = a + h = x0 + h, x2 = x0 + 2h, . . .,
xn = x0 + nh = b then
N. B. Vyas Numerical Methods - Numerical Integration
Numerical Integration
Let I =
b
a
y dx where y = f(x) takes the values y0, y1, . . . , yn for
x0, x1, . . . , xn
Let us divide the interval (a, b) into n sub-intervals of width h so
that x0 = a, x1 = a + h = x0 + h, x2 = x0 + 2h, . . .,
xn = x0 + nh = b then
I =
b
a
y dx =
x0+nh
x0
f(x) dx
N. B. Vyas Numerical Methods - Numerical Integration
Numerical Integration
Let I =
b
a
y dx where y = f(x) takes the values y0, y1, . . . , yn for
x0, x1, . . . , xn
Let us divide the interval (a, b) into n sub-intervals of width h so
that x0 = a, x1 = a + h = x0 + h, x2 = x0 + 2h, . . .,
xn = x0 + nh = b then
I =
b
a
y dx =
x0+nh
x0
f(x) dx
Trapezoidal rule:
b=x0+nh
a=x0
f(x)dx =
h
2
[(y0 + yn) + 2 (y1 + y2 + .... + yn)]; h =
b − a
n
If the number of strips is increased; that is, h is decreased, then
the accuracy of the approximation is increased.
N. B. Vyas Numerical Methods - Numerical Integration
Numerical Integration
Simpson’s
1
3
rd rule:
N. B. Vyas Numerical Methods - Numerical Integration
Numerical Integration
Simpson’s
1
3
rd rule:
x0+nh
x0
f(x)dx = h
3 [(y0 + yn) + 4(y1 + y3 + ....)
+2(y3 + y4 + ....)]; h = b−a
n
N. B. Vyas Numerical Methods - Numerical Integration
Numerical Integration
Simpson’s
1
3
rd rule:
x0+nh
x0
f(x)dx = h
3 [(y0 + yn) + 4(y1 + y3 + ....)
+2(y3 + y4 + ....)]; h = b−a
n
while applying this rule, the given interval must be divided into
even number of equal sub-intervals. i.e. n must be even.
N. B. Vyas Numerical Methods - Numerical Integration
Numerical Integration
Simpson’s
1
3
rd rule:
x0+nh
x0
f(x)dx = h
3 [(y0 + yn) + 4(y1 + y3 + ....)
+2(y3 + y4 + ....)]; h = b−a
n
while applying this rule, the given interval must be divided into
even number of equal sub-intervals. i.e. n must be even.
Simpson’s
3
8
th rule:
N. B. Vyas Numerical Methods - Numerical Integration
Numerical Integration
Simpson’s
1
3
rd rule:
x0+nh
x0
f(x)dx = h
3 [(y0 + yn) + 4(y1 + y3 + ....)
+2(y3 + y4 + ....)]; h = b−a
n
while applying this rule, the given interval must be divided into
even number of equal sub-intervals. i.e. n must be even.
Simpson’s
3
8
th rule:
x0+nh
x0
f(x)dx = 3h
8 [(y0 + yn) + 3(y1 + y2 + y4 + y5 + ....)
+2(y3 + y6 + ....)]; h = b−a
n
N. B. Vyas Numerical Methods - Numerical Integration
Numerical Integration
Simpson’s
1
3
rd rule:
x0+nh
x0
f(x)dx = h
3 [(y0 + yn) + 4(y1 + y3 + ....)
+2(y3 + y4 + ....)]; h = b−a
n
while applying this rule, the given interval must be divided into
even number of equal sub-intervals. i.e. n must be even.
Simpson’s
3
8
th rule:
x0+nh
x0
f(x)dx = 3h
8 [(y0 + yn) + 3(y1 + y2 + y4 + y5 + ....)
+2(y3 + y6 + ....)]; h = b−a
n
while applying this rule, the number of sub-intervals should be
taken as a multiple of 3 i.e. n must be multiple of 3
N. B. Vyas Numerical Methods - Numerical Integration
Numerical Integration
Gaussian Integration Formula:
1
−1
f(t)dt =
n
i=1
wif(ti)
It should be noted here that, t = ±1 is obtained by setting
x =
1
2
[(b + a) + t (b − a)]
N. B. Vyas Numerical Methods - Numerical Integration
Numerical Integration
Gaussian Integration Formula: The following table gives the
values for n = 2, 3, 4, 5
N. B. Vyas Numerical Methods - Numerical Integration
Example
Ex. Evaluate
1
0
e−x2
dx by using Gaussion integration formula for
n = 3.
Sol. Here, we have to first convert the given integral from 0 to 1 into
an integral from −1 to 1. x = 1
2 [(b + a) + t (b − a)], a = 0 and
b = 1
∴ x =
t + 1
2
⇒ dx =
dt
2
∴
1
0
exp(−x2)dx =
1
2
1
−1
exp −
1
4
(t + 1)2 dt
N. B. Vyas Numerical Methods - Numerical Integration
Error
Error in Quadrature Formula:
If yp is a polynomial representing the function y = f(x) in the
interval [x0, xn] the error in the quadrature formula is given by
E =
xn
x0
f(x) =
xn
x0
ypdx
N. B. Vyas Numerical Methods - Numerical Integration
Error
Error in Trapezoidal rule:
|error| ≤ (b − a)
h2
12
|f (M)|
where f (M) = max |f 0(x)|, |f 1(x)|, ..., |f n−1(x)|
∴ error is of order h2
total error =
dh3
12
y 0 + y 1 + ... + y n−1
N. B. Vyas Numerical Methods - Numerical Integration
Error
Error in Simpson’s
1
3
rd rule:
|error| ≤ (b − a)
h4
180
|f4
(M)|
where f4(M) = max |y4
0|, |y4
2|, ..., |y4
n−2|
∴ error is of order h4
total error =
h5
90
y4
0 + y4
2 + ... + y4
n−2
N. B. Vyas Numerical Methods - Numerical Integration
Error
Error in Simpson’s
3
8
th rule:
|error| ≤ (b − a)
h4
80
|f4
(M)|
where f4(M) = max |y4
0|, |y4
3|, ..., |y4
n−3|
∴ error is of order h4
total error =
3h5
80
y4
0 + y4
3 + ... + y4
n−3
N. B. Vyas Numerical Methods - Numerical Integration

Más contenido relacionado

La actualidad más candente

INTEGRATION BY PARTS PPT
INTEGRATION BY PARTS PPT INTEGRATION BY PARTS PPT
INTEGRATION BY PARTS PPT 03062679929
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson methodJayesh Ranjan
 
Lesson 8: Curves, Arc Length, Acceleration
Lesson 8: Curves, Arc Length, AccelerationLesson 8: Curves, Arc Length, Acceleration
Lesson 8: Curves, Arc Length, AccelerationMatthew Leingang
 
Linear transformations and matrices
Linear transformations and matricesLinear transformations and matrices
Linear transformations and matricesEasyStudy3
 
Linear differential equation with constant coefficient
Linear differential equation with constant coefficientLinear differential equation with constant coefficient
Linear differential equation with constant coefficientSanjay Singh
 
Differential Calculus- differentiation
Differential Calculus- differentiationDifferential Calculus- differentiation
Differential Calculus- differentiationSanthanam Krishnan
 
Trace of Matrix - Linear Algebra
Trace of Matrix - Linear AlgebraTrace of Matrix - Linear Algebra
Trace of Matrix - Linear AlgebraSiddhantDixit6
 
1st order differential equations
1st order differential equations1st order differential equations
1st order differential equationsNisarg Amin
 
Eigenvalue eigenvector slides
Eigenvalue eigenvector slidesEigenvalue eigenvector slides
Eigenvalue eigenvector slidesAmanSaeed11
 
First order linear differential equation
First order linear differential equationFirst order linear differential equation
First order linear differential equationNofal Umair
 
Solving systems of Linear Equations
Solving systems of Linear EquationsSolving systems of Linear Equations
Solving systems of Linear Equationsswartzje
 
Multiple Choice Questions - Numerical Methods
Multiple Choice Questions - Numerical MethodsMultiple Choice Questions - Numerical Methods
Multiple Choice Questions - Numerical MethodsMeenakshisundaram N
 
Methods of solving ODE
Methods of solving ODEMethods of solving ODE
Methods of solving ODEkishor pokar
 
CMSC 56 | Lecture 15: Closures of Relations
CMSC 56 | Lecture 15: Closures of RelationsCMSC 56 | Lecture 15: Closures of Relations
CMSC 56 | Lecture 15: Closures of Relationsallyn joy calcaben
 
Multiple integrals
Multiple integralsMultiple integrals
Multiple integralsSoma Shabbir
 

La actualidad más candente (20)

INTEGRATION BY PARTS PPT
INTEGRATION BY PARTS PPT INTEGRATION BY PARTS PPT
INTEGRATION BY PARTS PPT
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
 
Maxima and minima
Maxima and minimaMaxima and minima
Maxima and minima
 
Lesson 8: Curves, Arc Length, Acceleration
Lesson 8: Curves, Arc Length, AccelerationLesson 8: Curves, Arc Length, Acceleration
Lesson 8: Curves, Arc Length, Acceleration
 
Linear transformations and matrices
Linear transformations and matricesLinear transformations and matrices
Linear transformations and matrices
 
Linear differential equation with constant coefficient
Linear differential equation with constant coefficientLinear differential equation with constant coefficient
Linear differential equation with constant coefficient
 
Differential Calculus- differentiation
Differential Calculus- differentiationDifferential Calculus- differentiation
Differential Calculus- differentiation
 
Trace of Matrix - Linear Algebra
Trace of Matrix - Linear AlgebraTrace of Matrix - Linear Algebra
Trace of Matrix - Linear Algebra
 
1st order differential equations
1st order differential equations1st order differential equations
1st order differential equations
 
Interpolation
InterpolationInterpolation
Interpolation
 
Bisection method
Bisection methodBisection method
Bisection method
 
Eigenvalue eigenvector slides
Eigenvalue eigenvector slidesEigenvalue eigenvector slides
Eigenvalue eigenvector slides
 
First order linear differential equation
First order linear differential equationFirst order linear differential equation
First order linear differential equation
 
Solving systems of Linear Equations
Solving systems of Linear EquationsSolving systems of Linear Equations
Solving systems of Linear Equations
 
Multiple Choice Questions - Numerical Methods
Multiple Choice Questions - Numerical MethodsMultiple Choice Questions - Numerical Methods
Multiple Choice Questions - Numerical Methods
 
Laplace transform
Laplace transformLaplace transform
Laplace transform
 
Methods of solving ODE
Methods of solving ODEMethods of solving ODE
Methods of solving ODE
 
CMSC 56 | Lecture 15: Closures of Relations
CMSC 56 | Lecture 15: Closures of RelationsCMSC 56 | Lecture 15: Closures of Relations
CMSC 56 | Lecture 15: Closures of Relations
 
Multiple integrals
Multiple integralsMultiple integrals
Multiple integrals
 
Numerical analysis ppt
Numerical analysis pptNumerical analysis ppt
Numerical analysis ppt
 

Destacado

Simpson’s one third and weddle's rule
Simpson’s one third and weddle's ruleSimpson’s one third and weddle's rule
Simpson’s one third and weddle's rulezahid6
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methodsTarun Gehlot
 
photosystem Iand II,ETC
photosystem Iand II,ETCphotosystem Iand II,ETC
photosystem Iand II,ETCEffa Kiran
 
numerical differentiation&integration
numerical differentiation&integrationnumerical differentiation&integration
numerical differentiation&integration8laddu8
 
Numerical integration
Numerical integrationNumerical integration
Numerical integrationSunny Chauhan
 
Assignment on Numerical Method C Code
Assignment on Numerical Method C CodeAssignment on Numerical Method C Code
Assignment on Numerical Method C CodeSyed Ahmed Zaki
 
Numerical integration
Numerical integrationNumerical integration
Numerical integrationMohammed_AQ
 
Newton’s Forward & backward interpolation
Newton’s Forward &  backward interpolation Newton’s Forward &  backward interpolation
Newton’s Forward & backward interpolation Meet Patel
 
Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)Asad Ali
 
Newton cotes integration method
Newton cotes integration  methodNewton cotes integration  method
Newton cotes integration methodshashikant pabari
 
Numerical Methods - Oridnary Differential Equations - 1
Numerical Methods - Oridnary Differential Equations - 1Numerical Methods - Oridnary Differential Equations - 1
Numerical Methods - Oridnary Differential Equations - 1Dr. Nirav Vyas
 
Introduction to Numerical Analysis
Introduction to Numerical AnalysisIntroduction to Numerical Analysis
Introduction to Numerical AnalysisMohammad Tawfik
 
Application of Numerical method in Real Life
Application of Numerical method in Real LifeApplication of Numerical method in Real Life
Application of Numerical method in Real LifeTaqwa It Center
 
Calculus 08 techniques_of_integration
Calculus 08 techniques_of_integrationCalculus 08 techniques_of_integration
Calculus 08 techniques_of_integrationtutulk
 
Newton Raphson Method Using C Programming
Newton Raphson Method Using C Programming Newton Raphson Method Using C Programming
Newton Raphson Method Using C Programming Md Abu Bakar Siddique
 

Destacado (20)

Simpson’s one third and weddle's rule
Simpson’s one third and weddle's ruleSimpson’s one third and weddle's rule
Simpson’s one third and weddle's rule
 
Numerical method
Numerical methodNumerical method
Numerical method
 
weddle's rule
weddle's ruleweddle's rule
weddle's rule
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
 
photosystem Iand II,ETC
photosystem Iand II,ETCphotosystem Iand II,ETC
photosystem Iand II,ETC
 
numerical differentiation&integration
numerical differentiation&integrationnumerical differentiation&integration
numerical differentiation&integration
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
Assignment on Numerical Method C Code
Assignment on Numerical Method C CodeAssignment on Numerical Method C Code
Assignment on Numerical Method C Code
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
APPLICATION OF NUMERICAL METHODS IN SMALL SIZE
APPLICATION OF NUMERICAL METHODS IN SMALL SIZEAPPLICATION OF NUMERICAL METHODS IN SMALL SIZE
APPLICATION OF NUMERICAL METHODS IN SMALL SIZE
 
Newton’s Forward & backward interpolation
Newton’s Forward &  backward interpolation Newton’s Forward &  backward interpolation
Newton’s Forward & backward interpolation
 
Interpolation Methods
Interpolation MethodsInterpolation Methods
Interpolation Methods
 
Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)
 
Newton cotes integration method
Newton cotes integration  methodNewton cotes integration  method
Newton cotes integration method
 
Numerical Methods - Oridnary Differential Equations - 1
Numerical Methods - Oridnary Differential Equations - 1Numerical Methods - Oridnary Differential Equations - 1
Numerical Methods - Oridnary Differential Equations - 1
 
Introduction to Numerical Analysis
Introduction to Numerical AnalysisIntroduction to Numerical Analysis
Introduction to Numerical Analysis
 
Application of Numerical method in Real Life
Application of Numerical method in Real LifeApplication of Numerical method in Real Life
Application of Numerical method in Real Life
 
Calculus 08 techniques_of_integration
Calculus 08 techniques_of_integrationCalculus 08 techniques_of_integration
Calculus 08 techniques_of_integration
 
Newton Raphson Method Using C Programming
Newton Raphson Method Using C Programming Newton Raphson Method Using C Programming
Newton Raphson Method Using C Programming
 
Syllabus 4-year-bs-math
Syllabus 4-year-bs-mathSyllabus 4-year-bs-math
Syllabus 4-year-bs-math
 

Similar a Numerical Methods 3

Open GL T0074 56 sm1
Open GL T0074 56 sm1Open GL T0074 56 sm1
Open GL T0074 56 sm1Roziq Bahtiar
 
C2 st lecture 2 handout
C2 st lecture 2 handoutC2 st lecture 2 handout
C2 st lecture 2 handoutfatima d
 
Assignments for class XII
Assignments for class XIIAssignments for class XII
Assignments for class XIIindu thakur
 
Presentaton on Polynomials....Class 10
Presentaton on Polynomials....Class 10 Presentaton on Polynomials....Class 10
Presentaton on Polynomials....Class 10 Bindu Cm
 
Interpolation techniques - Background and implementation
Interpolation techniques - Background and implementationInterpolation techniques - Background and implementation
Interpolation techniques - Background and implementationQuasar Chunawala
 
Roots equations
Roots equationsRoots equations
Roots equationsoscar
 
Roots equations
Roots equationsRoots equations
Roots equationsoscar
 
Mcq for manavsthali( 7 worksheets)
Mcq for manavsthali( 7 worksheets)Mcq for manavsthali( 7 worksheets)
Mcq for manavsthali( 7 worksheets)KarunaGupta1982
 
8.further calculus Further Mathematics Zimbabwe Zimsec Cambridge
8.further calculus   Further Mathematics Zimbabwe Zimsec Cambridge8.further calculus   Further Mathematics Zimbabwe Zimsec Cambridge
8.further calculus Further Mathematics Zimbabwe Zimsec Cambridgealproelearning
 
Graphing Quadratic Equations
Graphing Quadratic EquationsGraphing Quadratic Equations
Graphing Quadratic Equationssarahbrooke25
 
Numerical integration
Numerical integrationNumerical integration
Numerical integrationTarun Gehlot
 

Similar a Numerical Methods 3 (20)

Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Tema Numeros Reales
Tema Numeros RealesTema Numeros Reales
Tema Numeros Reales
 
Open GL T0074 56 sm1
Open GL T0074 56 sm1Open GL T0074 56 sm1
Open GL T0074 56 sm1
 
Interpolation.pptx
Interpolation.pptxInterpolation.pptx
Interpolation.pptx
 
C2 st lecture 2 handout
C2 st lecture 2 handoutC2 st lecture 2 handout
C2 st lecture 2 handout
 
Graphs Of Equations
Graphs Of EquationsGraphs Of Equations
Graphs Of Equations
 
Assignments for class XII
Assignments for class XIIAssignments for class XII
Assignments for class XII
 
Presentaton on Polynomials....Class 10
Presentaton on Polynomials....Class 10 Presentaton on Polynomials....Class 10
Presentaton on Polynomials....Class 10
 
Numerical Methods and Analysis
Numerical Methods and AnalysisNumerical Methods and Analysis
Numerical Methods and Analysis
 
Interpolation techniques - Background and implementation
Interpolation techniques - Background and implementationInterpolation techniques - Background and implementation
Interpolation techniques - Background and implementation
 
Mcq exemplar class 12
Mcq exemplar class 12Mcq exemplar class 12
Mcq exemplar class 12
 
Mcq exemplar class 12
Mcq exemplar class 12Mcq exemplar class 12
Mcq exemplar class 12
 
Roots equations
Roots equationsRoots equations
Roots equations
 
Roots equations
Roots equationsRoots equations
Roots equations
 
Mcq for manavsthali( 7 worksheets)
Mcq for manavsthali( 7 worksheets)Mcq for manavsthali( 7 worksheets)
Mcq for manavsthali( 7 worksheets)
 
8.further calculus Further Mathematics Zimbabwe Zimsec Cambridge
8.further calculus   Further Mathematics Zimbabwe Zimsec Cambridge8.further calculus   Further Mathematics Zimbabwe Zimsec Cambridge
8.further calculus Further Mathematics Zimbabwe Zimsec Cambridge
 
Algebra
AlgebraAlgebra
Algebra
 
Graphing Quadratic Equations
Graphing Quadratic EquationsGraphing Quadratic Equations
Graphing Quadratic Equations
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
QMC: Operator Splitting Workshop, Stochastic Block-Coordinate Fixed Point Alg...
QMC: Operator Splitting Workshop, Stochastic Block-Coordinate Fixed Point Alg...QMC: Operator Splitting Workshop, Stochastic Block-Coordinate Fixed Point Alg...
QMC: Operator Splitting Workshop, Stochastic Block-Coordinate Fixed Point Alg...
 

Más de Dr. Nirav Vyas

Arithmetic Mean, Geometric Mean, Harmonic Mean
Arithmetic Mean, Geometric Mean, Harmonic MeanArithmetic Mean, Geometric Mean, Harmonic Mean
Arithmetic Mean, Geometric Mean, Harmonic MeanDr. Nirav Vyas
 
Geometric progressions
Geometric progressionsGeometric progressions
Geometric progressionsDr. Nirav Vyas
 
Arithmetic progressions
Arithmetic progressionsArithmetic progressions
Arithmetic progressionsDr. Nirav Vyas
 
Curve fitting - Lecture Notes
Curve fitting - Lecture NotesCurve fitting - Lecture Notes
Curve fitting - Lecture NotesDr. Nirav Vyas
 
Trend analysis - Lecture Notes
Trend analysis - Lecture NotesTrend analysis - Lecture Notes
Trend analysis - Lecture NotesDr. Nirav Vyas
 
Basic Concepts of Statistics - Lecture Notes
Basic Concepts of Statistics - Lecture NotesBasic Concepts of Statistics - Lecture Notes
Basic Concepts of Statistics - Lecture NotesDr. Nirav Vyas
 
Numerical Methods - Power Method for Eigen values
Numerical Methods - Power Method for Eigen valuesNumerical Methods - Power Method for Eigen values
Numerical Methods - Power Method for Eigen valuesDr. Nirav Vyas
 
Numerical Methods - Oridnary Differential Equations - 3
Numerical Methods - Oridnary Differential Equations - 3Numerical Methods - Oridnary Differential Equations - 3
Numerical Methods - Oridnary Differential Equations - 3Dr. Nirav Vyas
 
Numerical Methods - Oridnary Differential Equations - 2
Numerical Methods - Oridnary Differential Equations - 2Numerical Methods - Oridnary Differential Equations - 2
Numerical Methods - Oridnary Differential Equations - 2Dr. Nirav Vyas
 
Partial Differential Equation - Notes
Partial Differential Equation - NotesPartial Differential Equation - Notes
Partial Differential Equation - NotesDr. Nirav Vyas
 
Interpolation with Finite differences
Interpolation with Finite differencesInterpolation with Finite differences
Interpolation with Finite differencesDr. Nirav Vyas
 

Más de Dr. Nirav Vyas (20)

Reduction forumla
Reduction forumlaReduction forumla
Reduction forumla
 
Arithmetic Mean, Geometric Mean, Harmonic Mean
Arithmetic Mean, Geometric Mean, Harmonic MeanArithmetic Mean, Geometric Mean, Harmonic Mean
Arithmetic Mean, Geometric Mean, Harmonic Mean
 
Geometric progressions
Geometric progressionsGeometric progressions
Geometric progressions
 
Arithmetic progressions
Arithmetic progressionsArithmetic progressions
Arithmetic progressions
 
Combinations
CombinationsCombinations
Combinations
 
Permutation
PermutationPermutation
Permutation
 
Curve fitting - Lecture Notes
Curve fitting - Lecture NotesCurve fitting - Lecture Notes
Curve fitting - Lecture Notes
 
Trend analysis - Lecture Notes
Trend analysis - Lecture NotesTrend analysis - Lecture Notes
Trend analysis - Lecture Notes
 
Basic Concepts of Statistics - Lecture Notes
Basic Concepts of Statistics - Lecture NotesBasic Concepts of Statistics - Lecture Notes
Basic Concepts of Statistics - Lecture Notes
 
Numerical Methods - Power Method for Eigen values
Numerical Methods - Power Method for Eigen valuesNumerical Methods - Power Method for Eigen values
Numerical Methods - Power Method for Eigen values
 
Numerical Methods - Oridnary Differential Equations - 3
Numerical Methods - Oridnary Differential Equations - 3Numerical Methods - Oridnary Differential Equations - 3
Numerical Methods - Oridnary Differential Equations - 3
 
Numerical Methods - Oridnary Differential Equations - 2
Numerical Methods - Oridnary Differential Equations - 2Numerical Methods - Oridnary Differential Equations - 2
Numerical Methods - Oridnary Differential Equations - 2
 
Partial Differential Equation - Notes
Partial Differential Equation - NotesPartial Differential Equation - Notes
Partial Differential Equation - Notes
 
Special functions
Special functionsSpecial functions
Special functions
 
Legendre Function
Legendre FunctionLegendre Function
Legendre Function
 
Laplace Transforms
Laplace TransformsLaplace Transforms
Laplace Transforms
 
Fourier series 3
Fourier series 3Fourier series 3
Fourier series 3
 
Fourier series 2
Fourier series 2Fourier series 2
Fourier series 2
 
Fourier series 1
Fourier series 1Fourier series 1
Fourier series 1
 
Interpolation with Finite differences
Interpolation with Finite differencesInterpolation with Finite differences
Interpolation with Finite differences
 

Último

Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 

Último (20)

Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 

Numerical Methods 3

  • 1. Numerical Methods - Numerical Integration N. B. Vyas Department of Mathematics, Atmiya Institute of Tech. and Science, Rajkot (Guj.) niravbvyas@gmail.com N. B. Vyas Numerical Methods - Numerical Integration
  • 2. Numerical Integration Let I = b a y dx where y = f(x) takes the values y0, y1, . . . , yn for x0, x1, . . . , xn N. B. Vyas Numerical Methods - Numerical Integration
  • 3. Numerical Integration Let I = b a y dx where y = f(x) takes the values y0, y1, . . . , yn for x0, x1, . . . , xn Let us divide the interval (a, b) into n sub-intervals of width h so that x0 = a, x1 = a + h = x0 + h, x2 = x0 + 2h, . . ., xn = x0 + nh = b then N. B. Vyas Numerical Methods - Numerical Integration
  • 4. Numerical Integration Let I = b a y dx where y = f(x) takes the values y0, y1, . . . , yn for x0, x1, . . . , xn Let us divide the interval (a, b) into n sub-intervals of width h so that x0 = a, x1 = a + h = x0 + h, x2 = x0 + 2h, . . ., xn = x0 + nh = b then I = b a y dx = x0+nh x0 f(x) dx N. B. Vyas Numerical Methods - Numerical Integration
  • 5. Numerical Integration Let I = b a y dx where y = f(x) takes the values y0, y1, . . . , yn for x0, x1, . . . , xn Let us divide the interval (a, b) into n sub-intervals of width h so that x0 = a, x1 = a + h = x0 + h, x2 = x0 + 2h, . . ., xn = x0 + nh = b then I = b a y dx = x0+nh x0 f(x) dx Trapezoidal rule: b=x0+nh a=x0 f(x)dx = h 2 [(y0 + yn) + 2 (y1 + y2 + .... + yn)]; h = b − a n If the number of strips is increased; that is, h is decreased, then the accuracy of the approximation is increased. N. B. Vyas Numerical Methods - Numerical Integration
  • 6. Numerical Integration Simpson’s 1 3 rd rule: N. B. Vyas Numerical Methods - Numerical Integration
  • 7. Numerical Integration Simpson’s 1 3 rd rule: x0+nh x0 f(x)dx = h 3 [(y0 + yn) + 4(y1 + y3 + ....) +2(y3 + y4 + ....)]; h = b−a n N. B. Vyas Numerical Methods - Numerical Integration
  • 8. Numerical Integration Simpson’s 1 3 rd rule: x0+nh x0 f(x)dx = h 3 [(y0 + yn) + 4(y1 + y3 + ....) +2(y3 + y4 + ....)]; h = b−a n while applying this rule, the given interval must be divided into even number of equal sub-intervals. i.e. n must be even. N. B. Vyas Numerical Methods - Numerical Integration
  • 9. Numerical Integration Simpson’s 1 3 rd rule: x0+nh x0 f(x)dx = h 3 [(y0 + yn) + 4(y1 + y3 + ....) +2(y3 + y4 + ....)]; h = b−a n while applying this rule, the given interval must be divided into even number of equal sub-intervals. i.e. n must be even. Simpson’s 3 8 th rule: N. B. Vyas Numerical Methods - Numerical Integration
  • 10. Numerical Integration Simpson’s 1 3 rd rule: x0+nh x0 f(x)dx = h 3 [(y0 + yn) + 4(y1 + y3 + ....) +2(y3 + y4 + ....)]; h = b−a n while applying this rule, the given interval must be divided into even number of equal sub-intervals. i.e. n must be even. Simpson’s 3 8 th rule: x0+nh x0 f(x)dx = 3h 8 [(y0 + yn) + 3(y1 + y2 + y4 + y5 + ....) +2(y3 + y6 + ....)]; h = b−a n N. B. Vyas Numerical Methods - Numerical Integration
  • 11. Numerical Integration Simpson’s 1 3 rd rule: x0+nh x0 f(x)dx = h 3 [(y0 + yn) + 4(y1 + y3 + ....) +2(y3 + y4 + ....)]; h = b−a n while applying this rule, the given interval must be divided into even number of equal sub-intervals. i.e. n must be even. Simpson’s 3 8 th rule: x0+nh x0 f(x)dx = 3h 8 [(y0 + yn) + 3(y1 + y2 + y4 + y5 + ....) +2(y3 + y6 + ....)]; h = b−a n while applying this rule, the number of sub-intervals should be taken as a multiple of 3 i.e. n must be multiple of 3 N. B. Vyas Numerical Methods - Numerical Integration
  • 12. Numerical Integration Gaussian Integration Formula: 1 −1 f(t)dt = n i=1 wif(ti) It should be noted here that, t = ±1 is obtained by setting x = 1 2 [(b + a) + t (b − a)] N. B. Vyas Numerical Methods - Numerical Integration
  • 13. Numerical Integration Gaussian Integration Formula: The following table gives the values for n = 2, 3, 4, 5 N. B. Vyas Numerical Methods - Numerical Integration
  • 14. Example Ex. Evaluate 1 0 e−x2 dx by using Gaussion integration formula for n = 3. Sol. Here, we have to first convert the given integral from 0 to 1 into an integral from −1 to 1. x = 1 2 [(b + a) + t (b − a)], a = 0 and b = 1 ∴ x = t + 1 2 ⇒ dx = dt 2 ∴ 1 0 exp(−x2)dx = 1 2 1 −1 exp − 1 4 (t + 1)2 dt N. B. Vyas Numerical Methods - Numerical Integration
  • 15. Error Error in Quadrature Formula: If yp is a polynomial representing the function y = f(x) in the interval [x0, xn] the error in the quadrature formula is given by E = xn x0 f(x) = xn x0 ypdx N. B. Vyas Numerical Methods - Numerical Integration
  • 16. Error Error in Trapezoidal rule: |error| ≤ (b − a) h2 12 |f (M)| where f (M) = max |f 0(x)|, |f 1(x)|, ..., |f n−1(x)| ∴ error is of order h2 total error = dh3 12 y 0 + y 1 + ... + y n−1 N. B. Vyas Numerical Methods - Numerical Integration
  • 17. Error Error in Simpson’s 1 3 rd rule: |error| ≤ (b − a) h4 180 |f4 (M)| where f4(M) = max |y4 0|, |y4 2|, ..., |y4 n−2| ∴ error is of order h4 total error = h5 90 y4 0 + y4 2 + ... + y4 n−2 N. B. Vyas Numerical Methods - Numerical Integration
  • 18. Error Error in Simpson’s 3 8 th rule: |error| ≤ (b − a) h4 80 |f4 (M)| where f4(M) = max |y4 0|, |y4 3|, ..., |y4 n−3| ∴ error is of order h4 total error = 3h5 80 y4 0 + y4 3 + ... + y4 n−3 N. B. Vyas Numerical Methods - Numerical Integration