SlideShare a Scribd company logo
1 of 7
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

More Related Content

What's hot

Applied Calculus Chapter 3 partial derivatives
Applied Calculus Chapter  3 partial derivativesApplied Calculus Chapter  3 partial derivatives
Applied Calculus Chapter 3 partial derivativesJ C
 
Lesson 7: Vector-valued functions
Lesson 7: Vector-valued functionsLesson 7: Vector-valued functions
Lesson 7: Vector-valued functionsMatthew Leingang
 
Nams- Roots of equations by numerical methods
Nams- Roots of equations by numerical methodsNams- Roots of equations by numerical methods
Nams- Roots of equations by numerical methodsRuchi Maurya
 
Lesson 8: Basic Differentiation Rules (Section 21 slides)
Lesson 8: Basic Differentiation Rules (Section 21 slides)Lesson 8: Basic Differentiation Rules (Section 21 slides)
Lesson 8: Basic Differentiation Rules (Section 21 slides)Matthew Leingang
 
First Order Differential Equations
First Order Differential EquationsFirst Order Differential Equations
First Order Differential EquationsItishree Dash
 
Interpolation In Numerical Methods.
 Interpolation In Numerical Methods. Interpolation In Numerical Methods.
Interpolation In Numerical Methods.Abu Kaisar
 
ppt on application of integrals
ppt on application of integralsppt on application of integrals
ppt on application of integralsharshid panchal
 
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 integration
Numerical integrationNumerical integration
Numerical integrationSunny Chauhan
 
Interpolation of Cubic Splines
Interpolation of Cubic SplinesInterpolation of Cubic Splines
Interpolation of Cubic SplinesSohaib H. Khan
 
Numerical integration
Numerical integrationNumerical integration
Numerical integrationMohammed_AQ
 
Series solutions at ordinary point and regular singular point
Series solutions at ordinary point and regular singular pointSeries solutions at ordinary point and regular singular point
Series solutions at ordinary point and regular singular pointvaibhav tailor
 
IMPROPER INTEGRALS AND APPLICATION OF INTEGRATION
IMPROPER  INTEGRALS AND  APPLICATION  OF INTEGRATIONIMPROPER  INTEGRALS AND  APPLICATION  OF INTEGRATION
IMPROPER INTEGRALS AND APPLICATION OF INTEGRATIONDrazzer_Dhruv
 
ORDINARY DIFFERENTIAL EQUATION
ORDINARY DIFFERENTIAL EQUATION ORDINARY DIFFERENTIAL EQUATION
ORDINARY DIFFERENTIAL EQUATION LANKESH S S
 
Partial Differentiation & Application
Partial Differentiation & Application Partial Differentiation & Application
Partial Differentiation & Application Yana Qlah
 
MATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and IntegrationMATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and IntegrationAinul Islam
 
First order linear differential equation
First order linear differential equationFirst order linear differential equation
First order linear differential equationNofal Umair
 

What's hot (20)

Applied Calculus Chapter 3 partial derivatives
Applied Calculus Chapter  3 partial derivativesApplied Calculus Chapter  3 partial derivatives
Applied Calculus Chapter 3 partial derivatives
 
Lesson 7: Vector-valued functions
Lesson 7: Vector-valued functionsLesson 7: Vector-valued functions
Lesson 7: Vector-valued functions
 
Nams- Roots of equations by numerical methods
Nams- Roots of equations by numerical methodsNams- Roots of equations by numerical methods
Nams- Roots of equations by numerical methods
 
Lesson 8: Basic Differentiation Rules (Section 21 slides)
Lesson 8: Basic Differentiation Rules (Section 21 slides)Lesson 8: Basic Differentiation Rules (Section 21 slides)
Lesson 8: Basic Differentiation Rules (Section 21 slides)
 
First Order Differential Equations
First Order Differential EquationsFirst Order Differential Equations
First Order Differential Equations
 
Interpolation In Numerical Methods.
 Interpolation In Numerical Methods. Interpolation In Numerical Methods.
Interpolation In Numerical Methods.
 
ppt on application of integrals
ppt on application of integralsppt on application of integrals
ppt on application of integrals
 
Partial Differential Equations, 3 simple examples
Partial Differential Equations, 3 simple examplesPartial Differential Equations, 3 simple examples
Partial Differential Equations, 3 simple examples
 
1519 differentiation-integration-02
1519 differentiation-integration-021519 differentiation-integration-02
1519 differentiation-integration-02
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
Interpolation of Cubic Splines
Interpolation of Cubic SplinesInterpolation of Cubic Splines
Interpolation of Cubic Splines
 
Fourier series
Fourier series Fourier series
Fourier series
 
Riemann sumsdefiniteintegrals
Riemann sumsdefiniteintegralsRiemann sumsdefiniteintegrals
Riemann sumsdefiniteintegrals
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
Series solutions at ordinary point and regular singular point
Series solutions at ordinary point and regular singular pointSeries solutions at ordinary point and regular singular point
Series solutions at ordinary point and regular singular point
 
IMPROPER INTEGRALS AND APPLICATION OF INTEGRATION
IMPROPER  INTEGRALS AND  APPLICATION  OF INTEGRATIONIMPROPER  INTEGRALS AND  APPLICATION  OF INTEGRATION
IMPROPER INTEGRALS AND APPLICATION OF INTEGRATION
 
ORDINARY DIFFERENTIAL EQUATION
ORDINARY DIFFERENTIAL EQUATION ORDINARY DIFFERENTIAL EQUATION
ORDINARY DIFFERENTIAL EQUATION
 
Partial Differentiation & Application
Partial Differentiation & Application Partial Differentiation & Application
Partial Differentiation & Application
 
MATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and IntegrationMATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and Integration
 
First order linear differential equation
First order linear differential equationFirst order linear differential equation
First order linear differential equation
 

Viewers also liked

Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methodsTarun Gehlot
 
[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
 
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
 

Viewers also liked (20)

Numerical Integration
Numerical IntegrationNumerical Integration
Numerical Integration
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
 
[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
 
Trapezoidal rule
Trapezoidal ruleTrapezoidal rule
Trapezoidal rule
 
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
 

Similar to 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 to 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
 
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
 
Integration
IntegrationIntegration
Integration
 

More from 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
 

More from 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
 

Recently uploaded

Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 

Recently uploaded (20)

Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 

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