logo

Second Kind Chebyshev Polynomials 📂Numerical Analysis

Second Kind Chebyshev Polynomials

Definition

Un(x):=1n+1Tn+1(x)=sin((n+1)θ)sinθU_{n} (x) := {{1} \over {n+1} } T_{n+1} ’ (x) = {{\sin \left( ( n +1 ) \theta \right)} \over { \sin \theta }} is called the second kind Chebyshev polynomial.

Basic Properties

Recursive Formula

  • [0]: Un+1(x)=2xUn(x)Un1(X)U_{n+1} (x) = 2x U_{n} (x) - U_{n-1} (X)

Orthogonal Set

  • [1] Inner product of functions: Given the weight ww for <f,g>:=abf(x)g(x)w(x)dx\displaystyle \left<f, g\right>:=\int_a^b f(x) g(x) w(x) dx as w(x):=1x2\displaystyle w(x) := \sqrt{1 - x^2}, then {U0,U1,U2,}\left\{ U_{0} , U_{1}, U_{2}, \cdots \right\} forms an orthogonal set.

Chebyshev Nodes

  • [2]: The roots of Un(X)\displaystyle U_{n} (X) are as follows for k=1,,nk=1, \cdots , n. xk=cos(kn+1π)x_{k} = \cos \left( {{k} \over {n+1}} \pi \right)

Even and Odd Functions

  • [3]: Un(x)=(1)nUn(x)U_{n} (-x) = (-1)^{n} U_{n} (x)

  • Normally, for 0θπ0 \le \theta \le \pi, it is assumed that θ:=cos1x\theta := \cos^{-1} x .

See Also

Explanation

The second kind Chebyshev polynomial for n=0,,3n = 0, \cdots , 3 is represented as follows.

U0(x)=1U1(x)=2xU2(x)=4x21U3(x)=8x34x \begin{align*} U_{0} (x) =& 1 \\ U_{1} (x) =& 2x \\ U_{2} (x) =& 4x^{2} - 1 \\ U_{3} (x) =& 8x^{3} - 4x \end{align*}

Tn(X)T_{n} (X) is the first kind Chebyshev polynomial.

Showing that 1n+1Tn+1(x)=sin((n+1)θ)sinθ\displaystyle {{1} \over {n+1} } T_{n+1} ’ (x) = {{\sin \left( ( n +1 ) \theta \right)} \over { \sin \theta }} can be done using the differentiation of inverse trigonometric functions as follows. Un(x)=1n+1[cos((n+1)cos1x)]=n+1n+111x2[sin((n+1)cos1x)]=sin((n+1)cos1x)1x2=sin((n+1)θ)sinθ \begin{align*} \displaystyle U_{n} (x) =& {{1} \over {n+1} } \left[ \cos \left( ( n +1 ) \cos^{-1} x \right) \right]’ \\ &= {{n+1} \over {n+1} } {{ - 1} \over { \sqrt{ 1 - x^{2} } }} \left[ - \sin \left( ( n +1 ) \cos^{-1} x \right) \right] \\ =& {{\sin \left( ( n +1 ) \cos^{-1} x \right)} \over { \sqrt{ 1 - x^{2} } }} \\ =& {{ \sin \left( (n+1) \theta \right) } \over {\sin \theta }} \end{align*} The second kind Chebyshev polynomial is very useful not only in numerical analysis but also in applied mathematics as a whole, boasting interesting properties along with the first kind Chebyshev polynomial.

Meanwhile, the second kind Chebyshev polynomial can also be defined in reverse using U0(x)=1U_{0} (x) = 1, U1(x)=2xU_{1} (x) = 2x, and the recursive formula [0]. This is also true for the first kind Chebyshev polynomial, and the reason for naming the first and second kinds is considered to be due to T1(x)=1xT_{1} (x) = 1 \cdot x and U1(x)=2xU_{1} (x) = 2 \cdot x.

Proof

[0]

By differentiating both sides of the recursive formula Tn+1(x)=2xTn(x)Tn1(X)T_{n+1} (x) = 2x T_{n} (x) - T_{n-1} (X) of the first kind Chebyshev polynomial Tn+1(x)=2Tn(x)+2xTn(x)Tn1(x) T_{n+1} ' (x) = 2 T_{n} (x) + 2x T_{n} ' (x) - T_{n-1} ' (x) since Tn+1(x)=(n+1)Un(x)T_{n+1} ' (x) = ( n+1 ) U_{n} (x) , (n+1)Un(x)=2Tn(x)+2xnUn1(x)(n1)Un2(x) (n+1) U_{n} (x) = 2 T_{n} (x) + 2x n U_{n-1} (x) - (n-1) U_{n-2} (x) and combining as nn, n[Un(x)2xUn1(x)+Un2(x)]=2Tn(x)+Un2(x)Un(x) n \left[ U_{n} (x) - 2x U_{n-1} (x) + U_{n-2} (x) \right] = 2 T_{n} (x) + U_{n-2} (x) - U_{n} (x)

Relationship between the first and second kind Chebyshev polynomials:

  • [1]: Un(x)Un2(x)=2Tn(X)U_{n} (x) - U_{n-2} (x) = 2 T_{n} (X)

n[Un(x)2xUn1(x)+Un2(x)]=0 n \left[ U_{n} (x) - 2x U_{n-1} (x) + U_{n-2} (x) \right] = 0 Dividing both sides by nn and rearranging yields Un+1(x)=2xUn(x)Un1(x) U_{n+1} (x) = 2x U_{n} (x) - U_{n-1} (x)

[1]

Since dx=sinθdθ=1x2dθdx = - \sin \theta d \theta = - \sqrt{1 - x^2} d \theta and sinθ=1x2\sin \theta = \sqrt{1 - x^2}, <Un,Um>=11Un(x)Um(x)1x2dx=π0sin((n+1)θ)sin((m+1)θ)sin2θsin2θdθ=0πsin((n+1)θ)sin((m+1)θ)dθ={π/2,n=m0,nm \begin{align*} \displaystyle \left< U_{n}, U_{m} \right> =& \int_{-1}^{1} U_{n} (x) U_{m} (x) \sqrt{1 - x^2} d x \\ =& - \int_{\pi}^{0} {{ \sin \left( (n + 1 ) \theta \right) \sin \left( (m + 1 ) \theta \right) \sin^2 \theta } \over { \sin^2 \theta}} d \theta \\ =& \int_{0}^{\pi} \sin \left( (n + 1 ) \theta \right) \sin \left( (m + 1 ) \theta \right) d \theta \\ =& \begin{cases} \pi/2 &, n=m \\ 0 &, n \ne m \end{cases} \end{align*} thus {U0,U1,U2,}\left\{ U_{0} , U_{1}, U_{2}, \cdots \right\} forms an orthogonal set.

[2]

It is self-evident by definition.

[3]

Case 1. n=0,1n=0,1

U0(x)=1=U0(x)U1(x)=2(x)=2x=U1(x) \begin{align*} U_{0} (-x) =& 1 = U_{0} (x) \\ U_{1} (-x) =& 2(-x) = -2x = - U_{1} (x) \end{align*}


Case 2. n2n \ge 2 is even

Since the degree of all terms that are not 00 in Un(x)U_{n}(x) is even, Un(x)=Un(x)U_{n}(-x) = U_{n}(x)


Case 3. n2n \ge 2 is odd

Since the degree of all terms that are not 00 in Un(x)U_{n}(x) is odd, Un(x)=Un(x)U_{n}(-x) = - U_{n}(x)

Implementation

Below is the code for the Chebyshev polynomial written in R.

Since it returns the polynomial itself, it can be directly used for calculations. n is the degree, and by setting kind and turning the print option to true, it will print the coefficients.

20181120\_130322.png

The printed coefficients are from the constant term to the higher-order terms in sequence, and since the second kind Chebyshev polynomial is U3(x)=8x34xU_{3} (x) = 8x^{3} - 4x, it is correct. The value of the function is also accurately calculated as U3(3)=83343=21612=204U_{3} (3) = 8 \cdot 3^{3} - 4 \cdot 3 = 216-12 = 204.

Chebyshev<-function(n,kind=1,print=F)
{
  p<-NA
  
  if((round(n)-n)!=0 | n<0) {stop("Wrong Degree!!")} #degree must be nonnegative integer
  if(!kind%in%(1:2)) {stop("Wrong Kind!!")} #kind must be 1 or 2
  
  if(n==0)
  {
    if(print) {print(1)}
    
    p<-function(x) {return(1)}
    return(p)
  }
  
  if(n==1)
  {
    if(print) {print(c(0,kind))}
    
    p<-function(x) {return(kind*x)}
    return(p)
  }
 
  coef0<-c(1)
  coef1<-c(0,kind)
  
  for(i in 1:(n-1))
  {
    coef2<- ( c(0,2*coef1) - c(coef0,0,0) )
    coef0<-coef1
    coef1<-coef2
  }
  
  if(print) {print(coef2)}
  
  p<-function(x)  {return(sum(coef2*x^(0:n)))}
  return(p)
}
 
p<-Chebyshev(1,2); p(2)
p<-Chebyshev(3,2,T); p(3)