1 Introduction

In this paper, we consider the boundary-value problem and initial value problem of Bratu’s problem. It is well known that Bratu’s boundary value problem in one-dimensional planar coordinates is of the form

u +λ e u =0,0<x<1,
(1)

with the boundary conditions u(0)=u(1)=0. For λ>0 is a constant, the exact solution of equation (1) is given by [1]

u(x)=2ln [ cosh ( 0.5 θ ( x 0.5 ) ) cosh ( 0.25 θ ) ] ,
(2)

where θ satisfies

θ= 2 λ sinh(0.25θ).
(3)

The problem has zero, one or two solutions when λ> λ c , λ= λ c and λ< λ c , respectively, where the critical value λ c satisfies the equation

1= 1 4 2 λ c cosh ( 1 4 θ ) .

It was evaluated in [13] that the critical value λ c is given by λ c =3.513830719.

In addition, an initial value problem of Bratu’s problem

u +λ e u =0,0<x<1,
(4)

with the initial conditions u(0)= u (0)=0 will be investigated.

Bratu’s problem is also used in a large variety of applications such as the fuel ignition model of the thermal combustion theory, the model of thermal reaction process, the Chandrasekhar model of the expansion of the universe, questions in geometry and relativity about the Chandrasekhar model, chemical reaction theory, radiative heat transfer and nanotechnology [411].

A substantial amount of research work has been done for the study of Bratu’s problem. Boyd [2, 12] employed Chebyshev polynomial expansions and the Gegenbauer as base functions. Syam and Hamdan [8] presented the Laplace decomposition method for solving Bratu’s problem. Also, Aksoy and Pakdemirli [13] developed a perturbation solution to Bratu-type equations. Wazwaz [10] presented the Adomian decomposition method for solving Bratu’s problem. In addition, the applications of spline method, wavelet method and Sinc-Galerkin method for solution of Bratu’s problem have been used by [1417].

In recent years, the wavelet applications in dealing with dynamic system problems, especially in solving differential equations with two-point boundary value constraints have been discussed in many papers [4, 16, 18]. By transforming differential equations into algebraic equations, the solution may be found by determining the corresponding coefficients that satisfy the algebraic equations. Some efforts have been made to solve Bratu’s problem by using the wavelet collocation method [16].

In the present article, we apply the Chebyshev wavelets method to find the approximate solution of Bratu’s problem. The method is based on expanding the solution by Chebyshev wavelets with unknown coefficients. The properties of Chebyshev wavelets together with the collocation method are utilized to evaluate the unknown coefficients and then an approximate solution to (1) is identified.

2 Chebyshev wavelets and their properties

2.1 Wavelets and Chebyshev wavelets

In recent years, wavelets have been very successful in many science and engineering fields. They constitute a family of functions constructed from dilation and translation of a single function called the mother wavelet ψ(x). When the dilation parameter a and the translation parameter b vary continuously, we have the following family of continuous wavelets [19]:

ψ a , b (x)= | a | 1 / 2 ψ ( x b a ) ,a,bR,a0.

Chebyshev wavelets ψ n , m =ψ(k,n,m,x) have four arguments, n=1,2,, 2 k 1 , k can assume any positive integer, m is the degree of Chebyshev polynomials of first kind and x denotes the time.

ψ n , m (x)={ α m 2 ( k 1 ) / 2 π T m ( 2 k x 2 n + 1 ) , n 1 2 k 1 x < n 2 k 1 ; 0 , otherwise ,
(5)

where

α m ={ 2 , m = 0 ; 2 , m = 1 , 2 ,

and m=0,1,2,,M1, n=1,2,, 2 k 1 . Here T m (x) are the well-known Chebyshev polynomials of order m, which are orthogonal with respect to the weight function ω(x)=1/ 1 x 2 and satisfy the following recursive formula:

T 0 ( x ) = 1 , T 1 ( x ) = x , T m + 1 ( x ) = 2 x T m ( x ) T m 1 ( x ) .

We should note that the set of Chebyshev wavelets is orthogonal with respect to the weight function ω n (x)=ω( 2 k x2n+1).

The derivative of Chebyshev polynomials is a linear combination of lower-order Chebyshev polynomials, in fact [20],

{ T m ( x ) = 2 m k = 1 m 1 T k ( x ) , m  even ; T m ( x ) = 2 m k = 1 m 1 T k ( x ) + m T 0 ( x ) , m  odd .
(6)

2.2 Function approximation

A function u(x) defined over [0,1) may be expanded as

u(x)= n = 1 m = 0 c n m ψ n m (x),
(7)

where c n m =(u(x), ψ n m (x)), in which (,) denotes the inner product with the weight function ω n (x). If u(x) in (7) is truncated, then (7) can be written as

u(x) n = 1 2 k 1 m = 0 M 1 c n m ψ n m (x)= C T Ψ(x),
(8)

where C and Ψ(x) are 2 k 1 M×1 matrices given by

C = [ c 1 , c 2 , , c 2 k 1 ] T , Ψ ( x ) = [ ψ 1 , ψ 2 , , ψ 2 k 1 ] T

and

c i = [ c i 0 , c i 1 , , c i , M 1 ] , ψ i ( x ) = [ ψ i 0 ( x ) , ψ i 1 ( x ) , , ψ i , M 1 ( x ) ] , i = 1 , 2 , 3 , , 2 k 1 .

3 Chebyshev wavelets operational matrix of derivative

In this section we first derive the operational matrix D of derivative which plays a great role in dealing with Bratu’s problem.

In the interval [(n1)/ 2 k 1 ,n/ 2 k 1 ),

ψ n , m (x)= α m 2 ( k 1 ) / 2 π T m ( 2 k x 2 n + 1 ) .

Applying (6) the derivative of ψ n , m (x) is

ψ n , m ( x ) = { α m 2 ( k 1 ) / 2 π 2 k 2 m k = 1 m 1 T k ( 2 k x 2 n + 1 ) , m  even ; α m 2 ( k 1 ) / 2 π 2 k [ 2 m k = 1 m 1 T k ( 2 k x 2 n + 1 ) + m T 0 ( 2 k x 2 n + 1 ) ] , m  odd .

The function ψ i (x) is zero outside the interval [(i1)/ 2 k 1 ,i/ 2 k 1 ), so

ψ i (x)= ψ i (x)M,i=1,2,, 2 k 1 ,
(9)

where

M = 2 k ( 0 2 0 3 2 0 5 2 ( M 1 ) 2 0 0 4 0 8 0 0 0 0 0 6 0 10 2 ( M 1 ) 0 0 0 0 0 0 2 ( M 1 ) 0 0 0 0 0 0 0 0 ) M × M for even  M , M = 2 k ( 0 2 0 3 2 0 5 2 0 0 0 4 0 8 0 0 0 0 0 6 0 10 2 ( M 1 ) 0 0 0 0 0 0 2 ( M 1 ) 0 0 0 0 0 0 0 0 ) M × M for odd  M .

In fact we have shown that

Ψ (x)=DΨ(x),
(10)

where

D=diag ( M T , M T , , M T ) .

From (10), it can be generalized for any nN as

d n Ψ ( x ) d x n = D n Ψ(x),n=1,2,3,.
(11)

4 Solution of Bratu’s problem

Consider Bratu’s problem given in (1). In order to use Chebyshev wavelets, we first approximate u(x) as

u(x)= C T Ψ(x).

Applying (11) we can get

u (x)= C T D 2 Ψ(x).

Thus we have

C T D 2 Ψ(x)+λ e C T Ψ ( x ) =0.
(12)

We now collocate (12) at 2 k 1 M2 points at x i as

C T D 2 Ψ( x i )+λ e C T Ψ ( x i ) =0.
(13)

Suitable collocation points are

x i = 1 2 [ 1 + cos ( ( i 1 ) π 2 k 1 M 1 ) ] ,i=2,3,, 2 k 1 M1.

Thus with the boundary conditions u(0)=u(1)=0, we have

(14)
(15)

Equations (13), (14) and (15) generate 2 k 1 M set of nonlinear equations. The approximate solution of the vector C is obtained by solving the nonlinear system using the Gauss-Newton method.

5 Error analysis

Theorem 5.1 A function u(x) L ω 2 ([0,1]), with bounded second derivative, say | u (x)|N, can be expanded as an infinite sum of Chebyshev wavelets, and the series converges uniformly to u(x), that is [21],

u(x)= n = 1 m = 0 c n m ψ n m .

Since the truncated Chebyshev wavelets series is an approximate solution of Bratu’s problem, so one has an error function E(x) for u(x) as follows:

E(x)=|u(x) C T Ψ(x)|.

The error bound of the approximate solution by using Chebyshev wavelets series is given by the following theorem.

Theorem 5.2 Suppose that u(x) C m [0,1] and C T Ψ(x) is the approximate solution using the Chebyshev wavelets method. Then the error bound would be obtained as follows:

E(x) 2 m ! 4 m 2 m ( k 1 ) max x [ 0 , 1 ] | u m ( x ) | 2 .

Proof Applying the definition of norm in the inner product space, we have

E ( x ) 2 = 0 1 [ u ( x ) C T Ψ ( x ) ] 2 dx.

Because the interval [0,1] is divided into 2 k 1 subintervals I n =[(n1)/ 2 k 1 ,n/ 2 k 1 ], n=1,2,, 2 k 1 , then we can obtain

E ( x ) 2 = 0 1 [ u ( x ) C T Ψ ( x ) ] 2 d x = k = 1 2 k 1 n 1 2 k 1 n 2 k 1 [ u ( x ) C T Ψ ( x ) ] 2 d t k = 1 2 k 1 n 1 2 k 1 n 2 k 1 [ u ( x ) P m ( x ) ] 2 d t ,

where P m (x) is the interpolating polynomial of degree m which agrees with u(x) at the Chebyshev nodes on I n with the following error bound for interpolating [22, 23]:

| u ( x ) P m ( x ) | 2 m ! 4 m 2 m ( k 1 ) max x I n | u m ( x ) | .

Therefore, using the above equation, we would get

E ( x ) 2 k = 1 2 k 1 n 1 2 k 1 n 2 k 1 [ u ( x ) P m ( x ) ] 2 d t k = 1 2 k 1 n 1 2 k 1 n 2 k 1 [ 2 m ! 4 m 2 m ( k 1 ) max x I n | u m ( x ) | ] 2 d t k = 1 2 k 1 n 1 2 k 1 n 2 k 1 [ 2 m ! 4 m 2 m ( k 1 ) max x [ 0 , 1 ] | u m ( x ) | ] 2 d t = 0 1 [ 2 m ! 4 m 2 m ( k 1 ) max x [ 0 , 1 ] | u m ( x ) | ] 2 d t = 2 m ! 4 m 2 m ( k 1 ) max x [ 0 , 1 ] | u m ( x ) | 2 .

 □

6 Numerical examples

To illustrate the ability and reliability of the method for Bratu’s problem, some examples are provided. The results reveal that the method is very effective and simple.

Example 6.1 Consider the first case for Bratu’s equation as follows, when λ=2 [14, 15]:

u + 2 e u = 0 , 0 < x < 1 , u ( 0 ) = u ( 1 ) = 0 .
(16)

We solve the equation by using the Chebyshev wavelets method with k=2, M=4,6,8. The numerical results obtained are presented in Table 1. Table 1 shows the comparison between the absolute error of exact and approximate solutions for various values of M (with k=2). Moreover, higher accuracy can be achieved by taking higher order approximations.

Table 1 Computed absolute errors for Example 6.1

Example 6.2 Consider the initial value problem [10, 1416, 24]

u 2 e u = 0 , 0 < x < 1 , u ( 0 ) = 0 , u ( 0 ) = 0 .
(17)

The exact solution is u(x)=2ln(cos(x)). Here we solve it using Chebyshev wavelets, with k=1, M=6. First we assume that the unknown function u(x) is given by

u(x)= C T Ψ(x).

Applying (12) we get

C T D 2 Ψ( x i )2 e C T Ψ ( x i ) =0.
(18)

Using the initial condition, we obtain

C T Ψ ( 0 ) = 0 , C T D Ψ ( 0 ) = 0 .
(19)

Equations (18) and (19) generate a system of nonlinear equations. These equations can be solved for unknown coefficients of the vector C. A comparison between the exact and the approximate solutions is demonstrated in Figure 1. From Figure 1, it can be found that the obtained approximate solutions are very close to the exact solution. In addition, Table 2 shows the exact and approximate solutions using the method presented in Section 3 and compares the results with the method presented in [16]. Also, by comparing the results of the table, we see that the results of the proposed method are more accurate.

Figure 1
figure 1

Comparison of solutions for Example 6.2.

Table 2 Comparison of the results of the Chebyshev and Legendre wavelets method for Example 6.2

7 Conclusions

The aim of present work is to develop an efficient and accurate method for solving Bratu’s problems. The Chebyshev wavelet operational matrix of derivative together with the collocation method are used to reduce the problem to the solution of nonlinear algebraic equations. Illustrative examples are included to demonstrate the validity and applicability of the technique.