Escolar Documentos
Profissional Documentos
Cultura Documentos
é mínimo.
∂J
= 0, ∀j = 1, . . . , n.
∂αj
Pela regra da cadeia, a derivada parcial é
Z b
∂J
=2 α1 g1 (x) + . . . + αn gn (x) − f (x) gj (x)dx.
∂αj a
ou ainda,
Z b Z b Z b
α1 g1 (x)gj (x)dx+. . .+ αn gn (x)gj (x)dx = f (x)gj (x)dx,
a a a
para todo j = 1, . . . , n.
Equações Normais
Z b
aij = gi , gj = gi (x)gj (x)dx,
a
e Z b
bi = hf , gi i = f (x)gi (x),
a
para todo i, j = 1, . . . , n.
Exemplo 2
Encontre a reta que melhor aproxima f (x) = 4x 3 em [0, 1].
Exemplo 2
Encontre a reta que melhor aproxima f (x) = 4x 3 em [0, 1].
1 3 1 1
Z b
2
a11 = hg1 , g1 i = x dx = x = ,
a 3 0 3
1 2 1 1
Z b
a12 = hg1 , g2 i = xdx = x = = a21 ,
a 2 0 2
Z b
a22 = hg2 , g2 i = 1dx = x|10 = 1.
a
Exemplo 2
Encontre a reta que melhor aproxima f (x) = 4x 3 em [0, 1].
Além disso,
b
4 5 1 4
Z
4
b1 = hf , g1 i = 4x dx = x = ,
a 5 0 5
4 4 1
Z b
3
b2 = hf , g2 i = 4x dx = x = 1.
a 4 0
cuja solução é
T
α∗ =
18
5 − 45 .
Exemplo 2
Encontre a reta que melhor aproxima f (x) = 4x 3 em [0, 1].
2
y
-1
0 0.2 0.4 0.6 0.8 1
x
Funções Ortogonais
O sistema das equações normais
Aα = b,
pode ser facilmente resolvido se as funções base g1 , . . . , gn
forem ortogonais, ou seja,
gi , gj = 0 ⇐⇒ i 6= j.
Exemplo 3
Os polinômios de Legendre, definidos por
1
P0 (x) = 1, P1 (x) = x, P2 (x) = (3x 2 − 1),
2
e, de um modo geral,
2k + 1 k
Pk +1 (x) = xPk (x)− Pk −1 (x), ∀k = 1, 2, . . . ,
k +1 k +1
Aα = b,