Abstract and Applied Analysis

Volume 2014, Article ID 425648, 9 pages

http://dx.doi.org/10.1155/2014/425648

## An Efficient Collocation Method for a Class of Boundary Value Problems Arising in Mathematical Physics and Geometry

^{1}Department of Mathematics, Faculty of Science, King Abdulaziz University, Jeddah 21589, Saudi Arabia^{2}Department of Mathematics, Faculty of Science, Beni-Suef University, Beni-Suef 62511, Egypt^{3}Department of Mathematics, University of Central Florida, Orlando, FL 32816, USA

Received 24 March 2014; Revised 2 May 2014; Accepted 3 May 2014; Published 15 May 2014

Academic Editor: Dumitru Baleanu

Copyright © 2014 A. H. Bhrawy et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### 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, [1–6]) 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 [7–12] 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 [17–20]). 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 [22–24]. 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 [26–29], 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 [22–24]. 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 [26–29]. 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.

#### References

- C. Canuto, M. Y. Hussaini, A. Quarteroni, and T. A. Zang,
*Spectral Methods in Fluid Dynamics*, Springer, New York, NY, USA, 1988. View at Publisher · View at Google Scholar · View at MathSciNet - B. Fornberg,
*A Practical Guide to Pseudospectral Methods*, vol. 1, Cambridge University Press, Cambridge, UK, 1998. View at Publisher · View at Google Scholar · View at MathSciNet - E. H. Doha, A. H. Bhrawy, D. Baleanu, and R. M. Hafez, “A new Jacobi rational-Gauss collocation method for numerical solution of generalized pantograph equations,”
*Applied Numerical Mathematics.*, vol. 77, pp. 43–54, 2014. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - R. Peyret,
*Spectral Methods for Incompressible Viscous Flow*, vol. 148, Springer, New York, NY, USA, 2002. View at Publisher · View at Google Scholar · View at MathSciNet - L. N. Trefethen,
*Spectral Methods in MATLAB*, vol. 10, SIAM, Philadelphia, Pa, USA, 2000. View at Publisher · View at Google Scholar · View at MathSciNet - E. H. Doha, A. H. Bhrawy, D. Baleanu, and M. A. Abdelkawy, “Numerical treatment of coupled nonlinear hyperbolic Klein-Gordon equations,”
*Romanian Journal of Physics*, vol. 59, pp. 247–264, 2014. View at Google Scholar - F. Yin, J. Song, Y. Wu, and L. Zhang, “Numerical solution of the fractional partial differential equations by the two-dimensional fractional-order Legendre functions,”
*Abstract and Applied Analysis*, vol. 2013, Article ID 562140, 13 pages, 2013. View at Publisher · View at Google Scholar · View at MathSciNet - D. Baleanu, A. H. Bhrawy, and T. M. Taha, “Two efficient generalized Laguerre spectral algorithms for fractional initial value problems,”
*Abstract and Applied Analysis*, vol. 2013, Article ID 546502, 10 pages, 2013. View at Publisher · View at Google Scholar · View at MathSciNet - E. H. Doha, A. H. Bhrawy, R. M. Hafez, and R. A. van Gorder, “A Jacobi rational pseudospectral method for Lane-Emden initial value problems arising in astrophysics on a semi-infinite interval,”
*Computational and Applied Mathematics*, 2013. View at Publisher · View at Google Scholar - R. C. Mittal and R. Bhatia, “Numerical solution of second order one dimensional hyperbolic telegraph equation by cubic B-spline collocation method,”
*Applied Mathematics and Computation*, vol. 220, pp. 496–506, 2013. View at Publisher · View at Google Scholar · View at MathSciNet - Y. Yang and Y. Huang, “Spectral-collocation methods for fractional pantograph delay-integrodifferential equations,”
*Advances in Mathematical Physics*, vol. 2013, Article ID 821327, 14 pages, 2013. View at Publisher · View at Google Scholar · View at MathSciNet - M. H. Heydari, M. R. Hooshmandasl, C. Cattani, and M. Li, “Legendre wavelets method for solving fractional population growth model in a closed system,”
*Mathematical Problems in Engineering*, vol. 2013, Article ID 161030, 8 pages, 2013. View at Publisher · View at Google Scholar · View at MathSciNet - A. H. Bhrawy and M. A. Alghamdi, “A shifted Jacobi-Gauss-Lobatto collocation method for solving nonlinear fractional Langevin equation involving two fractional orders in different intervals,”
*Boundary Value Problems*, vol. 2012, p. 62, 2012. View at Google Scholar - E. H. Doha, A. H. Bhrawy, and W. M. Abd-Elhameed, “Jacobi spectral Galerkin method for elliptic Neumann problems,”
*Numerical Algorithms*, vol. 50, no. 1, pp. 67–91, 2009. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - A. H. Bhrawy, “A Jacobi-Gauss-Lobatto collocation method for solving generalized Fitzhugh-Nagumo equation with time-dependent coefficients,”
*Applied Mathematics and Computation*, vol. 222, pp. 255–264, 2013. View at Publisher · View at Google Scholar · View at MathSciNet - E. H. Doha, A. H. Bhrawy, M. A. Abdelkawy, and R. A. van Gorder, “Jacobi-Gauss-Lobatto collocation method for the numerical solution of $1+1$ nonlinear Schrödinger equations,”
*Journal of Computational Physics*, vol. 261, pp. 244–255, 2014. View at Publisher · View at Google Scholar · View at MathSciNet - W. Heinrichs, “Spectral approximation of third-order problems,”
*Journal of Scientific Computing*, vol. 14, no. 3, pp. 275–289, 1999. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - K. Aghigh, M. Masjed-Jamei, and M. Dehghan, “A survey on third and fourth kind of Chebyshev polynomials and their applications,”
*Applied Mathematics and Computation*, vol. 199, no. 1, pp. 2–12, 2008. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - M. Fernandino, C. A. Dorao, and H. A. Jakobsen, “Jacobi Galerkin spectral method for cylindrical and spherical geometries,”
*Chemical Engineering Science*, vol. 62, pp. 6777–6783, 2007. View at Publisher · View at Google Scholar - E. H. Doha and A. H. Bhrawy, “An efficient direct solver for multidimensional elliptic Robin boundary value problems using a Legendre spectral-Galerkin method,”
*Computers & Mathematics with Applications*, vol. 64, no. 4, pp. 558–571, 2012. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - E. H. Doha, A. H. Bhrawy, and R. M. Hafez, “On shifted Jacobi spectral method for high-order multi-point boundary value problems,”
*Communications in Nonlinear Science and Numerical Simulation*, vol. 17, no. 10, pp. 3802–3810, 2012. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - S. Y. Alice Chang, Z. C. Han, and P. Yang, “Classification of singular radial solutions to the [sigma] k Yamabe equation on annular domains,”
*Journal of Differential Equations*, vol. 216, pp. 482–501, 2005. View at Publisher · View at Google Scholar - L. Andersson, P. T. Chruściel, and H. Friedrich, “On the regularity of solutions to the Yamabe equation and the existence of smooth hyperboloidal initial data for Einstein’s field equations,”
*Communications in Mathematical Physics*, vol. 149, no. 3, pp. 587–612, 1992. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - S. Brendle, “Blow-up phenomena for the Yamabe equation,”
*Journal of the American Mathematical Society*, vol. 21, no. 4, pp. 951–979, 2008. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - R. A. van Gorder, “Control of error in the homotopy analysis of semi-linear elliptic boundary value problems,”
*Numerical Algorithms*, vol. 61, no. 4, pp. 613–629, 2012. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - H. Adibi and A. M. Rismani, “On using a modified Legendre-spectral method for solving singular IVPs of Lane-Emden type,”
*Computers & Mathematics with Applications*, vol. 60, no. 7, pp. 2126–2130, 2010. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - A. H. Bhrawy and A. S. Alofi, “A Jacobi-Gauss collocation method for solving nonlinear Lane-Emden type equations,”
*Communications in Nonlinear Science and Numerical Simulation*, vol. 17, no. 1, pp. 62–70, 2012. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - K. Parand, M. Shahini, and M. Dehghan, “Rational Legendre pseudospectral approach for solving nonlinear differential equations of Lane-Emden type,”
*Journal of Computational Physics*, vol. 228, no. 23, pp. 8830–8840, 2009. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - R. A. van Gorder and K. Vajravelu, “Analytic and numerical solutions to the Lane-Emden equation,”
*Physics Letters A*, vol. 372, no. 39, pp. 6060–6065, 2008. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet