Академический Документы
Профессиональный Документы
Культура Документы
Chebyshev polynomials
!1
Chebyshev polynomials
are defined by a three-term recursion
T0
!1
T1
T1
LS approximation
interpolation
minimax approximation
T2
T2
Basic facts
degTn = n
T3
T0 (x) = 1, Tn (x) = 2
T4
T3
k =0
T4
un!1 = cn!1 + 2xun ,
"1
! n
max Tn (x) = 1
2i ! 1
" ) (i = 1, 2,, n)
2n
k
Tn ( x! k ) = 1 at x! k = cos( ! ) (k = 0,1, 2,, n)
n
1
!1
2 !1 2
1 " x2
c0 = 0, c2 = 0, c1 =
!1" x"1
" (1 ! x
%'0
T j (x)Tk (x) dx = &$ 2
'($
j#k
j=k#0
j=k=0
T0 (x) = 1, T1 (x) = x,
( f ,T1 )
1
x " sin(! x 2)
=
$ 1 # x 2 dx = 2J1(! 2) % 1.1336
(T1,T1 ) ! 2 #1
0.15
Chebyshev nodes
f (x) ! c1T1 (x)
extrema
0
orthogonality
!0.15
!1
Numerical Analysis 2, lecture 5, slide! 3
1
Numerical Analysis 2, lecture 5, slide! 4
>>
>>
>>
>>
>>
>>
>>
1
! P( x)
=
f ( x)
( x ! x0 )( x ! x1 )!( x ! xn ) f (n+1) (" )
(n + 1)!
!1" x"1
1
max (x ! x0 )(x ! x1 )!(x ! xn ) max f (n+1) (x)
!1" x"1
(n + 1)! !1" x"1
" 2 j +1 %
x j = cos $
!
# 2n + 2 '&
)1* x*1
2 )n
max f (n+1) (x)
(n + 1)! )1* x*1
f = @(x) 1./(1+25*x.^2);
n = 11;
xe = linspace(-1,1,n);
xc = cos((2*(1:n)-1)*pi/2/n);
t = -1:.01:1;
plot(t,f(t),'b',t,neville(xe,f(xe),t),'r',xe,f(xe),o)
plot(t,f(t),'b',t,neville(xc,f(xc),t),'r',xc,f(xc),o)
!1" x"1
!1" x"1
0
!1
Chebyshev-node interpolant
can be computed using Clenshaws formula
orthogonality
%'0
2i ! 1
If xi = cos(
" ) (i = 1, 2,, n + 1), then # T j ( xi ) Tk ( xi ) = &(n + 1) 2
2n + 2
i=1
('n + 1
zeros of Tn+1
n+1
n+1
i=1
is p(x) =
m
1 n+1
2 * n+1
f (xi ) + #
#
# Tk (xi ) f (xi )/.Tk (x).
n + 1 i=1
n + 1 ,+ i=1
k
=1
!#
#"##
$
!###"###$
c0
m=n
interpolation
ck
0.15
example
2 3
sin( 3 ! 4)x " 1.129x
3
function u = chebpolval(c,x)
n = length(c);
u = c(n)*ones(size(x));
if n > 1
ujp1 = u;
u = c(n-1) + 2*x*c(n);
for j = n-2:-1:1
ujp2 = ujp1;
ujp1 = u;
u = c(j) + 2*x.*ujp1 - ujp2;
end
u = u - x.*ujp1;
end
j$k
j=k$0
j=k=0
# ( p(xi ) ! f (xi ))
interpolates sin(! x 2) at 3 2, 0 .
!0.15
!1
>>
>>
>>
>>
f = @(x) 1./(1+25*x.^2);
0
[c,x] = chebpolfit(f,11);
!1
t = -1:.01:1;
plot(t,f(t),'b',t,chebpolval(c,t),'r',x,f(x),'ok')
minimax approximation
Find a polynomial p of degree ! n that minimizes max p(x) " f (x)
a! x!b
Weierstrasss theorem
min
max p(x) " f (x) # 0 for any continuous f
!####"####$
En ( f )
2 -1/2
!1" x"1
+ log n) $ E ( f )
# c jT j (x) < (4
!#"#$ n
j =0
n=20
%
% 2 j +1 ((
1 n
max f (x) ! # c j T j (x) < ' 1 +
# tan &' 4(n + 1) $ )* * + En ( f )
!1" x"1
n
+
1
&
)
j =0
j =0
!#####"#####$
n
!4
-nT
almost minimax :
0! x!1
!7
Chebyshev-node interpolation
n=20
!c0 = d
sin("# 2) ! c0 ! c1# = !d
1 ! c0 ! c1 = d
"
2
cos("# 2) ! c1 = 0
$
&
&
&
%
&
&
&'
c1 = 1
! = 0.5607
c0 = 0.1053
d = "0.1053
Numerical Analysis 2, lecture 5, slide! 10