SlideShare a Scribd company logo
Gaussian Quadratures

• Newton-Cotes Formulae

– use evenly-spaced functional values
– Did not use the flexibility we have to select the quadrature points

• In fact a quadrature point has several degrees of freedom.
Q(f)=∑i=1m ci f(xi)
A formula with m function evaluations requires specification of
2m numbers ci and xi
• Gaussian Quadratures
– select both these weights and locations so that a higher order
polynomial can be integrated (alternatively the error is proportional
to a higher derivatives)

• Price: functional values must now be evaluated at nonuniformly distributed points to achieve higher accuracy
• Weights are no longer simple numbers
• Usually derived for an interval such as [-1,1]
• Other intervals [a,b] determined by mapping to [-1,1]
Gaussian Quadrature on [-1, 1]
∫

1

−1

n

f ( x )dx ≈ ∑ c i f ( x i ) = c 1 f ( x 1 ) + c 2 f ( x 2 ) + L + c n f ( x n )
i =1

• Two function evaluations:
– Choose (c1, c2, x1, x2) such that the method yields “exact
integral” for f(x) = x0, x1, x2, x3

n=2:

∫

1

−1

f(x)dx

= c 1 f(x 1 ) + c 2 f(x 2 )
-1

x1

x2

1
Finding quadrature nodes and weights
• One way is through the theory of orthogonal
polynomials.
• Here we will do it via brute force
• Set up equations by requiring that the 2m points
guarantee that a polynomial of degree 2m-1 is integrated
exactly.
• In general process is non-linear
– (involves a polynomial function involving the unknown point
and its product with unknown weight)
– Can be solved by using a multidimensional nonlinear solver
– Alternatively can sometimes be done step by step
Gaussian Quadrature on [-1, 1]
n=2:

∫

1

−1

f(x)dx = c 1 f(x 1 ) + c 2 f(x 2 )

Exact integral for f = x0, x1, x2, x3
– Four equations for four unknowns

⎧f
⎪
⎪
⎪f
⎨
⎪f
⎪
⎪f
⎩

1

= 1 ⇒ ∫ 1dx = 2 = c 1 + c 2
−1
1

= x ⇒ ∫ xdx = 0 = c 1 x 1 + c 2 x 2
−1

2
2
2
= x ⇒ ∫ x dx = = c 1 x 1 + c 2 x 2
−1
3
2

1

2

1

3
3
= x ⇒ ∫ x 3 dx = 0 = c 1 x 1 + c 2 x 2
3

−1

1

I = ∫ f ( x )dx = f ( −
−1

⎧c 1 = 1
⎪c = 1
⎪ 2
−1
⎪
⇒ ⎨ x1 =
3
⎪
1
⎪
⎪ x2 = 3
⎩

1
3

)+ f (

1
3

)
Error
• If we approximate a function with a Gaussian quadrature
formula we cause an error proportional to 2n th
derivative
Gaussian Quadrature on [-1, 1]
n=3:

∫

1

−1

f ( x )dx = c 1 f ( x 1 ) + c 2 f ( x 2 ) + c 3 f ( x 3 )

x2
x3
-1 x1
1
• Choose (c1, c2, c3, x1, x2, x3) such that the method
yields “exact integral” for f(x) = x0, x1, x2, x3,x4, x5
Gaussian Quadrature on [-1, 1]
1

f = 1 ⇒ ∫ xdx = 2 = c1 + c2 + c3
−1

1

f = x ⇒ ∫ xdx = 0 = c1 x1 + c2 x2 + c3 x3
−1

1

2
2
2
f = x ⇒ ∫ x dx = = c1 x12 + c2 x2 + c3 x3
3
−1
2

2

1

3
3
f = x 3 ⇒ ∫ x 3dx = 0 = c1 x13 + c2 x2 + c3 x3
−1
1

2
4
4
f = x ⇒ ∫ x dx = = c1 x14 + c2 x2 + c3 x3
5
−1
4

4

1

5
5
f = x 5 ⇒ ∫ x 5 dx = 0 = c1 x15 + c2 x2 + c3 x3
−1

⎧c1 = 5 / 9
⎪c = 8 / 9
⎪ 2
⎪c3 = 5 / 9
⎪
⇒⎨
⎪ x1 = − 3 / 5
⎪ x2 = 0
⎪
⎪ x3 = 3 / 5
⎩
Gaussian Quadrature on [-1, 1]
Exact integral for f = x0, x1, x2, x3, x4, x5

I=∫

1

−1

3
5
3
8
5
)
f ( x )dx = f ( −
)+ f (0 )+ f (
9
5
9
5
9
Gaussian Quadrature on [a, b]
Coordinate transformation from [a,b] to [-1,1]

b−a
b+a
t=
x+
2
2
⎧ x = −1 ⇒ t = a
⎨
⎩x = 1 ⇒ t = b
a

∫

b

a

t1

f ( t )dt = ∫

1

−1

t2

b

1
b−a
b+a b−a
f(
x+
)(
)dx = ∫ g ( x )dx
−1
2
2
2
Example: Gaussian Quadrature
4

I = ∫ te dt = 5216.926477

Evaluate

2t

0

Coordinate transformation

b−a
b+a
t=
x+
= 2 x + 2; dt = 2dx
2
2
4

1

I = ∫ te dt = ∫ (4 x + 4)e
2t

4 x+4

−1

0

1

dx = ∫ f ( x)dx
−1

Two-point formula

1

I = ∫ f ( x )dx = f (
−1

−1

)+ f (

1

)= (4 −

4

)e

3
3
3
= 9.167657324 + 3468.376279 = 3477.543936

4−

4
3

+(4 +

4

)e

3
( ε = 33.34%)

4+

4
3
Example: Gaussian Quadrature
Three-point formula
1
5
8
5
I = ∫ f ( x )dx = f ( − 0.6 ) + f ( 0 ) + f ( 0.6 )
−1
9
9
9
5
8
5
4 − 0 .6
4
= ( 4 − 4 0.6 )e
+ ( 4 )e + ( 4 + 4 0.6 )e 4 + 0.6
9
9
9
5
8
5
= ( 2.221191545 ) + ( 218.3926001 ) + ( 8589.142689 )
9
9
9
= 4967.106689
( ε = 4.79%)
Four-point formula

I = ∫ f ( x )dx = 0.34785[ f ( −0.861136 ) + f ( 0.861136 )]
1

−1

+ 0.652145 [ f ( −0.339981 ) + f ( 0.339981 )]
= 5197.54375
( ε = 0.37%)
Other rules
• Gauss-Lobatto:
– requiring end points be included in the formula

• Gauss-Radau
– Require one end point be in the formula

More Related Content

What's hot

Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference Interpolation
VARUN KUMAR
 
Gaussian Quadrature Formula
Gaussian Quadrature FormulaGaussian Quadrature Formula
Gaussian Quadrature Formula
Dhaval Shukla
 
Finite difference method
Finite difference methodFinite difference method
Finite difference method
Divyansh Verma
 
INTEGRATION BY PARTS PPT
INTEGRATION BY PARTS PPT INTEGRATION BY PARTS PPT
INTEGRATION BY PARTS PPT
03062679929
 
NUMERICAL INTEGRATION : ERROR FORMULA, GAUSSIAN QUADRATURE FORMULA
NUMERICAL INTEGRATION : ERROR FORMULA, GAUSSIAN QUADRATURE FORMULANUMERICAL INTEGRATION : ERROR FORMULA, GAUSSIAN QUADRATURE FORMULA
NUMERICAL INTEGRATION : ERROR FORMULA, GAUSSIAN QUADRATURE FORMULA
KHORASIYA DEVANSU
 
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
Asad Ali
 
Power series
Power series Power series
Power series
Pranav Veerani
 
Numerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential EquationsNumerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential Equations
Meenakshisundaram N
 
Chap-3 FEA for Nonlinear Elastic Problems.pptx
Chap-3 FEA for Nonlinear Elastic Problems.pptxChap-3 FEA for Nonlinear Elastic Problems.pptx
Chap-3 FEA for Nonlinear Elastic Problems.pptx
Samirsinh Parmar
 
Jacobi method
Jacobi methodJacobi method
Jacobi method
Grishma Maravia
 
Gaussian Integration
Gaussian IntegrationGaussian Integration
Gaussian Integration
Reza Rahimi
 
Newton's forward & backward interpolation
Newton's forward & backward interpolationNewton's forward & backward interpolation
Newton's forward & backward interpolation
Harshad Koshti
 
Runge-Kutta methods with examples
Runge-Kutta methods with examplesRunge-Kutta methods with examples
Runge-Kutta methods with examples
Sajjad Hossain
 
Numerical integration;Gaussian integration one point, two point and three poi...
Numerical integration;Gaussian integration one point, two point and three poi...Numerical integration;Gaussian integration one point, two point and three poi...
Numerical integration;Gaussian integration one point, two point and three poi...
vaibhav tailor
 
Numerical differentiation integration
Numerical differentiation integrationNumerical differentiation integration
Numerical differentiation integration
Tarun Gehlot
 
ORTHOGONAL, ORTHONORMAL VECTOR, GRAM SCHMIDT PROCESS, ORTHOGONALLY DIAGONALI...
ORTHOGONAL, ORTHONORMAL  VECTOR, GRAM SCHMIDT PROCESS, ORTHOGONALLY DIAGONALI...ORTHOGONAL, ORTHONORMAL  VECTOR, GRAM SCHMIDT PROCESS, ORTHOGONALLY DIAGONALI...
ORTHOGONAL, ORTHONORMAL VECTOR, GRAM SCHMIDT PROCESS, ORTHOGONALLY DIAGONALI...
Smit Shah
 
Finite difference Matlab Code
Finite difference Matlab CodeFinite difference Matlab Code
Finite difference Matlab Code
Taimoor Muzaffar Gondal
 
Runge kutta 2nd Order
Runge kutta 2nd OrderRunge kutta 2nd Order
Runge kutta 2nd Order
Manjushreearadhya2016
 
Analytic Geometry
Analytic GeometryAnalytic Geometry
Analytic Geometry
vmayyy
 

What's hot (20)

Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference Interpolation
 
Gaussian Quadrature Formula
Gaussian Quadrature FormulaGaussian Quadrature Formula
Gaussian Quadrature Formula
 
Finite difference method
Finite difference methodFinite difference method
Finite difference method
 
INTEGRATION BY PARTS PPT
INTEGRATION BY PARTS PPT INTEGRATION BY PARTS PPT
INTEGRATION BY PARTS PPT
 
NUMERICAL INTEGRATION : ERROR FORMULA, GAUSSIAN QUADRATURE FORMULA
NUMERICAL INTEGRATION : ERROR FORMULA, GAUSSIAN QUADRATURE FORMULANUMERICAL INTEGRATION : ERROR FORMULA, GAUSSIAN QUADRATURE FORMULA
NUMERICAL INTEGRATION : ERROR FORMULA, GAUSSIAN QUADRATURE FORMULA
 
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
 
Power series
Power series Power series
Power series
 
Numerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential EquationsNumerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential Equations
 
Chap-3 FEA for Nonlinear Elastic Problems.pptx
Chap-3 FEA for Nonlinear Elastic Problems.pptxChap-3 FEA for Nonlinear Elastic Problems.pptx
Chap-3 FEA for Nonlinear Elastic Problems.pptx
 
Jacobi method
Jacobi methodJacobi method
Jacobi method
 
Gaussian Integration
Gaussian IntegrationGaussian Integration
Gaussian Integration
 
Numerical Method 2
Numerical Method 2Numerical Method 2
Numerical Method 2
 
Newton's forward & backward interpolation
Newton's forward & backward interpolationNewton's forward & backward interpolation
Newton's forward & backward interpolation
 
Runge-Kutta methods with examples
Runge-Kutta methods with examplesRunge-Kutta methods with examples
Runge-Kutta methods with examples
 
Numerical integration;Gaussian integration one point, two point and three poi...
Numerical integration;Gaussian integration one point, two point and three poi...Numerical integration;Gaussian integration one point, two point and three poi...
Numerical integration;Gaussian integration one point, two point and three poi...
 
Numerical differentiation integration
Numerical differentiation integrationNumerical differentiation integration
Numerical differentiation integration
 
ORTHOGONAL, ORTHONORMAL VECTOR, GRAM SCHMIDT PROCESS, ORTHOGONALLY DIAGONALI...
ORTHOGONAL, ORTHONORMAL  VECTOR, GRAM SCHMIDT PROCESS, ORTHOGONALLY DIAGONALI...ORTHOGONAL, ORTHONORMAL  VECTOR, GRAM SCHMIDT PROCESS, ORTHOGONALLY DIAGONALI...
ORTHOGONAL, ORTHONORMAL VECTOR, GRAM SCHMIDT PROCESS, ORTHOGONALLY DIAGONALI...
 
Finite difference Matlab Code
Finite difference Matlab CodeFinite difference Matlab Code
Finite difference Matlab Code
 
Runge kutta 2nd Order
Runge kutta 2nd OrderRunge kutta 2nd Order
Runge kutta 2nd Order
 
Analytic Geometry
Analytic GeometryAnalytic Geometry
Analytic Geometry
 

Similar to Gaussian quadratures

Integration techniques
Integration techniquesIntegration techniques
Integration techniquesKrishna Gali
 
Quadratic Function Presentation
Quadratic Function PresentationQuadratic Function Presentation
Quadratic Function PresentationRyanWatt
 
Module 3 quadratic functions
Module 3   quadratic functionsModule 3   quadratic functions
Module 3 quadratic functions
dionesioable
 
Applied numerical methods lec10
Applied numerical methods lec10Applied numerical methods lec10
Applied numerical methods lec10
Yasser Ahmed
 
Transforming Quadratic functions from General Form to Standard Form
Transforming Quadratic functions from General Form to Standard FormTransforming Quadratic functions from General Form to Standard Form
Transforming Quadratic functions from General Form to Standard Form
Ivy Estrella
 
College algebra real mathematics real people 7th edition larson solutions manual
College algebra real mathematics real people 7th edition larson solutions manualCollege algebra real mathematics real people 7th edition larson solutions manual
College algebra real mathematics real people 7th edition larson solutions manual
JohnstonTBL
 
Solving Equations Transformable to Quadratic Equation Including Rational Alge...
Solving Equations Transformable to Quadratic Equation Including Rational Alge...Solving Equations Transformable to Quadratic Equation Including Rational Alge...
Solving Equations Transformable to Quadratic Equation Including Rational Alge...
Cipriano De Leon
 
Spm add-maths-formula-list-form4-091022090639-phpapp01
Spm add-maths-formula-list-form4-091022090639-phpapp01Spm add-maths-formula-list-form4-091022090639-phpapp01
Spm add-maths-formula-list-form4-091022090639-phpapp01
Asad Bukhari
 
Spm add-maths-formula-list-form4-091022090639-phpapp01
Spm add-maths-formula-list-form4-091022090639-phpapp01Spm add-maths-formula-list-form4-091022090639-phpapp01
Spm add-maths-formula-list-form4-091022090639-phpapp01
Nur Kamila
 
Additional Mathematics form 4 (formula)
Additional Mathematics form 4 (formula)Additional Mathematics form 4 (formula)
Additional Mathematics form 4 (formula)
Fatini Adnan
 
Sample question paper 2 with solution
Sample question paper 2 with solutionSample question paper 2 with solution
Sample question paper 2 with solution
Pratima Nayak ,Kendriya Vidyalaya Sangathan
 
Gr 11 equations
Gr 11   equationsGr 11   equations
Gr 11 equations
Renate Rohrs
 
graphs of functions 2
 graphs of functions 2 graphs of functions 2
graphs of functions 2larasati06
 
Application of derivatives 2 maxima and minima
Application of derivatives 2  maxima and minimaApplication of derivatives 2  maxima and minima
Application of derivatives 2 maxima and minima
sudersana viswanathan
 
2.1 Calculus 2.formulas.pdf.pdf
2.1 Calculus 2.formulas.pdf.pdf2.1 Calculus 2.formulas.pdf.pdf
2.1 Calculus 2.formulas.pdf.pdf
NiccoloAaronMendozaA
 
1.3 solving equations t
1.3 solving equations t1.3 solving equations t
1.3 solving equations t
math260
 
rational equation transformable to quadratic equation.pptx
rational equation transformable to quadratic equation.pptxrational equation transformable to quadratic equation.pptx
rational equation transformable to quadratic equation.pptx
RizaCatli2
 

Similar to Gaussian quadratures (20)

Integration techniques
Integration techniquesIntegration techniques
Integration techniques
 
Quadratic Function Presentation
Quadratic Function PresentationQuadratic Function Presentation
Quadratic Function Presentation
 
Module 3 quadratic functions
Module 3   quadratic functionsModule 3   quadratic functions
Module 3 quadratic functions
 
Integration
IntegrationIntegration
Integration
 
Maths 301 key_sem_1_2009_2010
Maths 301 key_sem_1_2009_2010Maths 301 key_sem_1_2009_2010
Maths 301 key_sem_1_2009_2010
 
Applied numerical methods lec10
Applied numerical methods lec10Applied numerical methods lec10
Applied numerical methods lec10
 
Transforming Quadratic functions from General Form to Standard Form
Transforming Quadratic functions from General Form to Standard FormTransforming Quadratic functions from General Form to Standard Form
Transforming Quadratic functions from General Form to Standard Form
 
College algebra real mathematics real people 7th edition larson solutions manual
College algebra real mathematics real people 7th edition larson solutions manualCollege algebra real mathematics real people 7th edition larson solutions manual
College algebra real mathematics real people 7th edition larson solutions manual
 
Solving Equations Transformable to Quadratic Equation Including Rational Alge...
Solving Equations Transformable to Quadratic Equation Including Rational Alge...Solving Equations Transformable to Quadratic Equation Including Rational Alge...
Solving Equations Transformable to Quadratic Equation Including Rational Alge...
 
0 calc7-1
0 calc7-10 calc7-1
0 calc7-1
 
Spm add-maths-formula-list-form4-091022090639-phpapp01
Spm add-maths-formula-list-form4-091022090639-phpapp01Spm add-maths-formula-list-form4-091022090639-phpapp01
Spm add-maths-formula-list-form4-091022090639-phpapp01
 
Spm add-maths-formula-list-form4-091022090639-phpapp01
Spm add-maths-formula-list-form4-091022090639-phpapp01Spm add-maths-formula-list-form4-091022090639-phpapp01
Spm add-maths-formula-list-form4-091022090639-phpapp01
 
Additional Mathematics form 4 (formula)
Additional Mathematics form 4 (formula)Additional Mathematics form 4 (formula)
Additional Mathematics form 4 (formula)
 
Sample question paper 2 with solution
Sample question paper 2 with solutionSample question paper 2 with solution
Sample question paper 2 with solution
 
Gr 11 equations
Gr 11   equationsGr 11   equations
Gr 11 equations
 
graphs of functions 2
 graphs of functions 2 graphs of functions 2
graphs of functions 2
 
Application of derivatives 2 maxima and minima
Application of derivatives 2  maxima and minimaApplication of derivatives 2  maxima and minima
Application of derivatives 2 maxima and minima
 
2.1 Calculus 2.formulas.pdf.pdf
2.1 Calculus 2.formulas.pdf.pdf2.1 Calculus 2.formulas.pdf.pdf
2.1 Calculus 2.formulas.pdf.pdf
 
1.3 solving equations t
1.3 solving equations t1.3 solving equations t
1.3 solving equations t
 
rational equation transformable to quadratic equation.pptx
rational equation transformable to quadratic equation.pptxrational equation transformable to quadratic equation.pptx
rational equation transformable to quadratic equation.pptx
 

More from Tarun Gehlot

Materials 11-01228
Materials 11-01228Materials 11-01228
Materials 11-01228
Tarun Gehlot
 
Binary relations
Binary relationsBinary relations
Binary relations
Tarun Gehlot
 
Continuity and end_behavior
Continuity and  end_behaviorContinuity and  end_behavior
Continuity and end_behavior
Tarun 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 method
Tarun Gehlot
 
Introduction to finite element analysis
Introduction to finite element analysisIntroduction to finite element analysis
Introduction to finite element analysis
Tarun Gehlot
 
Finite elements : basis functions
Finite elements : basis functionsFinite elements : basis functions
Finite elements : basis functions
Tarun Gehlot
 
Finite elements for 2‐d problems
Finite elements  for 2‐d problemsFinite elements  for 2‐d problems
Finite elements for 2‐d problems
Tarun Gehlot
 
Error analysis statistics
Error analysis   statisticsError analysis   statistics
Error analysis statistics
Tarun Gehlot
 
Matlab commands
Matlab commandsMatlab commands
Matlab commands
Tarun Gehlot
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
Tarun Gehlot
 
Linear approximations and_differentials
Linear approximations and_differentialsLinear approximations and_differentials
Linear approximations and_differentials
Tarun Gehlot
 
Local linear approximation
Local linear approximationLocal linear approximation
Local linear approximation
Tarun Gehlot
 
Interpolation functions
Interpolation functionsInterpolation functions
Interpolation functions
Tarun Gehlot
 
Propeties of-triangles
Propeties of-trianglesPropeties of-triangles
Propeties of-triangles
Tarun Gehlot
 
Basics of set theory
Basics of set theoryBasics of set theory
Basics of set theory
Tarun Gehlot
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
Tarun Gehlot
 
Applications of set theory
Applications of  set theoryApplications of  set theory
Applications of set theory
Tarun Gehlot
 
Miscellneous functions
Miscellneous  functionsMiscellneous  functions
Miscellneous functions
Tarun Gehlot
 
Dependent v. independent variables
Dependent v. independent variablesDependent v. independent variables
Dependent v. independent variables
Tarun 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
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Linear approximations and_differentials
Linear approximations and_differentialsLinear approximations and_differentials
Linear approximations and_differentials
 
Local linear approximation
Local linear approximationLocal linear approximation
Local linear approximation
 
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
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
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
 

Recently uploaded

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 

Recently uploaded (20)

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 

Gaussian quadratures

  • 1. Gaussian Quadratures • Newton-Cotes Formulae – use evenly-spaced functional values – Did not use the flexibility we have to select the quadrature points • In fact a quadrature point has several degrees of freedom. Q(f)=∑i=1m ci f(xi) A formula with m function evaluations requires specification of 2m numbers ci and xi • Gaussian Quadratures – select both these weights and locations so that a higher order polynomial can be integrated (alternatively the error is proportional to a higher derivatives) • Price: functional values must now be evaluated at nonuniformly distributed points to achieve higher accuracy • Weights are no longer simple numbers • Usually derived for an interval such as [-1,1] • Other intervals [a,b] determined by mapping to [-1,1]
  • 2. Gaussian Quadrature on [-1, 1] ∫ 1 −1 n f ( x )dx ≈ ∑ c i f ( x i ) = c 1 f ( x 1 ) + c 2 f ( x 2 ) + L + c n f ( x n ) i =1 • Two function evaluations: – Choose (c1, c2, x1, x2) such that the method yields “exact integral” for f(x) = x0, x1, x2, x3 n=2: ∫ 1 −1 f(x)dx = c 1 f(x 1 ) + c 2 f(x 2 ) -1 x1 x2 1
  • 3. Finding quadrature nodes and weights • One way is through the theory of orthogonal polynomials. • Here we will do it via brute force • Set up equations by requiring that the 2m points guarantee that a polynomial of degree 2m-1 is integrated exactly. • In general process is non-linear – (involves a polynomial function involving the unknown point and its product with unknown weight) – Can be solved by using a multidimensional nonlinear solver – Alternatively can sometimes be done step by step
  • 4. Gaussian Quadrature on [-1, 1] n=2: ∫ 1 −1 f(x)dx = c 1 f(x 1 ) + c 2 f(x 2 ) Exact integral for f = x0, x1, x2, x3 – Four equations for four unknowns ⎧f ⎪ ⎪ ⎪f ⎨ ⎪f ⎪ ⎪f ⎩ 1 = 1 ⇒ ∫ 1dx = 2 = c 1 + c 2 −1 1 = x ⇒ ∫ xdx = 0 = c 1 x 1 + c 2 x 2 −1 2 2 2 = x ⇒ ∫ x dx = = c 1 x 1 + c 2 x 2 −1 3 2 1 2 1 3 3 = x ⇒ ∫ x 3 dx = 0 = c 1 x 1 + c 2 x 2 3 −1 1 I = ∫ f ( x )dx = f ( − −1 ⎧c 1 = 1 ⎪c = 1 ⎪ 2 −1 ⎪ ⇒ ⎨ x1 = 3 ⎪ 1 ⎪ ⎪ x2 = 3 ⎩ 1 3 )+ f ( 1 3 )
  • 5. Error • If we approximate a function with a Gaussian quadrature formula we cause an error proportional to 2n th derivative
  • 6. Gaussian Quadrature on [-1, 1] n=3: ∫ 1 −1 f ( x )dx = c 1 f ( x 1 ) + c 2 f ( x 2 ) + c 3 f ( x 3 ) x2 x3 -1 x1 1 • Choose (c1, c2, c3, x1, x2, x3) such that the method yields “exact integral” for f(x) = x0, x1, x2, x3,x4, x5
  • 7. Gaussian Quadrature on [-1, 1] 1 f = 1 ⇒ ∫ xdx = 2 = c1 + c2 + c3 −1 1 f = x ⇒ ∫ xdx = 0 = c1 x1 + c2 x2 + c3 x3 −1 1 2 2 2 f = x ⇒ ∫ x dx = = c1 x12 + c2 x2 + c3 x3 3 −1 2 2 1 3 3 f = x 3 ⇒ ∫ x 3dx = 0 = c1 x13 + c2 x2 + c3 x3 −1 1 2 4 4 f = x ⇒ ∫ x dx = = c1 x14 + c2 x2 + c3 x3 5 −1 4 4 1 5 5 f = x 5 ⇒ ∫ x 5 dx = 0 = c1 x15 + c2 x2 + c3 x3 −1 ⎧c1 = 5 / 9 ⎪c = 8 / 9 ⎪ 2 ⎪c3 = 5 / 9 ⎪ ⇒⎨ ⎪ x1 = − 3 / 5 ⎪ x2 = 0 ⎪ ⎪ x3 = 3 / 5 ⎩
  • 8. Gaussian Quadrature on [-1, 1] Exact integral for f = x0, x1, x2, x3, x4, x5 I=∫ 1 −1 3 5 3 8 5 ) f ( x )dx = f ( − )+ f (0 )+ f ( 9 5 9 5 9
  • 9. Gaussian Quadrature on [a, b] Coordinate transformation from [a,b] to [-1,1] b−a b+a t= x+ 2 2 ⎧ x = −1 ⇒ t = a ⎨ ⎩x = 1 ⇒ t = b a ∫ b a t1 f ( t )dt = ∫ 1 −1 t2 b 1 b−a b+a b−a f( x+ )( )dx = ∫ g ( x )dx −1 2 2 2
  • 10. Example: Gaussian Quadrature 4 I = ∫ te dt = 5216.926477 Evaluate 2t 0 Coordinate transformation b−a b+a t= x+ = 2 x + 2; dt = 2dx 2 2 4 1 I = ∫ te dt = ∫ (4 x + 4)e 2t 4 x+4 −1 0 1 dx = ∫ f ( x)dx −1 Two-point formula 1 I = ∫ f ( x )dx = f ( −1 −1 )+ f ( 1 )= (4 − 4 )e 3 3 3 = 9.167657324 + 3468.376279 = 3477.543936 4− 4 3 +(4 + 4 )e 3 ( ε = 33.34%) 4+ 4 3
  • 11. Example: Gaussian Quadrature Three-point formula 1 5 8 5 I = ∫ f ( x )dx = f ( − 0.6 ) + f ( 0 ) + f ( 0.6 ) −1 9 9 9 5 8 5 4 − 0 .6 4 = ( 4 − 4 0.6 )e + ( 4 )e + ( 4 + 4 0.6 )e 4 + 0.6 9 9 9 5 8 5 = ( 2.221191545 ) + ( 218.3926001 ) + ( 8589.142689 ) 9 9 9 = 4967.106689 ( ε = 4.79%) Four-point formula I = ∫ f ( x )dx = 0.34785[ f ( −0.861136 ) + f ( 0.861136 )] 1 −1 + 0.652145 [ f ( −0.339981 ) + f ( 0.339981 )] = 5197.54375 ( ε = 0.37%)
  • 12. Other rules • Gauss-Lobatto: – requiring end points be included in the formula • Gauss-Radau – Require one end point be in the formula