You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
Manaíra Lima e Loïc Cerf<br />
16 de maio de 2013<br />
UFMG – ICEx – DCC
Exercício<br />
Exercício A<br />
Calcular, usando 5 casas decimais,<br />
π<br />
0 sen 3x dx pela quadratura<br />
de <strong>Gauss</strong>-<strong>Legendre</strong>:<br />
1 usando 4 pontos;<br />
2 usando 5 pontos.<br />
3 Calcular os erros absolutos<br />
dos dois resultados.<br />
4 Comparar esses erros com as<br />
cotas máximas calculadas a<br />
partir da fórmula do erro de<br />
integração.<br />
Manaíra Lima e Loïc Cerf<br />
<br />
Formulário<br />
n t A<br />
1 0 2<br />
2 ±0, 57735 1<br />
3 0 0, 88889<br />
±0, 77460 0, 55556<br />
4 ± 0, 33998 0, 65215<br />
± 0, 86114 0, 34785<br />
5 0 0, 56889<br />
±0, 53847 0, 47863<br />
±0, 90618 0, 23693<br />
6 ±0, 23862 0, 46791<br />
±0, 66121 0, 36076<br />
±0, 93247 0, 17132<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
2 / 11
Exercício<br />
Exercício A<br />
Calcular, usando 5 casas decimais,<br />
π<br />
0 sen 3x dx pela quadratura<br />
de <strong>Gauss</strong>-<strong>Legendre</strong>:<br />
1 usando 4 pontos;<br />
2 usando 5 pontos.<br />
3 Calcular os erros absolutos<br />
dos dois resultados.<br />
4 Comparar esses erros com as<br />
cotas máximas calculadas a<br />
partir da fórmula do erro de<br />
integração.<br />
Manaíra Lima e Loïc Cerf<br />
<br />
Formulário<br />
n t A<br />
1 0 2<br />
2 ±0, 57735 1<br />
3 0 0, 88889<br />
±0, 77460 0, 55556<br />
4 ± 0, 33998 0, 65215<br />
± 0, 86114 0, 34785<br />
5 0 0, 56889<br />
±0, 53847 0, 47863<br />
±0, 90618 0, 23693<br />
6 ±0, 23862 0, 46791<br />
±0, 66121 0, 36076<br />
±0, 93247 0, 17132<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
2 / 11
Exercício<br />
Exercício A<br />
Calcular, usando 5 casas decimais,<br />
π<br />
0 sen 3x dx pela quadratura<br />
de <strong>Gauss</strong>-<strong>Legendre</strong>:<br />
1 usando 4 pontos;<br />
2 usando 5 pontos.<br />
3 Calcular os erros absolutos<br />
dos dois resultados.<br />
4 Comparar esses erros com as<br />
cotas máximas calculadas a<br />
partir da fórmula do erro de<br />
integração.<br />
Manaíra Lima e Loïc Cerf<br />
<br />
Formulário<br />
n t A<br />
1 0 2<br />
2 ±0, 57735 1<br />
3 0 0, 88889<br />
±0, 77460 0, 55556<br />
4 ± 0, 33998 0, 65215<br />
± 0, 86114 0, 34785<br />
5 0 0, 56889<br />
±0, 53847 0, 47863<br />
±0, 90618 0, 23693<br />
6 ±0, 23862 0, 46791<br />
±0, 66121 0, 36076<br />
±0, 93247 0, 17132<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
2 / 11
Manaíra Lima e Loïc Cerf<br />
<br />
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 34785<br />
− 0, 33998 0, 65215<br />
0, 33998 0, 65215<br />
0, 86114 0, 34785<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Manaíra Lima e Loïc Cerf<br />
<br />
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 34785<br />
− 0, 33998 0, 65215<br />
0, 33998 0, 65215<br />
0, 86114 0, 34785<br />
x =<br />
π − 0 π + 0<br />
t +<br />
2 2<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Manaíra Lima e Loïc Cerf<br />
<br />
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 34785<br />
− 0, 33998 0, 65215<br />
0, 33998 0, 65215<br />
0, 86114 0, 34785<br />
x = 1, 57080t + 1, 57080<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 (1, 57080)(−0, 86114) + 1, 57080 0, 34785<br />
− 0, 33998 0, 65215<br />
0, 33998 0, 65215<br />
0, 86114 0, 34785<br />
Manaíra Lima e Loïc Cerf<br />
<br />
x = 1, 57080t + 1, 57080<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Manaíra Lima e Loïc Cerf<br />
<br />
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 21812 0, 34785<br />
− 0, 33998 0, 65215<br />
0, 33998 0, 65215<br />
0, 86114 0, 34785<br />
x = 1, 57080t + 1, 57080<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 21812 0, 34785<br />
− 0, 33998 (1, 57080)(−0, 33998) + 1, 57080 0, 65215<br />
0, 33998 0, 65215<br />
0, 86114 0, 34785<br />
Manaíra Lima e Loïc Cerf<br />
<br />
x = 1, 57080t + 1, 57080<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Manaíra Lima e Loïc Cerf<br />
<br />
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 21812 0, 34785<br />
− 0, 33998 1, 03676 0, 65215<br />
0, 33998 0, 65215<br />
0, 86114 0, 34785<br />
x = 1, 57080t + 1, 57080<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Manaíra Lima e Loïc Cerf<br />
<br />
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 21812 0, 34785<br />
− 0, 33998 1, 03676 0, 65215<br />
0, 33998 (1, 57080)(0, 33998) + 1, 57080 0, 65215<br />
0, 86114 0, 34785<br />
x = 1, 57080t + 1, 57080<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Manaíra Lima e Loïc Cerf<br />
<br />
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 21812 0, 34785<br />
− 0, 33998 1, 03676 0, 65215<br />
0, 33998 2, 10484 0, 65215<br />
0, 86114 0, 34785<br />
x = 1, 57080t + 1, 57080<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Manaíra Lima e Loïc Cerf<br />
<br />
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 21812 0, 34785<br />
− 0, 33998 1, 03676 0, 65215<br />
0, 33998 2, 10484 0, 65215<br />
0, 86114 (1, 57080)(0, 86114) + 1, 57080 0, 34785<br />
x = 1, 57080t + 1, 57080<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Manaíra Lima e Loïc Cerf<br />
<br />
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 21812 0, 34785<br />
− 0, 33998 1, 03676 0, 65215<br />
0, 33998 2, 10484 0, 65215<br />
0, 86114 2, 92347 0, 34785<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Manaíra Lima e Loïc Cerf<br />
<br />
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 21812 sen(3 × 0, 21812) 0, 34785<br />
− 0, 33998 1, 03676 0, 65215<br />
0, 33998 2, 10484 0, 65215<br />
0, 86114 2, 92347 0, 34785<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Manaíra Lima e Loïc Cerf<br />
<br />
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 21812 0, 60865 0, 34785<br />
− 0, 33998 1, 03676 0, 65215<br />
0, 33998 2, 10484 0, 65215<br />
0, 86114 2, 92347 0, 34785<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Manaíra Lima e Loïc Cerf<br />
<br />
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 21812 0, 60865 0, 34785<br />
− 0, 33998 1, 03676 sen(3 × 1, 03676) 0, 65215<br />
0, 33998 2, 10484 0, 65215<br />
0, 86114 2, 92347 0, 34785<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Manaíra Lima e Loïc Cerf<br />
<br />
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 21812 0, 60865 0, 34785<br />
− 0, 33998 1, 03676 0, 03131 0, 65215<br />
0, 33998 2, 10484 0, 65215<br />
0, 86114 2, 92347 0, 34785<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Manaíra Lima e Loïc Cerf<br />
<br />
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 21812 0, 60865 0, 34785<br />
− 0, 33998 1, 03676 0, 03131 0, 65215<br />
0, 33998 2, 10484 sen(3 × 2, 10484) 0, 65215<br />
0, 86114 2, 92347 0, 34785<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Manaíra Lima e Loïc Cerf<br />
<br />
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 21812 0, 60865 0, 34785<br />
− 0, 33998 1, 03676 0, 03131 0, 65215<br />
0, 33998 2, 10484 0, 03133 0, 65215<br />
0, 86114 2, 92347 0, 34785<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Manaíra Lima e Loïc Cerf<br />
<br />
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 21812 0, 60865 0, 34785<br />
− 0, 33998 1, 03676 0, 03131 0, 65215<br />
0, 33998 2, 10484 0, 03133 0, 65215<br />
0, 86114 2, 92347 sen(3 × 2, 92347) 0, 34785<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Manaíra Lima e Loïc Cerf<br />
<br />
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 21812 0, 60865 0, 34785<br />
− 0, 33998 1, 03676 0, 03131 0, 65215<br />
0, 33998 2, 10484 0, 03133 0, 65215<br />
0, 86114 2, 92347 0, 60866 0, 34785<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
I4 =<br />
Manaíra Lima e Loïc Cerf<br />
<br />
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 21812 0, 60865 0, 34785<br />
− 0, 33998 1, 03676 0, 03131 0, 65215<br />
0, 33998 2, 10484 0, 03133 0, 65215<br />
0, 86114 2, 92347 0, 60866 0, 34785<br />
π − 0<br />
2<br />
(0, 34785 × 0, 60865 + 0, 65215 × 0, 03131+<br />
0, 65215 × 0, 03133 + 0, 34785 × 0, 60866)<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Manaíra Lima e Loïc Cerf<br />
<br />
Exercício A.1<br />
t x f (x) A<br />
− 0, 86114 0, 21812 0, 60865 0, 34785<br />
− 0, 33998 1, 03676 0, 03131 0, 65215<br />
0, 33998 2, 10484 0, 03133 0, 65215<br />
0, 86114 2, 92347 0, 60866 0, 34785<br />
I4 = 0, 72931<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
3 / 11
Exercício<br />
Exercício A<br />
Calcular, usando 5 casas decimais,<br />
π<br />
0 sen 3x dx pela quadratura<br />
de <strong>Gauss</strong>-<strong>Legendre</strong>:<br />
1 usando 4 pontos;<br />
2 usando 5 pontos.<br />
3 Calcular os erros absolutos<br />
dos dois resultados.<br />
4 Comparar esses erros com as<br />
cota máximas calculadas a<br />
partir da fórmula do erro de<br />
integração.<br />
Manaíra Lima e Loïc Cerf<br />
<br />
Formulário<br />
n t A<br />
1 0 2<br />
2 ±0, 57735 1<br />
3 0 0, 88889<br />
±0, 77460 0, 55556<br />
4 ±0, 33998 0, 65215<br />
±0, 86114 0, 34785<br />
5 0 0, 56889<br />
± 0, 53847 0, 47863<br />
± 0, 90618 0, 23693<br />
6 ±0, 23862 0, 46791<br />
±0, 66121 0, 36076<br />
±0, 93247 0, 17132<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
4 / 11
Exercício<br />
Exercício A<br />
Calcular, usando 5 casas decimais,<br />
π<br />
0 sen 3x dx pela quadratura<br />
de <strong>Gauss</strong>-<strong>Legendre</strong>:<br />
1 usando 4 pontos;<br />
2 usando 5 pontos.<br />
3 Calcular os erros absolutos<br />
dos dois resultados.<br />
4 Comparar esses erros com as<br />
cota máximas calculadas a<br />
partir da fórmula do erro de<br />
integração.<br />
Manaíra Lima e Loïc Cerf<br />
<br />
Formulário<br />
n t A<br />
1 0 2<br />
2 ±0, 57735 1<br />
3 0 0, 88889<br />
±0, 77460 0, 55556<br />
4 ±0, 33998 0, 65215<br />
±0, 86114 0, 34785<br />
5 0 0, 56889<br />
± 0, 53847 0, 47863<br />
± 0, 90618 0, 23693<br />
6 ±0, 23862 0, 46791<br />
±0, 66121 0, 36076<br />
±0, 93247 0, 17132<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
4 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 23693<br />
− 0, 53847 0, 47863<br />
0, 00000 0, 56889<br />
0, 53847 0, 47863<br />
0, 90618 0, 23693<br />
1, 57080t + 1, 57080<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 (1, 57080)(−0, 90618) + 1, 57080 0, 23693<br />
− 0, 53847 0, 47863<br />
0, 00000 0, 56889<br />
0, 53847 0, 47863<br />
0, 90618 0, 23693<br />
Manaíra Lima e Loïc Cerf<br />
1, 57080t + 1, 57080<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 23693<br />
− 0, 53847 0, 47863<br />
0, 00000 0, 56889<br />
0, 53847 0, 47863<br />
0, 90618 0, 23693<br />
1, 57080t + 1, 57080<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 23693<br />
− 0, 53847 (1, 57080)(−0, 53847) + 1, 57080 0, 47863<br />
0, 00000 0, 56889<br />
0, 53847 0, 47863<br />
0, 90618 0, 23693<br />
Manaíra Lima e Loïc Cerf<br />
1, 57080t + 1, 57080<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 23693<br />
− 0, 53847 0, 72497 0, 47863<br />
0, 00000 0, 56889<br />
0, 53847 0, 47863<br />
0, 90618 0, 23693<br />
1, 57080t + 1, 57080<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 23693<br />
− 0, 53847 0, 72497 0, 47863<br />
0, 00000 (1, 57080)(0, 00000) + 1, 57080 0, 56889<br />
0, 53847 0, 47863<br />
0, 90618 0, 23693<br />
1, 57080t + 1, 57080<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 23693<br />
− 0, 53847 0, 72497 0, 47863<br />
0, 00000 1, 57080 0, 56889<br />
0, 53847 0, 47863<br />
0, 90618 0, 23693<br />
1, 57080t + 1, 57080<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 23693<br />
− 0, 53847 0, 72497 0, 47863<br />
0, 00000 1, 57080 0, 56889<br />
0, 53847 (1, 57080)(0, 53847) + 1, 57080 0, 47863<br />
0, 90618 0, 23693<br />
1, 57080t + 1, 57080<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 23693<br />
− 0, 53847 0, 72497 0, 47863<br />
0, 00000 1, 57080 0, 56889<br />
0, 53847 2, 41662 0, 47863<br />
0, 90618 0, 23693<br />
1, 57080t + 1, 57080<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 23693<br />
− 0, 53847 0, 72497 0, 47863<br />
0, 00000 1, 57080 0, 56889<br />
0, 53847 2, 41662 0, 47863<br />
0, 90618 (1, 57080)(0, 90618) + 1, 57080 0, 23693<br />
1, 57080t + 1, 57080<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 23693<br />
− 0, 53847 0, 72497 0, 47863<br />
0, 00000 1, 57080 0, 56889<br />
0, 53847 2, 41662 0, 47863<br />
0, 90618 2, 99422 0, 23693<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 sen(3 × 0, 14737) 0, 23693<br />
− 0, 53847 0, 72497 0, 47863<br />
0, 00000 1, 57080 0, 56889<br />
0, 53847 2, 41662 0, 47863<br />
0, 90618 2, 99422 0, 23693<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 42785 0, 23693<br />
− 0, 53847 0, 72497 0, 47863<br />
0, 00000 1, 57080 0, 56889<br />
0, 53847 2, 41662 0, 47863<br />
0, 90618 2, 99422 0, 23693<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 42785 0, 23693<br />
− 0, 53847 0, 72497 sen(3 × 0, 72497) 0, 47863<br />
0, 00000 1, 57080 0, 56889<br />
0, 53847 2, 41662 0, 47863<br />
0, 90618 2, 99422 0, 23693<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 42785 0, 23693<br />
− 0, 53847 0, 72497 0, 82301 0, 47863<br />
0, 00000 1, 57080 0, 56889<br />
0, 53847 2, 41662 0, 47863<br />
0, 90618 2, 99422 0, 23693<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 42785 0, 23693<br />
− 0, 53847 0, 72497 0, 82301 0, 47863<br />
0, 00000 1, 57080 sen(3 × 1, 57080) 0, 56889<br />
0, 53847 2, 41662 0, 47863<br />
0, 90618 2, 99422 0, 23693<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 42785 0, 23693<br />
− 0, 53847 0, 72497 0, 82301 0, 47863<br />
0, 00000 1, 57080 − 1, 00000 0, 56889<br />
0, 53847 2, 41662 0, 47863<br />
0, 90618 2, 99422 0, 23693<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 42785 0, 23693<br />
− 0, 53847 0, 72497 0, 82301 0, 47863<br />
0, 00000 1, 57080 − 1, 00000 0, 56889<br />
0, 53847 2, 41662 sen(3 × 2, 41662) 0, 47863<br />
0, 90618 2, 99422 0, 23693<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 42785 0, 23693<br />
− 0, 53847 0, 72497 0, 82301 0, 47863<br />
0, 00000 1, 57080 − 1, 00000 0, 56889<br />
0, 53847 2, 41662 0, 82300 0, 47863<br />
0, 90618 2, 99422 0, 23693<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 42785 0, 23693<br />
− 0, 53847 0, 72497 0, 82301 0, 47863<br />
0, 00000 1, 57080 − 1, 00000 0, 56889<br />
0, 53847 2, 41662 0, 82300 0, 47863<br />
0, 90618 2, 99422 sen(3 × 2, 99422) 0, 23693<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 42785 0, 23693<br />
− 0, 53847 0, 72497 0, 82301 0, 47863<br />
0, 00000 1, 57080 − 1, 00000 0, 56889<br />
0, 53847 2, 41662 0, 82300 0, 47863<br />
0, 90618 2, 99422 0, 42785 0, 23693<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
I5 =<br />
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 42785 0, 23693<br />
− 0, 53847 0, 72497 0, 82301 0, 47863<br />
0, 00000 1, 57080 − 1, 00000 0, 56889<br />
0, 53847 2, 41662 0, 82300 0, 47863<br />
0, 90618 2, 99422 0, 42785 0, 23693<br />
π − 0<br />
2<br />
(0, 23693 × 0, 42785 + 0, 47863 × 0, 82301+<br />
0, 56889 × −1, 00000 + 0, 47863 × 0, 82300+<br />
0, 23693 × 0, 42785)<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.2<br />
t x f (x) A<br />
− 0, 90618 0, 14737 0, 42785 0, 23693<br />
− 0, 53847 0, 72497 0, 82301 0, 47863<br />
0, 00000 1, 57080 − 1, 00000 0, 56889<br />
0, 53847 2, 41662 0, 82300 0, 47863<br />
0, 90618 2, 99422 0, 42785 0, 23693<br />
<br />
I5 = 0, 66237<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
5 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.3<br />
π<br />
0<br />
sen 3x dx<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
6 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.3<br />
π<br />
0 sen 3x dx = −<br />
<br />
<br />
cos 3x π<br />
3 0<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
6 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.3<br />
π<br />
0<br />
cos 3π cos 0<br />
sen 3x dx = (− 3 ) − (− 3 )<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
6 / 11
Manaíra Lima e Loïc Cerf<br />
Exercício A.3<br />
π<br />
0<br />
sen 3x dx ≈ 0, 66667<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
6 / 11
Exercício A.3<br />
π<br />
0<br />
sen 3x dx ≈ 0, 66667<br />
O erro cometido usando 4 pontos é |0, 72931 − 0, 66667|.<br />
Manaíra Lima e Loïc Cerf<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
6 / 11
Exercício A.3<br />
π<br />
0<br />
sen 3x dx ≈ 0, 66667<br />
O erro cometido usando 4 pontos é 0, 06264.<br />
Manaíra Lima e Loïc Cerf<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
6 / 11
Exercício A.3<br />
π<br />
0<br />
sen 3x dx ≈ 0, 66667<br />
O erro cometido usando 4 pontos é 0, 06264.<br />
O erro cometido usando 5 pontos é |0, 66237 − 0, 66667|.<br />
Manaíra Lima e Loïc Cerf<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
6 / 11
Exercício A.3<br />
π<br />
0<br />
sen 3x dx ≈ 0, 66667<br />
O erro cometido usando 4 pontos é 0, 06264.<br />
O erro cometido usando 5 pontos é 0, 00430.<br />
Manaíra Lima e Loïc Cerf<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
6 / 11
Exercício A.3<br />
π<br />
0<br />
sen 3x dx ≈ 0, 66667<br />
O erro cometido usando 4 pontos é 0, 06264.<br />
O erro cometido usando 5 pontos é 0, 00430.<br />
Mais avaliações da função permitem, como esperado, a sua<br />
integração com uma maior exatidão.<br />
Manaíra Lima e Loïc Cerf<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
6 / 11
Exercício A.4<br />
E4 = (b − a)9 (4!) 4<br />
(8!) 3 f<br />
(9)<br />
(8) (θ), com θ ∈]a; b[<br />
Manaíra Lima e Loïc Cerf<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
7 / 11
Exercício A.4<br />
E4 = (b − a)9 (4!) 4<br />
(8!) 3 f<br />
(9)<br />
(8) (θ), com θ ∈]a; b[<br />
f (θ) = sen3θ ⇒ f (8) (θ) = 6561sen(3θ)<br />
Manaíra Lima e Loïc Cerf<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
7 / 11
Exercício A.4<br />
E4 = (π − 0)9 (4!) 4<br />
(8!) 3 6561sen(3θ), com θ ∈]0; π[<br />
(9)<br />
f (θ) = sen3θ ⇒ f (8) (θ) = 6561sen(3θ)<br />
Manaíra Lima e Loïc Cerf<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
7 / 11
Exercício A.4<br />
E4 = 0, 10999sen(3θ), com θ ∈]0; π[<br />
A cota máxima do erro de integração é sup θ∈]0;π[ |E4|.<br />
Manaíra Lima e Loïc Cerf<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
7 / 11
Exercício A.4<br />
E4 = 0, 10999sen(3θ), com θ ∈]0; π[<br />
A cota máxima do erro de integração é sup θ∈]0;π[ |0, 10999sen(3θ)|.<br />
Manaíra Lima e Loïc Cerf<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
7 / 11
Exercício A.4<br />
E4 = 0, 10999sen(3θ), com θ ∈]0; π[<br />
A cota máxima do erro de integração é 0, 10999.<br />
Manaíra Lima e Loïc Cerf<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
7 / 11
Exercício A.4<br />
E4 = 0, 10999sen(3θ), com θ ∈]0; π[<br />
A cota máxima do erro de integração é 0, 10999 ><br />
0, 06264 como esperado.<br />
Manaíra Lima e Loïc Cerf<br />
<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
7 / 11
Exercício A.4<br />
E5 = (b − a)11 (5!) 4<br />
(10!) 3 f<br />
(11)<br />
(10) (θ), com θ ∈]a; b[<br />
Manaíra Lima e Loïc Cerf<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
<br />
8 / 11
Exercício A.4<br />
E5 = (b − a)11 (5!) 4<br />
(10!) 3 f<br />
(11)<br />
(10) (θ), com θ ∈]a; b[<br />
f (θ) = sen3θ ⇒ f (10) (θ) = − 59049sen(3θ)<br />
Manaíra Lima e Loïc Cerf<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
<br />
8 / 11
Exercício A.4<br />
E5 = − (π − 0)11 (5!) 4<br />
(10!) 3 59049sen(3θ), com θ ∈]0; π[<br />
(11)<br />
f (θ) = sen3θ ⇒ f (10) (θ) = − 59049sen(3θ)<br />
Manaíra Lima e Loïc Cerf<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
<br />
8 / 11
Exercício A.4<br />
E5 = − 0, 00685sen(3θ), com θ ∈]0; π[<br />
A cota máxima do erro de integração é sup θ∈]0;π[ |E5|.<br />
Manaíra Lima e Loïc Cerf<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
<br />
8 / 11
Exercício A.4<br />
E5 = − 0, 00685sen(3θ), com θ ∈]0; π[<br />
A cota máxima do erro de integração é sup θ∈]0;π[ | −<br />
0, 00685sen(3θ)|.<br />
Manaíra Lima e Loïc Cerf<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
<br />
8 / 11
Exercício A.4<br />
E5 = − 0, 00685sen(3θ), com θ ∈]0; π[<br />
A cota máxima do erro de integração é 0, 00685.<br />
Manaíra Lima e Loïc Cerf<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
<br />
8 / 11
Exercício A.4<br />
E5 = − 0, 00685sen(3θ), com θ ∈]0; π[<br />
A cota máxima do erro de integração é 0, 00685 ><br />
0, 00430 como esperado.<br />
Manaíra Lima e Loïc Cerf<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
<br />
8 / 11
Exercício<br />
Exercício B<br />
Calcular,<br />
<br />
com 4 casas decimais,<br />
4,5<br />
0,5 sen <br />
1<br />
x cos(x) dx usando a<br />
quadratura de <strong>Gauss</strong>-<strong>Legendre</strong> e<br />
4 pontos.<br />
Formulário<br />
x = b−a<br />
2<br />
In = b−a<br />
2<br />
Manaíra Lima e Loïc Cerf<br />
t + a+b<br />
2<br />
n i=1 Aif (xi)<br />
Formulário<br />
n t A<br />
1 0 2<br />
2 ±0, 57735 1<br />
3 0 0, 88889<br />
±0, 77460 0, 55556<br />
4 ±0, 33998 0, 65215<br />
±0, 86114 0, 34785<br />
5 0 0, 56889<br />
±0, 53847 0, 47863<br />
±0, 90618 0, 23693<br />
6 ±0, 23862 0, 46791<br />
±0, 66121 0, 36076<br />
±0, 93247 0, 17132<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
<br />
9 / 11
Exercício C<br />
Exercício para entregar<br />
Pela quadratura de <strong>Gauss</strong>-<br />
<strong>Legendre</strong>, calcular, usando 3<br />
pontos e 4 casas decimais, a<br />
integral seguinte:<br />
2 <br />
3<br />
1 − x 2 dx<br />
0<br />
Formulário<br />
x = b−a<br />
2<br />
In = b−a<br />
2<br />
Manaíra Lima e Loïc Cerf<br />
t + a+b<br />
2<br />
n i=1 Aif (xi)<br />
Formulário<br />
n t A<br />
1 0 2<br />
2 ±0, 57735 1<br />
3 0 0, 88889<br />
±0, 77460 0, 55556<br />
4 ±0, 33998 0, 65215<br />
±0, 86114 0, 34785<br />
5 0 0, 56889<br />
±0, 53847 0, 47863<br />
±0, 90618 0, 23693<br />
6 ±0, 23862 0, 46791<br />
±0, 66121 0, 36076<br />
±0, 93247 0, 17132<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
<br />
10 / 11
License<br />
c○2013 Manaíra Lima e Loïc Cerf<br />
These slides are licensed under the Creative Commons<br />
Attribution-ShareAlike 3.0 Unported License.<br />
Manaíra Lima e Loïc Cerf<br />
<strong>Integração</strong> <strong>Numérica</strong> <strong>via</strong> <strong>Gauss</strong>-<strong>Legendre</strong><br />
11 / 11