Skip to main content
SpringerPlus logoLink to SpringerPlus
. 2016 Sep 15;5(1):1567. doi: 10.1186/s40064-016-3217-y

Recurrence relations for orthogonal polynomials for PDEs in polar and cylindrical geometries

Megan Richardson 1, James V Lambers 1,
PMCID: PMC5023682  PMID: 27652140

Abstract

This paper introduces two families of orthogonal polynomials on the interval (−1,1), with weight function ω(x)1. The first family satisfies the boundary condition p(1)=0, and the second one satisfies the boundary conditions p(-1)=p(1)=0. These boundary conditions arise naturally from PDEs defined on a disk with Dirichlet boundary conditions and the requirement of regularity in Cartesian coordinates. The families of orthogonal polynomials are obtained by orthogonalizing short linear combinations of Legendre polynomials that satisfy the same boundary conditions. Then, the three-term recurrence relations are derived. Finally, it is shown that from these recurrence relations, one can efficiently compute the corresponding recurrences for generalized Jacobi polynomials that satisfy the same boundary conditions.

Keywords: Spectral-Galerkin, Polar coordinates, Legendre polynomials

Background

When mapping PDEs to polar or cylindrical geometries to rectangular domains using polar coordinates, it makes sense to use spectral methods (Shen 1997). Numerous algorithms based on spectral-collocation and spectral-tau methods already exist. See, for example, Canuto et al. (1987), Eisen et al. (1991), Fornberg (1995), Gottlieb and Orszag (1977), Huang and Sloan (1993).

After applying separation of variables in polar coordinates, the resulting PDEs that depend on the radial coordinate r and time t can be solved numerically using a Legendre-Galerkin formulation similar to that used for the steady-state problem (Shen 1997). It is natural to use bases of polynomials that satisfy the boundary conditions for each PDE, and these can easily be obtained by taking short linear combinations of Legendre polynomials.

Unlike Legendre polynomials, the bases used in Shen (1997) are not orthogonal with respect to the weight function ω(x)1. In Shen (2003) orthogonal bases were introduced that also satisfy these same boundary conditions. They are generalized Jacobi polynomials (GJPs) with indices α,β-1, orthogonal with respect to the weight function ωα,β(x)(1-x)α(1+x)β. GJPs corresponding to specific indices (α,β) were introduced in Shen (2003) for the purpose of solving differential equations of odd higher order. Generalization to other (non-integer) indices was carried out in Guo et al. (2009) to obtain families of orthogonal polynomials for Chebyshev spectral methods or problems with singular coefficients. However, although these GJPs can be described in terms of short linear combinations of Legendre polynomials, at least for certain index pairs of interest (Guo et al. 2009; Shen 2003), the three-term recurrence relations characteristic of families of orthogonal polynomials have not been developed in these cases.

In this paper, we use the bases from Shen (1997) to develop families of polynomials that are orthogonal with respect to ω(x)1 and satisfy the requisite boundary conditions, to facilitate transformation between physical and frequency space without using functions such as the Legendre polynomials that lie outside of the solution space. These families can also be efficiently modified to work with alternative weight functions, thus leading to the development of new numerical methods. In particular, it is demonstrated that these new families can be used to obtain three-term recurrence relations for the GJPs that satisfy the same boundary conditions.

The outline of the paper is as follows. In section “Variational formulation”, we provide context for these families of polynomials by adapting the variational formulation employed in Shen (1997) to the time-dependent PDE (1)–(3). In section “The case m = 0” we develop orthogonal polynomials with unit weight function satisfying the boundary conditions p(1)=0. In section “The case m ≠ 0” we do the same for the boundary conditions p(-1)=p(1)=0. In section “Recurrence relations for generalized jacobi polynomials” we describe how these families of orthogonal polynomials can be efficiently modified to obtain three-term recurrence relations for GJPs as described in Guo et al. (2009), Shen (2003). Concluding remarks and directions for future work are given in section “Conclusions”.

Variational formulation

In this section, we describe one possible context in which the sequences of orthogonal polynomials discussed in this paper can be applied.

Conversion to polar coordinates

We consider the reaction-diffusion equation on a unit disk

ΔU-αU=UtinΩ=x,y:x2+y2<1,t>0 1
U=0onΩ, 2
U(x,y,0)=F(x,y)onΩ, 3

where α is a constant.

Following the approach used in Shen (1997) for a steady-state problem, we can convert the IBVP in (1)–(3) to polar coordinates by applying the polar transformation x=rcosθ,y=rsinθ and letting ur,θ=Urcosθ,rsinθ,fr,θ=Frcosθ,rsinθ. The resulting problem in polar coordinates is as follows:

urr+1rur+1r2uθθ-αu=ut,r,θQ=0,1×[0,2π),u1,t=0,θ[0,2π),uis2π-periodicinθ,u(r,θ,0)=ut. 4

The solution is represented using the Fourier series

ur,t=m=0u1,m(r,t)cos(mθ)+u2,m(r,t)sin(mθ). 5

The Fourier coefficients u1,m(r,t), u2,m(r,t) must satisfy the boundary conditions u1,m(1,t)=u2,m(1,t)=0 for m=0,1,2, Due to the singularity at the pole r=0, we must impose additional pole conditions on (5) to have regularity in Cartesian coordinates. For u(r,θ,t) to be infinitely differentiable in the Cartesian plane, the additional pole conditions are Shen (1997)

u1,m0,t=u2,m0,t=0form0. 6

By substituting the series (5) into (4) and applying the pole conditions in (6), we obtain the following ODEs, for each nonnegative integer m:

-urr-1rur+m2r2+αu=ut,0<r<1,u(r,0)=f(r),u0,t=0ifm0,u1,t=0, 7

where u and f are now generic functions.

Weighted formulation

We will extend (7) to the interval -1,1 using a coordinate transformation as in Shen (1997). Using the coordinate transformation r=s+12 in (7) and setting v(s)=us+12, we obtain

-vss-1s+1vs+m2s+12+α4v=14vt,sI=(-1,1),vs,0=g(s),v-1,t=0,ifm0,v1,t=0, 8

where gs=fs+12. To formulate a weighted variational formula for (8), we must find vXm such that

s+1vs,wωs+m2s+1v,wω+α4s+1v,wω=14(s+1)vt,wω 9

where Xm=H0,ω1I if m0,X(0)=vHω1I:u1,t=0 and ω is a weight function.

Legendre-Galerkin method

To approximate (9) using the Legendre-Galerkin method, we let ω=1 and we have to find vNXNm such that wXNm,

s+1(vN)s,ws+m2s+1vN,w+α4s+1vN,wω=(s+1)vNt,w,vNs,0=INg(s), 10

where IN is the interpolation operator based on the Legendre–Gauss–Lobatto points. That is, INgti=gti,i=0,1,,N, where ti are the roots of 1-t2LNt and LN is the Legendre polynomial of degree N.

The case m=0

In the case where m=0, (10) reduces to

s+1vNs,ws+α4s+1vN,w=(s+1)vNt,w,wXN0.

As before, we let Lkt be the kth-degree Legendre polynomial, and define XN(0) to be the space of all polynomials of degree less than or equal to N that vanish at 1. This space can be described as Shen (1997)

XN0=spanϕit=Lit-Li+1t:i=0,1,,N-1,

where ϕit is the ith basis function. By applying the Gram-Schmidt process (Burden, Faires 2005) to these basis functions, ϕit, we can obtain a new set of orthogonal polynomials that will be denoted by ϕ~i, i=0,1,2,, where the degree of ϕi and ϕ~i is i+1. The new basis functions, ϕ~i, can be found by computing

ϕ~i=ϕi-k=0i-1ϕ~k,ϕiϕ~k,ϕ~kϕ~k. 11

Fortunately, for 0ki-2,

ϕ~k,ϕi=ϕ~k,Li-Li+1=ϕ~k,Li-ϕ~k,Li+1=0, 12

due to the orthogonality of the Legendre polynomials, thus greatly simplifying the computation of ϕ~i.

To start the sequence {ϕ~i}, we let

ϕ~0=ϕ0=L0-L1=1-x,

so then

ϕ~1=ϕ1-ϕ~0,ϕ1ϕ~0,ϕ~0ϕ~0=-32x2+x+12--2/38/31-x=-32x2+34x+34

and

ϕ~2=ϕ2-ϕ~0,ϕ2ϕ~0,ϕ~0ϕ~0-ϕ~1,ϕ2ϕ~1,ϕ~1ϕ~1=12-5x3+3x2+3x-1-08/31-x--2/59/10-32x2+34x+34=-52x3+56x2+116x-16.

The first several polynomials ϕ~0,ϕ~1,,ϕ~4 are shown in Fig. 1.

Fig. 1.

Fig. 1

Graphs of ϕ~i, i=0,1,2,3,4

Now, comparing ϕ1 with ϕ~1 and ϕ2 with ϕ~2, we can find a general formula for the ϕi~ in terms of ϕi. By subtracting ϕi from ϕ~i, we obtain

ϕ~1-ϕ1=-32x2+34x+34--32x2+x+12=-14x+14=14ϕ~0, 13

and

ϕ~2-ϕ2=-52x3+56x2+116x-16--52x3+32x2+32x-12=49-32x2+34x+34=49ϕ~1. 14

This suggests a simple recurrence relation for ϕ~i in terms of ϕi. Before we prove that this relation holds in general, we need the following result.

Lemma 1

LetNk=ϕ~k,ϕ~k. Then

Nk=2k+22k+122k+3, 15

k0.

Proof

We proceed by induction. For the base case, we have

N0=ϕ~0,ϕ~0,=-11ϕ~0(x)ϕ~0(x)dx=-111-x1-xdx=83.

For the induction step, we assume that there is a k>0, such that Nk-1=2k+12k22k+1. We must show that the formula found in Eq. (15) is true for k. Given ϕ~k=ϕk+kk+12ϕ~k-1, and using

Lk,Lk=22k+1, 16

we have

Nk=ϕ~k,ϕ~k=ϕk+kk+12ϕ~k-1,ϕk+kk+12ϕ~k-1=ϕk,ϕk+2kk+12ϕk,ϕ~k-1+kk+14ϕ~k-1,ϕ~k-1=Lk+Lk+1,Lk+Lk+1-2kk+12Lk,Lk+kk+14Nk-1=8k+12k+12k+3-4k2k+122k+1+kk+14Nk-1=43k2+6k+2k+122k+1)2k+3+kk+14Nk-1=2k+22k+122k+3.

We can now establish the pattern seen in (13), (14).

Theorem 1

Ifϕ~0(x)=1-xandϕ~iis obtained by orthogonalizingϕi=Li+1-Liagainstϕ~0,ϕ~0,,ϕ~i-1, then

ϕ~i=ϕi+ciϕ~i-1 17

fori=1,2,,whereci=ii+12.

Proof

Again we proceed by induction. For the base case, we will show that the theorem holds when i=1:

ϕ~1=ϕ1-ϕ~0,ϕ1ϕ~0,ϕ~0ϕ~0=x-32x2+12--2/38/31-x=x-32x2+12+141-x=ϕ1+14ϕ~0. 18

Note that Eq. (18) is equivalent to Eq. (13). For the induction step, we assume that there is a j0, such that

ϕ~j=ϕj+jj+12ϕ~j-1. 19

We show that (17) holds when i=j+1. We have

ϕ~j+1=ϕj+1+k=0jϕj+1,ϕ~kϕ~k,ϕ~kϕ~k=ϕj+1-ϕj+1,ϕ~jϕ~j,ϕ~jϕ~j=ϕj+1-Lj+1,ϕ~j-Lj+2,ϕj+(jj+1)2Lj+2,ϕ~j-1ϕ~j,ϕ~jϕ~j=ϕj+1-Lj+1,ϕ~jϕ~j,ϕ~jϕ~j=ϕj+1-Lj+1,ϕj+(jj+1)2Lj+1,ϕ~j-1ϕ~j,ϕ~jϕ~j=ϕj+1-Lj+1,ϕjϕ~j,ϕ~jϕ~j=ϕj+1-Lj+1,Lj-Lj+1,Lj+1ϕ~j,ϕ~jϕ~j=ϕj+1+Lj+1,Lj+1ϕ~j,ϕ~jϕ~j.

Therefore, using Lemma 1 and (16), we obtain

ϕ~j+1=ϕj+1+22j+1+1ϕ~j,ϕ~jϕ~j=ϕj+1+22j+3j+122j+32j+22ϕ~k=ϕj+1+j+1j+22ϕ~j.

We now prove a converse of Theorem 1.

Theorem 2

Ifϕ~0(x)=1-xandϕ~iis defined as in (17) fori=1,2,,thenϕ~k,ϕ~j=0whenj<k.

Proof

Case 1: j<k-1

ϕ~k,ϕ~j=ϕk+kk+12ϕ~k-1,ϕj+jj+12ϕ~j-1=ϕk,ϕj+kk+12ϕ~k-1,ϕj=Lk,Lj-Lk,Lj+1-Lk+1,Lj+Lk+1,Lj+1+kk+12ϕ~k-1,ϕj=kk+12ϕ~k-1,ϕj=0.

Case 2: j=k-1

ϕ~k,ϕ~j=ϕk,ϕk-1+kk+12ϕ~k-1,ϕk-1=Lk-Lk+1,Lk-1-Lk+kk+12ϕ~k-1,ϕk-1=-Lk,Lk+kk+12ϕ~k-1,ϕ~k-1=-22k+1+kk+122k-1+22k-1+122k-1+3=0.

All orthogonal polynomials satisfy a general three-term recurrence relation that has the form

βjϕ~j+1(x)=x-αjϕ~j(x)-γj-1ϕ~j-1(x), 20

where αj, βj and γj are constants. By enforcing orthogonality, we obtain the formulas

αj=ϕ~j,xϕ~jϕ~j,ϕ~j, 21
βj=ϕ~j+1,xϕ~jϕ~j+1,ϕ~j+1, 22
γj=ϕ~j+1,xϕ~jϕ~j,ϕ~j,. 23

First, we will find the value of αj.

Theorem 3

Letαjbe defined as in (21). Thenαj=-1j+1j+2,j0.

Proof

Base case: When j=0, we use (21) to obtain

α0=ϕ~0,xϕ~0ϕ~0,ϕ~0=-11ϕ~0(x)xϕ~0(x)dx-11ϕ~0(x)ϕ~0(x)dx=-11x3-2x2+xdx-11x2-2x+1dx=-12.

For the induction hypothesis, we assume there is a j>0 such that αj-1=-1jj+1. From αj=ϕ~j,xϕ~jϕ~j,ϕ~j and ϕ~j=ϕj+cjϕ~j-1, where cj=jj+12, we obtain

ϕ~j,xϕ~j=ϕj+cjϕ~j-1,xϕj+cjϕ~j-1=ϕj+cjϕ~j-1,xϕj+xcjϕ~j-1=ϕj,xϕj+2cjϕ~j-1,xϕj+cj2ϕ~j-1,xϕ~j-1. 24

Now, from the recurrence relation for Legendre polynomials, we obtain

ϕj,xϕj=Lj-Lj+1,xLj-Lj+1=Lj-Lj+1,j+12j+1Lj+1+j2j+1Lj-1-j+22j+3Lj+2+j+12j+3Lj=-j+12j+3Lj,Lj-j+12j+1Lj+1,Lj+1=-j+12j+322j+1-j+12j+122j+3=-4(j+1)(2j+1)(2j+3). 25

and

ϕ~j-1,xϕj=ϕ~j-1,j+12j+1Lj+1+j2j+1Lj-1-j+22j+3Lj+2+j+12j+3Lj=j2j+1ϕ~j-1,Lj-1-j+12j+3ϕ~j-1,Lj=j2j+1ϕ~j-1,Lj-1-j+12j+3ϕj-1+j-1j2ϕ~j-2,Lj=j2j+1ϕ~j-1,Lj-1-j+12j+3ϕj-1,Lj+j-1j2ϕ~j-2,Lj=j2j+1ϕ~j-1,Lj-1-j+12j+3ϕj-1,Lj=j2j+1ϕ~j-1,Lj-1+j+12j+3Lj,Lj=j2j+1Lj-1,Lj-1-cj-1Lj-1,Lj-1+j+12j+3Lj,Lj=j2j+11-cj-1Lj-1,Lj-1+j+12j+3Lj,Lj=j2j+11-j-1j222j-1+j+12j+322j+1=2(j2+3j+3)j2j+12j+3. 26

To calculate the middle term in Eq. (24) we will multiply 2cj by the result from Eq. (26):

2cjϕ~j-1,xϕj=2jj+122j2+3j+3j2j+12j+3=4jj2+3j+3j+122j+12j+3. 27

We rearrange the formula for αj-1 to obtain the following:

ϕ~j-1,xϕ~j-1=αj-1ϕ~j-1,ϕ~j-1=-1jj+12(j+12j22j+1=-2j+1j32j+1.

Therefore,

cj2ϕ~j-1,xϕ~j-1=jj+14-2j+1j32j+1=-2jj+132j+1. 28

Now we can use the results from Eqs. (25)–(28) to determine the numerator of αj.

ϕ~j,xϕ~j=-4(j+1)(2j+1)(2j+3)+4jj2+3j+3j+122j+12j+3+-2jj+132j+1=-2j+2j+132j+3.

Hence,

αj=-2j+2j+132j+3j+122j+32j+22=-1j+1j+2.

Now, we will find the value of βk.

Theorem 4

Letβjbe defined as in (22). Thenβj=j+22j+3,j0.

Proof

For the base case, we consider j=0:

β0=ϕ~1,xϕ~0ϕ~1,ϕ~1=-11ϕ~1(x)xϕ~0(x)dx-11ϕ~1(x)ϕ~1(x)dx=-11-32x2+34x+34x1-xdx-11-32x2+34x+34-32x2+34x+34dx=23.

For the induction step, we assume there is a j0 such that βj-1=j+12j+1. From βj=ϕ~j+1,xϕ~jϕ~j+1,ϕ~j+1 and ϕ~j=ϕj+cjϕ~j-1 where cj=jj+12, we obtain

ϕ~j+1,xϕ~j=ϕj+1+cj+1ϕ~j,xϕj+cjϕ~j-1=ϕj+1,xϕj+cjϕ~j-1,xϕj+1+cj+1ϕ~j,xϕj+cjcj+1ϕ~j,xϕ~j-1. 29

Using the recurrence relation for Legendre polynomials, we obtain

ϕj+1,xϕj=Lj+1-Lj+2,xLj-Lj+1=Lj+1-Lj+2,j+12j+1Lj+1+j2j+1Lj-1-j+22j+3Lj+2+j+12j+3Lj=j+12j+1Lj+1,Lj+1+j+22j+3Lj+2,Lj+2=j+12j+122j+3+j+22j+322j+5=2(4j2+12j+7)(2j+1)(2j+3)2j+5. 30

and

ϕ~j-1,xϕj+1=ϕ~j-1,xLj+1-xLj+2=ϕ~j-1,j+22j+3Lj+2+j+12j+3Lj-j+32j+5Lj+3+j+22j+5Lj+1=j+12j+3ϕ~j-1,Lj=j+12j+3ϕj-1+j-1j2ϕ~j-2,Lj=j+12j+3ϕj-1,Lj=-j+12j+3Lj,Lj=-j+12j+322j+1=-2j+12j+12j+3.

We then have

cjϕ~j-1,xϕj+1=jj+12-2j+12j+12j+3=-2j2j+12j+12j+3. 31

The last term in (29) is obtained as follows:

ϕ~j,xϕj=ϕ~j,j+12j+1Lj+1+j2j+1Lj-1-j+22j+3Lj+2+j+12j+3Lj=j+12j+1ϕ~j,Lj+1+j2j+1ϕ~j,Lj-1-j+12j+3ϕ~j,Lj=j+12j+1-Lj+1,Lj+1+j2j+1cj1-cj-1Lj-1,Lj-1-j+12j+31-cjLj,Lj=-j+12j+122j+3+j2j+12j+12-j+12j+32j+12=-2j+2j2+j+1j+122j+12j+3.

We then have

cj+1ϕ~j,xϕj=j+1j+22-2j+2j2+j+1j+122j+12j+3=-2j2+j+1j+22j+12j+3. 32

We rearrange the formula for βj-1 to obtain the following:

ϕ~j,xϕ~j-1=βj-1ϕ~j,ϕ~j=j+12j+12(j+22j+122j+3=2j+22j+12j+12j+3.

Therefore,

cjcj+1ϕ~j,xϕ~j-1=jj+12j+1j+222j+22j+12j+12j+3=2j2j+12j+12j+3. 33

Now we can use the results from Eqs. (30)–(33) to determine the numerator of βj.

ϕ~j+1,xϕ~j=2(4j2+12j+7)(2j+1)(2j+3)2j+5-2j2j+12j+12j+3-2j2+j+1j+22j+12j+3+2j2j+12j+12j+3=2j+32j+22j+32j+5

Hence,

βj=2j+32j+22j+32j+5j+222j+52j+32=j+22j+3.

Using the same approach as in the preceding proof, we obtain

γj=2j+32j+22j+32j+5j+122j+32j+22=j+12(j+3)2j+232j+5. 34

In summary, the polynomials {ϕ~i} satisfy the recurrence relation

j+2j+3ϕ~j+1(x)=x+1(j+1)(j+2)ϕ~j(x)-j2(j+2)2j+132j+3ϕ~j-1(x). 35

We can rewrite Eq. (19) as ϕ~j-cjϕ~j-1=ϕj. In matrix form, we have

Φ=Φ~C,C=1-c11-c21-cn1, 36

where Φ=ϕ0(x)φ1(x)ϕn(x) and Φ~=ϕ~0(x)φ~1(x)φ~n(x), with x being a vector of at least n+2 Legendre–Gauss–Lobatto points. This ensures that the columns of Φ~ are orthogonal.

Then, given fXn+1(0), we can obtain the coefficients f~i in

f(x)=i=0nf~iϕ~i(x)

by simply computing f~i=ϕ~i,f/Ni, where Ni is as defined in (15). Then the coefficients fi in

f(x)=i=0nfiϕi(x)

can be obtained by solving the system Cf=f~ using back substitution, where C is as defined in (36). These coefficients can be used in conjunction with the discretization used in Shen (1997), which makes use of the basis {ϕi}.

The case m0

In the case where m0, we work with the space

XN(m)={pPN|p(-1)=p(1)=0}.

As discussed in Shen (1997), this space can easily be described in terms of Legendre polynomials:

XNm=spanϕit=Lit-Li+2t,i=0,1,,N-2

Applying the Gram-Schmidt process to the basis functions {ϕi}, we obtain a new set of orthogonal polynomials that will be denoted as {ϕ^i}. These basis functions are obtained in the same way as in Eq. (11). First, we let

ϕ~0=ϕ0=L0-L2=-32x2+32

and

ϕ^1=ϕ1=L1-L3=-52x3+52x.

Then, we have

ϕ^2=ϕ2-ϕ^0,ϕ2ϕ^0,ϕ^0ϕ^0-ϕ^1,ϕ2ϕ^1,ϕ^1ϕ^1=ϕ2-1-1ϕ^0(x)ϕ2(x)dx1-1ϕ^0(x)ϕ^0(x)dxϕ^0-1-1ϕ^1(x)ϕ2(x)dx1-1ϕ^1(x)ϕ^1(x)dxϕ^1=-358x4+214x2-78--2/512/5-32x2+32-020/21-52x3+52x=-358x4+5x2-58.

and

ϕ^3=ϕ3-ϕ^0,ϕ3ϕ^0,ϕ^0ϕ^0-ϕ^1,ϕ3ϕ^1,ϕ^1ϕ^1-ϕ^2,ϕ3ϕ^2,ϕ^2ϕ^2=ϕ3-1-1ϕ^0(x)ϕ3(x)dx1-1ϕ^0(x)ϕ^0(x)dxϕ^0-1-1ϕ^1(x)ϕ3(x)dx1-1ϕ^1(x)ϕ^1(x)dxϕ^1-1-1ϕ^2(x)ϕ3(x)dx1-1ϕ^2(x)ϕ^2(x)dxϕ^2=-638x5+454x3-278x-012/5-32x2+32--2/720/21-52x3+52x-05/9-358x4+5x2-58=-638x5+213x3-218x.

The graphs of the first several members of the sequence {ϕ^i} are shown in Fig. 2.

Fig. 2.

Fig. 2

Graphs of ϕ^i, i=0,1,2,3,4

Again, we will compare ϕ2 with ϕ^2 and ϕ3 with ϕ^3 to find a general formula for the values of ϕi.^ We obtain the following formula

ϕ^2-ϕ2=-358x4+5x2-58--358x4+214x-78=-14x2+14=16-32x2+32=16ϕ^0. 37

and

ϕ^3-ϕ3=-638x5+212x3-218x--638x5+454x3-278x=-34x3+34x=310-52x3+52x=310ϕ^1.

These results suggest a simple recurrence relation for ϕ^i in terms of ϕi and ϕ^i-2, in which the coefficient of ϕ^i-2 is a ratio of triangular numbers di=i(i-1)/[(i+1)(i+2)]. We therefore define

ϕ^i=ϕi-i(i-1)(i+1)(i+2)ϕ^i-2,i=2,3,,N-2, 38

with initial conditions

ϕ^0(x)=ϕ0(x)=1-x2,ϕ^1(x)=ϕ1(x)=52(x-x3). 39

To prove that these polynomials are actually orthogonal, we first need this result.

Lemma 2

Letϕ^j(x)be defined as in (38), (39), and letNj=ϕ^j,ϕ^j, j2.Then

Nj=2j+3j+42j+5j+2j+1, 40

j2 and

ϕ^j=ϕj+jj-1j+1j+2ϕ^j-2,j2,ϕ^j=ϕj,j1.

Proof

For the base case, we compute N0 and N1 directly. We have

N0=ϕ^0,ϕ^0=ϕ0,ϕ0=L0-L2,L0-L2=L0,L0+L2,L2=125,

and

N1=ϕ^1,ϕ^1=ϕ1,ϕ1=L1-L3,L1-L3=L1,L1+L3,L3=2021.

For the induction step, we assume there is a j>2 such that Nj-2=2jj+3jj+12j+3. Now, we must show that the formula (40) is true for j. We have

Nj=ϕ^j,ϕ^j=ϕj+jj-1j+1j+2ϕ^j-2,ϕj+jj-1j+1j+2ϕ^j-2=ϕj,ϕj+2jj-1j+1j+2ϕj,ϕ^j-2+jj-1j+1j+22ϕ^j-2,ϕ^j-2=42j+32j+12j+5+2jj-1j+1j+2-Lj,Lj+jj-1j+1j+22Nj-2=42j+32j+12j+5+2jj-1j+1j+222j+1+jj-1j+1j+22Nj-2=24j2+3j+1j+1j+22j+12j+5+jj-1j+1j+222j+1j+2jj-12j+1=2j+3j+4j+1j+22j+1.

Theorem 5

Letϕ^ibe obtained by orthogonalizingϕiagainstϕ^0,ϕ^1,Thenϕ^0=ϕ0, ϕ^1=ϕ1, and

ϕ^j=ϕj+djϕ^j-2,j2, 41

wheredj=jj-1j+1j+2.

Proof

For the base case, we first show that ϕ^1=ϕ1 and ϕ^0=ϕ0 are already orthogonal. We have

ϕ^1,ϕ^0=L1-L3,Lo-L2=L0,L1-L1,L2-L0,L3+L2,L3=0.

Next, we show directly that the theorem holds when j=2:

ϕ^2=ϕ2-ϕ^0,ϕ2ϕ^0,ϕ^0ϕ^0-ϕ^1,ϕ2ϕ^1,ϕ^1ϕ^1=-358x4-214x2-78--2/512/5-32x2+32-020/21-52x3+52x=ϕ2+16ϕ^0. 42

For the induction step, we assume that ϕ^0,,ϕ^j-1 are all orthogonal, where j2, and that

ϕ^j=ϕj+djϕ^j-2,

where dj=j(j-1)(j+1)(j+2). Then

ϕ^j+1=ϕj+1+k=0jϕ^k,ϕj+1ϕ^k,ϕ^kϕ^k=ϕj+1-ϕ^j-1,Lj+1-ϕ^j-1,Lj+3ϕ^j-1,ϕ^j-1ϕ^j-1=ϕj+1-ϕj-1+cj-1ϕ^j-3,Lj+1ϕ^j-1,ϕ^j-1ϕ^j-1=ϕj+1-ϕj-1,Lj+1+cj-1ϕ^j-3,Lj+1ϕ^j-1,ϕ^j-1ϕ^j-1=ϕj+1-ϕj-1,Lj+1ϕ^j-1,ϕ^j-1ϕ^j-1=ϕj+1-Lj-1-Lj+1,Lj+1ϕ^j-1,ϕ^j-1ϕ^j-1=ϕj+1+Lj+1,Lj+1ϕ^j-1,ϕ^j-1ϕ^j-1=ϕj+1+22j+31ϕ^j-1,ϕ^j-1ϕ^j-1

Using Lemma 2, we obtain

ϕ^j+1=ϕj+1+22j+3jj+12j+32j+2j+3ϕ^j-1=ϕj+1+jj+1j+2j+3ϕ^j-1.

We now confirm that the polynomials defined using the recurrence (41) are orthogonal.

Theorem 6

Letϕ^kbe defined as follows:

ϕ^k=ϕk+kk-1k+1k+2ϕ^k-2,k2,ϕ^k=ϕk,k1.

Thenϕ^k,ϕ^j=0forjk.

Proof

We will show that for each k0,ϕ^k,ϕ^j=0 for 0j<k. The case k=1 was handled in the proof of Theorem 5. Proceeding by induction, we assume ϕ^0,,ϕ^k-1 are all orthogonal, and show that ϕ^k,ϕ^j=0 for j=0,1,,k-1.

Case 1: j<k-2

ϕ^k,ϕ^j=ϕk,ϕ^j+kk-1k+1k+2ϕ^k-2,ϕ^j=Lk-Lk+2,ϕ^j=0.

Case 2: j=k-2

ϕ^k,ϕ^j=ϕk,ϕ^j+kk-1k+1k+2ϕ^k-2,ϕ^j=Lk-Lk+2,ϕ^k-2+kk-1k+1k+2ϕ^k-2,ϕ^k-2=Lk,ϕ^k-2+kk-1k+1k+2ϕ^k-2,ϕ^k-2=-Lk,Lk+kk-1k+1k+2ϕ^k-2,ϕ^k-2=-22k+1+kk-1k+1k+22k+1k+2kk-12k+1=0.

Case 3: j=k-1. If k3, then we have

ϕ^k,ϕ^j=ϕk,ϕ^j+kk-1k+1k+2ϕ^k-2,ϕ^j=ϕk,ϕ^k-1+kk-1k+1k+2ϕ^k-2,ϕ^k-1=Lk-Lk+2,ϕ^k-1=Lk,ϕ^k-1=Lk,Lk-1-Lk+1+(k-1)(k-2)k(k+1)ϕ^k-3=0.

If k=2, then the steps are the same, except that the term with ϕ^k-3 is not present.

Like all families of orthogonal polynomials, the {ϕ^k} satisfy the recurrence relation

βjϕ^j+1(x)=(x-αj)ϕ^j(x)-γj-1ϕ^j-1(x). 43

By analogy with (21), (22) and (23), we have

αj=ϕ^j,xϕ^jϕ^j,ϕ^j, 44
βj=ϕ^j+1,xϕ^jϕ^j+1,ϕ^j+1, 45
γj=ϕ^j+1,xϕ^jϕ^j,ϕ^j,. 46

Because ϕ^j contains only terms of odd degree if j is odd and of even degree if j is even, just like the Legendre polynomials, it is easily shown that αj=0 for j=1,2, We will now find the values of βj and γj.

Theorem 7

Letβjbe defined as in (45). Thenβj=j+32j+5,j0.

Proof

We show the base case j=0 directly:

β0=ϕ^1,xϕ^0ϕ^1,ϕ^1=-11ϕ^1(x)xϕ^0(x)dx-11ϕ^1(x)ϕ^1(x)dx=35.

For the induction step, we assume there is a j0 such that βj-1=j+22j+3.

Then, using (45), we have βj=ϕ^j+1,xϕ^jϕ^j+1,ϕ^j+1 and ϕ^j=ϕj+djϕ^j-2 where dj=jj-1j+1j+2. For the numerator, we have

ϕ^j+1,xϕ^j=ϕj+1+dj+1ϕ^j,xϕj+djϕ^j-2=ϕj+1,xϕj+djϕ^j-2,xϕj+1+dj+1ϕ^j-1,xϕj+djdj+1ϕ^j-1,xϕ^j-2. 47

We now compute each part of this numerator as follows:

ϕj+1,xϕj=Lj+1-Lj+3,xLj-Lj+2=Lj+1-Lj+3,j+12j+1Lj+1+j2j+1Lj-1-j+32j+5Lj+3+j+22j+5Lj+1=j+12j+1Lj+1,Lj+1-j+22j+5Lj+1,Lj+1+j+32j+5Lj+3,Lj+3=j+12j+122j+3-j+22j+522j+3+j+32j+522j+7=2(j+2)(2j+1)2j+7,ϕ^j-2,xϕj+1=ϕ^j-2,j+22j+3Lj+2+j+12j+3Lj-j+42j+7Lj+4+j+32j+7Lj+2=j+12j+3ϕ^j-2,Lj=-j+12j+3Lj,Lj=-j+12j+322j+1=-2j+12j+12j+3. 48

Then

djϕ^j-2,xϕj+1=jj-1j+1j+2-2j+12j+12j+3=-2jj-1j+22j+12j+3. 49

For the third term in (47), we have

ϕ^j-1,xϕj=ϕ^j-1,j+12j+1Lj+1+j2j+1Lj-1-j+32j+5Lj+3+j+22j+5Lj+1=j+12j+1ϕ^j-1,Lj+1+j2j+1ϕ^j-1,Lj-1-j+22j+5ϕ^j-1,Lj+1=j+12j+1-Lj+1,Lj+1+j2j+11-dj-1Lj-1,Lj-1-j+22j+5-Lj+1,Lj+1=-j+12j+122j+3+j2j+14jj+1-j+22j+522j+3=6j+3j+12j+12j+5,

and therefore

dj+1ϕ^j-1,xϕj=jj+1j+2j+36j+3j+12j+12j+5.=6jj+22j+12j+5. 50

We rearrange the formula for βj-2 to obtain the following:

ϕ^j-1,xϕ^j-2=βj-2ϕ^j-1,ϕ^j-1=j+12j+12(j+2j+3jj+12j+3=2j+2j+3j2j+12j+3.

Therefore,

djdj+1ϕ^j-1,xϕ^j-2=jj-1j+1j+2jj+1j+2j+32j+2j+3j2j+12j+3=2jj-1j+12j+12j+3. 51

Now we can use the results from Eqs. (48)–(51) to determine the numerator of βj.

ϕ^j+1,xϕ^j=2(j+2)(2j+1)2j+7-2jj-1j+22j+12j+3+6jj+22j+12j+5+2jj-1j+12j+12j+3=2j+4j+5j+22j+52j+7 52

Thus,

βj=2j+4j+5j+22j+52j+7j+2j+32j+72j+4j+5=j+32j+5.

From (46), (52), and Lemma 2, we obtain

γj=2j+4j+5j+22j+52j+7j+1j+22j+52j+3j+4=(j+1)j+5(j+3)2j+7. 53

In summary, we have

j+32j+5ϕ^j+1(x)=xϕ^j(x)-jj+4(j+2)2j+5ϕ^j-1(x). 54

Equation (41) can be rewritten as ϕj=ϕ^j-djϕ^j-2. Now, we have the system

Φ=Φ^D,D=10-d210-d3101-dn01 55

where Φ=ϕ0(x)ϕ1(x)ϕn(x) and Φ^=ϕ^0(x)ϕ^1(x)ϕ^n(x), with x being a vector of at least n+3 Legendre-Gauss-Lobatto points. This ensures that the columns of Φ^ are orthogonal.

Then, given fXn+2(m), we can obtain the coefficients f~i in

f(x)=i=0nf^iϕ^i(x)

by simply computing f^i=ϕ^i,f/Ni, where Ni is as defined in (40). Then the coefficients fi in

f(x)=i=0nfiϕi(x)

can be obtained by solving the system Df=f^ using back substitution, where D is as defined in (55). These coefficients can be used in conjunction with the discretization used in Shen (1997), which makes use of the basis {ϕi}.

Recurrence relations for generalized jacobi polynomials

The families of orthogonal polynomials developed in the preceding two sections are orthogonal with respect to the weight function ω(x)1. In Guo et al. (2009), Shen (2003), families of generalized Jacobi polynomials/functions (GJP/Fs) are defined in such a way as to satisfy specified boundary conditions, such as the ones employed in this paper. These functions are orthogonal with respect to a weight function that is determined by the boundary conditions. However, it can be seen from (10) that an alternative weight function may be preferable when solving certain PDEs. In this section, we discuss the modification of sequences of orthonormal polynomials and their three-term recurrence relations as a consequence of changes in the underlying weight function.

Let Jn be the n×n Jacobi matrix consisting of the recursion coefficients corresponding to a sequence of polynomials pj(t), j=0,1,,n-1 that is orthonormal with respect to the inner product

f,gω=-11f(t)¯g(t)dλ(t),

where dλ(t)=ω(t)dt, and let J~n be the n×n Jacobi matrix for a sequence of polynomials p~j(t), j=0,1,,n-1 that is orthonormal with respect to the inner product

f,gω~=-11f(t)¯g(t)dλ~(t),

where the measure dλ~(t)=ω~(t)dt is a modification of dλ(t) by some factor. The following procedures can be used to generate J~n from Jn:

  • Multiplying by a linear factor: In the case dλ~(t)=(t-c)dλ(t), we have
    J~n=LTL+cI+δn-1nn2enenT, 56
    where ω(Jn-cI)=LLT is the Cholesky factorization (Gautschi 2002; Golub and Kautsky 1983).
  • Dividing by a linear factor: In the case dλ~(t)=(t-c)-1dλ(t), where c is near or on the boundary of the interval of integration, the inverse Cholesky (IC) procedure (Elhay and Kautsky 1994) can be used to obtain J~n. We have
    J~n=L-1JnL-cI+δn-1nnencT,
    where I=(Jn-cI)LLT+endT and c and d are vectors that need not be computed if one is content with only computing J~n-1.

In either case, the original and modified polynomials are related by L:

p(t)=Lp~(t),

where p(t)=p0(t)pn-1(t)T and p~(t)=p~0(t)p~n-1(t)T.

While three-term recurrence relations for the Jacobi polynomials are well-known, we are not aware of similar recurrence relations for GJPs. We now present efficient algorithms for modifying either of the families of polynomials {ϕ~j}, {ϕ^j} to obtain such recurrences.

Boundary condition p(1)=0

We first demonstrate how the polynomials {ϕ~j} from section “The case m = 0” can be modified to obtain the three-term recurrence for the GJPs

φj(x)=(1-x)Jj1,0(x)=(-1)j2j(j)!djdxj(1-x)j+1,j=0,1,, 57

which are orthogonal on (-1,1) with respect to the weight function (1-x)-1 (Guo et al. 2009; Shen 2003). Like the {ϕ~j}, these polynomials satisfy the boundary condition φj(1)=0.

Let

Jn=α0γ0β0α1γ1βn-3αn-2γn-2βn-2αn-1 58

be the matrix of recursion coefficients for the {ϕ~j}j=0n-1, where αj, βj and γj are as defined in (21), (22), (23), respectively. First, we apply a diagonal similarity transformation to symmetrize Jn, which yields

J~n=α0δ0δ0α1δ1δn-3αn-2δn-2δn-2αn-1 59

where δj=γjβj for j=0,1,,n-2.

Let J^n be the Jacobi matrix for the polynomials φj(x). Since its measure is a modification of that of Jn and J~n by dividing by a linear factor, certainly the IC algorithm can be used to compute J^n-1 directly from J~n, but this requires O(n3) arithmetic operations, which exceeds the cost of computing the entries of J^n directly as inner products using the Rodriguez formula (57).

Alternatively, we can invert the procedure described above for handling modification by multiplying by a linear factor. First, we let Tn=I-J~n, in view of the modification dλ~(t)=(1-t)-1dλ(t). Then, we solve the (nn) entry of the matrix equation

Tn=LTL+δ^n-1nn2enenT

for nn2, where L is lower triangular. As this equation is quadratic in nn2, we choose the larger root. The entry δ^n-1 of J^n can be computed using (57).

Next, we compute the factorization

Tn-δ^n-1nn2enenT=LTL,

which amounts to performing a Cholesky factorization “in reverse”, as reversing the order of the rows and columns of this matrix equation leads to a Cholesky factorization. Finally, we obtain

J^n=I-LLT.

This matrix actually differs from the correct J^n in the (nn) entry. Therefore, deleting the last row and column yields the correct J^n-1. The entire procedure can be carried out in only O(n) arithmetic operations, due to the fact that L is actually lower bidiagonal.

Boundary conditions p(-1)=p(1)=0

We now show how to efficiently obtain recursion coefficients for the GJPs

φ^j(x)=(-1)j2jj!djdxj(1-x)j+1(1+x)j+1,j=0,1, 60

which are orthogonal on (-1,1) with respect to the weight function (1-x)-1(1+x)-1. Like the {ϕ^j} from section “The case m ≠ 0”, these polynomials satisfy the boundary conditions φj(-1)=φj(1)=0.

Let Jn, J~n be defined as in (58), (59), except that αj, βj and γj are as defined in (44), (45), (46), respectively, and let J^n be the Jacobi matrix for the polynomials φ^j(x). Since its measure is a modification of that of Jn and J~n by dividing by two distinct linear factors, the IC algorithm can be applied twice to compute J^n-2 directly from J~n, but as before, we seek a more efficient approach.

The main idea is to apply the process from section “Boundary condition p(1)=0” twice. In this case, however, it is more complicated because we do not have all of the information we need. As an intermediate step, let J¯n be the Jacobi matrix for polynomials φ¯j(x) that are orthonormal with respect to the weight function ω¯(x)=(1-x)-1. The goal is to first obtain J¯n-1 from J~n, and then obtain J^n-2 from J¯n-1.

As before, we let Tn=I-J~n. We then need to solve the (nn) entry of the matrix equation

Tn=LTL+δ¯n-1nn2enenT 61

for nn2, where δ¯n-1=xφ¯n-2,φ¯n-1ω¯. However, unlike in section “Boundary condition p(1)=0”, the value of δ¯n-1 is unknown. For now, we leave it as a variable and describe the remainder of the procedure.

Proceeding as before, we compute the factorization

Tn=δ¯n-1nn2enenT=LTL,

and then obtain J¯n=I-LLT. As this differs from the true J¯n in the (nn) entry, we delete the last row and column to obtain J¯n-1.

To accomplish the modification of the weight function by dividing by (1+x), we can proceed in a similar manner. We set T¯n-1=I+J¯n-1, and then solve the (n-1,n-1) entry of the matrix equation

T¯n-1=L¯TL¯+δ^n-2n-1,n-12en-1en-1T

for n-1,n-12, where δ^n-2 can be computed using (60).

After computing the factorization

T¯n-1-δ^n-2n-1,n-12=L¯TL¯

we finally obtain

J^n-1=L¯L¯T-I,

and delete the last row and column to obtain J^n-2.

To overcome the obstacle that δ¯n-1 is unknown, we note that correct value of the (n-2,n-2) entry of J^n-2 is known; its value can be obtained using (60) but in this case, it can be determined using properties of even and odd functions that its value must be zero. We therefore solve the nonlinear equation

F(δ¯n-1)=0,

where F(δ) is the (n-2,n-2) entry of J^n-2 obtained from J~n using the above procedure, with δ¯n-1=δ.

This equation can be solved using various root-finding methods, such as the secant method. By applying the quadratic formula in solving (61), it can be determined that the solution must lie in (0, 1 / 2]. Choosing initial guesses close to the upper bound of 1 / 2 yields rapid convergence. To improve efficiency, it should be noted that it is not necessary to compute any of the matrices in this algorithm in their entirety to obtain the (n-2,n-2) entry of J^n-2; only a select few entries from the lower right corner of each matrix are needed. As such, it is possible to solve for δ¯n-1 in O(1) arithmetic operations, and compute J^n-2 in O(n) operations overall.

Conclusions

We have obtained recurrence relations for generating orthogonal polynomials on the interval (-1,1) that satisfy the boundary conditions (1) p(1)=0 and (2) p(-1)=p(1)=0. These families of orthogonal polynomials can be used to easily implement transformation matrices between physical and frequency space for function spaces of interest for solving PDEs in polar and cylindrical geometries.

While these polynomials are orthogonal with respect to the weight function ω(s)1, it has been shown that they can easily be modified to be orthogonal with respect to the other weight functions. When modified as such to obtain GJPs, recursion coefficients can be obtained with far greater efficiency than by computing the required inner products directly.

Future work includes the development of numerical methods that make use of these families of orthogonal polynomials, or modifications thereof. This includes the adaptation of Krylov subspace spectral methods (Palchak et al. 2015) to polar and cylindrical geometries (Richardson and Lambers 2017).

Authors' contributions

The first author carried out all mathematical manipulations and drafted the manuscript. The second author determined the mathematical tasks to be performed, provided guidance in their completion, and made revisions to verbiage and either statements or proofs of theoretical results as needed. Both authors have given final approval of this version of the manuscript to be published, and agree to be accountable for all aspects of this work. Both authors read and approved the final manuscript.

Acknowledgements

The authors would like to thank their department chair, Bernd Schroeder, for his support, and also the anonymous referees for their feedback that led to substantial improvement of this paper.

Competing interests

Both authors declare that they have no competing interests.

Contributor Information

Megan Richardson, Email: Megan.Richardson@usm.edu.

James V. Lambers, Email: James.Lambers@usm.edu

References

  1. Burden RL, Faires JD (2005) Numerical analysis, Thomson brooks/cole, pp 500–501
  2. Canuto C, Hussaini MY, Quarteroni A, Zang TA. Spectral methods in fluid dynamics. Berlin: Springer; 1987. [Google Scholar]
  3. Eisen H, Heinrichs W, Witsch K. Spectral collocation methods and polar coordinate singularities. J Comput Phys. 1991;96:241–257. doi: 10.1016/0021-9991(91)90235-D. [DOI] [Google Scholar]
  4. Elhay S, Kautsky J. Jacobi matrices for measures modified by a rational factor. Numer Algorithms. 1994;6(2):205–227. doi: 10.1007/BF02142672. [DOI] [Google Scholar]
  5. Fornberg B (1995) A pseudospectral approach for polar and spherical geometries. SIAM J Sci Comput 16:1071–1081
  6. Gautschi W. The Interplay between classical analysis and (numerical) linear algebra-a tribute to Gene H. Golub. Electr Trans Numer Anal. 2002;13:119–147. [Google Scholar]
  7. Golub G, Kautsky J. Calculation of Gauss quadratures with multiple free and fixed knots. Numer Math. 1983;41:147–163. doi: 10.1007/BF01390210. [DOI] [Google Scholar]
  8. Gottlieb D, Orszag SA. Numerical analysis of spectral methods theory applications. Philadelphia, PA: SIAM-CBMS; 1977. [Google Scholar]
  9. Guo B-Y, Shen J, Wang L-L. Generalized Jacobi Polynomials/functions and their applications. Appl. Numer. Math. 2009;59:1011–1028. doi: 10.1016/j.apnum.2008.04.003. [DOI] [Google Scholar]
  10. Huang W, Sloan DM. Pole condition for singular problems: the pseudospectral approximation. J. Comput. Phys. 1993;107:254–261. doi: 10.1006/jcph.1993.1141. [DOI] [Google Scholar]
  11. Palchak EM, Cibotarica A, Lambers JV. Solution of time-dependent PDE through rapid estimation of block gaussian quadrature nodes. Linear Algebra Appl. 2015;468:233–259. doi: 10.1016/j.laa.2014.07.009. [DOI] [Google Scholar]
  12. Richardson M, Lambers JV (2017) Krylov subspace spectral methods for PDEs in polar and cylindrical geometries. In preparation
  13. Shen J. Efficient Spectral-Galerkin methods III: polar and cylindrical geometries. SIAM J. Sci. Comput. 1997;18:1583–1604. doi: 10.1137/S1064827595295301. [DOI] [Google Scholar]
  14. Shen J. A new dual-Petrov-Galerkin method for third and higher odd-order differential equations: Application to the KDV equation. SIAM J. Numer. Anal. 2003;41(5):1595–1619. doi: 10.1137/S0036142902410271. [DOI] [Google Scholar]

Articles from SpringerPlus are provided here courtesy of Springer-Verlag

RESOURCES