Abstract

We present a numerical method for a class of boundary value problems on the unit interval which feature a type of power-law nonlinearity. In order to numerically solve this type of nonlinear boundary value problems, we construct a kind of spectral collocation method. The spatial approximation is based on shifted Jacobi polynomials with , and the polynomial degree. The shifted Jacobi-Gauss points are used as collocation nodes for the spectral method. After deriving the method for a rather general class of equations, we apply it to several specific examples. One natural example is a nonlinear boundary value problem related to the Yamabe problem which arises in mathematical physics and geometry. A number of specific numerical experiments demonstrate the accuracy and the efficiency of the spectral method. We discuss the extension of the method to account for more complicated forms of nonlinearity.

1. Introduction

Spectral methods (see, for instance, [16]) are one of the principal methods of discretization for the numerical solution of differential equations. The three most widely used spectral versions are the Galerkin, collocation, and tau methods. Collocation methods [712] have become increasingly popular for solving differential equations, also they are very useful in providing highly accurate solutions to nonlinear differential equations. In the present paper, we intend to extend the application of Jacobi polynomials from Galerkin method for solving two-point linear problems (see [13, 14]) to collocation method to solve nonlinear second-order initial value problems. To the best of our knowledge, there are not so many results on Jacobi-Gauss collocation method for differential equations of second-order arising in mathematical physics. This partially motivated our interest in such a method.

A well-known advantage of a spectral method is that it achieves high accuracy with relatively fewer spatial grid points when compared with a finite-difference method. On the other hand, spectral methods typically give rise to full matrices, partially negating the gain in efficiency due to the fewer number of grid points. In general, the use of Jacobi polynomials ( with and is the polynomial degree) has the advantage of obtaining the solutions of differential equations in terms of the Jacobi indexes and (see, e.g., [15, 16]).

Each of these particular pairs of and has been used separately for solving approximately differential equations (see [1720]). Hence, to generalize and instead of developing approximation results for each particular pair of indexes, it would be very useful to carry out a systematic study on Jacobi polynomials with general indexes which can then be directly applied to other applications [21].

In the present paper, we will consider the nonlinear ordinary boundary value problem Here is a nonzero parameter, while is the power-law index. The larger the deviation of from either 1 or 0, the stronger the nonlinearity. Physically, it makes sense to consider . Note that the final boundary condition is sufficiently general. Indeed, if we are given , we may always rescale the dependent and independent variables to get provided that and .

One example of such a boundary value problem would be for the Yamabe equation on a sphere. The Yamabe equation is a nonlinear differential equation arising in geometry and related areas of mathematical physics [2224]. Under the assumption of radial solutions, the Yamabe problem can be put into correspondence with (1)-(2) for appropriate and . Previously, some approximate analytical results were obtained by Van Gorder [25].

Note also that the boundary value problem somewhat resembles the Lane-Emden problem of the first kind [2629], since there is a power-law nonlinearity. However, the Lane-Emden problem of the first kind is different in two ways. First, the linear term is not present in the Lane-Emden problem. This term alters the linearized eigenvalue problem and hence would change the base functions used in any approximation scheme. Secondly, the present problem is a boundary value problem, while the Lane-Emden problem of the first kind is an initial value problem with initial conditions . So, the present problem is rather different from those previously considered in the literature and hence merits study. Another difference is that, in the Lane-Emden problem of the first kind, the power-law index is often an integer. Here, the value of is any positive rational number. As it turns out, is often not an integer, in the case of problems such as the Yamabe problem.

The fundamental goal of this paper is to develop a suitable way to approximate power-law nonlinear ODEs (1) with boundary conditions (2) on the interval numerically using the Jacobi polynomials. We propose a spectral shifted Jacobi-Gauss collocation (SJC) method to find an approximate numerical solution . The ODE (1) is collocated only at points. For suitable collocation points we use the nodes of the shifted Jacobi-Gauss interpolation on . These equations together with initial condition generate algebraic equations which can be solved using Newton’s iterative method. Finally, the accuracy of the proposed methods is demonstrated by test problems, and numerical results are presented in which the exponential convergence behavior of spectral approximations is exhibited. The numerical experiments demonstrate that the method is both efficient and accurate.

This paper is organized as follows. In Section 2 we give an overview of shifted Jacobi polynomials and their relevant properties needed hereafter. Then, in Section 3, we construct the collocation method for (1) using the shifted Jacobi polynomials. We derive the numerical method for general values of the model parameters and . In Section 4, we present some numerical results exhibiting the accuracy and efficiency of our numerical algorithms. We consider a wide variety of parameter regimes, in order to demonstrate the robustness of the numerical scheme. Such results are related to radial solutions of the Yamabe problem. In particular, in the Yamabe problem the power-law index is a function of the spatial dimension, and as the spatial dimension increases, the power-law index remains bounded like . Hence, we are able to use the present results to infer properties of solutions to the Yamabe problem.

2. Preliminaries

Let , , and be the standard Jacobi polynomial of degree . Then we have that Furthermore, note that Let . We define the weighted space as usual, equipped with the following inner product and norm: The set of Jacobi polynomials forms a complete -orthogonal system, and If we define the shifted Jacobi polynomial of degree by , and in virtue of (3) and (4), then it can be easily shown that

Next, let . We define the weighted space in the usual way, with the following inner product and norm: The set of shifted Jacobi polynomials forms a complete -orthogonal system. Moreover, and due to (6), we have For one recovers the shifted ultraspherical polynomials (symmetric Jacobi polynomials) and for , we recover the shifted Chebyshev of the first and second kinds and the shifted Legendre polynomials, respectively. For the nonsymmetric shifted Jacobi polynomials, the two important special cases (shifted Chebyshev polynomials of the third and fourth kinds) are also recovered.

We denote by , the nodes of the standard Jacobi-Gauss interpolation on the interval . Their corresponding Christoffel numbers are , . The nodes of the shifted Jacobi-Gauss interpolation on the interval are the zeros of , which we denote by , . Clearly and their corresponding Christoffel numbers are , . Let be the set of polynomials of degree at most . Thanks to the property of the standard Jacobi-Gauss quadrature, it follows that for any ,

3. Shifted Jacobi-Gauss Collocation Method

In this section, we consider a Jacobi-Gauss collocation method approach to numerically solve the nonlinear boundary value problem subject to The choice of collocation points is important for the convergence and efficiency of the collocation method. It should be noted that for a second-order differential equation with the singularity at in the interval , one is unable to apply the collocation method with Jacobi-Gauss-Radau points because the fixed node is necessary to use as a point from the collocation nodes. In fact, the collocation method with Jacobi-Gauss nodes are used to treat singular second-order differential equation; that is, we collocate the singular nonlinear ODE only at the Jacobi-Gauss points that are the zeros of the shifted Jacobi polynomial on . These equations together with two initial conditions generate nonlinear algebraic equations which can be solved.

Let us first introduce some basic notation. We set and we define the discrete inner product and norm as follows: Here and are the nodes and the corresponding weights of the shifted Jacobi-Gauss quadrature formula on the interval , respectively. Obviously, Thus, for any , the norms and coincide.

Associating with this quadrature rule, we denote by the shifted Jacobi-Gauss interpolation,

The shifted Jacobi-Gauss collocation method for solving (13) and (14) is to seek , such that We now derive an algorithm for solving (13) and (14). To do this, let We first approximate , and , as (20). By substituting these approximation in (13), we get Then, by virtue of (9), we deduce that Also, by substituting (20) in (14) we obtain To find the solution , we first collocate (22) at the Jacobi rational roots, yielding Equation (23), after using (7) and (8), can be written as

Finally, from (24) and (25), we get nonlinear algebraic equations which can be solved for the unknown coefficients by using any standard iteration technique, like Newton’s iteration method. Consequently, given in (20) can be evaluated.

With this, we have derived the relevant spectral method for the boundary value problems (1)-(2). In what follows, we will apply the method to obtain approximate numerical solutions to some specific values of and . In doing so, we will be able to demonstrate the accuracy and efficiency of the method.

4. Numerical Experiments and Examples

The Yamabe equation is a nonlinear differential equation arising in geometry and related areas of mathematical physics [2224]. Previously, some approximate analytical results were obtained by Van Gorder [25]. We will consider the Yamabe equation on the unit ball in , where is the dimension of the space. Previously, some approximate analytical results were obtained by Van Gorder [25]. However, the analytical method employed there becomes complicated after a number of iterations, hindering computational efficiency. The Yamabe equation is a strongly nonlinear partial differential equation for any choice of greater than two. Note that the nonlinearity strongly depends on the problem dimension. To simplify the situation, we assume a radially symmetric solution For simplicity of notation, let us also pick the constant so that for we have . Then, under appropriate scaling of the dependent and independent variables, the Yamabe is put into the form Here is a parameter. We should remark that (28) is similar in form to the Lane-Emden equation of the first kind which has been considered in the literature [2629]. Note that (28) has an extra term, and that the form of the conditions is different (the relevant Lane-Emden problem is an initial value problem, not a boundary value problem). So, this problem will be a bit harder to solve than the Lane-Emden initial value problem. Both and are parameters. We can take to be a real number, whereas depends on : if , ; if , ; if , ; and so on. As tends to infinity, tends to 1, so the problem is linear in this limit and the problem can be solved exactly.

In this section we show the accuracy and rapid convergence of the proposed spectral method for this boundary value problem. Table 1 shows the approximations of for indices , 3 and , respectively, with (first kind shifted Chebyshev collocation method), (shifted Legendre collocation method), and (second kind shifted Chebyshev collocation method) at . Moreover, we list the values of the approximate solution at for the two special choices , 2, and , respectively in Table 2.

Tables 3, 4, 5, and 6 show absolute residual errors of for indices , 3, 7/3, 2, and , 4/3, 1/3, −1/3, respectively, with various choices of and at and . In these tables, we compare the results obtained by adopting different choices of the two shifted Jacobi parameters and , and we conclude that the present method is very convenient for all choices of and and produces highly accurate solutions to the radial form of the Yamabe equation. Note that since no exact solution exists to (28), residual errors are the best way to deduce the error properties of solutions.

In the case of , the approximate solution by the presented method is shown in Figure 1, , 0.33, 0.25, 0.20, 0.16, , and at . These plots show that the obtained solutions increase radially from a minimal value which occurs at to a maximal value of 1 which occurs on the boundary.

Logarithmic graphs of absolute coefficients of shifted Jacobi polynomials of (13) are shown in Figures 2 and 3 and show that the method has exponential convergence rate. This implies that accurate solutions can be obtained after relatively few iterations of the spectral method (i.e., using relatively few nodes). Therefore, the derived method is quite efficient for use with the Yamabe equation.

Figures 4 and 5 show that the residual error functions for and , −0.5, , . The errors are absolute, as opposed to relative. Again, there are no exact solutions to problems (1)-(2), we must rely on residual errors rather than any exact errors or errors relative to an exact solution. We see that the residual errors are extremely small on the problem domain, owing to the the accuracy of the method.

With this, we have demonstrated the accuracy and efficiency of the proposed spectral method for radial Yamabe equation (28), for a number of model parameters. Importantly, the method remains applicable for a variety of values of , which directly controls the extent of the nonlinearity in the problem. Therefore, the method appears rather robust in light of the strong nonlinearity inherent in the Yamabe problem.

5. Conclusions

We have derived a spectral method, involving Jacobi polynomials, which permits us to numerically solve a class of nonlinear boundary value problems which feature power-law nonlinearity. For suitable collocation points, we use the nodes of the shifted Jacobi-Gauss interpolation on . These equations together with initial condition generate algebraic equations which can be solved using Newton’s iterative method. For the parameter regimes considered, the coefficients of the shifted Jacobi polynomials in the solutions of the boundary value problem are shown to decay exponentially in magnitude. This implies that the method has a rapid convergence rate, which in turn tells us that accurate solutions can be obtained after relatively few iterations of the spectral method (i.e., using relatively few nodes). In other words, the method is rather efficient for solving the class of nonlinear boundary value problems considered.

Indeed, in Section 4, we demonstrated that for all parameter regimes considered, the method results in rather small residual errors after relatively few nodes are considered. As such, we may infer that the method is accurate in approximating a true solution to boundary value problems of the type considered here, such as that for the radial Yamabe equation. We have considered a number of forms of nonlinearity in our numerical experiments, corresponding to different values of the power index which governed the strength of the nonlinearity. Therefore, the spectral method is accurate and efficient for a wide variety of nonlinearities. In the case of the Yamabe problem, mapping the solutions back to the original -dimensional space, we see that the method is robust for arbitrary space dimension . Recall that the parameter is a decreasing function of , and the strongest nonlinearity actually occurs for in the Yamabe example.

Since the method is rather robust, it is likely that it may be applied to other type of non-linear boundary value problems with more complicated forms of nonlinearity. For instance, based on the results here, it seems likely that the method derived in Section 3 can be extended to problems of the type

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

Acknowledgments

This paper was funded by the Deanship of Scientific Research DSR, King Abdulaziz University, Jeddah. The authors, therefore, acknowledge with thanks DSR technical and financial support. R.A.V. supported in part by NSF Grant no. 1144246.