SlideShare una empresa de Scribd logo
1 de 7
Descargar para leer sin conexión
Numerical Integration
• In general, a numerical integration is the approximation
of a definite integration by a “weighted” sum of function
values at discretized points within the interval of
integration.

∫

b

a

N

f ( x )dx ≈ ∑ wi f ( xi )
i =0

where wi is the weighted factor depending on the integration
schemes used, and f ( xi ) is the function value evaluated at the
given point xi
Rectangular Rule

f(x)
height=f(x1*)

x=a
x=x1*

∫

b

a

height=f(xn*)

x=b

x

Approximate the integration,
b
∫a f ( x)dx , that is the area under
the curve by a series of
rectangles as shown.
The base of each of these
rectangles is ∆x=(b-a)/n and
its height can be expressed as
f(xi*) where xi* is the midpoint
of each rectangle

x=xn*

f ( x )dx = f ( x1*) ∆x + f ( x2 *) ∆x + .. f ( xn *) ∆x

= ∆x[ f ( x1*) + f ( x2 *) + .. f ( xn *)]
Trapezoidal Rule

f(x)

x=a
x=x1

x=b
x=xn-1

x

The rectangular rule can be made
more accurate by using
trapezoids to replace the
rectangles as shown. A linear
approximation of the function
locally sometimes work much
better than using the averaged
value like the rectangular rule
does.

∆x
∆x
∆x
∫a f ( x )dx = 2 [ f (a ) + f ( x1 )] + 2 [ f ( x1 ) + f ( x2 )] + .. + 2 [ f ( xn−1) + f (b)]
1
1
= ∆x[ f (a ) + f ( x1 ) + .. f ( xn −1 ) + f (b)]
2
2
b
Simpson’s Rule
Still, the more accurate integration formula can be achieved by
approximating the local curve by a higher order function, such as
a quadratic polynomial. This leads to the Simpson’s rule and the
formula is given as:
∆x
∫a f ( x )dx = 3 [ f (a ) + 4 f ( x1 ) + 2 f ( x2 ) + 4 f ( x3 ) + ..
..2 f ( x2 m−2 ) + 4 f ( x2 m −1 ) + f ( b)]
b

It is to be noted that the total number of subdivisions has to be an
even number in order for the Simpson’s formula to work
properly.
Examples
Integrate f ( x ) = x 3 between x = 1 and x = 2.

∫

2

1

1
1
2
x 3dx= x 4 |1 = (24 − 14 ) = 3.75
4
4

2-1
Using 4 subdivisions for the numerical integration: ∆x=
= 0.25
4
Rectangular rule:
i

xi*

f(xi*)

1

1.125 1.42

2

1.375 2.60

3

1.625 4.29

4

1.875 6.59

∫

2

1

x 3dx

= ∆x[ f (1.125) + f (1.375) + f (1.625) + f (1.875)]
= 0.25(14.9) = 3.725
Trapezoidal Rule
i

xi
1

f(xi)
1

1 1.25

1.95

2 1.5

3.38

3 1.75

∫

2

1

x 3dx

1
1
f (1) + f (1.25) + f (1.5) + f (1.75) + f (2)]
2
2
= 0.25(15.19) = 3.80
= ∆x[

5.36

2

8

Simpson’s Rule

∫

2

1

x 3dx =

∆x
[ f (1) + 4 f (1.25) + 2 f (1.5) + 4 f (1.75) + f (2)]
3

0.25
=
(45) = 3.75 ⇒ perfect estimation
3
Trapezoidal Rule
i

xi
1

f(xi)
1

1 1.25

1.95

2 1.5

3.38

3 1.75

∫

2

1

x 3dx

1
1
f (1) + f (1.25) + f (1.5) + f (1.75) + f (2)]
2
2
= 0.25(15.19) = 3.80
= ∆x[

5.36

2

8

Simpson’s Rule

∫

2

1

x 3dx =

∆x
[ f (1) + 4 f (1.25) + 2 f (1.5) + 4 f (1.75) + f (2)]
3

0.25
=
(45) = 3.75 ⇒ perfect estimation
3

Más contenido relacionado

La actualidad más candente

Cauchy riemann equations
Cauchy riemann equationsCauchy riemann equations
Cauchy riemann equationssajidpk92
 
Trapezoidal Method IN Numerical Analysis
Trapezoidal Method IN  Numerical AnalysisTrapezoidal Method IN  Numerical Analysis
Trapezoidal Method IN Numerical AnalysisMostafijur Rahman
 
Numerical integration
Numerical integrationNumerical integration
Numerical integrationMohammed_AQ
 
Application of integral calculus
Application of integral calculusApplication of integral calculus
Application of integral calculusHabibur Rahman
 
Application of numerical integration and differentiation in real life
Application of numerical integration and differentiation in real lifeApplication of numerical integration and differentiation in real life
Application of numerical integration and differentiation in real lifeDaffodil International University
 
03 truncation errors
03 truncation errors03 truncation errors
03 truncation errorsmaheej
 
Newton’s Forward & backward interpolation
Newton’s Forward &  backward interpolation Newton’s Forward &  backward interpolation
Newton’s Forward & backward interpolation Meet Patel
 
simpion's 3/8 rule
simpion's 3/8 rulesimpion's 3/8 rule
simpion's 3/8 rulesharma230399
 
Fluid mechanics ( 2019 2020)
Fluid mechanics ( 2019 2020)Fluid mechanics ( 2019 2020)
Fluid mechanics ( 2019 2020)Yuri Melliza
 
Navier stokes equation
Navier stokes equationNavier stokes equation
Navier stokes equationnaveensapare
 
Lecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etcLecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etcRiyandika Jastin
 
Numerical methods and analysis problems/Examples
Numerical methods and analysis problems/ExamplesNumerical methods and analysis problems/Examples
Numerical methods and analysis problems/Examplesshehzad hussain
 

La actualidad más candente (20)

1519 differentiation-integration-02
1519 differentiation-integration-021519 differentiation-integration-02
1519 differentiation-integration-02
 
21 simpson's rule
21 simpson's rule21 simpson's rule
21 simpson's rule
 
Cauchy riemann equations
Cauchy riemann equationsCauchy riemann equations
Cauchy riemann equations
 
Trapezoidal Method IN Numerical Analysis
Trapezoidal Method IN  Numerical AnalysisTrapezoidal Method IN  Numerical Analysis
Trapezoidal Method IN Numerical Analysis
 
Derivatives
DerivativesDerivatives
Derivatives
 
Trapezoidal rule
Trapezoidal ruleTrapezoidal rule
Trapezoidal rule
 
Chapter 17 - Multivariable Calculus
Chapter 17 - Multivariable CalculusChapter 17 - Multivariable Calculus
Chapter 17 - Multivariable Calculus
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
Application of integral calculus
Application of integral calculusApplication of integral calculus
Application of integral calculus
 
Es272 ch5b
Es272 ch5bEs272 ch5b
Es272 ch5b
 
Application of numerical integration and differentiation in real life
Application of numerical integration and differentiation in real lifeApplication of numerical integration and differentiation in real life
Application of numerical integration and differentiation in real life
 
Lagrange multiplier
 Lagrange multiplier Lagrange multiplier
Lagrange multiplier
 
03 truncation errors
03 truncation errors03 truncation errors
03 truncation errors
 
Es272 ch6
Es272 ch6Es272 ch6
Es272 ch6
 
Newton’s Forward & backward interpolation
Newton’s Forward &  backward interpolation Newton’s Forward &  backward interpolation
Newton’s Forward & backward interpolation
 
simpion's 3/8 rule
simpion's 3/8 rulesimpion's 3/8 rule
simpion's 3/8 rule
 
Fluid mechanics ( 2019 2020)
Fluid mechanics ( 2019 2020)Fluid mechanics ( 2019 2020)
Fluid mechanics ( 2019 2020)
 
Navier stokes equation
Navier stokes equationNavier stokes equation
Navier stokes equation
 
Lecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etcLecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etc
 
Numerical methods and analysis problems/Examples
Numerical methods and analysis problems/ExamplesNumerical methods and analysis problems/Examples
Numerical methods and analysis problems/Examples
 

Destacado

[4] num integration
[4] num integration[4] num integration
[4] num integrationikhulsys
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlabTarun Gehlot
 
Modeling Transformations
Modeling TransformationsModeling Transformations
Modeling TransformationsTarun Gehlot
 
Gaussian quadratures
Gaussian quadraturesGaussian quadratures
Gaussian quadraturesTarun Gehlot
 
2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinates2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinatesTarun Gehlot
 
Newton cotes integration method
Newton cotes integration  methodNewton cotes integration  method
Newton cotes integration methodshashikant pabari
 
Introduction to Numerical Analysis
Introduction to Numerical AnalysisIntroduction to Numerical Analysis
Introduction to Numerical AnalysisMohammad Tawfik
 
Metode Numerik Trapesium
Metode Numerik TrapesiumMetode Numerik Trapesium
Metode Numerik TrapesiumWahyu Priyanti
 
25285 mws gen_int_ppt_trapcontinuous
25285 mws gen_int_ppt_trapcontinuous25285 mws gen_int_ppt_trapcontinuous
25285 mws gen_int_ppt_trapcontinuousJyoti Parange
 
Metnum kel 5 diferensiasi & integrasi numerik
Metnum kel 5 diferensiasi & integrasi numerikMetnum kel 5 diferensiasi & integrasi numerik
Metnum kel 5 diferensiasi & integrasi numerikIstiqomah Istiqomah
 
Lesson 31: Numerical Integration
Lesson 31: Numerical IntegrationLesson 31: Numerical Integration
Lesson 31: Numerical IntegrationMatthew Leingang
 
The sad, strange tale of the boy with only two fingers: an introduction to b...
The sad, strange tale of the boy with only two fingers: an introduction  to b...The sad, strange tale of the boy with only two fingers: an introduction  to b...
The sad, strange tale of the boy with only two fingers: an introduction to b...Mims H Wright
 
You Suck at Email
You Suck at EmailYou Suck at Email
You Suck at EmailJulia Roy
 
Get pampered retreat in goa - ajit patel sanda wellbeing group
Get pampered retreat in goa - ajit patel sanda wellbeing groupGet pampered retreat in goa - ajit patel sanda wellbeing group
Get pampered retreat in goa - ajit patel sanda wellbeing groupAjitPatelsandawellness
 
Detox retreat in goa - ajit patel sanda
Detox retreat in goa -  ajit patel sandaDetox retreat in goa -  ajit patel sanda
Detox retreat in goa - ajit patel sandaAjitPatelsandawellness
 
Numerical conformal mapping of an irregular area
Numerical conformal mapping of an irregular areaNumerical conformal mapping of an irregular area
Numerical conformal mapping of an irregular areaTarun Gehlot
 

Destacado (20)

Numerical Integration
Numerical IntegrationNumerical Integration
Numerical Integration
 
[4] num integration
[4] num integration[4] num integration
[4] num integration
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Modeling Transformations
Modeling TransformationsModeling Transformations
Modeling Transformations
 
Gaussian quadratures
Gaussian quadraturesGaussian quadratures
Gaussian quadratures
 
2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinates2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinates
 
Newton cotes integration method
Newton cotes integration  methodNewton cotes integration  method
Newton cotes integration method
 
Numerical Integration
Numerical IntegrationNumerical Integration
Numerical Integration
 
Introduction to Numerical Analysis
Introduction to Numerical AnalysisIntroduction to Numerical Analysis
Introduction to Numerical Analysis
 
Metode Numerik Trapesium
Metode Numerik TrapesiumMetode Numerik Trapesium
Metode Numerik Trapesium
 
25285 mws gen_int_ppt_trapcontinuous
25285 mws gen_int_ppt_trapcontinuous25285 mws gen_int_ppt_trapcontinuous
25285 mws gen_int_ppt_trapcontinuous
 
Metnum kel 5 diferensiasi & integrasi numerik
Metnum kel 5 diferensiasi & integrasi numerikMetnum kel 5 diferensiasi & integrasi numerik
Metnum kel 5 diferensiasi & integrasi numerik
 
Lesson 31: Numerical Integration
Lesson 31: Numerical IntegrationLesson 31: Numerical Integration
Lesson 31: Numerical Integration
 
Reflection module 5 jennifer chang wathall
Reflection module 5 jennifer chang wathallReflection module 5 jennifer chang wathall
Reflection module 5 jennifer chang wathall
 
The sad, strange tale of the boy with only two fingers: an introduction to b...
The sad, strange tale of the boy with only two fingers: an introduction  to b...The sad, strange tale of the boy with only two fingers: an introduction  to b...
The sad, strange tale of the boy with only two fingers: an introduction to b...
 
You Suck at Email
You Suck at EmailYou Suck at Email
You Suck at Email
 
Get pampered retreat in goa - ajit patel sanda wellbeing group
Get pampered retreat in goa - ajit patel sanda wellbeing groupGet pampered retreat in goa - ajit patel sanda wellbeing group
Get pampered retreat in goa - ajit patel sanda wellbeing group
 
Detox retreat in goa - ajit patel sanda
Detox retreat in goa -  ajit patel sandaDetox retreat in goa -  ajit patel sanda
Detox retreat in goa - ajit patel sanda
 
Integration
IntegrationIntegration
Integration
 
Numerical conformal mapping of an irregular area
Numerical conformal mapping of an irregular areaNumerical conformal mapping of an irregular area
Numerical conformal mapping of an irregular area
 

Similar a Numerical integration

Class XII assignment chapters (1 to 9)
Class XII   assignment chapters (1 to 9)Class XII   assignment chapters (1 to 9)
Class XII assignment chapters (1 to 9)KarunaGupta1982
 
Approximate Integration
Approximate IntegrationApproximate Integration
Approximate IntegrationSilvius
 
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
 
Quadratic Function Presentation
Quadratic Function PresentationQuadratic Function Presentation
Quadratic Function PresentationRyanWatt
 
Modeling with Quadratics
Modeling with QuadraticsModeling with Quadratics
Modeling with QuadraticsPLeach
 
Quadraticfunctionpresentation 100127142417-phpapp02
Quadraticfunctionpresentation 100127142417-phpapp02Quadraticfunctionpresentation 100127142417-phpapp02
Quadraticfunctionpresentation 100127142417-phpapp02Vine Gonzales
 
Applied numerical methods lec10
Applied numerical methods lec10Applied numerical methods lec10
Applied numerical methods lec10Yasser Ahmed
 
Module 1 quadratic functions
Module 1   quadratic functionsModule 1   quadratic functions
Module 1 quadratic functionsdionesioable
 
Class xii assignment chapters (1 to 9)
Class xii    assignment chapters (1 to 9)Class xii    assignment chapters (1 to 9)
Class xii assignment chapters (1 to 9)KarunaGupta1982
 
Local linear approximation
Local linear approximationLocal linear approximation
Local linear approximationTarun Gehlot
 
Differential Calculus
Differential Calculus Differential Calculus
Differential Calculus OlooPundit
 
Lesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusLesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusMatthew Leingang
 
Solution 3
Solution 3Solution 3
Solution 3aldrins
 
Mathematics 9 Quadratic Functions (Module 1)
Mathematics 9 Quadratic Functions (Module 1)Mathematics 9 Quadratic Functions (Module 1)
Mathematics 9 Quadratic Functions (Module 1)Juan Miguel Palero
 
Lesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusLesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusMatthew Leingang
 

Similar a Numerical integration (20)

Function
FunctionFunction
Function
 
Class XII assignment chapters (1 to 9)
Class XII   assignment chapters (1 to 9)Class XII   assignment chapters (1 to 9)
Class XII assignment chapters (1 to 9)
 
Approximate Integration
Approximate IntegrationApproximate Integration
Approximate Integration
 
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
 
Quadratic Function Presentation
Quadratic Function PresentationQuadratic Function Presentation
Quadratic Function Presentation
 
Modeling with Quadratics
Modeling with QuadraticsModeling with Quadratics
Modeling with Quadratics
 
The integral
The integralThe integral
The integral
 
Quadraticfunctionpresentation 100127142417-phpapp02
Quadraticfunctionpresentation 100127142417-phpapp02Quadraticfunctionpresentation 100127142417-phpapp02
Quadraticfunctionpresentation 100127142417-phpapp02
 
Applied numerical methods lec10
Applied numerical methods lec10Applied numerical methods lec10
Applied numerical methods lec10
 
Module 1 quadratic functions
Module 1   quadratic functionsModule 1   quadratic functions
Module 1 quadratic functions
 
Class xii assignment chapters (1 to 9)
Class xii    assignment chapters (1 to 9)Class xii    assignment chapters (1 to 9)
Class xii assignment chapters (1 to 9)
 
Local linear approximation
Local linear approximationLocal linear approximation
Local linear approximation
 
Calc 7.1b
Calc 7.1bCalc 7.1b
Calc 7.1b
 
Riemann sumsdefiniteintegrals
Riemann sumsdefiniteintegralsRiemann sumsdefiniteintegrals
Riemann sumsdefiniteintegrals
 
Integration
IntegrationIntegration
Integration
 
Differential Calculus
Differential Calculus Differential Calculus
Differential Calculus
 
Lesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusLesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of Calculus
 
Solution 3
Solution 3Solution 3
Solution 3
 
Mathematics 9 Quadratic Functions (Module 1)
Mathematics 9 Quadratic Functions (Module 1)Mathematics 9 Quadratic Functions (Module 1)
Mathematics 9 Quadratic Functions (Module 1)
 
Lesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusLesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of Calculus
 

Más de Tarun Gehlot

Materials 11-01228
Materials 11-01228Materials 11-01228
Materials 11-01228Tarun Gehlot
 
Continuity and end_behavior
Continuity and  end_behaviorContinuity and  end_behavior
Continuity and end_behaviorTarun Gehlot
 
Continuity of functions by graph (exercises with detailed solutions)
Continuity of functions by graph   (exercises with detailed solutions)Continuity of functions by graph   (exercises with detailed solutions)
Continuity of functions by graph (exercises with detailed solutions)Tarun Gehlot
 
Factoring by the trial and-error method
Factoring by the trial and-error methodFactoring by the trial and-error method
Factoring by the trial and-error methodTarun Gehlot
 
Introduction to finite element analysis
Introduction to finite element analysisIntroduction to finite element analysis
Introduction to finite element analysisTarun Gehlot
 
Finite elements : basis functions
Finite elements : basis functionsFinite elements : basis functions
Finite elements : basis functionsTarun Gehlot
 
Finite elements for 2‐d problems
Finite elements  for 2‐d problemsFinite elements  for 2‐d problems
Finite elements for 2‐d problemsTarun Gehlot
 
Error analysis statistics
Error analysis   statisticsError analysis   statistics
Error analysis statisticsTarun Gehlot
 
Linear approximations and_differentials
Linear approximations and_differentialsLinear approximations and_differentials
Linear approximations and_differentialsTarun Gehlot
 
Interpolation functions
Interpolation functionsInterpolation functions
Interpolation functionsTarun Gehlot
 
Propeties of-triangles
Propeties of-trianglesPropeties of-triangles
Propeties of-trianglesTarun Gehlot
 
Basics of set theory
Basics of set theoryBasics of set theory
Basics of set theoryTarun Gehlot
 
Applications of set theory
Applications of  set theoryApplications of  set theory
Applications of set theoryTarun Gehlot
 
Miscellneous functions
Miscellneous  functionsMiscellneous  functions
Miscellneous functionsTarun Gehlot
 
Dependent v. independent variables
Dependent v. independent variablesDependent v. independent variables
Dependent v. independent variablesTarun Gehlot
 
Intervals of validity
Intervals of validityIntervals of validity
Intervals of validityTarun Gehlot
 
Modelling with first order differential equations
Modelling with first order differential equationsModelling with first order differential equations
Modelling with first order differential equationsTarun Gehlot
 
Review taylor series
Review taylor seriesReview taylor series
Review taylor seriesTarun Gehlot
 

Más de Tarun Gehlot (20)

Materials 11-01228
Materials 11-01228Materials 11-01228
Materials 11-01228
 
Binary relations
Binary relationsBinary relations
Binary relations
 
Continuity and end_behavior
Continuity and  end_behaviorContinuity and  end_behavior
Continuity and end_behavior
 
Continuity of functions by graph (exercises with detailed solutions)
Continuity of functions by graph   (exercises with detailed solutions)Continuity of functions by graph   (exercises with detailed solutions)
Continuity of functions by graph (exercises with detailed solutions)
 
Factoring by the trial and-error method
Factoring by the trial and-error methodFactoring by the trial and-error method
Factoring by the trial and-error method
 
Introduction to finite element analysis
Introduction to finite element analysisIntroduction to finite element analysis
Introduction to finite element analysis
 
Finite elements : basis functions
Finite elements : basis functionsFinite elements : basis functions
Finite elements : basis functions
 
Finite elements for 2‐d problems
Finite elements  for 2‐d problemsFinite elements  for 2‐d problems
Finite elements for 2‐d problems
 
Error analysis statistics
Error analysis   statisticsError analysis   statistics
Error analysis statistics
 
Matlab commands
Matlab commandsMatlab commands
Matlab commands
 
Linear approximations and_differentials
Linear approximations and_differentialsLinear approximations and_differentials
Linear approximations and_differentials
 
Interpolation functions
Interpolation functionsInterpolation functions
Interpolation functions
 
Propeties of-triangles
Propeties of-trianglesPropeties of-triangles
Propeties of-triangles
 
Basics of set theory
Basics of set theoryBasics of set theory
Basics of set theory
 
Applications of set theory
Applications of  set theoryApplications of  set theory
Applications of set theory
 
Miscellneous functions
Miscellneous  functionsMiscellneous  functions
Miscellneous functions
 
Dependent v. independent variables
Dependent v. independent variablesDependent v. independent variables
Dependent v. independent variables
 
Intervals of validity
Intervals of validityIntervals of validity
Intervals of validity
 
Modelling with first order differential equations
Modelling with first order differential equationsModelling with first order differential equations
Modelling with first order differential equations
 
Review taylor series
Review taylor seriesReview taylor series
Review taylor series
 

Último

How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxAnupam32727
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...Nguyen Thanh Tu Collection
 
4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptxmary850239
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroomSamsung Business USA
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQuiz Club NITW
 
Comparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptxComparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptxAvaniJani1
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesVijayaLaxmi84
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Celine George
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6Vanessa Camilleri
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...DhatriParmar
 
Employablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxEmployablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxryandux83rd
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWQuiz Club NITW
 

Último (20)

How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
 
4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
 
Comparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptxComparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptx
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their uses
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17
 
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
 
Employablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxEmployablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptx
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITW
 
prashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Professionprashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Profession
 

Numerical integration

  • 1. Numerical Integration • In general, a numerical integration is the approximation of a definite integration by a “weighted” sum of function values at discretized points within the interval of integration. ∫ b a N f ( x )dx ≈ ∑ wi f ( xi ) i =0 where wi is the weighted factor depending on the integration schemes used, and f ( xi ) is the function value evaluated at the given point xi
  • 2. Rectangular Rule f(x) height=f(x1*) x=a x=x1* ∫ b a height=f(xn*) x=b x Approximate the integration, b ∫a f ( x)dx , that is the area under the curve by a series of rectangles as shown. The base of each of these rectangles is ∆x=(b-a)/n and its height can be expressed as f(xi*) where xi* is the midpoint of each rectangle x=xn* f ( x )dx = f ( x1*) ∆x + f ( x2 *) ∆x + .. f ( xn *) ∆x = ∆x[ f ( x1*) + f ( x2 *) + .. f ( xn *)]
  • 3. Trapezoidal Rule f(x) x=a x=x1 x=b x=xn-1 x The rectangular rule can be made more accurate by using trapezoids to replace the rectangles as shown. A linear approximation of the function locally sometimes work much better than using the averaged value like the rectangular rule does. ∆x ∆x ∆x ∫a f ( x )dx = 2 [ f (a ) + f ( x1 )] + 2 [ f ( x1 ) + f ( x2 )] + .. + 2 [ f ( xn−1) + f (b)] 1 1 = ∆x[ f (a ) + f ( x1 ) + .. f ( xn −1 ) + f (b)] 2 2 b
  • 4. Simpson’s Rule Still, the more accurate integration formula can be achieved by approximating the local curve by a higher order function, such as a quadratic polynomial. This leads to the Simpson’s rule and the formula is given as: ∆x ∫a f ( x )dx = 3 [ f (a ) + 4 f ( x1 ) + 2 f ( x2 ) + 4 f ( x3 ) + .. ..2 f ( x2 m−2 ) + 4 f ( x2 m −1 ) + f ( b)] b It is to be noted that the total number of subdivisions has to be an even number in order for the Simpson’s formula to work properly.
  • 5. Examples Integrate f ( x ) = x 3 between x = 1 and x = 2. ∫ 2 1 1 1 2 x 3dx= x 4 |1 = (24 − 14 ) = 3.75 4 4 2-1 Using 4 subdivisions for the numerical integration: ∆x= = 0.25 4 Rectangular rule: i xi* f(xi*) 1 1.125 1.42 2 1.375 2.60 3 1.625 4.29 4 1.875 6.59 ∫ 2 1 x 3dx = ∆x[ f (1.125) + f (1.375) + f (1.625) + f (1.875)] = 0.25(14.9) = 3.725
  • 6. Trapezoidal Rule i xi 1 f(xi) 1 1 1.25 1.95 2 1.5 3.38 3 1.75 ∫ 2 1 x 3dx 1 1 f (1) + f (1.25) + f (1.5) + f (1.75) + f (2)] 2 2 = 0.25(15.19) = 3.80 = ∆x[ 5.36 2 8 Simpson’s Rule ∫ 2 1 x 3dx = ∆x [ f (1) + 4 f (1.25) + 2 f (1.5) + 4 f (1.75) + f (2)] 3 0.25 = (45) = 3.75 ⇒ perfect estimation 3
  • 7. Trapezoidal Rule i xi 1 f(xi) 1 1 1.25 1.95 2 1.5 3.38 3 1.75 ∫ 2 1 x 3dx 1 1 f (1) + f (1.25) + f (1.5) + f (1.75) + f (2)] 2 2 = 0.25(15.19) = 3.80 = ∆x[ 5.36 2 8 Simpson’s Rule ∫ 2 1 x 3dx = ∆x [ f (1) + 4 f (1.25) + 2 f (1.5) + 4 f (1.75) + f (2)] 3 0.25 = (45) = 3.75 ⇒ perfect estimation 3