SlideShare une entreprise Scribd logo
1  sur  18
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

3.2 Derivative as a Function
3.2 Derivative as a Function3.2 Derivative as a Function
3.2 Derivative as a Functiongregcross22
 
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
 
170120107066 power series.ppt
170120107066 power series.ppt170120107066 power series.ppt
170120107066 power series.pptharsh kothari
 
Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2Asad Ali
 
First order linear differential equation
First order linear differential equationFirst order linear differential equation
First order linear differential equationNofal Umair
 
System of linear equations
System of linear equationsSystem of linear equations
System of linear equationsDiler4
 
Lesson14: Derivatives of Trigonometric Functions
Lesson14: Derivatives of Trigonometric FunctionsLesson14: Derivatives of Trigonometric Functions
Lesson14: Derivatives of Trigonometric FunctionsMatthew Leingang
 
Techniques of Integration ppt.ppt
Techniques of Integration ppt.pptTechniques of Integration ppt.ppt
Techniques of Integration ppt.pptJaysonFabela1
 
Runge-Kutta methods with examples
Runge-Kutta methods with examplesRunge-Kutta methods with examples
Runge-Kutta methods with examplesSajjad Hossain
 
Lesson 10: Derivatives of Trigonometric Functions
Lesson 10: Derivatives of Trigonometric FunctionsLesson 10: Derivatives of Trigonometric Functions
Lesson 10: Derivatives of Trigonometric FunctionsMatthew Leingang
 
Numerical solution of ordinary differential equation
Numerical solution of ordinary differential equationNumerical solution of ordinary differential equation
Numerical solution of ordinary differential equationDixi Patel
 
Quadratic Formula Presentation
Quadratic Formula PresentationQuadratic Formula Presentation
Quadratic Formula Presentationanjuli1580
 
Derivative power point
Derivative power pointDerivative power point
Derivative power pointbtmathematics
 
Partial Differential Equations, 3 simple examples
Partial Differential Equations, 3 simple examplesPartial Differential Equations, 3 simple examples
Partial Differential Equations, 3 simple examplesEnrique Valderrama
 
Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)
Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)
Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)Minhas Kamal
 
23 general double integrals
23 general double integrals23 general double integrals
23 general double integralsmath267
 
Function transformations
Function transformationsFunction transformations
Function transformationsTerry Gastauer
 
Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Viraj Patel
 

Tendances (20)

3.2 Derivative as a Function
3.2 Derivative as a Function3.2 Derivative as a Function
3.2 Derivative as a Function
 
Numerical Methods - Oridnary Differential Equations - 2
Numerical Methods - Oridnary Differential Equations - 2Numerical Methods - Oridnary Differential Equations - 2
Numerical Methods - Oridnary Differential Equations - 2
 
170120107066 power series.ppt
170120107066 power series.ppt170120107066 power series.ppt
170120107066 power series.ppt
 
Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2
 
First order linear differential equation
First order linear differential equationFirst order linear differential equation
First order linear differential equation
 
System of linear equations
System of linear equationsSystem of linear equations
System of linear equations
 
Lesson14: Derivatives of Trigonometric Functions
Lesson14: Derivatives of Trigonometric FunctionsLesson14: Derivatives of Trigonometric Functions
Lesson14: Derivatives of Trigonometric Functions
 
Techniques of Integration ppt.ppt
Techniques of Integration ppt.pptTechniques of Integration ppt.ppt
Techniques of Integration ppt.ppt
 
Ordinary differential equation
Ordinary differential equationOrdinary differential equation
Ordinary differential equation
 
Runge-Kutta methods with examples
Runge-Kutta methods with examplesRunge-Kutta methods with examples
Runge-Kutta methods with examples
 
Numerical method
Numerical methodNumerical method
Numerical method
 
Lesson 10: Derivatives of Trigonometric Functions
Lesson 10: Derivatives of Trigonometric FunctionsLesson 10: Derivatives of Trigonometric Functions
Lesson 10: Derivatives of Trigonometric Functions
 
Numerical solution of ordinary differential equation
Numerical solution of ordinary differential equationNumerical solution of ordinary differential equation
Numerical solution of ordinary differential equation
 
Quadratic Formula Presentation
Quadratic Formula PresentationQuadratic Formula Presentation
Quadratic Formula Presentation
 
Derivative power point
Derivative power pointDerivative power point
Derivative power point
 
Partial Differential Equations, 3 simple examples
Partial Differential Equations, 3 simple examplesPartial Differential Equations, 3 simple examples
Partial Differential Equations, 3 simple examples
 
Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)
Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)
Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)
 
23 general double integrals
23 general double integrals23 general double integrals
23 general double integrals
 
Function transformations
Function transformationsFunction transformations
Function transformations
 
Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Second order homogeneous linear differential equations
Second order homogeneous linear differential equations
 

En vedette

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
 
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
 
2 Capitulo Metodos Numericos
2 Capitulo Metodos Numericos2 Capitulo Metodos Numericos
2 Capitulo Metodos NumericosDUBAN CASTRO
 

En vedette (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
 
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
 
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
 
2 Capitulo Metodos Numericos
2 Capitulo Metodos Numericos2 Capitulo Metodos Numericos
2 Capitulo Metodos Numericos
 
Numerical approximation
Numerical approximationNumerical approximation
Numerical approximation
 

Similaire à 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
 

Similaire à 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...
 

Plus 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
 
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
 

Plus 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
 
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
 
Numerical Methods 1
Numerical Methods 1Numerical Methods 1
Numerical Methods 1
 

Dernier

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
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
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 

Dernier (20)

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
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
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 

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