Abstract
This paper introduces two families of orthogonal polynomials on the interval (−1,1), with weight function . The first family satisfies the boundary condition , and the second one satisfies the boundary conditions . 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 . In Shen (2003) orthogonal bases were introduced that also satisfy these same boundary conditions. They are generalized Jacobi polynomials (GJPs) with indices , orthogonal with respect to the weight function . 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 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 . In section “The case m ≠ 0” we do the same for the boundary conditions . 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
| 1 |
| 2 |
| 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 and letting The resulting problem in polar coordinates is as follows:
| 4 |
The solution is represented using the Fourier series
| 5 |
The Fourier coefficients , must satisfy the boundary conditions for Due to the singularity at the pole we must impose additional pole conditions on (5) to have regularity in Cartesian coordinates. For to be infinitely differentiable in the Cartesian plane, the additional pole conditions are Shen (1997)
| 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:
| 7 |
where u and f are now generic functions.
Weighted formulation
We will extend (7) to the interval using a coordinate transformation as in Shen (1997). Using the coordinate transformation in (7) and setting , we obtain
| 8 |
where To formulate a weighted variational formula for (8), we must find such that
| 9 |
where if and is a weight function.
Legendre-Galerkin method
To approximate (9) using the Legendre-Galerkin method, we let and we have to find such that ,
| 10 |
where is the interpolation operator based on the Legendre–Gauss–Lobatto points. That is, where are the roots of and is the Legendre polynomial of degree N.
The case
In the case where , (10) reduces to
As before, we let be the -degree Legendre polynomial, and define 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)
where is the ith basis function. By applying the Gram-Schmidt process (Burden, Faires 2005) to these basis functions, , we can obtain a new set of orthogonal polynomials that will be denoted by , , where the degree of and is . The new basis functions, , can be found by computing
| 11 |
Fortunately, for ,
| 12 |
due to the orthogonality of the Legendre polynomials, thus greatly simplifying the computation of .
To start the sequence , we let
so then
and
The first several polynomials are shown in Fig. 1.
Fig. 1.

Graphs of ,
Now, comparing with and with , we can find a general formula for the in terms of . By subtracting from , we obtain
| 13 |
and
| 14 |
This suggests a simple recurrence relation for in terms of . Before we prove that this relation holds in general, we need the following result.
Lemma 1
Let. Then
| 15 |
Proof
We proceed by induction. For the base case, we have
For the induction step, we assume that there is a such that . We must show that the formula found in Eq. (15) is true for k. Given and using
| 16 |
we have
Theorem 1
Ifandis obtained by orthogonalizingagainst, then
| 17 |
forwhere.
Proof
Again we proceed by induction. For the base case, we will show that the theorem holds when :
| 18 |
Note that Eq. (18) is equivalent to Eq. (13). For the induction step, we assume that there is a , such that
| 19 |
We show that (17) holds when We have
Therefore, using Lemma 1 and (16), we obtain
We now prove a converse of Theorem 1.
Theorem 2
Ifandis defined as in (17) forthenwhen
Proof
Case 1:
Case 2:
All orthogonal polynomials satisfy a general three-term recurrence relation that has the form
| 20 |
where , and are constants. By enforcing orthogonality, we obtain the formulas
| 21 |
| 22 |
| 23 |
First, we will find the value of .
Theorem 3
Letbe defined as in (21). Then
Proof
Base case: When , we use (21) to obtain
For the induction hypothesis, we assume there is a such that . From and , where , we obtain
| 24 |
Now, from the recurrence relation for Legendre polynomials, we obtain
| 25 |
and
| 26 |
To calculate the middle term in Eq. (24) we will multiply by the result from Eq. (26):
| 27 |
We rearrange the formula for to obtain the following:
Therefore,
| 28 |
Now we can use the results from Eqs. (25)–(28) to determine the numerator of
Hence,
Now, we will find the value of .
Theorem 4
Letbe defined as in (22). Then
Proof
For the base case, we consider :
For the induction step, we assume there is a such that . From and where we obtain
| 29 |
Using the recurrence relation for Legendre polynomials, we obtain
| 30 |
and
We then have
| 31 |
The last term in (29) is obtained as follows:
We then have
| 32 |
We rearrange the formula for to obtain the following:
Therefore,
| 33 |
Now we can use the results from Eqs. (30)–(33) to determine the numerator of
Hence,
Using the same approach as in the preceding proof, we obtain
| 34 |
In summary, the polynomials satisfy the recurrence relation
| 35 |
We can rewrite Eq. (19) as . In matrix form, we have
| 36 |
where and , with being a vector of at least Legendre–Gauss–Lobatto points. This ensures that the columns of are orthogonal.
Then, given , we can obtain the coefficients in
by simply computing , where is as defined in (15). Then the coefficients in
can be obtained by solving the system 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 .
The case
In the case where , we work with the space
As discussed in Shen (1997), this space can easily be described in terms of Legendre polynomials:
Applying the Gram-Schmidt process to the basis functions , we obtain a new set of orthogonal polynomials that will be denoted as . These basis functions are obtained in the same way as in Eq. (11). First, we let
and
Then, we have
and
The graphs of the first several members of the sequence are shown in Fig. 2.
Fig. 2.

Graphs of ,
Again, we will compare with and with to find a general formula for the values of We obtain the following formula
| 37 |
and
These results suggest a simple recurrence relation for in terms of and , in which the coefficient of is a ratio of triangular numbers . We therefore define
| 38 |
with initial conditions
| 39 |
To prove that these polynomials are actually orthogonal, we first need this result.
Lemma 2
Letbe defined as in (38), (39), and let, Then
| 40 |
and
Proof
For the base case, we compute and directly. We have
and
For the induction step, we assume there is a such that Now, we must show that the formula (40) is true for j. We have
Theorem 5
Letbe obtained by orthogonalizingagainstThen, , and
| 41 |
where.
Proof
For the base case, we first show that and are already orthogonal. We have
Next, we show directly that the theorem holds when :
| 42 |
For the induction step, we assume that are all orthogonal, where , and that
where . Then
Using Lemma 2, we obtain
We now confirm that the polynomials defined using the recurrence (41) are orthogonal.
Theorem 6
Letbe defined as follows:
Thenfor.
Proof
We will show that for each for The case was handled in the proof of Theorem 5. Proceeding by induction, we assume are all orthogonal, and show that for
Case 1:
Case 2:
Case 3: . If , then we have
If , then the steps are the same, except that the term with is not present.
Like all families of orthogonal polynomials, the satisfy the recurrence relation
| 43 |
By analogy with (21), (22) and (23), we have
| 44 |
| 45 |
| 46 |
Because 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 for We will now find the values of and .
Theorem 7
Letbe defined as in (45). Then
Proof
We show the base case directly:
For the induction step, we assume there is a such that .
Then, using (45), we have and where For the numerator, we have
| 47 |
We now compute each part of this numerator as follows:
| 48 |
Then
| 49 |
For the third term in (47), we have
and therefore
| 50 |
We rearrange the formula for to obtain the following:
Therefore,
| 51 |
Now we can use the results from Eqs. (48)–(51) to determine the numerator of
| 52 |
Thus,
From (46), (52), and Lemma 2, we obtain
| 53 |
In summary, we have
| 54 |
Equation (41) can be rewritten as . Now, we have the system
| 55 |
where and , with being a vector of at least Legendre-Gauss-Lobatto points. This ensures that the columns of are orthogonal.
Then, given , we can obtain the coefficients in
by simply computing , where is as defined in (40). Then the coefficients in
can be obtained by solving the system 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 .
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 . 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 be the Jacobi matrix consisting of the recursion coefficients corresponding to a sequence of polynomials , that is orthonormal with respect to the inner product
where , and let be the Jacobi matrix for a sequence of polynomials , that is orthonormal with respect to the inner product
where the measure is a modification of by some factor. The following procedures can be used to generate from :
- Dividing by a linear factor: In the case , 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 . We have
where and and are vectors that need not be computed if one is content with only computing .
In either case, the original and modified polynomials are related by L:
where and .
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 , to obtain such recurrences.
Boundary condition
We first demonstrate how the polynomials from section “The case m = 0” can be modified to obtain the three-term recurrence for the GJPs
| 57 |
which are orthogonal on with respect to the weight function (Guo et al. 2009; Shen 2003). Like the , these polynomials satisfy the boundary condition .
Let
| 58 |
be the matrix of recursion coefficients for the , where , and are as defined in (21), (22), (23), respectively. First, we apply a diagonal similarity transformation to symmetrize , which yields
| 59 |
where for .
Let be the Jacobi matrix for the polynomials . Since its measure is a modification of that of and by dividing by a linear factor, certainly the IC algorithm can be used to compute directly from , but this requires arithmetic operations, which exceeds the cost of computing the entries of 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 , in view of the modification . Then, we solve the (n, n) entry of the matrix equation
for , where L is lower triangular. As this equation is quadratic in , we choose the larger root. The entry of can be computed using (57).
Next, we compute the factorization
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
This matrix actually differs from the correct in the (n, n) entry. Therefore, deleting the last row and column yields the correct . 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
We now show how to efficiently obtain recursion coefficients for the GJPs
| 60 |
which are orthogonal on with respect to the weight function . Like the from section “The case m ≠ 0”, these polynomials satisfy the boundary conditions .
Let , be defined as in (58), (59), except that , and are as defined in (44), (45), (46), respectively, and let be the Jacobi matrix for the polynomials . Since its measure is a modification of that of and by dividing by two distinct linear factors, the IC algorithm can be applied twice to compute directly from , but as before, we seek a more efficient approach.
The main idea is to apply the process from section “Boundary condition ” 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 be the Jacobi matrix for polynomials that are orthonormal with respect to the weight function . The goal is to first obtain from , and then obtain from .
As before, we let . We then need to solve the (n, n) entry of the matrix equation
| 61 |
for , where . However, unlike in section “Boundary condition ”, the value of is unknown. For now, we leave it as a variable and describe the remainder of the procedure.
Proceeding as before, we compute the factorization
and then obtain . As this differs from the true in the (n, n) entry, we delete the last row and column to obtain .
To accomplish the modification of the weight function by dividing by , we can proceed in a similar manner. We set , and then solve the entry of the matrix equation
for , where can be computed using (60).
After computing the factorization
we finally obtain
and delete the last row and column to obtain .
To overcome the obstacle that is unknown, we note that correct value of the entry of 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
where is the entry of obtained from using the above procedure, with .
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 entry of ; only a select few entries from the lower right corner of each matrix are needed. As such, it is possible to solve for in O(1) arithmetic operations, and compute in O(n) operations overall.
Conclusions
We have obtained recurrence relations for generating orthogonal polynomials on the interval that satisfy the boundary conditions (1) and (2) . 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 , 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
- Burden RL, Faires JD (2005) Numerical analysis, Thomson brooks/cole, pp 500–501
- Canuto C, Hussaini MY, Quarteroni A, Zang TA. Spectral methods in fluid dynamics. Berlin: Springer; 1987. [Google Scholar]
- 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]
- 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]
- Fornberg B (1995) A pseudospectral approach for polar and spherical geometries. SIAM J Sci Comput 16:1071–1081
- 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]
- 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]
- Gottlieb D, Orszag SA. Numerical analysis of spectral methods theory applications. Philadelphia, PA: SIAM-CBMS; 1977. [Google Scholar]
- 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]
- 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]
- 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]
- Richardson M, Lambers JV (2017) Krylov subspace spectral methods for PDEs in polar and cylindrical geometries. In preparation
- 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]
- 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]
