Splines 2
Splines 2
Splines 2
Sn= 1
S1
S0
X0 Xn
S n=1
S1
.
S0 Sj
S j+1
hj hj+1
X1 Xj Xj+1 Xj+2 Xn Xn
X0
Consideremos
Sj (x) a j b j (x x j ) c j (x x j )2 d j (x x j )3 , j 0, n 1 (1)
Según a) S j (x j ) a j y j a j y j
Aplicando b)
Definamos h j x j1 x j
a j1 a j b jh j c jh 2j d jh 3j (2)
De (1)
S'j (x) b j 2c j (x x j ) 3d j (x x j )2
S'j (x j ) b j
Según c)
b j1 b j 2c jh j 3d jh 2j (3)
De (1)
S''j (x) 2c j (x x j ) 6d j (x x j )
S''j (x j ) 2c j
Aplicando d)
c j1 c j
dj (4)
3h j
hj
a j1 a j b jh j (2c j c j1 ) (5)
3
De (5)
1 hj
bj (a j1 a j ) (2c j c j1 ) (7)
hj 3
De (7)
1 h j1
b j1 (a j a j1 ) (2c j1 c j ) (8)
h j1 3
De (6)
3 3
h j1c j1 2(h j1 h j )c j h jc j1 (a j1 a j ) (a j a j1 ) j 1, n 1 (10)
hj h j 1
FRONTERA LIBRE
2c n S(x n ) 0 cn=0
1 0 0 0
h 2(h 0 h1 ) h1 0 0
0
0 h1 2(h1 h 2 ) h1 0
A0 0
0
0 hn2 2(h n 2 h n 1 ) h n 1
0 0 0 0 1
0
3 3
(a 2 a1 ) (a 1 a 0 )
h1 h0
B
3 3
(a n a n 1 ) (a n 1 a n 2 )
h n 1 hn2
0
c0 0
c
1
X
c n 1
c n 0
FRONTERA SUJETA
m 0 S(x 0 ) b 0
a1 a 0 h 0
m0 b0 (2c0 c1 )
h0 3
3
2h 0 c0 h 0c1 (a1 a 0 ) 3m0 (11)
h0
Similarmente,
m1 S(x n ) b n (++)
b n b n 1 h n 1 (c n 1 c n ) (+++)
y de (7) se tiene
1 h
bn 1 (a n a n 1 ) n 1 (2cn 1 cn ) (++++)
h n 1 3
3
h n 1cn 1 2h n 1cn 3m1 (a n a n 1 ) (12)
h n 1
2h 0 0 0 0
h 2(h 0 h1 ) h1 0 0
0
0 h1 2(h1 h 2 ) h1 0
A 0 0
0
0 hn2 2(h n 2 h n 1 ) h n 1
0 0 0 0 2h n 1
3
(a1 a 0 ) 3m 0
h0
3 3
(a 2 a1 ) (a 1 a 0 )
h1 h0
B
3 (a a ) 3 (a a )
h n 1 n n 1
hn2
n 1 n2
3
3 m 1 (a n a n 1 )
h n 1
c0
c
1
X
c n 1
c n
ERROR
5h 4
max f (x) S(x)
x[a,b]
max f ( 4) (x)
384 [a,b]
x
donde h max x j1 x j
0 j n 1