#### Abstract

The spectral collocation approximations based on Legendre polynomials are used to compute the numerical solution of time-dependent Fisher’s type problems. The spatial derivatives are collocated at a Legendre-Gauss-Lobatto interpolation nodes. The proposed method has the advantage of reducing the problem to a system of ordinary differential equations in time. The four-stage A-stable implicit Runge-Kutta scheme is applied to solve the resulted system of first order in time. Numerical results show that the Legendre-Gauss-Lobatto collocation method is of high accuracy and is efficient for solving the Fisher’s type equations. Also the results demonstrate that the proposed method is powerful algorithm for solving the nonlinear partial differential equations.

#### 1. Introduction

Spectral methods (see, for instance, [1–5]) are powerful techniques that we use to numerically solve linear and nonlinear partial differential equations either in their strong or weak forms. What sets spectral methods apart from others like finite difference methods or finite element methods is that to get a spectral method we approximate the solutions by high order orthogonal polynomial expansions. The orthogonal polynomial approximations can have very high convergence rates, which allow us to use fewer degrees of freedom for a desired level of accuracy. The most common spectral method from the strong form of the equations is known as collocation. In collocation techniques, the partial differential equation must be satisfied at a set of grid, or more precisely, collocation points (see, for instance, [6–10]). Spectral methods also have become increasingly popular for solving fractional differential equations [11–21].

In this paper, we present an accurate numerical solution based on Legendre-Gauss-Lobatto collocation method for Fisher’s type equations. The Fisher equation in the form was firstly introduced by Fisher in [22] to describe the propagation of a mutant gene. Fisher equations have a wide application in a large number of the chemical kinetics [23], logistic population growth [24], flame propagation [25], population in one-dimensional habitual [26], neutron population in a nuclear reaction [27], neurophysiology [28], branching Brownian motion [23], autocatalytic chemical reactions [29], and nuclear reactor theory [30].

In recent years, many physicists and mathematicians have paid much attention to the Fisher equations due to their importance in mathematical physics. In [31], Öǧün and Kart utilized truncated Painlevè expansions for presenting some exact solutions of Fisher and generalized Fisher equations. Tan et al. [28] proposed the homotopy analysis method to find analytical solution of Fisher equations. Gunzburger et al. [32] applied the discrete finite element approximation for obtaining a numerical solution of the forced Fisher equation. Dag et al. [33] discussed and applied the B-spline Galerkin method for Fisher’s equation. Bastani and Salkuyeh [34] proposed the compact finite difference approach in combination with third-order Runge-Kutta scheme to solve Fisher’s equation. More recently, Mittal and Jain [35] investigated the cubic B-spline scheme for solving Fisher’s reaction-diffusion problem. However, the fisher equations have been studied in many other articles by numerous numerical methods such as pseudospectral method [36, 37], finite difference method [38–44], finite element method [45], B-spline algorithm [46], and Galerkin method [47, 48].

To increase the numerical solution accuracy, spectral collocation methods based on orthogonal polynomials are often chosen. Doha et al. [49] proposed and developed a new numerical algorithm for solving the initial-boundary system of nonlinear hyperbolic equations based on spectral collocation method; a Chebyshev-Gauss-Radau collocation method in combination with the implicit Runge-Kutta scheme are employed to obtain highly accurate approximations to this system of nonlinear hyperbolic equations. In [50], Bhrawy proposed an efficient Jacobi-Gauss-Lobatto collocation method for approximating the solution of the generalized Fitzhugh-Nagumo equation in which the Jacobi-Gauss-Lobatto points are used as collocation nodes for spatial derivatives. Moreover, the Jacobi spectral collocation methods are used to solve some problems in mathematical physics, (see, for instance, [51–53]).

Indeed, there are no results on Legendre-Gauss-Lobatto collocation method for solving nonlinear Fisher-type equations subject to initial-boundary conditions. Therefore, the objective of this work is to present a numerical algorithm for solving such equation based on Legendre-Gauss-Lobatto pseudospectral method. The spatial derivatives are approximated at these grid points by approximating the derivatives of Legendre polynomial that interpolates the solutions. Moreover, we set the boundary conditions in the collocation method. The problem is then reduced to system of first-order ordinary differential equations in time. The four-stage A-stable implicit Runge-Kutta scheme is proposed for treating the this system of equations. Finally, some illustrative examples are implemented to illustrate the efficiency and applicability of the proposed approach.

The rest of this paper is structured as follows. In the next section, some properties of Legendre polynomials, which are required for implementing our algorithm, are presented. Section 3 is devoted to the development of Gauss-Lobatto collocation technique for a general form of Fisher-type equations based on the Legendre polynomials, and in Section 4 the proposed method is implemented to obtain some numerical results for three problems of Fisher-type equations with known exact solutions. Finally, a brief conclusion is provided in Section 5.

#### 2. Legendre Polynomials

The Legendre polynomials (,) satisfy the following Rodrigues’ formula: we recall also thatis a polynomial of degree , and therefore, theth derivative of is given by where The analytical form of Legendre polynomial is where, and It is also generating from the following relation: with, , and satisfies the orthogonality condition where,. Letbe the space of all polynomials of degree ≤, then for any, Let us define the following discrete inner product and norm: whereandare the nodes and the corresponding weights of the Legendre-Gauss-Lobatto quadrature formula on the interval , respectively.

#### 3. Legendre Spectral Collocation Method

Because of the pseudospectral method is an efficient and accurate numerical scheme for solving various problems in physical space, including variable coefficient and singularity (see, [54, 55]), we propose this method based on Legendre polynomials for approximating the solution of the nonlinear generalized Burger-Fisher model equation and Fisher model with variable coefficient.

##### 3.1. (1+1)-Dimensional Generalized Burger-Fisher Equation

In this subsection, we derive a Legendre pseudospectral algorithm to solve numerically the generalized Burger-Fisher problem: where. Subject to

In the following, we shall derive an efficient algorithm for the numerical solution of (11)–(13). Let the approximation ofbe given in terms of the Legendre polynomials expansion: Making use of relations (8) and (10) gives or equivalently

The Gauss-Lobatto points were introduced by way of (9). We then saw that the polynomial approximation can be characterized bynodal values. The approximation of the spatial partial derivatives of first-order forcan be computed at the Legendre Gauss-Lobatto interpolation nodes as where Subsequently, the second-order spatial partial derivatives ofmay be written at the same collocation nodes as where

In collocation methods, one specifically seeks the approximate solution such that the problem (11) is satisfied exactly at the Legendre Gauss-Lobatto set of interpolation points ; . The approximation is exact at thecollocation points. Therefore, (11) after using relations (17)–(20), can be written as whereand.

Now the two valuesandcan be determined from the boundary conditions (12), then (21) can be reformulated as where

Approximation (22) automatically satisfies the boundary conditions (12), but we need an initial condition for each of the to integrate (22) in time. The initial condition is usually taken to be the interpolant of the initial function; that is. Therefore, the approximation of (11)–(13) is reduced to the solution of system of ordinary differential equations in time. Consider

Let us denote Then (24) can be written in the matrix form This system of ordinary differential equations can be solved by using four-stage A-stable implicit Runge-Kutta scheme.

##### 3.2. (1+1)-Dimensional Fisher Equation with Variable Coefficient

In this subsection, we extend the application of the Legendre pseudospectral method to solve numerically the Fisher equation with variable coefficient, subject to the initial-boundary conditions Proceeding as in the previous subsection we can obtainin the same form as (19), and then (27) can be collocated in the Legendre Gauss-Lobatto points as: which can be written in the matrix form where

#### 4. Numerical Examples

In this section, three nonlinear time-dependent Fisher-type equations on finite interval are implemented to demonstrate the accuracy and capability of the proposed algorithm, and all of them were performed on the computer using a program written in Mathematica 8.0. The absolute errors in the given tables are where andare the exact and numerical solution at selected points.

*Example 1. *Consider the nonlinear time-dependent one-dimensional Fisher-type equations
where. Subject to

The exact solution is

In Table 1, we introduce the absolute errors between the approximate and exact solutions for problem (32) using the proposed method for different values ofand, withand.

In case ofand, the approximate solution and absolute errors of problem (32) are displayed in Figures 1(a) and 1(b), respectively. In Figure 2, we plotted the curves of approximate solutions and exact solutions of problem (32) for different values of (0.0,0.5 and 0.9) withand . It is clear from this figure that approximate solutions and exact solutions completely coincide for the chosen values of.

**(a)**

**(b)**

*Example 2. *Consider the nonlinear time-dependent one-dimensional generalized Burger-Fisher-type equations
where. Subject to

The exact solution of (35) is

The absolute errors for problem (35) are listed in Table 2 using the L-GL-C method with, , and various choices of.

To illustrate the effectiveness of the Legendre pseudospectral method for problem (35), we displayed in Figures 3(a) and 3(b) the approximate solution and the absolute error with,, and. The graph of curves of exact and approximate solutions with different values of (0.0, 0.5, and 0.9) is given in Figure 4. Moreover, the approximate solution and the absolute error with , , and are displayed in Figures 5(a) and 5(b), respectively. The curves of exact and approximate solutions of problem (35) withare displayed in Figure 6 with values of parameters listed in its caption.

**(a)**

**(b)**

**(a)**

**(b)**

*Example 3. *Consider the nonlinear time-dependent one-dimensional Fisher-type equations with variable coefficient
where. Subject to

The exact solution of (38) is

Table 3 lists the absolute errors for problem (38) using the L-GL-C method. From numerical results of this table, it can be concluded that the numerical solutions are in excellent agreement with the exact solutions.

#### 5. Conclusion

In this paper, based on the Legendre-Gauss-Lobatto pseudospectral approximation we proposed an efficient numerical algorithm to solve nonlinear time-dependent Fisher-type equations with constant and variable coefficients. The method is based upon reducing the nonlinear partial differential equation into a system of first-order ordinary differential equations in the expansion coefficient of the spectral solution. Numerical examples were also provided to illustrate the effectiveness of the derived algorithms. The numerical experiments show that the Legendre pseudospectral approximation is simple and accurate with a limited number of collocation nodes.

#### Conflict of Interests

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