Skip to main content

Numerical solutions for the linear and nonlinear singular boundary value problems using Laguerre wavelets

Abstract

In this paper, a collocation method based on Laguerre wavelets is proposed for the numerical solutions of linear and nonlinear singular boundary value problems. Laguerre wavelet expansions together with operational matrix of integration are used to convert the problems into systems of algebraic equations which can be efficiently solved by suitable solvers. Illustrative examples are given to demonstrate the validity and applicability of this technique, and the results have been compared with the exact solutions.

Introduction

Singular boundary value problems (BVPs) for ordinary differential equations occur frequently in the fields of engineering and science such as gas dynamics, nuclear physics, atomic structures and chemical reactions [1]. In most cases, we do not always find the exact solutions for the singular boundary values problems via analytical methods. In this case, it is very meaningful to give the high precision numerical solutions for this kind of problem by numerical methods.

The purpose of this paper is to develop a Laguerre wavelets collocation method as an alternative method to solve singular two-point boundary value problems of the form [2]

$$\begin{aligned} \mu''(x)+\frac{L}{x} \mu'(x)+f\bigl(x,\mu (x)\bigr)=g(x),\quad x\in D, \end{aligned}$$
(1)

subject to the following initial and boundary conditions:

$$\begin{aligned} \mbox{Type I}: &\quad \mu(a)=\alpha _{1},\qquad \mu (b)= \beta_{1}, \end{aligned}$$
(2)
$$\begin{aligned} \mbox{Type II}:& \quad \mu'(a)=\alpha _{2},\qquad \mu (b)=\beta_{2}, \end{aligned}$$
(3)
$$\begin{aligned} \mbox{Type III}:&\quad \mu(a)=\alpha _{3},\qquad \mu'(a)=\beta_{3}, \end{aligned}$$
(4)

and the most general mixed boundary conditions

$$\begin{aligned} \mbox{Type IV}: \quad a_{1}\mu (a)+a_{2} \mu'(a)=\alpha _{4}, \qquad b_{1} \mu(b)+b_{2}\mu'(b)=\beta_{4}, \end{aligned}$$
(5)

where L, \(a_{i}\), \(b_{i}\), \(i=1, 2\), \(\alpha _{i}\), \(\beta_{i}\), \(i=1, 2, 3, 4\) are known constants, D is an open or half-open interval with endpoints a and b, \(f(x, \mu(x))\) and \(g(x)\) are continuous real valued functions on D.

Numerous research work has been invested to study the singular BVPs of the form (1)-(5). For more details, the reader is kindly recommended to see the survey in [1]. Recently, many researchers have obtained approximations for singular BVPs via various methods. For example, Kanth and Aruna applied He’s variational iteration method [3], Chang employed the Taylor series method [4], Singh and Kumar proposed a new technique based on Green’s function [5], Sahlan and Hashemizadeh used the wavelet Galerkin method [6], Arqub et al. studied a continuous genetic algorithm [7], Ebaid used the Adomian decomposition method [8], Goh et al. developed a quartic B-spline method [9], and Nasab proposed the Chebyshev finite difference method [10]. Moreover, orthogonal polynomial methods have seen significant achievements in dealing with singular boundary value problems, for example, Legendre polynomials [11], Chebyshev polynomials [2], Bernstein polynomials [12], Laguerre polynomials [13], Bessel polynomials [14], Hermite polynomials [15], and Bernoulli polynomials [16]. Note that these polynomials are supported on the whole interval. This is obviously a defect for certain analysis work, especially problems involving local functions vanishing outside a short interval. However, one advantage of wavelet analysis is the ability to perform a local analysis. This characteristic of time-frequency localization can overcome the defect and allows us to obtain very accurate numerical solutions.

There are two different approaches for solving differential equations. One approach is based on converting differential equations into integral equations through integration, approximating various signals involved in the equation by truncated orthogonal series, and using the operational matrix of integration, to eliminate the integral operations [17]. Another one is based on using operational matrix of derivatives in order to reduce the problem into solving a system of linear or nonlinear algebraic equations. There are some papers in the literature about using the operational matrix of derivatives to solve differential equations [6, 18, 19].

The rest of this paper is organized as follows. In Section 2, we introduce the Laguerre wavelets and the operational matrix of integration. The error estimation of the Laguerre wavelets expansion is also given. In Section 3, the proposed method is used to approximate solutions of the problems. Section 4 gives several examples to test the proposed method. A conclusion is drawn in Section 5.

Laguerre wavelets and their properties

Wavelets and Laguerre wavelets

Wavelets constitute a family of functions constructed from dilation and translation of a single function called the mother wavelet. When the dilation parameter a and the translation parameter b vary continuously, we have the following family of continuous wavelets:

$$\psi_{a,b}(t)=|a|^{-1/2}\psi\biggl(\frac{t-b}{a}\biggr), \quad a,b\in \mathbb {R},a\neq0. $$

If we restrict the parameters a and b to discrete values as \(a=a_{0}^{-j}\), \(b=mb_{0}a_{0}^{-j}\), where \(a_{0}>1\), \(b_{0}>0\), and j, m are positive integers, we have the following family of discrete wavelets:

$$\psi_{j,m}(t)=|a_{0}|^{j/2}\psi\bigl(a_{0}^{j}t-mb_{0} \bigr), $$

which form a wavelet basis for \(L^{2}(\mathbb {R})\). In particular, when \(a_{0}=2\) and \(b_{0}=1\), then \(\psi_{j,m}(t)\) form an orthonormal basis.

The Laguerre wavelets \(\psi_{n,m}(t)=\psi(k,n,m,t)\) have four arguments: k can assume any positive integer, \(n=1,2,3,\ldots ,2^{k-1}\), m is the degree of Laguerre polynomials, and t is the normalized time. They are defined on the interval \([0, 1)\) as

$$\psi_{n,m}(t)=\left \{ \textstyle\begin{array}{@{}l@{\quad}l} 2^{\frac{k}{2}}L_{m}(2^{k}t-2n+1), & \frac{n-1}{2^{k-1}}\leq t < \frac{n}{2^{k-1}}, \\ 0, & \mbox{otherwise}, \end{array}\displaystyle \right . $$

where \(m=0, 1, 2, \ldots, M-1\) and M is a fixed positive integer, \(L_{m}(t)\) are the Laguerre polynomials of degree m which are orthogonal with respect to the weight function \(\omega(t)=e^{-t}\) on the interval \([0, \infty)\) and satisfy the following recursive formula:

$$L_{0}(t)=1, \quad L_{1}(t)=1-t, \quad L_{m+1}(t)= \frac {(2m+1-t)L_{m}(t)-mL_{m-1}(t)}{m+1}, \quad m=1, 2, 3, \ldots. $$

A function \(\mu(x)\in L^{2}(\mathbb {R})\) defined over \([0,1)\) may be expanded by Laguerre wavelets as

$$ \mu(x)=\sum^{\infty}_{n=1} \sum ^{\infty }_{m=0}c_{n,m} \psi_{n,m}(x). $$
(6)

If the infinite series in equation (6) is truncated, then it can be written by

$$\mu(x)\cong\sum^{2^{k-1}}_{n=1} \sum ^{M-1}_{m=0}c_{n,m}\psi _{n,m}(x)= \mathbf{C}^{T}{\boldsymbol {\Psi}}(x), $$

where C and \({\boldsymbol {\Psi}}(x)\) are \(2^{k-1}M\times1\) matrices given by

$$\begin{aligned} &\mathbf{C}=\left ( \textstyle\begin{array}{@{}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{}} c_{1,0} & c_{1,1} & \cdots& c_{1,M-1} & c_{2,0}& c_{2,1} & \cdots& c_{2,M-1} & \cdots& c_{2^{k-1},0}& c_{2^{k-1},1} & \cdots& c_{2^{k-1},M-1} \end{array}\displaystyle \right )^{T}, \\ &{\boldsymbol {\Psi}}(x)=\left ( \textstyle\begin{array}{@{}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{}} \psi_{1,0} &\psi_{1,1} & \cdots& \psi_{1,M-1} & \psi_{2,0}& \psi _{2,1} & \cdots& \psi_{2,M-1} & \cdots& \psi_{2^{k-1},0}& \psi _{2^{k-1},1} & \cdots& \psi_{2^{k-1},M-1} \end{array}\displaystyle \right )^{T}. \end{aligned}$$
(7)

Since the truncated Laguerre wavelets series can be an approximate solution of singular BVPs, one has an error function \(E(x)\) for \(\mu (x)\) as follows:

$$E(x)=\bigl|\mu(x)-\mathbf{C}^{T}{\boldsymbol {\Psi}}(x)\bigr|. $$

The following theorem gives the error estimation of the Laguerre wavelets expansion.

Theorem 1

Suppose that \(\mu(x)\in C^{m}[0,1]\) and \(\mathbf{C}^{T}{\boldsymbol {\Psi} }(x)\) is the approximate solution using Laguerre wavelets. Then the error bound would be given by

$$\bigl\| E(x)\bigr\| \leq \biggl\| \frac{2}{m!4^{m}2^{m(k-1)}}\max_{x\in [0,1]}\bigl|\mu^{(m)}(x)\bigr| \biggr\| . $$

Proof

We divide the interval \([0, 1]\) into \(2^{k-1}\) subintervals \(I_{n}=[\frac{n-1}{2^{k-1}}, \frac{n}{2^{k-1}}]\), \(n=1, 2, 3, \ldots, 2^{k-1}\). Then

$$\begin{aligned} \bigl\| E(x)\bigr\| ^{2} =& \int_{0}^{1}\bigl(\mu(x)-\mathbf{C}^{T} \boldsymbol {\Psi}(x)\bigr)^{2}\,dx= \sum_{n=1}^{2^{k-1}} \int_{\frac{n-1}{2^{k-1}}}^{\frac{n}{2^{k-1}}} \bigl(\mu(x)-\mathbf{C}^{T}{ \boldsymbol {\Psi}}(x)\bigr)^{2}\,dx \\ \leq&\sum_{n=1}^{2^{k-1}} \int_{\frac{n-1}{2^{k-1}}}^{\frac {n}{2^{k-1}}} \bigl(\mu(x)-P_{m}(x) \bigr)^{2}\,dx, \end{aligned}$$

where \(P_{m}(x)\) is the interpolating polynomial of degree m which approximates \(\mu(x)\) on \(I_{n}\). By using the maximum error estimate for the polynomial on \(I_{n}\), we have

$$\begin{aligned} \bigl\| E(x)\bigr\| ^{2} \leq&\sum_{n=1}^{2^{k-1}} \int _{\frac {n-1}{2^{k-1}}}^{\frac{n}{2^{k-1}}} \biggl(\frac{2}{m!4^{m}2^{m(k-1)}}\max _{x\in I_{n}}\bigl|\mu ^{(m)}(x)\bigr| \biggr)^{2}\,dx \\ \leq&\sum_{n=1}^{2^{k-1}} \int_{\frac{n-1}{2^{k-1}}}^{\frac {n}{2^{k-1}}} \biggl(\frac{2}{m!4^{m}2^{m(k-1)}}\max _{x\in[0, 1]}\bigl|\mu ^{(m)}(x)\bigr| \biggr)^{2}\,dx \\ =& \int_{0}^{1} \biggl(\frac{2}{m!4^{m}2^{m(k-1)}}\max _{x\in [0, 1]}\bigl|\mu^{(m)}(x)\bigr| \biggr)^{2}\,dx \\ =& \biggl\| \frac{2}{m!4^{m}2^{m(k-1)}}\max_{x\in[0, 1]}\bigl|\mu ^{(m)}(x)\bigr| \biggr\| ^{2}, \end{aligned}$$

where we have used the well-known maximum error bound for the interpolation. □

Operational matrix of integration (OMI)

In this section, we give the structure of OMI for Laguerre wavelets with \(k=2\) and \(M=3\). In this case, the six basis functions are given by

$$ \begin{aligned} &\psi_{1,0}(t)=2, \\ &\psi_{1,1}(t)=4-8t, \\ &\psi_{1,2}(t)=7-24t+16t^{2}, \end{aligned} $$
(8)

on \([0, \frac{1}{2})\) and

$$ \begin{aligned} &\psi_{2,0}(t)=2, \\ &\psi_{2,1}(t)=8-8t, \\ &\psi_{2,2}(t)=23-40t+16t^{2}, \end{aligned} $$
(9)

on \([\frac{1}{2}, 1)\). Let \({\boldsymbol {\Psi}}_{6}(t)= ( \psi_{1,0}(t) \ \psi_{1,1}(t)\ \psi_{1,2}(t) \ \psi_{2,0}(t) \ \psi_{2,1}(t) \ \psi_{2,2}(t) )^{T} \). By integrating (8) and (9) from 0 to t and representing them in the matrix form, we obtain

$$\begin{aligned}& \int_{0}^{t}\psi_{1,0}(s)\,ds= ( \textstyle\begin{array}{@{}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{}} \frac{1}{2} & -\frac{1}{4} & 0 & \frac{1}{2} & 0 & 0 \end{array}\displaystyle ){\boldsymbol {\Psi}}_{6}(t), \\& \int_{0}^{t}\psi_{1,1}(s)\,ds=( \textstyle\begin{array}{@{}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{}} \frac{3}{8} & \frac{1}{4} & -\frac{1}{4} & \frac{1}{2} & 0 & 0 \end{array}\displaystyle ){\boldsymbol {\Psi}}_{6}(t), \\& \int_{0}^{t}\psi_{1,2}(s)\,ds=( \textstyle\begin{array}{@{}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{}} \frac{13}{24} & 0 & \frac{1}{4} & \frac{7}{12} & 0 & 0 \end{array}\displaystyle ){\boldsymbol {\Psi}}_{6}(t)- \frac{1}{4}\psi_{1,3}(t), \\& \int_{0}^{t}\psi_{2,0}(s)\,ds=( \textstyle\begin{array}{@{}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{}} 0 & 0 & 0 & \frac{1}{2} & -\frac{1}{4} & 0 \end{array}\displaystyle ){\boldsymbol {\Psi}}_{6}(t), \\& \int_{0}^{t}\psi_{2,1}(s)\,ds=( \textstyle\begin{array}{@{}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{}} 0 & 0 & 0 & \frac{3}{8} & \frac{1}{4} & -\frac{1}{4} \end{array}\displaystyle ){\boldsymbol {\Psi}}_{6}(t), \\& \int_{0}^{t}\psi_{2,2}(s)\,ds=( \textstyle\begin{array}{@{}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{}} 0 & 0 & 0 & \frac{13}{24} & 0 & \frac{1}{4} \end{array}\displaystyle ){\boldsymbol {\Psi}}_{6}(t)- \frac{1}{4}\psi_{2,3}(t). \end{aligned}$$

Thus

$$\int_{0}^{t}{\boldsymbol {\Psi}}_{6}(s)\,ds= \mathbf{P}_{6\times6}{\boldsymbol {\Psi}}_{6}(t) +{\widetilde{\boldsymbol { \Psi}}}_{6}(t), $$

where

$$\mathbf{P}_{6\times6}= \begin{pmatrix} \frac{1}{2} & -\frac{1}{4} & 0 & \frac{1}{2} & 0 & 0 \\ \frac{3}{8} & \frac{1}{4} & -\frac{1}{4} & \frac{1}{2} & 0 & 0 \\ \frac{13}{24} & 0 & \frac{1}{4} & \frac{7}{12} & 0 & 0 \\ 0 & 0 & 0 & \frac{1}{2} & -\frac{1}{4} & 0 \\ 0 & 0 & 0 & \frac{3}{8} & \frac{1}{4} & -\frac{1}{4} \\ 0 & 0 & 0 & \frac{13}{24} & 0 & \frac{1}{4} \end{pmatrix} $$

and \({\widetilde{\boldsymbol {\Psi}}}_{6}(t)=-\frac{1}{4} ( 0 \ 0 \ \psi_{1,3}(t) \ 0 \ 0 \ \psi_{2,3}(t) )^{T} \). In fact, the matrix \(\mathbf{P}_{6\times6}\) can be written as

$$\mathbf{P}_{6\times6}= \begin{pmatrix} \mathbf{A}_{3\times3} & \mathbf{B}_{3\times3} \\ \mathbf{0}_{3\times3} & \mathbf{A}_{3\times3} \end{pmatrix}, $$

where

$$\mathbf{A}_{3\times3}= \begin{pmatrix} \frac{1}{2} & -\frac{1}{4} & 0 \\ \frac{3}{8} & \frac{1}{4} & -\frac{1}{4} \\ \frac{13}{24} & 0 & \frac{1}{4} \end{pmatrix} \quad\mbox{and}\quad \mathbf{B}_{3\times3}= \begin{pmatrix} \frac{1}{2} & 0 & 0 \\ \frac{1}{2} & 0 & 0 \\ \frac{7}{12} & 0 & 0 \end{pmatrix}. $$

Unfortunately, for general k and M, operational matrix of integration does not have a regular expression. So when dealing with the problems, we need to pre-calculate the corresponding operational matrix of integration P and \({\widetilde{\boldsymbol {\Psi}}}(t)\) for different k and M such that

$$\begin{aligned} \int_{0}^{t}\boldsymbol {\Psi}(s)\,ds=\mathbf{P} {\boldsymbol {\Psi}}(t) +{\widetilde{\boldsymbol {\Psi}}}(t). \end{aligned}$$
(10)

For example, for \(k=3\) and \(M=3\), the operational matrix of integration is given by

$$\mathbf{P}= \begin{pmatrix} \mathbf{A} & \mathbf{B} & \mathbf{B} & \mathbf{B} \\ \mathbf{0} & \mathbf{A} & \mathbf{B} & \mathbf{B} \\ \mathbf{0} & \mathbf{0} & \mathbf{A} & \mathbf{B} \\ \mathbf{0} & \mathbf{0} & \mathbf{0} & \mathbf{A} \end{pmatrix}, $$

where A and B are \({3\times3}\) matrices given by

$$\mathbf{A}= \begin{pmatrix} \frac{1}{4} & -\frac{1}{8} & 0\\ \frac{3}{16} & \frac{1}{8} & -\frac{1}{8} \\ \frac{13}{48} & 0 & \frac{1}{8} \end{pmatrix}, \qquad \mathbf{B}= \begin{pmatrix} \frac{1}{4} & 0 & 0 \\ \frac{1}{4} & 0 & 0 \\ \frac{7}{24}& 0 & 0 \end{pmatrix}, $$

and

$${\widetilde{\boldsymbol {\Psi}}}(t)=-\frac{1}{8} \bigl( \textstyle\begin{array}{@{}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{}} 0 & 0 & \psi_{1,3}(t) & 0 & 0 & \psi_{2,3}(t) & 0& 0 & \psi_{3,3}(t) & 0 & 0 &\psi_{4,3}(t) \end{array}\displaystyle \bigr)^{T}. $$

Description of the proposed method

In this section, we will use Laguerre wavelets operational matrix of integration combining collocation method to solve linear or nonlinear singular boundary value problems. Assume that

$$ \mu''(x)=\mathbf{C}^{T}{ \boldsymbol {\Psi}}(x), $$
(11)

where C is an unknown vector which should be determined and \({\boldsymbol {\Psi}}(x)\) is the vector defined in (7). Equation (11) is integrated two times with respect to x. In this way, the solution \(\mu(x)\) and its two derivatives are expressed in terms of Laguerre wavelets functions and their integrals. Consider the collocation points

$$x_{i}=\frac{2i-1}{2^{k}M}, \quad i=1, 2, 3, \ldots, 2^{k-1}M. $$

The expressions of \(\mu(x)\), \(\mu'(x)\), and \(\mu''(x)\) are substituted in the given differential equations and discretization is applied using the collocation points. Thus we get a system of equations with \(2^{k-1}M\) unknowns

$$\begin{aligned} \mu''(x_{i})+ \frac{L}{x_{i}}\mu '(x_{i})+f\bigl(x_{i}, \mu(x_{i})\bigr)=g(x_{i}), \quad i=1, 2, 3, \ldots, 2^{k-1}M. \end{aligned}$$
(12)

Then we can obtain the unknown vector C by solving this system through the well-known Newton iterative method with the aid of Matlab. The approximate solution can easily be recovered by inserting C into the corresponding expression of \(\mu(x)\). We further explain the method with the help of specific boundary conditions. In this paper, we consider the four different types of boundary conditions (2)-(4) and derive the expressions of \(\mu(x)\), \(\mu '(x)\), and \(\mu''(x)\), respectively. For simplicity, we take \(a=0\) and \(b=1\). Before the further description of the proposed method, we introduce the following notations first:

$${\boldsymbol {\Psi}}(1):=\lim_{x\rightarrow1^{-}}\boldsymbol {\Psi}(x),\qquad \int_{0}^{1}{\widetilde{\boldsymbol {\Psi}}}(s)\,ds:=\lim _{x\rightarrow 1^{-}} \int_{0}^{x}{\widetilde{\boldsymbol {\Psi}}}(s)\,ds, \quad \mbox{and}\quad {\widetilde{\boldsymbol {\Psi}}}(1):= \lim_{x\rightarrow1^{-}} \widetilde{\boldsymbol {\Psi}}(x). $$

Type I. Consider boundary conditions (2). Assume

$$\begin{aligned} \mu''(x)=\mathbf{C}^{T}{ \boldsymbol {\Psi}}(x). \end{aligned}$$
(13)

By integrating (13) two times with respect to x and together with relation (10), we obtain

$$\begin{aligned} &\mu'(x)=\mu'(0)+\mathbf{C}^{T} \bigl(\mathbf{P} {\boldsymbol {\Psi} }(x)+\widetilde{\boldsymbol {\Psi}}(x)\bigr), \\ &\mu(x)=\alpha _{1}+\mu'(0)x+\mathbf{C}^{T}\biggl( \mathbf{P}^{2}{\boldsymbol {\Psi}}(x) +\mathbf{P} {\widetilde{\boldsymbol {\Psi}}}(x)+ \int_{0}^{x}{\widetilde{\boldsymbol {\Psi}}}(s)\,ds\biggr). \end{aligned}$$
(14)

Putting \(x=1\) in (14) gives

$$\mu'(0)=\beta_{1}-\alpha _{1}- \mathbf{C}^{T}\biggl(\mathbf{P}^{2}\boldsymbol {\Psi} (1)+ \mathbf{P} {\widetilde{\boldsymbol {\Psi}}}(1)+ \int_{0}^{1}{\widetilde{\boldsymbol {\Psi}}}(s)\,ds\biggr). $$

So

$$\begin{aligned} \mu(x)={}&\alpha _{1}+ \biggl(\beta_{1}-\alpha _{1}- \mathbf{C}^{T}\biggl(\mathbf{P}^{2}\boldsymbol {\Psi}(1) + \mathbf{P} {\widetilde{\boldsymbol {\Psi}}}(1)+ \int_{0}^{1}{\widetilde{\boldsymbol {\Psi}}}(s)\,ds\biggr) \biggr)x \\ &{}+\mathbf{C}^{T}\biggl(\mathbf{P}^{2}{\boldsymbol {\Psi}}(x) +\mathbf{P} {\widetilde{\boldsymbol {\Psi}}}(x)+ \int_{0}^{x}{\widetilde{\boldsymbol {\Psi}}}(s)\,ds\biggr). \end{aligned}$$

Type II. Consider boundary conditions (3). Assume

$$\begin{aligned} \mu''(x)=\mathbf{C}^{T}{ \boldsymbol {\Psi}}(x). \end{aligned}$$
(15)

By integrating (15) two times with respect to x and by equation (10), we get

$$\begin{aligned} &\mu'(x)=\alpha _{2}+\mathbf{C}^{T} \bigl(\mathbf{P} {\boldsymbol {\Psi}}(x)+\widetilde {\boldsymbol {\Psi}}(x)\bigr), \\ &\mu(x)=\mu(0)+\mu'(0)x+\mathbf{C}^{T}\biggl( \mathbf{P}^{2}{\boldsymbol {\Psi}}(x) +\mathbf{P} {\widetilde{\boldsymbol {\Psi}}}(x)+ \int_{0}^{x}{\widetilde{\boldsymbol {\Psi}}}(s)\,ds\biggr). \end{aligned}$$
(16)

Putting \(x=1\) in (16), it follows that

$$\mu(0)=\beta_{2}-\alpha _{2}-\mathbf{C}^{T}\biggl( \mathbf{P}^{2}\boldsymbol {\Psi} (1)+\mathbf{P} {\widetilde{\boldsymbol { \Psi}}}(1)+ \int_{0}^{1}{\widetilde{\boldsymbol {\Psi}}}(s)\,ds\biggr). $$

Thus

$$\begin{aligned} \mu(x)={}&\beta_{2}-\alpha _{2}-\mathbf{C}^{T}\biggl( \mathbf{P}^{2}{\boldsymbol {\Psi}}(1) +\mathbf{P} {\widetilde{\boldsymbol {\Psi}}}(1)+ \int_{0}^{1}{\widetilde{\boldsymbol {\Psi}}}(s)\,ds\biggr)+ \alpha _{2}x \\ &{}+\mathbf{C}^{T}\biggl(\mathbf{P}^{2}{\boldsymbol {\Psi}}(x)+\mathbf{P} {\widetilde{\boldsymbol {\Psi}}}(x)+ \int_{0}^{x}{\widetilde{\boldsymbol {\Psi}}}(s)\,ds\biggr). \end{aligned}$$

Type III. Consider boundary conditions (4). Assume

$$\begin{aligned} \mu''(x)=\mathbf{C}^{T}{ \boldsymbol {\Psi}}(x). \end{aligned}$$
(17)

By integrating (17) two times with respect to x and by relation (10), we obtain

$$\begin{aligned} &\mu'(x)=\beta_{3}+\mathbf{C}^{T} \bigl(\mathbf{P} {\boldsymbol {\Psi} }(x)+\widetilde{\boldsymbol {\Psi}}(x)\bigr), \\ &\mu(x)=\alpha _{3}+\beta_{3}x+\mathbf{C}^{T}\biggl( \mathbf{P}^{2}{\boldsymbol {\Psi}}(x)+\mathbf{P} {\widetilde{\boldsymbol {\Psi}}}(x)+ \int_{0}^{x}{\widetilde{\boldsymbol {\Psi}}}(s)\,ds\biggr). \end{aligned}$$
(18)

Type IV. Consider boundary conditions (5). Assume

$$\begin{aligned} \mu''(x)=\mathbf{C}^{T}{ \boldsymbol {\Psi}}(x). \end{aligned}$$
(19)

By integrating (19) two times with respect to x and by relation (10), we have

$$\begin{aligned}& \mu'(x)=\mu'(0)+\mathbf{C}^{T}\bigl( \mathbf{P} {\boldsymbol {\Psi} }(x)+{\widetilde{\boldsymbol {\Psi}}}(x)\bigr), \end{aligned}$$
(20)
$$\begin{aligned}& \mu(x)=\mu(0)+\mu'(0)x+\mathbf{C}^{T} \biggl(\mathbf{P}^{2}{\boldsymbol {\Psi}}(x)+\mathbf{P} {\widetilde{\boldsymbol { \Psi}}}(x)+ \int_{0}^{x}{\widetilde{\boldsymbol {\Psi}}}(s)\,ds\biggr). \end{aligned}$$
(21)

Putting \(x=1\) in (20) and (21) leads to

$$\begin{aligned} &\mu'(1)=\mu'(0)+ \mathbf{C}^{T}\bigl(\mathbf{P} {\boldsymbol {\Psi} }(1)+{\widetilde{\boldsymbol { \Psi}}}(1)\bigr), \\ &\mu'(0)=\mu(1)-\mu(0)-\mathbf{C}^{T}\biggl( \mathbf{P}^{2}{\boldsymbol {\Psi}}(1)+\mathbf{P} {\widetilde{\boldsymbol {\Psi}}}(1)+ \int_{0}^{1}{\widetilde{\boldsymbol {\Psi}}}(s)\,ds\biggr). \end{aligned}$$
(22)

Hence equations in (5) turn into the following forms:

$$\begin{aligned}& a_{1}\mu(0)+a_{2} \biggl(\mu(1)-\mu (0)- \mathbf{C}^{T}\biggl(\mathbf{P}^{2}{\boldsymbol {\Psi}}(1)+\mathbf{P} {\widetilde{\boldsymbol {\Psi}}}(1)+ \int_{0}^{1}{\widetilde{\boldsymbol {\Psi}}}(s)\,ds\biggr) \biggr)=\alpha _{4}, \end{aligned}$$
(23)
$$\begin{aligned}& \begin{aligned}[b] &b_{1}\mu(1)+b_{2} \biggl(\mu(1)-\mu (0)- \mathbf{C}^{T}\biggl(\mathbf{P}^{2}{\boldsymbol {\Psi}}(1) + \mathbf{P} {\widetilde{\boldsymbol {\Psi}}}(1)+ \int_{0}^{1}{\widetilde{\boldsymbol {\Psi}}}(s)\,ds\biggr)\\ &\quad{}+\mathbf{C}^{T}\bigl(\mathbf{P}\boldsymbol {\Psi}(1) +{\widetilde{\boldsymbol { \Psi}}}(1)\bigr) \biggr)=\beta_{4}. \end{aligned} \end{aligned}$$
(24)

Observe that we consider \(\mu(0)\) and \(\mu(1)\) as unknown variables in equations (23) and (24). Equations (12) together with (23) and (24) generate \(2^{k-1}M+2\) equations, which can be solved by using Newton’s iterative method.

Numerical examples

In order to demonstrate the efficiency and applicability of the proposed method, several linear or nonlinear singular two-point BVPs are studied. We also compare the approximate solution with the exact solution. All computations are performed by Matlab.

Example 1

Consider the following linear singular two-point BVP:

$$\mu''(x)+\frac{1}{x}\mu'(x)+ \frac{1}{1-x}\mu(x)=4\cos x-5x\sin x+\frac{x^{3}}{1-x}\cos x, \quad 0< x< 1, $$

subject to the boundary conditions

$$\mu(0)=1, \qquad \mu(1)=\cos1. $$

The exact solution is given by \(\mu(x)=x^{2}\cos x\). We solve this equation by Laguerre wavelets collocation method with \(k=2, 3\) and \(M=3, 4, 5, 6, 7\). Tables 1 and 2 show the comparison between the absolute error of exact and approximate solutions for various values of M with \(k=2, 3\). As can be seen in the tables, the Laguerre wavelet solution is very close to the exact one.

Table 1 Comparison of absolute errors for Example  1 ( \(\pmb{k=2}\) )
Table 2 Comparison of absolute errors for Example 1 ( \(\pmb{k=3}\) )

Example 2

Consider the following nonlinear Lane-Emden equation [20]:

$$\mu''(x)+\frac{6}{x}\mu'(x)+14 \mu(x)+4\mu(x)\ln\bigl(\mu(x)\bigr)=0, \quad 0< x< 1, $$

subject to the boundary conditions

$$\mu(0)=1, \qquad \mu(1)=e^{-1}. $$

The exact solution is \(\mu(x)=e^{-x^{2}}\). We solve this equation by the proposed method with \(k=2, 3\) and \(M=3, 4, 5, 6, 7\). Tables 3 and 4 show the comparison between the absolute error of exact and approximate solutions for various values of M with \(k=2,3\).

Table 3 Comparison of absolute errors for Example 2 ( \(\pmb{k=2}\) )
Table 4 Comparison of absolute errors for Example 2 ( \(\pmb{k=3}\) )

Example 3

Consider the singular initial value problem

$$\mu''(x)+\frac{1}{x}\mu'(x)- \mu^{3}(x)+3\mu^{5}(x)=0,\quad 0< x< 1, $$

subject to the boundary conditions

$$\mu(0)=1,\qquad \mu'(0)=0. $$

The exact solution is \(\mu(x)=\frac{1}{\sqrt{1+x^{2}}}\). We solve this equation by the proposed method with \(k=2, 3\) and \(M=3, 4, 5, 6, 7\). Tables 5 and 6 show the comparison between the absolute error of exact and approximate solutions for various values of M with \(k=2,3\).

Table 5 Comparison of absolute errors for Example 3 ( \(\pmb{k=2}\) )
Table 6 Comparison of absolute errors for Example 3 ( \(\pmb{k=3}\) )

Example 4

Consider the following nonlinear Lane-Emden equation [20]:

$$\mu''(x)+\frac{2}{x}\mu'(x)+4 \bigl(2e^{\mu(x)}+e^{\frac{\mu (x)}{2}}\bigr)=0, \quad 0< x< 1, $$

subject to the boundary conditions

$$\mu(0)=0, \qquad\mu'(0)=0. $$

The exact solution is \(\mu(x)=-2\ln(1+x^{2})\). We solve this equation by the proposed method with \(k=2, 3\) and \(M=3, 4, 5, 6, 7\). Tables 7 and 8 show the comparison between the absolute error of exact and approximate solutions for various values of M with \(k=2,3\).

Table 7 Comparison of absolute errors for Example 4 ( \(\pmb{k=2}\) )
Table 8 Comparison of absolute errors for Example 4 ( \(\pmb{k=3}\) )

Example 5

Consider the following linear Lane-Emden equation:

$$\mu''(x)+\frac{1}{x}\mu'(x)+ \mu(x)=x^{2}-x^{3}-9x+4, \quad 0< x< 1, $$

subject to the boundary conditions

$$\mu'(0)=0, \qquad \mu(1)=0. $$

The exact solution is \(\mu(x)=x^{2}-x^{3}\). Next, we will give the approximate solution for this equation by the proposed method with \(k=2\) and \(M=3\). In this case, we have a linear system of six equations. By solving this system, we obtain

$$\begin{aligned}& c_{1,0}=-0.500000007308766, \qquad c_{1,1}=0.75000001267439, \\& c_{1,2}=-5.65363067472902e{-}9, \\& c_{2,0}=-2.00000002273819, \qquad c_{2,1}=0.749999998967796, \\& c_{1,2}=1.29351160060853e{-}8. \end{aligned}$$

So the approximate solution is given by

$$\mu(x)= \left \{ \textstyle\begin{array}{@{}l} 9.08805\times10^{-10}+1.00000x^{2}-0.999999x^{3}\\ \quad{}-7.53817\times 10^{-9}x^{4},\quad 0\leq x< \frac{1}{2}, \\ 1.38213\times10^{-8}-6.80971\times10^{-8}x +1.00000x^{2}-1.00000x^{3}\\ \quad{}+1.72468\times10^{-8}x^{4},\quad \frac{1}{2}\leq x\leq1. \end{array}\displaystyle \right . $$

Obviously, the Laguerre wavelets solution is very close to the exact solution. Table 9 shows the comparison between the absolute error of exact and approximate solutions for various values of M with \(k=2, 3\).

Table 9 Comparison of absolute errors for Example 5 ( \(\pmb{k=2, 3}\) )

Example 6

Consider the following nonlinear Lane-Emden equation [5, 16, 21]:

$$\mu''(x)+\frac{1}{x}\mu'(x)+e^{\mu(x)}=0, \quad 0< x< 1, $$

subject to the boundary conditions

$$\mu'(0)=0, \qquad \mu(1)=0. $$

The exact solution is \(\mu(x)=2\ln (\frac{4-2\sqrt {2}}{(3-2\sqrt{2})x^{2}+1} )\). We solve this equation by the proposed method with \(k=2, 3\) and \(M=3, 4, 5, 6, 7\). Tables 10 and 11 show the comparison between the absolute error of exact and approximate solutions for various values of M with \(k=2,3\). The numerical solutions obtained by orthonormal Bernoulli polynomial approach [16] is presented in Table 12.

Table 10 Comparison of absolute errors for Example 6 ( \(\pmb{k=2}\) )
Table 11 Comparison of absolute errors for Example 6 ( \(\pmb{k=3}\) )
Table 12 Absolute errors for Example 6 in [ 16 ]

Example 7

Consider the oxygen diffusion problem

$$\mu''(x)+\frac{2}{x}\mu'(x)= \frac{0.76129\mu(x)}{\mu(x)+0.03119}, \quad 0< x< 1, $$

subject to the boundary conditions

$$\mu'(0)=0, \qquad 5\mu(1)+\mu'(1)=5, $$

where the exact solution is unknown. Now we solve this equation by the proposed method with \(k=3\) and \(M=3,4,5,6\). These results are in good agreement with that of [16] and the results are tabulated in Table 13.

Table 13 The numerical results of Example 7 with \(\pmb{k=3}\)

Example 8

Consider the following nonlinear singular two-point BVP:

$$\mu''(x)+\frac{1}{x}\mu'(x)+ \frac{\mu^{2}(x)}{x(1-x)}=4\arctan x+\frac{1+3x^{2}}{x(1+x^{2})}+\frac{(1+x^{2})^{2}\arctan^{2} x}{x(1-x)}, \quad 0< x< 1, $$

subject to the boundary conditions

$$\mu(0)+\mu'(0)=1,\qquad \mu(1)+\mu '(1)=4.14159265358979. $$

The exact solution is \(\mu(x)=(1+x^{2})\arctan x\). We solve this equation by the proposed method with \(k=2, 3\) and \(M=3, 4, 5, 6, 7\). Tables 14 and 15 show the comparison between the absolute error of exact and approximate solutions for various values of M with \(k=2, 3\).

Table 14 Comparison of absolute errors for Example 8 ( \(\pmb{k=2}\) )
Table 15 Comparison of absolute errors for Example 8 ( \(\pmb{k=3}\) )

Conclusion

The main goal of this paper is to develop an efficient and accurate method to solve linear or nonlinear singular boundary value problems with four different types’ initial boundary conditions and mixed boundary conditions. The Laguerre wavelets operational matrix of integration together with the collocation method is utilized to reduce the problem to the solution of linear or nonlinear algebraic equations. One of the main advantages of the developed algorithm is that it does not require any modification while switching from the linear case to the nonlinear case. Another one is that high accuracy approximate solutions are achieved using very small values of k and M. Illustrative examples are included to demonstrate the validity and applicability of the proposed method.

References

  1. Kumar, M, Singh, N: A collection of computational techniques for solving singular boundary-value problems. Adv. Eng. Softw. 40, 288-297 (2009)

    Article  MATH  Google Scholar 

  2. Doha, EH, Abd-Elhameed, WM, Youssri, YH: Second kind Chebyshev operational matrix algorithm for solving differential equations of Lane-Emden type. New Astron. 23/24, 113-117 (2013)

    Article  Google Scholar 

  3. Kanth, ASVR, Aruna, K: He’s variational iteration method for treating nonlinear singular boundary value problems. Comput. Math. Appl. 60, 821-829 (2010)

    Article  MathSciNet  MATH  Google Scholar 

  4. Chang, SH: Taylor series method for solving a class of nonlinear singular boundary value problems arising in applied science. Appl. Math. Comput. 235, 110-117 (2014)

    Article  MathSciNet  Google Scholar 

  5. Singh, R, Kumar, J: An efficient numerical technique for the solution of nonlinear singular boundary value problems. Comput. Phys. Commun. 185, 1282-1289 (2014)

    Article  MathSciNet  Google Scholar 

  6. Sahlan, MN, Hashemizadeh, E: Wavelet Galerkin method for solving nonlinear singular boundary value problems arising in physiology. Appl. Math. Comput. 250, 260-269 (2015)

    Article  MathSciNet  Google Scholar 

  7. Arqub, OA, Abo-Hammour, Z, Momani, S, Shawagfeh, N: Solving singular two-point boundary value problems using continuous genetic algorithm. Abstr. Appl. Anal. 2012, Article ID 205391 (2012)

    Google Scholar 

  8. Ebaid, A: A new analytical and numerical treatment for singular two-point boundary value problems via the Adomian decomposition method. J. Comput. Appl. Math. 235, 1914-1924 (2011)

    Article  MathSciNet  MATH  Google Scholar 

  9. Goh, J, Majid, AA, Ismail, AIM: A quartic B-spline for second-order singular boundary value problems. Comput. Math. Appl. 64, 115-120 (2012)

    Article  MathSciNet  MATH  Google Scholar 

  10. Nasab, AK, Kılıçman, A, Atabakan, ZP, Leong, WJ: A numerical approach for solving nonlinear Lane-Emden type equations arising in astrophysics. New Astron. 34, 178-186 (2015)

    Article  Google Scholar 

  11. Pandey, RK, Kumar, N, Bhardwaj, A, Dutta, G: Solution of Lane-Emden type equations using Legendre operational matrix of differentiation. Appl. Math. Comput. 218, 7629-7637 (2012)

    Article  MathSciNet  MATH  Google Scholar 

  12. Pandey, RK, Kumar, N: Solution of Lane-Emden type equations using Bernstein operational matrix of differentiation. New Astron. 17, 303-308 (2012)

    Article  Google Scholar 

  13. Gürbüz, B, Sezer, M: Laguerre polynomial approach for solving Lane-Emden type functional differential equations. Appl. Math. Comput. 242, 255-264 (2014)

    Article  MathSciNet  Google Scholar 

  14. Parand, K, Nikarya, M, Rad, JA: Solving non-linear Lane-Emden type equations using Bessel orthogonal functions collocation method. Celest. Mech. Dyn. Astron. 116, 97-107 (2013)

    Article  MathSciNet  Google Scholar 

  15. Öztürk, Y, Gülsu, M: An approximation algorithm for the solution of the Lane-Emden type equations arising in astrophysics and engineering using Hermite polynomials. Comput. Appl. Math. 33, 131-145 (2014)

    Article  MathSciNet  MATH  Google Scholar 

  16. Mohsenyzadeh, M, Maleknejad, K, Ezzati, R: A numerical approach for the solution of a class of singular boundary value problems arising in physiology. Adv. Differ. Equ. 2015, Article ID 231 (2015)

    Article  MathSciNet  Google Scholar 

  17. Yousefi, SA: Legendre wavelets method for solving differential equations of Lane-Emden type. Appl. Math. Comput. 181, 1417-1422 (2006)

    Article  MathSciNet  MATH  Google Scholar 

  18. Nasab, AK, Kılıçman, A, Babolian, E, Atabakan, ZP: Wavelet analysis method for solving linear and nonlinear singular boundary value problems. Appl. Math. Model. 37, 5876-5886 (2013)

    Article  MathSciNet  MATH  Google Scholar 

  19. Kaur, H, Mittal, RC, Mishra, V: Haar wavelet approximate solutions for the generalized Lane-Emden equations arising in astrophysics. Comput. Phys. Commun. 184, 2169-2177 (2013)

    Article  MathSciNet  Google Scholar 

  20. Mehrpouya, MA: An efficient pseudospectral method for numerical solution of nonlinear singular initial and boundary value problems arising in astrophysics. Math. Methods Appl. Sci. (2015). doi:10.1002/mma.3763

    Google Scholar 

  21. Khuri, SA, Sayfy, A: A novel approach for the solution of a class of singular boundary value problems arising in physiology. Math. Comput. Model. 52, 626-636 (2010)

    Article  MathSciNet  MATH  Google Scholar 

Download references

Acknowledgements

This work is supported by the Education Department Youth Science Foundation of Jiangxi Province (Grant No. GJJ14492), the Youth Science Foundation of Jiangxi Province (Grant No. 20151BAB211004), and the Ph.D. Research Startup Foundation of East China University of Technology (Grant No. DHBK2012205).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Xiaoyong Xu.

Additional information

Competing interests

The authors have declared that no competing interests exist.

Authors’ contributions

FZ and XX came up with the idea of this paper. FZ completed the proofs of the results, and XX designed a MATLAB program to simulate the results of examples. FZ and XX wrote the manuscript. All authors read and approved the final manuscript.

Rights and permissions

Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Zhou, F., Xu, X. Numerical solutions for the linear and nonlinear singular boundary value problems using Laguerre wavelets. Adv Differ Equ 2016, 17 (2016). https://doi.org/10.1186/s13662-016-0754-1

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s13662-016-0754-1

MSC

  • 42C40
  • 65D30

Keywords

  • Laguerre wavelets
  • collocation method
  • singular boundary value problems
  • operational matrix of integration