Introduction

Lane–Emden type equation is a problem which has a singularity at the origin. In the neighbourhood of the singular point \(t = 0\), the analytical solutions of this type of equation re always possible [1]. The Lane–Emden type equation is given as follows [2,3,4,5,6]:

$$ x^{\prime\prime}\left( t \right) + \frac{\theta }{t}x^{\prime}\left( t \right) + g\left( {x\left( t \right)} \right) = 0,\quad 0 \le t \le 1,\;\theta > 0. $$
(1)

with

$$ x^{\prime}\left( 0 \right) = a_{1} \;{\text{and}}\;x\left( 1 \right) = a_{2} . $$
(2)

where \(x( t )\) denote the unknown function on \([ {0, 1} ]\) and \(x^{\prime}( 0 )\) denote the derivative of \(x( t )\) at time \(t = 0\). \(a_{1}\) and \(a_{2}\) are constants.

This equation describes many phenomena of chemistry, physics and astrophysics [7, 8]. This equation also shows variation of concentration or temperature in many field of chemistry, physics, bio-mathematics [9,10,11].

Spherical Catalyst Equation

In a spherical catalyst the chemical species dimensionless concentration is modelled by Lane–Emden boundary value problem and is given as [12, 13]:

$$ x^{\prime\prime}\left( t \right) + \frac{2}{t}x^{\prime}\left( t \right) - \rho^{2} x\left( t \right)\exp \left( {\frac{{\alpha \mu \left( {1 - x\left( t \right)} \right)}}{{1 + \mu \left( {1 - x\left( t \right)} \right)}}} \right) = 0, $$
(3)

with

$$ x^{\prime}\left( 0 \right) = 0\;{\text{and}}\;x\left( 1 \right) = 1. $$
(4)

In above equation, \(x\) denote the concentration, \(t\) denote the dimensionless distance, \(\mu\) denote the dimensionless activation energy, \(\alpha\) denote the dimensionless heat of reaction and \(\rho\) denote the Thiele modulus [12, 13].

The following are the dimensionless parameters and variables,

$$ t = \frac{r}{R},\quad x = \frac{{C_{A} }}{{C_{As} }},\quad \alpha = \frac{E}{{R_{g} T_{s} }},\quad \mu = \frac{{ - \left( {\Delta H} \right)DC_{As} }}{{KT_{s} }},\quad \rho^{2} = \frac{{K_{ref} R^{2} }}{D}. $$

The concentration of reactant \(A\) is denoted by \(C_{A}\) and \(C_{As}\) inside and on the surface of pellet respectively, effective diffusivity is denoted by \(D\), \(E\) and \(\Delta H\) represent activation energy and the heat of reaction respectively, \(K_{ref}\) represent the reaction constant, \(K\) represent the effective thermal conductivity, \(r\) represent the radial distance, \(R\) represent the radius of the catalytic pellet, \(R_{g}\) represent the universal gas constant and \(T_{s}\) represent the temperature at the surface.

The spherical pellet effectiveness factor τ is given as

$$ \tau = \frac{3}{{\rho^{2} }}\left. {\frac{dx}{{dt}}} \right|_{t = 1} . $$

Spherical Biocatalyst Equation

In a spherical biocatalyst the chemical species dimensionless concentration is modelled by Lane–Emden boundary value problem and is given as [14]:

$$ x^{\prime\prime}\left( t \right) + \frac{2}{t}x^{\prime}\left( t \right) - \rho^{2} \frac{{\left( {1 + \mu } \right)x\left( t \right)}}{1 + \mu x\left( t \right)} = 0, $$
(5)

with boundary conditions

$$ \begin{gathered} x^{\prime}\left( 0 \right) = 0, \hfill \\ x\left( 1 \right) = 1. \hfill \\ \end{gathered} $$
(6)

The dimensionless parameters and variables are,

$$ t = \frac{r}{R},\quad x = \frac{{C_{A} }}{{C_{As} }},\quad \mu = \frac{{C_{As} }}{{K_{m} }},\quad \rho^{2} = - \frac{{r_{AS} R^{2} }}{{DD_{AS} }}. $$

In this paper, we first consider a spherical catalytic pellet having a single reaction non-isothermally in it. In a spherical catalyst the chemical species concentration is modelled by the Lane–Emden equation. We also study a spherical biocatalyst pellet having a single reaction non-isothermally in it.

The solutions for the spherical catalyst and spherical biocatalyst models can be obtained using many methods. In [15], authors solved these models using analytical method. Danish et al. [16], used OHAM to solve these models analytically. The author in [12] used the variational iteration method to find the analytical solutions of these spherical catalyst and spherical biocatalyst models. Recently, Singh in [17], proposed the OHAM to solve analytically these models. In [18], a numerical treatment using third order approximation was used to solve these models. Saadatmandi et al. [14], solved these models numerically. In present paper, we suggest an algorithm with the use of Legendre scaling functions (LSFs) and the collocation method to solve these models. In this method, first unknown function is approximated using finite dimensional approximations. By use of this approximations the spherical catalyst and spherical biocatalyst models are converted into a system of algebraic equations. By collocating these equations we obtain the approximate solution of these models. This method has many applications in differential equations [19,20,21,22,23,24,25,26,27,28,29,30,31]. Numerical results are demonstrated using figures and tables. Results are also compared with some recently developed analytical method.

Preliminaries and operational matrix

Here we describe some basic definitions. The LSFs. in one dimension are defined by

$$ \epsilon_{k} \left( t \right) = \left\{ {\begin{array}{*{20}l} {\sqrt {2k + 1} S_{k} \left( {2t - 1} \right),} \hfill & {{\text{for}}\; 0 \le t < 1,} \hfill \\ {0,} \hfill & {{\text{otherwise}}.} \hfill \\ \end{array} } \right. $$
(7)

where \(S_{k} ( t )\) is Legendre polynomials of order \(k\) on the interval \([ - 1,1],\) and given by;

$$ S_{k} \left( t \right) = \mathop \sum \limits_{k = 0}^{i} \left( { - 1} \right)^{i + k} \frac{{\left( {i + k} \right)!}}{{\left( {i - k} \right)!\left( {k!} \right)^{2} }}t^{k} . $$
(8)

The collections \(\left\{ {\epsilon_{k} \left( t \right)} \right\}\) form an orthonormal basis for \(L^{2} [ {0, 1} ]\). The \(kth\) degree LSF is given by

$$ \epsilon_{k} \left( t \right) = \left( {2k + 1} \right)^{\frac{1}{2}} \mathop \sum \limits_{k = 0}^{i} \left( { - 1} \right)^{i + k} \frac{{\left( {i + k} \right)!}}{{\left( {i - k} \right)!\left( {k!} \right)^{2} }}t^{k} . $$
(9)

A function \(f \in L^{2} [ {0,1} ]\), with bounded second derivatives can be approximated as,

$$ f\left( t \right) = \mathop {\lim }\limits_{n \to \infty } \mathop \sum \limits_{k = 0}^{n} c_{k} \epsilon_{k} \left( t \right), $$
(10)

where \(c_{k} = \langle {f( t ),\epsilon_{k} ( t ).} \rangle\)

Equation (10), for finite dimension is written as,

$$ f \cong \mathop \sum \limits_{k = 0}^{m} c_{k} \epsilon_{k} \left( t \right) = C^{T} \varPi_{m} \left( t \right), $$
(11)

where \(C\) and \(\varPi_{m} ( t )\) are \(( {m + 1} ) \times 1\) vectors and given by

$$ C = \left[ {c_{0} ,c_{1} , \ldots ,c_{m} } \right]^{T} \;{\text{and}}\;\varPi_{m} \left( t \right) = \left[ {\epsilon_{0} ,\epsilon_{1} , \ldots ,\epsilon_{m} } \right]^{T} . $$
(12)

Theorem 1

Let \(\varPi_{m} ( t ) = [ {\epsilon_{0} ,\epsilon_{1} , \ldots ,\epsilon_{m} } ]^{T}\) , and consider q be a positive integer then

$$ I^{q} \epsilon_{i} \left( t \right) = I^{\left( q \right)} \varPi_{m} \left( t \right), $$
(13)

where \(I^{( q )} = ( {u( {i,j} )} ),\) is \(( {m + 1} ) \times ( {m + 1} )\) matrix of integral operator whose entries are given by

$$ u\left( {i,j} \right) = \left( {2i + 1} \right)^{{{\raise0.7ex\hbox{$1$} \!\mathord{\left/ {\vphantom {1 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} \left( {2j + 1} \right)^{{{\raise0.7ex\hbox{$1$} \!\mathord{\left/ {\vphantom {1 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} \mathop \sum \limits_{k = 0}^{i} \mathop \sum \limits_{l = 0}^{j} \left( { - 1} \right)^{i + j + k + l} \frac{{\left( {i + k} \right)!\left( {j + l} \right)!}}{{\left( {i - k} \right)!\left( {j - l} \right)!\left( k \right)!\left( {l!} \right)^{2} \left( {{\text{q}} + {\text{k}} + {\text{l}} + 1} \right)\left( {q + k} \right)!}}. $$
(14)

Proof

Pl. see [19, 24].

Outline of Method

Here, we will derive method for the solution of fractional reaction–diffusion equations in a spherical catalyst and spherical biocatalyst. First, we consider the initial value problem with an undetermined constant in the determination of boundary value problem. i.e.

$$ x^{\prime\prime}\left( t \right) + \frac{2}{t}x^{\prime}\left( t \right) - \rho^{2} x\left( t \right)\exp \left( {\frac{{\alpha \mu \left( {1 - x\left( t \right)} \right)}}{{1 + \mu \left( {1 - x\left( t \right)} \right)}}} \right) = 0, $$
(15)
$$ x^{\prime\prime}\left( t \right) + \frac{2}{t}x^{\prime}\left( t \right) - \rho^{2} \frac{{\left( {1 + \mu } \right)x\left( t \right)}}{1 + \mu x\left( t \right)} = 0, $$
(16)

with initial and boundary conditions

$$ x\left( 0 \right) = \beta , x^{\prime}\left( 0 \right) = 0\;{\text{and}}\;x\left( 1 \right) = 1, $$
(17)

where \(x( 0 ) = \beta\), represents an undetermined constant.

Taking the following approximation:

$$ x^{\prime\prime}\left( t \right) = C^{T} \varPi_{n} \left( t \right). $$
(18)

Integrating Eq. (18), we obtain

$$ x^{\prime}\left( t \right) = C^{T} I^{\left( 1 \right)} \varPi_{n} \left( t \right) + A^{T} \varPi_{n} \left( t \right), $$
(19)

where \(I^{( 1)}\), is an operational matrix of integration of order 1.

Integrating Eq. (19), we obtain

$$ x\left( t \right) = C^{T} I^{\left( 2 \right)} \varPi_{n} \left( t \right) + A^{T} I^{\left( 1 \right)} \varPi_{n} \left( t \right) + B^{T} \varPi_{n} \left( t \right), $$
(20)

where

$$ x^{\prime}\left( 0 \right) = A^{T} \varPi_{n} \left( t \right)\;{\text{and}}\;x\left( 0 \right) = B^{T} \varPi_{n} \left( t \right). $$
(21)

Further, taking

$$ 1 = D^{T} \varPi_{n} \left( t \right). $$
(22)

Mathematical Model of Spherical Catalyst Equation

Grouping Eqs. (15), (17)–(22), we get

$$ C^{T} \varPi_{n} \left( t \right) + \frac{2}{t}\left( {C^{T} I^{\left( 1 \right)} + A^{T} } \right)\varPi_{n} \left( t \right) - \rho^{2} \left( {C^{T} I^{\left( 2 \right)} + A^{T} I^{\left( 1 \right)} + B^{T} } \right)\varPi_{n} \left( t \right)\exp \left( {\frac{{\alpha \mu \left( {D^{T} - \left( {C^{T} I^{\left( 2 \right)} + A^{T} I^{\left( 1 \right)} + B^{T} } \right)} \right)\varPi_{n} \left( t \right)}}{{\left( {D^{T} + \mu \left( {D^{T} - \left( {C^{T} I^{\left( 2 \right)} + A^{T} I^{\left( 1 \right)} + B^{T} } \right)} \right)} \right)\varPi_{n} \left( t \right)}}} \right) = 0. $$
(23)

The residual for Eq. (23), is given as

$$ R_{n} \left( t \right) = C^{T} \varPi_{n} \left( t \right) + \frac{2}{t}\left( {C^{T} I^{\left( 1 \right)} + A^{T} } \right)\varPi_{n} \left( t \right) - \rho^{2} \left( {C^{T} I^{\left( 2 \right)} + A^{T} I^{\left( 1 \right)} + B^{T} } \right)\varPi_{n} \left( t \right)\exp \left( {\frac{{\alpha \mu \left( {D^{T} - \left( {C^{T} I^{\left( 2 \right)} + A^{T} I^{\left( 1 \right)} + B^{T} } \right)} \right)\varPi_{n} \left( t \right)}}{{\left( {D^{T} + \mu \left( {D^{T} - \left( {C^{T} I^{\left( 2 \right)} + A^{T} I^{\left( 1 \right)} + B^{T} } \right)} \right)} \right)\varPi_{n} \left( t \right)}}} \right). $$
(24)

Since the residual has \(n + 1\), unknowns therefore collocating Eq. (24), at \(n\) points given by \(t_{i} = \frac{i}{n}, i = 1,2, \ldots ,n\).

$$ R_{n} \left( {t_{i} } \right) = C^{T} \varPi_{n} \left( {t_{i} } \right) + \frac{2}{{t_{i} }}\left( {C^{T} I^{\left( 1 \right)} + A^{T} } \right)\varPi_{n} \left( {t_{i} } \right) - \rho^{2} \left( {C^{T} I^{\left( 2 \right)} + A^{T} I^{\left( 1 \right)} + B^{T} } \right)\varPi_{n} \left( {t_{i} } \right)\exp \left( {\frac{{\alpha \mu \left( {D^{T} - \left( {C^{T} I^{\left( 2 \right)} + A^{T} I^{\left( 1 \right)} + B^{T} } \right)} \right)\varPi_{n} \left( {t_{i} } \right)}}{{\left( {D^{T} + \mu \left( {D^{T} - \left( {C^{T} I^{\left( 2 \right)} + A^{T} I^{\left( 1 \right)} + B^{T} } \right)} \right)} \right)\varPi_{n} \left( {t_{i} } \right)}}} \right). $$
(25)

Further, using approximation in boundary condition

$$ \left( {C^{T} I^{\left( 2 \right)} + A^{T} I^{\left( 1 \right)} + B^{T} } \right)\varPi_{n} \left( 1 \right) = 1. $$
(26)

From Eqs. (25) and (26), we get a system of \(n + 1\) equations whose solution gives the unknowns in the approximations. Using this in the Eq. (20), we get solution for spherical catalyst model.

Mathematical Model of Spherical Biocatalyst Equation

Grouping Eqs. (16), (17)–(22), we get

$$ C^{T} \varPi_{n} \left( t \right) + \frac{2}{t}\left( {C^{T} I^{\left( 1 \right)} + A^{T} } \right)\varPi_{n} \left( t \right) - \rho^{2} \frac{{\left( {1 + \mu } \right)\left( {C^{T} I^{\left( 2 \right)} + A^{T} I^{\left( 1 \right)} + B^{T} } \right)\varPi_{n} \left( t \right)}}{{\left( {D^{T} + \mu \left( {C^{T} I^{\left( 2 \right)} + A^{T} I^{\left( 1 \right)} + B^{T} } \right)} \right)\varPi_{n} \left( t \right)}} = 0. $$
(27)

The residual for Eq. (27), is given as

$$ R_{n} \left( t \right) = C^{T} \varPi_{n} \left( t \right) + \frac{2}{t}\left( {C^{T} I^{\left( 1 \right)} + A^{T} } \right)\varPi_{n} \left( t \right) - \rho^{2} \frac{{\left( {1 + \mu } \right)\left( {C^{T} I^{\left( 2 \right)} + A^{T} I^{\left( 1 \right)} + B^{T} } \right)\varPi_{n} \left( t \right)}}{{\left( {D^{T} + \mu \left( {C^{T} I^{\left( 2 \right)} + A^{T} I^{\left( 1 \right)} + B^{T} } \right)} \right)\varPi_{n} \left( t \right)}}. $$
(28)

Since the residual has \(n + 1\), unknowns therefore collocating Eq. (28), at \(n\) points given by \(t_{i} = \frac{i}{n}, i = 1,2, \ldots ,n\).

$$ R_{n} \left( {t_{i} } \right) = C^{T} \varPi_{n} \left( {t_{i} } \right) + \frac{2}{{t_{i} }}\left( {C^{T} I^{\left( 1 \right)} + A^{T} } \right)\varPi_{n} \left( {t_{i} } \right) - \rho^{2} \frac{{\left( {1 + \mu } \right)\left( {C^{T} I^{\left( 2 \right)} + A^{T} I^{\left( 1 \right)} + B^{T} } \right)\varPi_{n} \left( {t_{i} } \right)}}{{\left( {D^{T} + \mu \left( {C^{T} I^{\left( 2 \right)} + A^{T} I^{\left( 1 \right)} + B^{T} } \right)} \right)\varPi_{n} \left( {t_{i} } \right)}}. $$
(29)

Further, using approximation in boundary condition

$$ \left( {C^{T} I^{\left( 2 \right)} + A^{T} I^{\left( 1 \right)} + B^{T} } \right)\varPi_{n} \left( 1 \right) = 1. $$
(30)

From Eqs. (29) and (30), we get a system of \(n + 1\) equations whose solution gives the unknowns in the approximations. Using this in the Eq. (20), we get solution for spherical biocatalyst model.

Numerical Simulation and Discussion

Here, we show the numerical simulation for our proposed method. We compare our numerical results with some analytical techniques in literature. The concentration depends on the \( \mu\), \(\alpha\) and \(\rho\). Here, we show how the concentration \(x( t )\) is effected by these parameters.

Numerical Simulation for Spherical Catalyst Model

We show the numerical simulation results for spherical catalyst model by varying its parameters. In Fig. 1, we have shown the effect of dimensionless heat of reaction by varying \(\alpha\) on the concentration \(x( {t; \alpha ,\mu ,\rho } )\) by fixing the value of dimensionless activation energy \( ( {\mu = 1} )\) and Thiele modulus \(( {\rho = 1} )\).

Fig. 1
figure 1

Effect of dimensionless heat of reaction on the concentration \(x( {t; \alpha ,\mu ,\rho } )\) at different choices of alpha \(( \alpha )\)

From Fig. 1, it is clear that concentration varies continuously with increasing of \(\alpha\). In Fig. 2, we have shown the effect of Thiele modulus by varying \(\rho\) on the concentration \(x( {t; \alpha ,\mu ,\rho } )\) by fixing the value \( \mu = 1\) and \(\alpha = 1\). From Fig. 2, we can see that concentration varies constantly with increasing of \(\rho\).

Fig. 2
figure 2

Effect of Thiele modulus on the concentration \(x( {t; \alpha ,\mu ,\rho } )\) at different choices of rho \(( \rho )\)

In Table 1, results are compared for different values of \( \alpha\) by fixing the value of dimensionless activation energy \( ( {\mu = 1} )\) and Thiele modulus \(( {\rho = 1} )\).

Table 1 Comparison of numerical results for different values of dimensionless heat of reaction \(( \alpha )\)

In Table 2, results are compared for different values of \( \rho\) by fixing the value \( \mu = 1\) and \(\alpha = 1\).

Table 2 Comparison of numerical results for different values of Thiele modulus \(( \rho )\)

From Tables 1 and 2, we observe that our results are accurate and have good agreement with method in [17]. In Table 3, we have listed, the value of effectiveness factor for different values of parameters.

Table 3 Comparison of effectiveness factor for different values of parameters

From Table 3, it is clear that effectiveness factor is increasing with the increase of dimensionless heat of reaction \(\alpha\) and it decrease with the increase of Thiele modulus \(( \rho )\).

In Table 4, results are compared with variational iteration method [12].

Table 4 Comparison of numerical results at \(\alpha = 1\), \(\mu = 1\) and for different values of Thiele modulus \(( \rho )\)

From Table 4, it clear that our proposed method has good agreement with variational iteration method [12].

Numerical Simulation for Spherical Biocatalyst Model

We show the numerical simulation results for spherical biocatalyst model by varying its parameters. In Fig. 3, we have shown the effect of Thiele modulus by varying \(\rho\) on the concentration \(x( {t; \mu ,\rho } )\) by fixing the values of dimensionless activation energy \( ( {\mu = 2} )\). From Fig. 3, it is clear that concentration varies continuously with increasing of \(\rho\).

Fig. 3
figure 3

Effect of Thiele modulus on the concentration \(x( {t; \mu ,\rho } )\) at different choices of rho \(( \rho )\)

In Table 5, we have compared results by method in [17] for different values of \( \rho\) by fixing the value of dimensionless activation energy \( ( {\mu = 2} )\). From Table 5, we observe that our results are accurate and show good agreement with method in [17].

Table 5 Comparison of numerical results for different values of Thiele modulus \(( \rho )\)

In Table 6, we have listed, the value of effectiveness factor for different values of parameters. From Table 6, it is clear that effectiveness factor decreases with the increasing of Thiele modulus \(( \rho )\).

Table 6 Comparison of effectiveness factor for different values of parameters

Conclusions

In this paper, we have studied the diffusion of reactants in an idealized spherical catalytic pellet and spherical biocatalyst pellet. We have also computed the behaviour of concentration at the spherical origin \(t = 0\) of the pellets. We have converted spherical catalyst and spherical biocatalyst model into a system of algebraic equations. Desired accuracy is achieved only for few basis number elements. Proposed computational method is accurate and handy for computation purpose.