SlideShare a Scribd company logo
1 of 30
4/19/2024 http://numericalmethods.eng.usf.edu 1
Gauss Quadrature Rule of
Integration
Major: All Engineering Majors
Authors: Autar Kaw, Charlie Barker
http://numericalmethods.eng.usf.edu
Transforming Numerical Methods Education for STEM
Undergraduates
Gauss Quadrature Rule of
Integration
http://numericalmethods.eng.usf.edu
http://numericalmethods.eng.usf.edu
3
What is Integration?
Integration


b
a
dx
)
x
(
f
I
The process of measuring
the area under a curve.
Where:
f(x) is the integrand
a= lower limit of integration
b= upper limit of integration
f(x)
a b
y
x

b
a
dx
)
x
(
f
http://numericalmethods.eng.usf.edu
4
Two-Point Gaussian
Quadrature Rule
http://numericalmethods.eng.usf.edu
5
Basis of the Gaussian
Quadrature Rule
Previously, the Trapezoidal Rule was developed by the method
of undetermined coefficients. The result of that development is
summarized below.
)
(
2
)
(
2
)
(
)
(
)
( 2
1
b
f
a
b
a
f
a
b
b
f
c
a
f
c
dx
x
f
b
a







http://numericalmethods.eng.usf.edu
6
Basis of the Gaussian
Quadrature Rule
The two-point Gauss Quadrature Rule is an extension of the
Trapezoidal Rule approximation where the arguments of the
function are not predetermined as a and b but as unknowns
x1 and x2. In the two-point Gauss Quadrature Rule, the
integral is approximated as


b
a
dx
)
x
(
f
I )
x
(
f
c
)
x
(
f
c 2
2
1
1 

http://numericalmethods.eng.usf.edu
7
Basis of the Gaussian
Quadrature Rule
The four unknowns x1, x2, c1 and c2 are found by assuming that
the formula gives exact results for integrating a general third
order polynomial, .
x
a
x
a
x
a
a
)
x
(
f 3
3
2
2
1
0 



Hence
 

 



b
a
b
a
dx
x
a
x
a
x
a
a
dx
)
x
(
f 3
3
2
2
1
0
b
a
x
a
x
a
x
a
x
a 









4
3
2
4
3
3
2
2
1
0
  






 








 








 



4
3
2
4
4
3
3
3
2
2
2
1
0
a
b
a
a
b
a
a
b
a
a
b
a
http://numericalmethods.eng.usf.edu
8
Basis of the Gaussian
Quadrature Rule
It follows that
   
3
2
3
2
2
2
2
1
0
2
3
1
3
2
1
2
1
1
0
1 x
a
x
a
x
a
a
c
x
a
x
a
x
a
a
c
dx
)
x
(
f
b
a









Equating Equations the two previous two expressions yield
  






 








 








 


4
3
2
4
4
3
3
3
2
2
2
1
0
a
b
a
a
b
a
a
b
a
a
b
a
   
3
2
3
2
2
2
2
1
0
2
3
1
3
2
1
2
1
1
0
1 x
a
x
a
x
a
a
c
x
a
x
a
x
a
a
c 







       
3
2
2
3
1
1
3
2
2
2
2
1
1
2
2
2
1
1
1
2
1
0 x
c
x
c
a
x
c
x
c
a
x
c
x
c
a
c
c
a 







http://numericalmethods.eng.usf.edu
9
Basis of the Gaussian
Quadrature Rule
Since the constants a0, a1, a2, a3 are arbitrary
2
1 c
c
a
b 

 2
2
1
1
2
2
2
x
c
x
c
a
b



2
2
2
2
1
1
3
3
3
x
c
x
c
a
b


 3
2
2
3
1
1
4
4
4
x
c
x
c
a
b



http://numericalmethods.eng.usf.edu
10
Basis of Gauss Quadrature
The previous four simultaneous nonlinear Equations have
only one acceptable solution,
2
1
a
b
c


2
2
a
b
c


2
3
1
2
1
a
b
a
b
x














 

2
3
1
2
2
a
b
a
b
x













 

http://numericalmethods.eng.usf.edu
11
Basis of Gauss Quadrature
Hence Two-Point Gaussian Quadrature Rule
   







 

















 














2
3
1
2
2
2
3
1
2
2
)
( 2
2
1
1
a
b
a
b
f
a
b
a
b
a
b
f
a
b
x
f
c
x
f
c
dx
x
f
b
a
http://numericalmethods.eng.usf.edu
12
Higher Point Gaussian
Quadrature Formulas
http://numericalmethods.eng.usf.edu
13
Higher Point Gaussian
Quadrature Formulas
)
(
)
(
)
(
)
( 3
3
2
2
1
1 x
f
c
x
f
c
x
f
c
dx
x
f
b
a




is called the three-point Gauss Quadrature Rule.
The coefficients c1, c2, and c3, and the functional arguments x1, x2, and x3
are calculated by assuming the formula gives exact expressions for
 
 




b
a
dx
x
a
x
a
x
a
x
a
x
a
a 5
5
4
4
3
3
2
2
1
0
General n-point rules would approximate the integral
)
x
(
f
c
.
.
.
.
.
.
.
)
x
(
f
c
)
x
(
f
c
dx
)
x
(
f n
n
b
a




 2
2
1
1
integrating a fifth order polynomial
http://numericalmethods.eng.usf.edu
14
Arguments and Weighing Factors
for n-point Gauss Quadrature
Formulas
In handbooks, coefficients and
Gauss Quadrature Rule are
 
 

1
1 1
n
i
i
i )
x
(
g
c
dx
)
x
(
g
as shown in Table 1.
Points Weighting
Factors
Function
Arguments
2 c1 = 1.000000000
c2 = 1.000000000
x1 = -0.577350269
x2 = 0.577350269
3 c1 = 0.555555556
c2 = 0.888888889
c3 = 0.555555556
x1 = -0.774596669
x2 = 0.000000000
x3 = 0.774596669
4 c1 = 0.347854845
c2 = 0.652145155
c3 = 0.652145155
c4 = 0.347854845
x1 = -0.861136312
x2 = -0.339981044
x3 = 0.339981044
x4 = 0.861136312
arguments given for n-point
given for integrals
Table 1: Weighting factors c and function
arguments x used in Gauss Quadrature
Formulas.
http://numericalmethods.eng.usf.edu
15
Arguments and Weighing Factors
for n-point Gauss Quadrature
Formulas
Points Weighting
Factors
Function
Arguments
5 c1 = 0.236926885
c2 = 0.478628670
c3 = 0.568888889
c4 = 0.478628670
c5 = 0.236926885
x1 = -0.906179846
x2 = -0.538469310
x3 = 0.000000000
x4 = 0.538469310
x5 = 0.906179846
6 c1 = 0.171324492
c2 = 0.360761573
c3 = 0.467913935
c4 = 0.467913935
c5 = 0.360761573
c6 = 0.171324492
x1 = -0.932469514
x2 = -0.661209386
x3 = -0.2386191860
x4 = 0.2386191860
x5 = 0.661209386
x6 = 0.932469514
Table 1 (cont.) : Weighting factors c and function arguments x used in
Gauss Quadrature Formulas.
http://numericalmethods.eng.usf.edu
16
Arguments and Weighing Factors
for n-point Gauss Quadrature
Formulas
So if the table is given for 

1
1
dx
)
x
(
g integrals, how does one solve

b
a
dx
)
x
(
f ? The answer lies in that any integral with limits of  
b
,
a
can be converted into an integral with limits  
1
1,
 Let
c
mt
x 

If then
,
a
x  1


t
,
b
x 
If then 1

t
Such that:
2
a
b
m


http://numericalmethods.eng.usf.edu
17
Arguments and Weighing Factors
for n-point Gauss Quadrature
Formulas
2
a
b
c


Then Hence
2
2
a
b
t
a
b
x



 dt
a
b
dx
2


Substituting our values of x, and dx into the integral gives us

 






 



1
1
2
2
2
)
( dt
a
b
a
b
t
a
b
f
dx
x
f
b
a
http://numericalmethods.eng.usf.edu
18
Example 1
For an integral derive the one-point Gaussian Quadrature
Rule.
,
dx
)
x
(
f
b
a

Solution
The one-point Gaussian Quadrature Rule is
 
1
1 x
f
c
dx
)
x
(
f
b
a


http://numericalmethods.eng.usf.edu
19
Solution
The two unknowns x1, and c1 are found by assuming that the
formula gives exact results for integrating a general first order
polynomial,
.
)
( 1
0 x
a
a
x
f 

 

 

b
a
b
a
dx
x
a
a
dx
x
f 1
0
)
(
b
a
x
a
x
a 







2
2
1
0
  






 



2
2
2
1
0
a
b
a
a
b
a
http://numericalmethods.eng.usf.edu
20
Solution
It follows that
 
1
1
0
1
)
( x
a
a
c
dx
x
f
b
a



Equating Equations, the two previous two expressions yield
  






 


2
2
2
1
0
a
b
a
a
b
a  
1
1
0
1 x
a
a
c 
 )
(
)
( 1
1
1
1
0 x
c
a
c
a 

http://numericalmethods.eng.usf.edu
21
Basis of the Gaussian
Quadrature Rule
Since the constants a0, and a1 are arbitrary
1
c
a
b 

1
1
2
2
2
x
c
a
b


a
b
c 

1
2
1
a
b
x


giving
http://numericalmethods.eng.usf.edu
22
Solution
Hence One-Point Gaussian Quadrature Rule
  




 



 2
)
(
)
( 1
1
a
b
f
a
b
x
f
c
dx
x
f
b
a
http://numericalmethods.eng.usf.edu
23
Example 2
Use two-point Gauss Quadrature Rule to approximate the distance
covered by a rocket from t=8 to t=30 as given by
 














30
8
8
9
2100
140000
140000
2000 dt
t
.
t
ln
x
Find the true error, for part (a).
Also, find the absolute relative true error, for part (a).
a

a)
b)
c)
t
E
http://numericalmethods.eng.usf.edu
24
Solution
First, change the limits of integration from [8,30] to [-1,1]
by previous relations as follows








 




1
1
30
8 2
8
30
2
8
30
2
8
30
dx
x
f
dt
)
t
(
f
 




1
1
19
11
11 dx
x
f
http://numericalmethods.eng.usf.edu
25
Solution (cont)
Next, get weighting factors and function argument values from Table 1
for the two point rule,
000000000
1
1 .
c 
577350269
0
1 .
x 

000000000
1
2 .
c 
577350269
0
2 .
x 
http://numericalmethods.eng.usf.edu
26
Solution (cont.)
Now we can use the Gauss Quadrature formula
     
19
11
11
19
11
11
19
11
11 2
2
1
1
1
1







x
f
c
x
f
c
dx
x
f
   
19
5773503
0
11
11
19
5773503
0
11
11 



 )
.
(
f
)
.
(
f
)
.
(
f
)
.
(
f 35085
25
11
64915
12
11 

)
.
(
)
.
( 4811
708
11
8317
296
11 

m
.44
11058

http://numericalmethods.eng.usf.edu
27
Solution (cont)
since
)
.
(
.
)
.
(
ln
)
.
(
f 64915
12
8
9
64915
12
2100
140000
140000
2000
64915
12 








8317
296.

)
.
(
.
)
.
(
ln
)
.
(
f 35085
25
8
9
35085
25
2100
140000
140000
2000
35085
25 








4811
708.

http://numericalmethods.eng.usf.edu
28
Solution (cont)
The absolute relative true error, t
 , is (Exact value = 11061.34m)
%
.
.
.
t 100
34
11061
44
11058
34
11061




%
.0262
0

c)
The true error, , is
b) t
E
Value
e
Approximat
Value
True
Et 

44
.
11058
34
.
11061 

m
9000
.
2

Additional Resources
For all resources on this topic such as digital audiovisual
lectures, primers, textbook chapters, multiple-choice
tests, worksheets in MATLAB, MATHEMATICA, MathCad
and MAPLE, blogs, related physical problems, please
visit
http://numericalmethods.eng.usf.edu/topics/gauss_qua
drature.html
THE END
http://numericalmethods.eng.usf.edu

More Related Content

Similar to The Gregory Gauss Quadrature formula for beginners

Natural and Clamped Cubic Splines
Natural and Clamped Cubic SplinesNatural and Clamped Cubic Splines
Natural and Clamped Cubic SplinesMark Brandao
 
Module 1 quadratic functions
Module 1   quadratic functionsModule 1   quadratic functions
Module 1 quadratic functionsdionesioable
 
Steven Duplij, Raimund Vogl, "Polyadic Braid Operators and Higher Braiding Ga...
Steven Duplij, Raimund Vogl, "Polyadic Braid Operators and Higher Braiding Ga...Steven Duplij, Raimund Vogl, "Polyadic Braid Operators and Higher Braiding Ga...
Steven Duplij, Raimund Vogl, "Polyadic Braid Operators and Higher Braiding Ga...Steven Duplij (Stepan Douplii)
 
Banco de preguntas para el ap
Banco de preguntas para el apBanco de preguntas para el ap
Banco de preguntas para el apMARCELOCHAVEZ23
 
1.  Write an equation in standard form of the parabola that has th.docx
1.  Write an equation in standard form of the parabola that has th.docx1.  Write an equation in standard form of the parabola that has th.docx
1.  Write an equation in standard form of the parabola that has th.docxKiyokoSlagleis
 
3_1 Exponential functions and their graphs (1).ppt
3_1 Exponential functions and their graphs (1).ppt3_1 Exponential functions and their graphs (1).ppt
3_1 Exponential functions and their graphs (1).pptMarchtPataray
 
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
 
ISI MSQE Entrance Question Paper (2008)
ISI MSQE Entrance Question Paper (2008)ISI MSQE Entrance Question Paper (2008)
ISI MSQE Entrance Question Paper (2008)CrackDSE
 
Least square method
Least square methodLeast square method
Least square methodSomya Bagai
 
2012 mdsp pr13 support vector machine
2012 mdsp pr13 support vector machine2012 mdsp pr13 support vector machine
2012 mdsp pr13 support vector machinenozomuhamada
 
1 Week 2 Homework for MTH 125 Name_______________
1 Week 2 Homework for MTH 125  Name_______________1 Week 2 Homework for MTH 125  Name_______________
1 Week 2 Homework for MTH 125 Name_______________MartineMccracken314
 
1 Week 2 Homework for MTH 125 Name_______________
1 Week 2 Homework for MTH 125  Name_______________1 Week 2 Homework for MTH 125  Name_______________
1 Week 2 Homework for MTH 125 Name_______________AbbyWhyte974
 
Mathematics - Functions.pdf
Mathematics - Functions.pdfMathematics - Functions.pdf
Mathematics - Functions.pdfJihudumie.Com
 
Y11+gdc+maximize+your+use+of+the++ev+2
Y11+gdc+maximize+your+use+of+the++ev+2Y11+gdc+maximize+your+use+of+the++ev+2
Y11+gdc+maximize+your+use+of+the++ev+2estelav
 
GR 8 Math Powerpoint about Polynomial Techniques
GR 8 Math Powerpoint about Polynomial TechniquesGR 8 Math Powerpoint about Polynomial Techniques
GR 8 Math Powerpoint about Polynomial Techniquesreginaatin
 
Add Math(F4) Quadratic Function 3.1
Add Math(F4)  Quadratic Function  3.1Add Math(F4)  Quadratic Function  3.1
Add Math(F4) Quadratic Function 3.1roszelan
 
STA003_WK2_L.pptx
STA003_WK2_L.pptxSTA003_WK2_L.pptx
STA003_WK2_L.pptxMAmir23
 
Lesson 4B - Intro to Quadratics.ppt
Lesson 4B - Intro to Quadratics.pptLesson 4B - Intro to Quadratics.ppt
Lesson 4B - Intro to Quadratics.pptMarjoCeloso1
 

Similar to The Gregory Gauss Quadrature formula for beginners (20)

Natural and Clamped Cubic Splines
Natural and Clamped Cubic SplinesNatural and Clamped Cubic Splines
Natural and Clamped Cubic Splines
 
Module 1 quadratic functions
Module 1   quadratic functionsModule 1   quadratic functions
Module 1 quadratic functions
 
Steven Duplij, Raimund Vogl, "Polyadic Braid Operators and Higher Braiding Ga...
Steven Duplij, Raimund Vogl, "Polyadic Braid Operators and Higher Braiding Ga...Steven Duplij, Raimund Vogl, "Polyadic Braid Operators and Higher Braiding Ga...
Steven Duplij, Raimund Vogl, "Polyadic Braid Operators and Higher Braiding Ga...
 
Subquad multi ff
Subquad multi ffSubquad multi ff
Subquad multi ff
 
Banco de preguntas para el ap
Banco de preguntas para el apBanco de preguntas para el ap
Banco de preguntas para el ap
 
1.  Write an equation in standard form of the parabola that has th.docx
1.  Write an equation in standard form of the parabola that has th.docx1.  Write an equation in standard form of the parabola that has th.docx
1.  Write an equation in standard form of the parabola that has th.docx
 
3_1 Exponential functions and their graphs (1).ppt
3_1 Exponential functions and their graphs (1).ppt3_1 Exponential functions and their graphs (1).ppt
3_1 Exponential functions and their graphs (1).ppt
 
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...
 
ISI MSQE Entrance Question Paper (2008)
ISI MSQE Entrance Question Paper (2008)ISI MSQE Entrance Question Paper (2008)
ISI MSQE Entrance Question Paper (2008)
 
Least square method
Least square methodLeast square method
Least square method
 
2012 mdsp pr13 support vector machine
2012 mdsp pr13 support vector machine2012 mdsp pr13 support vector machine
2012 mdsp pr13 support vector machine
 
1 Week 2 Homework for MTH 125 Name_______________
1 Week 2 Homework for MTH 125  Name_______________1 Week 2 Homework for MTH 125  Name_______________
1 Week 2 Homework for MTH 125 Name_______________
 
1 Week 2 Homework for MTH 125 Name_______________
1 Week 2 Homework for MTH 125  Name_______________1 Week 2 Homework for MTH 125  Name_______________
1 Week 2 Homework for MTH 125 Name_______________
 
AppsDiff3c.pdf
AppsDiff3c.pdfAppsDiff3c.pdf
AppsDiff3c.pdf
 
Mathematics - Functions.pdf
Mathematics - Functions.pdfMathematics - Functions.pdf
Mathematics - Functions.pdf
 
Y11+gdc+maximize+your+use+of+the++ev+2
Y11+gdc+maximize+your+use+of+the++ev+2Y11+gdc+maximize+your+use+of+the++ev+2
Y11+gdc+maximize+your+use+of+the++ev+2
 
GR 8 Math Powerpoint about Polynomial Techniques
GR 8 Math Powerpoint about Polynomial TechniquesGR 8 Math Powerpoint about Polynomial Techniques
GR 8 Math Powerpoint about Polynomial Techniques
 
Add Math(F4) Quadratic Function 3.1
Add Math(F4)  Quadratic Function  3.1Add Math(F4)  Quadratic Function  3.1
Add Math(F4) Quadratic Function 3.1
 
STA003_WK2_L.pptx
STA003_WK2_L.pptxSTA003_WK2_L.pptx
STA003_WK2_L.pptx
 
Lesson 4B - Intro to Quadratics.ppt
Lesson 4B - Intro to Quadratics.pptLesson 4B - Intro to Quadratics.ppt
Lesson 4B - Intro to Quadratics.ppt
 

Recently uploaded

UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGSIVASHANKAR N
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 

Recently uploaded (20)

UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 

The Gregory Gauss Quadrature formula for beginners

  • 1. 4/19/2024 http://numericalmethods.eng.usf.edu 1 Gauss Quadrature Rule of Integration Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker http://numericalmethods.eng.usf.edu Transforming Numerical Methods Education for STEM Undergraduates
  • 2. Gauss Quadrature Rule of Integration http://numericalmethods.eng.usf.edu
  • 3. http://numericalmethods.eng.usf.edu 3 What is Integration? Integration   b a dx ) x ( f I The process of measuring the area under a curve. Where: f(x) is the integrand a= lower limit of integration b= upper limit of integration f(x) a b y x  b a dx ) x ( f
  • 5. http://numericalmethods.eng.usf.edu 5 Basis of the Gaussian Quadrature Rule Previously, the Trapezoidal Rule was developed by the method of undetermined coefficients. The result of that development is summarized below. ) ( 2 ) ( 2 ) ( ) ( ) ( 2 1 b f a b a f a b b f c a f c dx x f b a       
  • 6. http://numericalmethods.eng.usf.edu 6 Basis of the Gaussian Quadrature Rule The two-point Gauss Quadrature Rule is an extension of the Trapezoidal Rule approximation where the arguments of the function are not predetermined as a and b but as unknowns x1 and x2. In the two-point Gauss Quadrature Rule, the integral is approximated as   b a dx ) x ( f I ) x ( f c ) x ( f c 2 2 1 1  
  • 7. http://numericalmethods.eng.usf.edu 7 Basis of the Gaussian Quadrature Rule The four unknowns x1, x2, c1 and c2 are found by assuming that the formula gives exact results for integrating a general third order polynomial, . x a x a x a a ) x ( f 3 3 2 2 1 0     Hence         b a b a dx x a x a x a a dx ) x ( f 3 3 2 2 1 0 b a x a x a x a x a           4 3 2 4 3 3 2 2 1 0                                   4 3 2 4 4 3 3 3 2 2 2 1 0 a b a a b a a b a a b a
  • 8. http://numericalmethods.eng.usf.edu 8 Basis of the Gaussian Quadrature Rule It follows that     3 2 3 2 2 2 2 1 0 2 3 1 3 2 1 2 1 1 0 1 x a x a x a a c x a x a x a a c dx ) x ( f b a          Equating Equations the two previous two expressions yield                                  4 3 2 4 4 3 3 3 2 2 2 1 0 a b a a b a a b a a b a     3 2 3 2 2 2 2 1 0 2 3 1 3 2 1 2 1 1 0 1 x a x a x a a c x a x a x a a c                 3 2 2 3 1 1 3 2 2 2 2 1 1 2 2 2 1 1 1 2 1 0 x c x c a x c x c a x c x c a c c a        
  • 9. http://numericalmethods.eng.usf.edu 9 Basis of the Gaussian Quadrature Rule Since the constants a0, a1, a2, a3 are arbitrary 2 1 c c a b    2 2 1 1 2 2 2 x c x c a b    2 2 2 2 1 1 3 3 3 x c x c a b    3 2 2 3 1 1 4 4 4 x c x c a b   
  • 10. http://numericalmethods.eng.usf.edu 10 Basis of Gauss Quadrature The previous four simultaneous nonlinear Equations have only one acceptable solution, 2 1 a b c   2 2 a b c   2 3 1 2 1 a b a b x                  2 3 1 2 2 a b a b x                
  • 11. http://numericalmethods.eng.usf.edu 11 Basis of Gauss Quadrature Hence Two-Point Gaussian Quadrature Rule                                               2 3 1 2 2 2 3 1 2 2 ) ( 2 2 1 1 a b a b f a b a b a b f a b x f c x f c dx x f b a
  • 13. http://numericalmethods.eng.usf.edu 13 Higher Point Gaussian Quadrature Formulas ) ( ) ( ) ( ) ( 3 3 2 2 1 1 x f c x f c x f c dx x f b a     is called the three-point Gauss Quadrature Rule. The coefficients c1, c2, and c3, and the functional arguments x1, x2, and x3 are calculated by assuming the formula gives exact expressions for         b a dx x a x a x a x a x a a 5 5 4 4 3 3 2 2 1 0 General n-point rules would approximate the integral ) x ( f c . . . . . . . ) x ( f c ) x ( f c dx ) x ( f n n b a      2 2 1 1 integrating a fifth order polynomial
  • 14. http://numericalmethods.eng.usf.edu 14 Arguments and Weighing Factors for n-point Gauss Quadrature Formulas In handbooks, coefficients and Gauss Quadrature Rule are      1 1 1 n i i i ) x ( g c dx ) x ( g as shown in Table 1. Points Weighting Factors Function Arguments 2 c1 = 1.000000000 c2 = 1.000000000 x1 = -0.577350269 x2 = 0.577350269 3 c1 = 0.555555556 c2 = 0.888888889 c3 = 0.555555556 x1 = -0.774596669 x2 = 0.000000000 x3 = 0.774596669 4 c1 = 0.347854845 c2 = 0.652145155 c3 = 0.652145155 c4 = 0.347854845 x1 = -0.861136312 x2 = -0.339981044 x3 = 0.339981044 x4 = 0.861136312 arguments given for n-point given for integrals Table 1: Weighting factors c and function arguments x used in Gauss Quadrature Formulas.
  • 15. http://numericalmethods.eng.usf.edu 15 Arguments and Weighing Factors for n-point Gauss Quadrature Formulas Points Weighting Factors Function Arguments 5 c1 = 0.236926885 c2 = 0.478628670 c3 = 0.568888889 c4 = 0.478628670 c5 = 0.236926885 x1 = -0.906179846 x2 = -0.538469310 x3 = 0.000000000 x4 = 0.538469310 x5 = 0.906179846 6 c1 = 0.171324492 c2 = 0.360761573 c3 = 0.467913935 c4 = 0.467913935 c5 = 0.360761573 c6 = 0.171324492 x1 = -0.932469514 x2 = -0.661209386 x3 = -0.2386191860 x4 = 0.2386191860 x5 = 0.661209386 x6 = 0.932469514 Table 1 (cont.) : Weighting factors c and function arguments x used in Gauss Quadrature Formulas.
  • 16. http://numericalmethods.eng.usf.edu 16 Arguments and Weighing Factors for n-point Gauss Quadrature Formulas So if the table is given for   1 1 dx ) x ( g integrals, how does one solve  b a dx ) x ( f ? The answer lies in that any integral with limits of   b , a can be converted into an integral with limits   1 1,  Let c mt x   If then , a x  1   t , b x  If then 1  t Such that: 2 a b m  
  • 17. http://numericalmethods.eng.usf.edu 17 Arguments and Weighing Factors for n-point Gauss Quadrature Formulas 2 a b c   Then Hence 2 2 a b t a b x     dt a b dx 2   Substituting our values of x, and dx into the integral gives us               1 1 2 2 2 ) ( dt a b a b t a b f dx x f b a
  • 18. http://numericalmethods.eng.usf.edu 18 Example 1 For an integral derive the one-point Gaussian Quadrature Rule. , dx ) x ( f b a  Solution The one-point Gaussian Quadrature Rule is   1 1 x f c dx ) x ( f b a  
  • 19. http://numericalmethods.eng.usf.edu 19 Solution The two unknowns x1, and c1 are found by assuming that the formula gives exact results for integrating a general first order polynomial, . ) ( 1 0 x a a x f         b a b a dx x a a dx x f 1 0 ) ( b a x a x a         2 2 1 0               2 2 2 1 0 a b a a b a
  • 20. http://numericalmethods.eng.usf.edu 20 Solution It follows that   1 1 0 1 ) ( x a a c dx x f b a    Equating Equations, the two previous two expressions yield              2 2 2 1 0 a b a a b a   1 1 0 1 x a a c   ) ( ) ( 1 1 1 1 0 x c a c a  
  • 21. http://numericalmethods.eng.usf.edu 21 Basis of the Gaussian Quadrature Rule Since the constants a0, and a1 are arbitrary 1 c a b   1 1 2 2 2 x c a b   a b c   1 2 1 a b x   giving
  • 22. http://numericalmethods.eng.usf.edu 22 Solution Hence One-Point Gaussian Quadrature Rule              2 ) ( ) ( 1 1 a b f a b x f c dx x f b a
  • 23. http://numericalmethods.eng.usf.edu 23 Example 2 Use two-point Gauss Quadrature Rule to approximate the distance covered by a rocket from t=8 to t=30 as given by                 30 8 8 9 2100 140000 140000 2000 dt t . t ln x Find the true error, for part (a). Also, find the absolute relative true error, for part (a). a  a) b) c) t E
  • 24. http://numericalmethods.eng.usf.edu 24 Solution First, change the limits of integration from [8,30] to [-1,1] by previous relations as follows               1 1 30 8 2 8 30 2 8 30 2 8 30 dx x f dt ) t ( f       1 1 19 11 11 dx x f
  • 25. http://numericalmethods.eng.usf.edu 25 Solution (cont) Next, get weighting factors and function argument values from Table 1 for the two point rule, 000000000 1 1 . c  577350269 0 1 . x   000000000 1 2 . c  577350269 0 2 . x 
  • 26. http://numericalmethods.eng.usf.edu 26 Solution (cont.) Now we can use the Gauss Quadrature formula       19 11 11 19 11 11 19 11 11 2 2 1 1 1 1        x f c x f c dx x f     19 5773503 0 11 11 19 5773503 0 11 11      ) . ( f ) . ( f ) . ( f ) . ( f 35085 25 11 64915 12 11   ) . ( ) . ( 4811 708 11 8317 296 11   m .44 11058 
  • 27. http://numericalmethods.eng.usf.edu 27 Solution (cont) since ) . ( . ) . ( ln ) . ( f 64915 12 8 9 64915 12 2100 140000 140000 2000 64915 12          8317 296.  ) . ( . ) . ( ln ) . ( f 35085 25 8 9 35085 25 2100 140000 140000 2000 35085 25          4811 708. 
  • 28. http://numericalmethods.eng.usf.edu 28 Solution (cont) The absolute relative true error, t  , is (Exact value = 11061.34m) % . . . t 100 34 11061 44 11058 34 11061     % .0262 0  c) The true error, , is b) t E Value e Approximat Value True Et   44 . 11058 34 . 11061   m 9000 . 2 
  • 29. Additional Resources For all resources on this topic such as digital audiovisual lectures, primers, textbook chapters, multiple-choice tests, worksheets in MATLAB, MATHEMATICA, MathCad and MAPLE, blogs, related physical problems, please visit http://numericalmethods.eng.usf.edu/topics/gauss_qua drature.html