Você está na página 1de 29

Universidade do Extremo Sul Catarinense – UNESC

Engenharia
Disciplina: Cálculo Numérico

Aula 14

Professor: Lucas Sid


Na realização de um experimento foram coletados os valores da
variação de duas grandezas. Esses valores foram expresso na
seguinte tabela:

𝑥 𝑦
1 7
2 5
5 1
8 2

A partir dos dados coletados, qual é a lei da função que mais se


aproxima desses valores?

Função polinomial do segundo grau (𝑦 = 𝑎𝑥 2 + 𝑏𝑥 + 𝑐).


O erro entre o valor coletado ( 𝑦𝑖 ) e o valor da função
aproximada g(𝑥𝑖 ) tem que ser o menor possível.

Erro = 𝑦𝑖 − g(𝑥𝑖 )

Menor valor possível remete ao valor mínimo.

Valor mínimo implica na derivada primeira igual a zero.

Determinar g(𝑥𝑖 ) com o menor erro.


𝑛
Erro = 𝑖=1 𝑦𝑖 − g(𝑥𝑖 )

Determinar g(𝑥𝑖 ) com o menor erro significa usar a derivada.

𝑛 2
𝑖=1 𝑦𝑖 − g(𝑥𝑖 )

g(𝑥𝑖 ) será uma função polinomial do segundo grau: 𝑎𝑥 2 + 𝑏𝑥 + 𝑐

Derivada parcial igual a zero.

𝑛
𝑖=1 𝑦 − a𝑥 2 − 𝑏𝑥 − 𝑐 2
=0
𝑛
𝑖=1 𝑦 − a𝑥 2 − 𝑏𝑥 − 𝑐 2

𝜕 𝜕 𝜕
=0 =0 =0 erro mínimo.
𝜕𝑎 𝜕𝑏 𝜕𝑐

𝜕 𝜕
= 𝑦 − a𝑥 2 − 𝑏𝑥 − 𝑐 2
𝜕𝑎 𝜕𝑎

𝜕
=2∙ 𝑦 − a𝑥 2 − 𝑏𝑥 − 𝑐 ∙ −𝑥 2 = 0
𝜕𝑎

2 4 3 2 0
− 𝑥 ∙𝑦+𝑎 𝑥 +𝑏 𝑥 +𝑐 𝑥 =
2

𝑎 𝑥4 + 𝑏 𝑥3 + 𝑐 𝑥2 = 𝑥2 ∙ 𝑦
𝜕 𝜕
= 𝑦 − a𝑥 2 − 𝑏𝑥 − 𝑐 2
𝜕𝑏 𝜕𝑏

𝜕
=2∙ 𝑦 − a𝑥 2 − 𝑏𝑥 − 𝑐 ∙ −𝑥 = 0
𝜕𝑏

0
− 𝑥∙𝑦+𝑎 𝑥3 + 𝑏 𝑥2 + 𝑐 𝑥=
2

𝑎 𝑥3 + 𝑏 𝑥2 + 𝑐 𝑥= 𝑥∙𝑦
𝜕 𝜕
= 𝑦 − a𝑥 2 − 𝑏𝑥 − 𝑐 2
𝜕𝑐 𝜕𝑐

𝜕
=2∙ 𝑦 − a𝑥 2 − 𝑏𝑥 − 𝑐 ∙ −1 = 0
𝜕𝑐

0
− 𝑦+𝑎 𝑥2 + 𝑏 𝑥+𝑐 =
2

𝑎 𝑥2 + 𝑏 𝑥+𝑛∙𝑐 = 𝑦
A determinação dos valores de 𝑎, 𝑏 e 𝑐 é obtida por:

𝑎 𝑥2 + 𝑏 𝑥 + 𝑛 ∙ 𝑐 = 𝑦
𝑎 𝑥3 + 𝑏 𝑥2 + 𝑐 𝑥 = 𝑥 ∙ 𝑦
𝑎 𝑥4 + 𝑏 𝑥3 + 𝑐 𝑥2 = 𝑥2 ∙ 𝑦

𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥4

𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥4
A determinação dos valores de 𝑎, 𝑏 e 𝑐 é obtida por:

𝑎 𝑥2 + 𝑏 𝑥 + 𝑛 ∙ 𝑐 = 𝑦
𝑎 𝑥3 + 𝑏 𝑥2 + 𝑐 𝑥 = 𝑥 ∙ 𝑦
𝑎 𝑥4 + 𝑏 𝑥3 + 𝑐 𝑥2 = 𝑥2 ∙ 𝑦

𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥4
1 7 7 1 7 1 1
2 5 10 4 20 8 16
5 1 5 25 25 125 625
8 2 16 64 128 512 4096
16 15 38 94 180 646 4738
𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥4
𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥4
1 7 7 1 7 1 1
2 5 10 4 20 8 16
5 1 5 25 25 125 625
8 2 16 64 128 512 4096
16 15 38 94 180 646 4738
𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥4

𝑎 𝑥2 + 𝑏 𝑥 + 𝑛 ∙ 𝑐 = 𝑦
𝑎 𝑥3 + 𝑏 𝑥2 + 𝑐 𝑥 = 𝑥 ∙ 𝑦
𝑎 𝑥4 + 𝑏 𝑥3 + 𝑐 𝑥2 = 𝑥2 ∙ 𝑦

94𝑎 + 16𝑏 + 4 ∙ 𝑐 = 15
646𝑎 + 94𝑏 + 16𝑐 = 38
4738𝑎 + 646𝑏 + 94𝑐 = 180
94𝑎 + 16𝑏 + 4 ∙ 𝑐 = 15 𝑥 𝑦
646𝑎 + 94𝑏 + 16𝑐 = 38
1 7
4738𝑎 + 646𝑏 + 94𝑐 = 180
2 5
17 −1007 1634 5 1
𝑎= 𝑏= 𝑐=
66 330 165
8 2

17 2 1007 1634
𝑦= 𝑥 − 𝑥 +
66 330 35
A partir dos dados expressos na tabela abaixo, obtenha a lei da
função com a maior aproximação para os pontos obtidos.

𝑥 𝑦
2 1
3 4
6 7
10 2
A determinação dos valores de 𝑎, 𝑏 e 𝑐 é obtida por:

𝑎 𝑥2 + 𝑏 𝑥 + 𝑛 ∙ 𝑐 = 𝑦
𝑎 𝑥3 + 𝑏 𝑥2 + 𝑐 𝑥 = 𝑥 ∙ 𝑦
𝑎 𝑥4 + 𝑏 𝑥3 + 𝑐 𝑥2 = 𝑥2 ∙ 𝑦

𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥4

𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥4
A determinação dos valores de 𝑎, 𝑏 e 𝑐 é obtida por:

𝑎 𝑥2 + 𝑏 𝑥 + 𝑛 ∙ 𝑐 = 𝑦
𝑎 𝑥3 + 𝑏 𝑥2 + 𝑐 𝑥 = 𝑥 ∙ 𝑦
𝑎 𝑥4 + 𝑏 𝑥3 + 𝑐 𝑥2 = 𝑥2 ∙ 𝑦

𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥4
2 1 2 4 4 8 16
3 4 12 9 36 27 81
6 7 42 36 252 216 1296
10 2 20 100 200 1000 10000
21 14 76 149 492 1251 11393
𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥4
𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥4
2 1 2 4 4 8 16
3 4 12 9 36 27 81
6 7 42 36 252 216 1296
10 2 20 100 200 1000 10000
21 14 76 149 492 1251 11393
𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥4

𝑎 𝑥2 + 𝑏 𝑥 + 𝑛 ∙ 𝑐 = 𝑦
𝑎 𝑥3 + 𝑏 𝑥2 + 𝑐 𝑥 = 𝑥 ∙ 𝑦
𝑎 𝑥4 + 𝑏 𝑥3 + 𝑐 𝑥2 = 𝑥2 ∙ 𝑦

149𝑎 + 21𝑏 + 4 ∙ 𝑐 = 14
1251𝑎 + 149𝑏 + 21𝑐 = 76
11393𝑎 + 1251𝑏 + 149𝑐 = 492
149𝑎 + 21𝑏 + 4 ∙ 𝑐 = 14 𝑥 𝑦
1251𝑎 + 149𝑏 + 21𝑐 = 76
2 1
11393𝑎 + 1251𝑏 + 149𝑐 = 492
3 4
−463 5687 −3967 6 7
𝑎= 𝑏= 𝑐=
1336 1336 668
10 2

−463 2 5687 3967


𝑦= 𝑥 + 𝑥 −
1336 1336 668
A partir dos dados expressos na tabela abaixo, obtenha a lei da
função com a maior aproximação para os pontos obtidos.

𝑥 𝑦
−1 −7
0 −1
2 3
4 −2
A determinação dos valores de 𝑎, 𝑏 e 𝑐 é obtida por:

𝑎 𝑥2 + 𝑏 𝑥 + 𝑛 ∙ 𝑐 = 𝑦
𝑎 𝑥3 + 𝑏 𝑥2 + 𝑐 𝑥 = 𝑥 ∙ 𝑦
𝑎 𝑥4 + 𝑏 𝑥3 + 𝑐 𝑥2 = 𝑥2 ∙ 𝑦

𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥4
−1 −7 7 1 −7 −1 1
0 −1 0 0 0 0 0
2 3 6 4 12 8 16
4 −2 −8 16 −32 64 256
5 −7 5 21 −27 71 273
𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥4
𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥4
−1 −7 7 1 −7 −1 1
0 −1 0 0 0 0 0
2 3 6 4 12 8 16
4 −2 −8 16 −32 64 256
5 −7 5 21 −27 71 273
𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥4

𝑎 𝑥2 + 𝑏 𝑥 + 𝑛 ∙ 𝑐 = 𝑦
𝑎 𝑥3 + 𝑏 𝑥2 + 𝑐 𝑥 = 𝑥 ∙ 𝑦
𝑎 𝑥4 + 𝑏 𝑥3 + 𝑐 𝑥2 = 𝑥2 ∙ 𝑦

21𝑎 + 5𝑏 + 4 ∙ 𝑐 = −7
71𝑎 + 21𝑏 + 5𝑐 = 5
273𝑎 + 71𝑏 + 21𝑐 = −27
21𝑎 + 5𝑏 + 4 ∙ 𝑐 = −7
71𝑎 + 21𝑏 + 5𝑐 = 5
273𝑎 + 71𝑏 + 21𝑐 = −27

−943 3603 −473


𝑎= 𝑏= 𝑐=
796 796 398

−943 2 3603 473


𝑦= 𝑥 + 𝑥 −
796 796 398
Represente os pontos da seguinte tabela em uma gráfico.

𝑥 𝑦
1 2
2 5
3 −2
4 3

Qual função represente os pontos no gráfico?


Função polinomial do terceiro grau.
𝑦 = 𝑎𝑥 3 + 𝑏𝑥 2 + 𝑐𝑥 + 𝑑
𝑥 𝑦
1 2
2 5
3 −2
4 3

𝑎 𝑥 3 + 𝑏 𝑥 2 + 𝑐 𝑥1 + 𝑑 ∙ 𝑛 = 𝑦
𝑎 𝑥 4 + 𝑏 𝑥 3 + 𝑐 𝑥 2 + 𝑑 𝑥 1 = 𝑥𝑦
𝑎 𝑥5 + 𝑏 𝑥4 + 𝑐 𝑥3 + 𝑑 𝑥2 = 𝑥2𝑦
𝑎 𝑥6 + 𝑏 𝑥5 + 𝑐 𝑥4 + 𝑑 𝑥3 = 𝑥3𝑦

Obtenha a lei da função com a maior aproximação para os


pontos obtidos.
𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥3 ∙ 𝑦 𝑥4 𝑥5 𝑥6
1 2
2 5
3 −2
4 3

𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥3 ∙ 𝑦 𝑥4 𝑥5 𝑥6

𝑥 3 + 𝑏 𝑥 2 + 𝑐 𝑥1 + 𝑑 ∙ 𝑛 = 𝑦
𝑎
𝑎 𝑥 4 + 𝑏 𝑥 3 + 𝑐 𝑥 2 + 𝑑 𝑥 1 = 𝑥𝑦
𝑎 𝑥5 + 𝑏 𝑥4 + 𝑐 𝑥3 + 𝑑 𝑥2 = 𝑥2𝑦
𝑎 𝑥6 + 𝑏 𝑥5 + 𝑐 𝑥4 + 𝑑 𝑥3 = 𝑥3𝑦
𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥3 ∙ 𝑦 𝑥4 𝑥5 𝑥6
1 2 2 1 2 1 2 1 1 1
2 5 10 4 20 8 40 16 32 64
3 −2 −6 9 −18 27 −54 81 243 729
4 3 12 16 48 64 192 256 104 4096
10 8 18 30 52 100 180 354 1300 4890
𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥3 ∙ 𝑦 𝑥4 𝑥5 𝑥6

𝑥 3 + 𝑏 𝑥 2 + 𝑐 𝑥1 + 𝑑 ∙ 𝑛 = 𝑦
𝑎
𝑎 𝑥 4 + 𝑏 𝑥 3 + 𝑐 𝑥 2 + 𝑑 𝑥 1 = 𝑥𝑦
𝑎 𝑥5 + 𝑏 𝑥4 + 𝑐 𝑥3 + 𝑑 𝑥2 = 𝑥2𝑦
𝑎 𝑥6 + 𝑏 𝑥5 + 𝑐 𝑥4 + 𝑑 𝑥3 = 𝑥3𝑦
𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥3 ∙ 𝑦 𝑥4 𝑥5 𝑥6
1 2 2 1 2 1 2 1 1 1
2 5 10 4 20 8 40 16 32 64
3 −2 −6 9 −18 27 −54 81 243 729
4 3 12 16 48 64 192 256 104 4096
10 8 18 30 52 100 180 354 1300 4890
𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥3 ∙ 𝑦 𝑥4 𝑥5 𝑥6

100𝑎 + 30𝑏 + 10𝑐 + 4 ∙ 𝑑 = 8


354𝑎 + 100𝑏 + 30𝑐 + 10𝑑 = 18
1300𝑎 + 354𝑏 + 100𝑐 + 30𝑑 = 52
4890𝑎 + 1300𝑏 + 354𝑐 + 100𝑑 = 180
100𝑎 + 30𝑏 + 10𝑐 + 4 ∙ 𝑑 = 8
354𝑎 + 100𝑏 + 30𝑐 + 10𝑑 = 18
1300𝑎 + 354𝑏 + 100𝑐 + 30𝑑 = 52
4890𝑎 + 1300𝑏 + 354𝑐 + 100𝑑 = 180

11 175
𝑎= 𝑏 = −27 𝑐 = 𝑑 = −33
3 3

11 3 175
𝑦= 𝑥 − 27𝑥 2 + 𝑥 − 33
3 3
A partir dos dados expressos na tabela abaixo, obtenha a lei da
função com a maior aproximação para os pontos obtidos.

𝑥 𝑦
−2 −6
0 3
2 −4
4 1
𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥3 ∙ 𝑦 𝑥4 𝑥5 𝑥6
−2 −6 12 4 −24 −8 48 16 −32 64
0 3 0 0 0 0 0 0 0 0
2 −4 −8 4 −16 8 −32 16 32 64
4 1 4 16 16 64 64 256 1024 4096
4 −6 8 24 −24 64 80 288 1024 4224
𝑥 𝑦 𝑥∙𝑦 𝑥2 𝑥2 ∙ 𝑦 𝑥3 𝑥3 ∙ 𝑦 𝑥4 𝑥5 𝑥6

64𝑎 + 24𝑏 + 4𝑐 + 4 ∙ 𝑑 = −6
288𝑎 + 64𝑏 + 24𝑐 + 4𝑑 = 8
1024𝑎 + 288𝑏 + 64𝑐 + 24𝑑 = −24
4224𝑎 + 1024𝑏 + 288𝑐 + 64𝑑 = 80
64𝑎 + 24𝑏 + 4𝑐 + 4 ∙ 𝑑 = −6
288𝑎 + 64𝑏 + 24𝑐 + 4𝑑 = 8
1024𝑎 + 288𝑏 + 64𝑐 + 24𝑑 = −24
4224𝑎 + 1024𝑏 + 288𝑐 + 64𝑑 = 80

7 −11
𝑎= 𝑏 = −2 𝑐 = 𝑑=3
12 6

7 3 11
𝑦= 𝑥 − 2𝑥 2 − 𝑥 +3
12 6

Você também pode gostar