CITE THIS NOTEBOOK: Orthogonal polynomials computed via matrix determinants by Paul Abbott. Wolfram Community MAR 4 2023.
Two examples of orthogonal polynomials computed via matrix determinants are presented.
Legendre Polynomials
Legendre Polynomials
Any polynomial satisfying a three-term recurrence relation can be written as the determinant of a tridiagonal matrix.
Consider the following tridiagonal matrix:
n
x | 1 | 0 | ⋯ | 0 |
1 | 3x | 2 | ⋱ | ⋮ |
0 | 2 | 5x | ⋱ | 0 |
⋮ | ⋱ | ⋱ | ⋱ | n-1 |
0 | ⋯ | 0 | n-1 | (2n-1)x |
(
1
)Use to define the matrix (1) for general :
n
n
n_
1
2
Compute :
5
5
x | 1 | 0 | 0 | 0 |
1 | 3x | 2 | 0 | 0 |
0 | 2 | 5x | 3 | 0 |
0 | 0 | 3 | 7x | 4 |
0 | 0 | 0 | 4 | 9x |
Verify that where (x) are Legendre polynomials for :
n!(x)
n
P
n
P
n
n=1,2,…,8
Table[{n,n!(x)//Simplify},{n,8}]
n
P
n
1 | True |
2 | True |
3 | True |
4 | True |
5 | True |
6 | True |
7 | True |
8 | True |
Orthogonal Polynomials from Moment Problem
Orthogonal Polynomials from Moment Problem
Consider the closely related matrices,
n
1 | x | ⋯ | n x |
m 1 | m 2 | ⋯ | m n+1 |
⋮ | ⋮ | ⋱ | ⋮ |
m n | m n+1 | ⋯ | m 2n |
ℬ
n
m 0 | m 1 | ⋯ | m n |
m 1 | m 2 | ⋯ | m n+1 |
⋮ | ⋮ | ⋱ | ⋮ |
m n | m n+1 | ⋯ | m 2n |
(
2
)where is the moment of ,
m
k
th
k
x
m
k
∞
∫
0
-x
k
x
(
3
)The ratio of the determinants of these matrices,
ℒ
n
n
ℬ
n
(
4
)generates a set of orthogonal polynomials with respect to the inner product
〈f,g〉=xf(x)g(x)x
∞
∫
0
-x
(
5
) thk moment of x
th
k
x
Define (3):
m
k
m/:=Assumingk≥0,x
m
k_
∞
∫
0
-x
k
x
Γ(k+1)
Matrices n and ℬn
Matrices and
n
ℬ
n
Use to define the matrices and (2) for general .
n
ℬ
n
n
Define :
n
n_
j-1
x
m
i+j-2
Define :
ℬ
n
ℬ
n_
m
i+j-2
Compute :
4
Normal[]
4
1 | x | 2 x | 3 x | 4 x |
1 | 2 | 6 | 24 | 120 |
2 | 6 | 24 | 120 | 720 |
6 | 24 | 120 | 720 | 5040 |
24 | 120 | 720 | 5040 | 40320 |
Compute :
ℬ
4
Normal[]
ℬ
4
1 | 1 | 2 | 6 | 24 |
1 | 2 | 6 | 24 | 120 |
2 | 6 | 24 | 120 | 720 |
6 | 24 | 120 | 720 | 5040 |
24 | 120 | 720 | 5040 | 40320 |
Compute the determinant ratio
Compute the determinant ratio
Compute (x) from (4) for :
ℒ
n
n=0,1,…,5
Tablen,(x_)=Factor,{n,0,5}
ℒ
n
n
ℬ
n
0 | 1 |
1 | 2-x |
2 | 1 2 2 x |
3 | 1 6 3 x 2 x |
4 | 1 24 4 x 3 x 2 x |
5 | 1 120 5 x 4 x 3 x 2 x |
Inner product
Inner product
Define the inner product (5):
〈f_,g_〉:=Expand[xfg]x
∞
∫
0
-x
Orthogonality
Orthogonality
Verify orthogonality with respect to the inner product (5):
Table(x),(x),{i,0,5},{j,0,5}
ℒ
i
ℒ
j
1 | 0 | 0 | 0 | 0 | 0 |
0 | 2 | 0 | 0 | 0 | 0 |
0 | 0 | 3 | 0 | 0 | 0 |
0 | 0 | 0 | 4 | 0 | 0 |
0 | 0 | 0 | 0 | 5 | 0 |
0 | 0 | 0 | 0 | 0 | 6 |
Comments
Comments
One can recognise that the orthogonal polynomials arising here are the associated Laguerre polynomials, (x):
1
L
n
Table[n,(x),{n,0,5}]
1
L
n
0 | 1 |
1 | 2-x |
2 | 1 2 2 x |
3 | 1 6 3 x 2 x |
4 | 1 24 4 x 3 x 2 x |
5 | 1 120 5 x 4 x 3 x 2 x |
This is as expected from the given inner product (5).