6.30.5 Tchebychev polynomial of the second kind: tchebyshev2
The Tchebychev polynomial of second kind U(n,x) is defined by:
U(n,x)= | sin((n+1).arccos(x)) |
|
sin(arccos(x)) |
|
or equivalently:
sin((n+1)x)=sin(x)*U(n,cos(x))
|
These satisfy the recurrence relation:
| U(0,x) | =1 | | | | | | | | | |
U(1,x) | =2x | | | | | | | | | |
U(n,x) | =2xU(n−1,x)−U(n−2,x)
| | | | | | | | | |
|
The polynomials U(n,x) are orthogonal for the scalar product
The tchebyshev2 command finds the Tchebychev polynomials of
the first kind.
-
tchebyshev2 takes one mandatory argument and one
optional argument:
-
n, an integer.
- Optionally x, a variable name (by default x).
- tchebyshev2(n ⟨,x⟩) returns
the Tchebychev polynomial of second kind of degree n.
Examples.
-
Input:
tchebyshev2(3)
Output:
- Input:
tchebyshev2(3,y)
Output:
Indeed:
sin(4 x)=sin(x)*(8*cos(x)3−4 cos(x))=sin(x)*U(3,cos(x))
|