Beruflich Dokumente
Kultur Dokumente
Filippou, 2005
Gauss Integration
g ( ) := c0 + c1 + c2 + c3
2
2
g ( ) d 2 c0 + c2
1
3
We like to obtain the same result with 2 function evaluations at locations to be determined and with
weights to be determined, i.e. we like to have
( )
2
c2
3
( )
w1 g 1 + w2 g 2 = 2 c0 +
) + w ( c + c
w1 c0 + c1 1 + c2 1 + c3 1
2 + c2 2
+ c3 2
) = 2c + 23 c
0
c0 ( w1 + w2) + c1 w1 1 + w2 2 + c2 w1 1 + w2 2
2
) + c ( w
3
+ w2 2
) = 2c + 23 c
0
for this equality to hold for arbitrary polynomial coefficients, the factors of the coefficients on the left
and right hand side of the equation have to be equal. We thus obtain four equations
Given
w1 + w2 = 2
w1 1 + w2 2 = 0
2
w1 1 + w2 2 =
2
3
w1 1 + w2 2 = 0
We can solve these four equations for the four unknowns 1 , w1 , 2 , w2
Page 1
Gauss Integration
.577350269189 .577350269189
1.
1.
1.
1.
Even though two solutions arise, they represent the permutations of a single solution which is
0.577350269189
0.577350269189
1
w :=
1
:=
Now that we got the idea we can repeat for 3 integration points. In this case we have 6 parameters
and thus want to integrate exactly a fifth degree polynomial. There are now 6 conditions, namely
Given
w1 + w2 + w3 = 2
w1 1 + w2 2 + w3 3 = 0
2
w1 1 + w2 2 + w3 3 =
2
3
w1 1 + w2 2 + w3 3 = 0
w1 1 + w2 2 + w3 3 =
2
5
and we can readily detect the rule: the sum of the products of
the integration weights with odd power exponents of the
integration locations sum up to zero, while the sum of the
products of the weights with even power exponents of the
integration locations sum up to 2/(exponent+1).
w1 1 + w2 2 + w3 3 = 0
solving for the six unknowns 1 , w1 , 2 , w2 , 3 , w3 we get to six significant digits 6 permulations of the single
answer
.888889
.774596
Find ( 1 , w1 , 2 , w2 , 3 , w3)
.555556
.774596
.555556
.774596
.888889
.555556
.555556
.774596
.774596 .774596
.555556
.555556
.555556
.888889
.774596
.774596
.888889
.774596
.555556
.888889
.888889
.555556
.555556
Page 2
.555556
0
.555556