Skip to main content

Theory and Modern Applications

High-accuracy quasi-variable mesh method for the system of 1D quasi-linear parabolic partial differential equations based on off-step spline in compression approximations

Abstract

In this article, we propose a new two-level implicit method of accuracy two in time and three in space based on spline in compression approximations using two off-step points and a central point on a quasi-variable mesh for the numerical solution of the system of 1D quasi-linear parabolic partial differential equations. The new method is derived directly from the continuity condition of the first-order derivative of the spline function. The stability analysis for a model problem is discussed. The method is directly applicable to problems in polar systems. To demonstrate the strength and utility of the proposed method, we solve the generalized Burgers-Fisher equation, generalized Burgers-Huxley equation, coupled Burgers-equations and heat equation in polar coordinates. We demonstrate that the proposed method enables us to obtain high accurate solution for high Reynolds number.

1 Introduction

We consider the one-space dimensional quasi-linear parabolic partial differential equation (PDE) of the form

$$ u_{xx} = f ( x,t,u,u_{x},u_{t} ),\quad 0 < x < 1, t > 0. $$
(1.1)

The initial and boundary conditions are given by

$$\begin{aligned} &u(x,0) = u_{0}(x),\quad 0 \le x \le 1, \end{aligned}$$
(1.2)
$$\begin{aligned} &u(0,t) = g_{0}(t),\qquad u(1,t) = g_{1}(t),\quad t > 0, \end{aligned}$$
(1.3)

where we assume that the functions f, \(u_{0}(x)\), \(g_{0}(t)\) and \(g_{1}(t)\) are sufficiently smooth and their required higher-order derivatives exist.

The quasi-linear parabolic equation describes a wide class of physical phenomenon such as the interaction between reaction mechanism, convection, effects and diffusion transports. It is used in many fields such as chemistry, biology, metallurgy and engineering. The one-dimensional viscous generalized Burgers-Fisher equation (GBFE) and generalized Burgers-Huxley equation (GBHE) are famous examples of quasi-linear parabolic equations.

The GBFE is given by

$$ \varepsilon u_{xx} = u_{t} + \alpha u^{\delta} u_{x} + \beta u \bigl(u^{\delta} - 1 \bigr), \quad t > 0, $$
(1.4)

where \(\alpha, \beta\) are real parameters, δ is a positive integer and \(0 < \varepsilon \le 1\).

The GBHE is given by

$$ \varepsilon u_{xx} = u_{t} + \alpha u^{\delta} u_{x} + \beta u \bigl(u^{\delta} - 1 \bigr) \bigl(u^{\delta} - \gamma \bigr),\quad t > 0, $$
(1.5)

where \(\alpha,\beta \ge 0\), \(\gamma \in (0,1)\), \(\delta > 0\) and \(0 < \varepsilon \le 1\) are the parameters.

In both cases, equations describe the interaction between diffusion, convection and reaction.

The GBFE has wide applications in the fields such as gas dynamics, fluid mechanics, elasticity, heat conduction and plasma physics. The well-known equation (1.4) was first used by Fisher [1] to describe the propagation of gene in a habitat. In his memory, it is generally referred as Fisher’s equation. When \(\alpha = 0\) and \(\delta = 1\), equation (1.4) reduces to the classical Fisher equation. Kolmogorov et al. [2] independently wrote down the same equation to describe the dynamic spread of a combustion front. This equation has been found in various contexts in which a perturbation spreads in an excitable medium.

The GBHE was investigated by Satsuma et al. [3] in 1987. When \(\varepsilon = 1\), \(\alpha = 0\), \(\delta = 1\), equation (1.5) reduces to the Huxley equation and describes nerve pulse propagation in nerve fibers and wall motion in liquid crystals. For \(\varepsilon = 1\), \(\beta = 0\), equation (1.5) reduces to the generalized Burgers equation, which describes the far field of wave propagation in nonlinear dissipative systems. When \(\varepsilon = 1\), \(\alpha = 0\), \(\beta = 1\) and \(\delta = 1\), equation (1.5) becomes the Fitz-Hugh-Nagumo (FHN) equation which is the reaction diffusion equation used in circuit theory and biology. When \(\alpha \ne 0\), \(\beta \ne 0\) and \(\delta = 1\), equation (1.5) turns into the Burgers-Huxley equation (BHE) and shows a prototype model for describing the interaction between diffusion transports, convection and reaction mechanisms.

There has been vast variety of numerical methods, such as finite element methods, finite difference methods, spectral techniques and finite volume methods for quasi-linear parabolic initial-boundary value problems. In recent years, various numerical methods were used by the researchers to solve GBHE and GBFE. A fourth-order scheme for GBHE was proposed by Bratsos [4]. Mohammadi [5] has discussed a spline method for GBFE. Zhang et al. [6] solved GBFE using the local discontinuous Galerkin method. Diaz [7] analysed the solitary wave solution of the BHE through Cardano’s method. Mittal and Tripathi [8] discussed the schemes using collocation of cubic B-splines for numerical solutions of GBFE and GBHE. A two-level implicit compact operator method of order two in time and four in space was discussed for the approximate solution of time dependent BHE by Mohanty et al. [9].

Higher-order finite difference methods on a uniform mesh for the solution of nonlinear parabolic equations were proposed by Jain et al. [10]. Mittal and Jiwari [11] developed differential quadrature method for numerical solution of coupled viscous Burgers’ equations. Mohanty et al. [12] used compact operator technique to solve coupled Burgers’ equations. In recent past, Talwar et al. [13] proposed spline in compression method based on three full-step grid points for the solution of 1D quasi-linear parabolic equations and in those methods the consistency equation is only second-order accurate and the method is not directly applicable to singular problems, which is a main drawback of those methods. To the best of the authors’ knowledge, no numerical method of order two in time and three in space, directly obtained from the consistency condition, for the solution of parabolic equation (1.1) on a quasi-variable mesh has been discussed in the literature so far.

In this paper, using a central point and two off-step points in x-direction, we propose a new two-level implicit method of accuracy two in time and three in space, based on spline in compression approximations for the solution of differential equation (1.1). The proposed method is obtained directly from the consistency condition and is of order three in space. Difficulties were experienced in the past for the higher-order spline solution of parabolic equation in polar coordinates. The solution usually deteriorates in the vicinity of the singularity. A special technique is required to handle such problems, whereas the proposed method is directly applicable to solve singular problems without any modification, which is the main attraction of our work. Our paper is arranged as follows: In Section 2, we discuss the non-polynomial spline in compression function and its properties on a quasi-variable mesh. In Section 3, we give derivation of the method. In Section 4, we generalize the proposed method for the system of quasi-linear parabolic PDEs. Stability analysis for model problem is discussed and it is shown that the linear scheme is unconditionally stable in Section 5. In this section, we also discuss the stability analysis for a fourth-order parabolic equation which is consistent with system of 1D quasi-linear parabolic PDEs. In Section 6, numerical results are presented for some benchmark problems with tabular and graphical illustrations and compare the results with the results obtained by other researchers. Final remarks are given in Section 7.

2 Spline in compression approximations and its properties

For the approximate solution of the initial-boundary value problems (1.1)-(1.3), we discretize the space interval \([0,1]\) as \(0 = x_{0} < x_{1} <\cdots < x_{N} < x_{N + 1} = 1\), where N is a positive integer. The spline approximation consists of two off-step points \(x_{l \pm 1/2}\) and a central point \(x_{l}\), \(l = 0,1,2,\ldots,N\) with two end points \(x_{0}\) and \(x_{N + 1}\), where \(h_{l} = x_{l} - x_{l - 1}\), \(l = 1,2,\ldots,N + 1\), be the mesh size in x-direction and \(k = t_{j + 1} - t_{j} > 0\), \(j = 0,1,2,\ldots \) be the mesh spacing in t-direction. Spatial grid points are defined by \(x_{l} = x_{0} + \sum_{i = 1}^{l} h_{i}\), \(l = 1(1)N + 1\), and the time steps are given by \(t_{j} = jk\), \(j = 0(1)J\), where J is a positive integer. The mesh ratio is denoted by \(\sigma_{l} = (h_{l + 1}/h_{l}) > 0\), \(l = 1(1)N\). The neighboring off-step points are defined as \(x_{l - 1/2} = x_{l} - \frac{h_{l}}{2}\) and \(x_{l + 1/2} = x_{l} + \frac{\sigma_{l}h_{l}}{2}\), \(l = 1(1)N\). For \(\sigma_{l} = 1\), it reduces to the uniform mesh case. Let \(U_{l}^{j} = u(x_{l},t_{j})\) be the exact solution value of \(u(x,t)\) and is approximated by \(u_{l}^{j}\). For simplicity, we consider \(\sigma_{l} = \sigma\) (a constant ≠1), \(l = 1(1)N\). For \(\sigma>1\) or \(\sigma<1\), the mesh sizes are either increasing or decreasing in order. Such a mesh is called a quasi-variable mesh.

A non-polynomial spline function of degree 3 which interpolate \(u_{l}^{j}\) at jth level is given by

$$ P_{j}(x) = a_{l}^{j} + b_{l}^{j}(x - x_{l}) + c_{l}^{j}\sin w(x - x_{l}) + d_{l}^{j}\cos w(x - x_{l}),\quad x_{l - 1} \le x \le x_{l}, $$
(2.1)

which satisfy the following conditions at jth time level:

  1. (i)

    \(P_{j}(x) \in C^{2}[0,1]\), and

  2. (ii)

    \(P_{j}(x_{l}) = U_{l}^{j}\), \(P_{j}(x_{l - 1}) = U_{l - 1}^{j}\), where w is an arbitrary parameter and \(P''_{j}(x_{l}) = M_{l}^{j} = U_{xxl}^{j}\), \(P''_{j}(x_{l \pm 1}) = M_{l \pm 1}^{j} = U_{xxl \pm 1}^{j}\), \(P''_{j}(x_{l \pm 1/2}) = M_{l \pm 1/2}^{j} = U_{xxl \pm 1/2}^{j}\), \(l = 0(1)N + 1\), \(j > 0\).

The derivatives of non-polynomial spline function \(P_{j}(x)\) for \(x \in [x_{l - 1},x_{l}]\) are given by

$$\begin{aligned} &P'_{j}(x) = b_{l}^{j} + wc_{l}^{j}\cos w(x - x_{l}) - wd_{l}^{j} \sin w(x - x_{l}), \end{aligned}$$
(2.2)
$$\begin{aligned} &P''_{j}(x) = - w^{2} \bigl[c_{l}^{j}\sin w(x - x_{l}) + d_{l}^{j}\cos w(x - x_{l}) \bigr]. \end{aligned}$$
(2.3)

Using the conditions described above with algebraic calculations, we obtain the coefficients

$$\begin{aligned} &a_{l}^{j} = U_{l}^{j} + \frac{M_{l}^{j}}{w^{2}},\qquad b_{l}^{j} = \frac{U_{l}^{j} - U_{l - 1}^{j}}{h_{l}} + \frac{M_{l}^{j}}{w\mu_{l}} - \frac{M_{l - 1/2}^{j}}{w\mu_{l}}\cos \mu_{l}, \\ &c_{l}^{j} = \frac{M_{l - 1/2}^{j} - M_{l}^{j}\cos \mu_{l}}{w^{2}\sin \mu_{l}},\qquad d_{l}^{j} = - \frac{M_{l}^{j}}{w^{2}}. \end{aligned}$$

Here \(\mu_{l} = \frac{wh_{l}}{2}\).

Substituting the coefficients \(a_{l}^{j}\), \(b_{l}^{j}\), \(c_{l}^{j}\), \(d_{l}^{j}\), in equation (2.1), we obtain the non-polynomial spline in compression function

$$\begin{aligned} P_{j}(x) ={}& U_{l}^{j} + \frac{M_{l}^{j}}{w^{2}} + \biggl( \frac{U_{l}^{j} - U_{l - 1}^{j}}{h_{l}} + \frac{M_{l}^{j}}{w\mu_{l}} - \frac{M_{l - 1/2}^{j}}{w\mu_{l}}\cos \mu_{l} \biggr) ( x - x_{l} ) \\ &{}+ \biggl( \frac{M_{l - 1/2}^{j} - M_{l}^{j}\cos \mu_{l}}{w^{2}\sin \mu_{l}} \biggr)\sin w ( x - x_{l} ) - \frac{M_{l}^{j}}{w^{2}}\cos w ( x - x_{l} ),\quad x \in [x_{l - 1},x_{l}]. \end{aligned}$$
(2.4)

Similarly, we get

$$\begin{aligned} P_{j}(x) ={}& U_{l}^{j} + \frac{M_{l}^{j}}{w^{2}} + \biggl( \frac{U_{l + 1}^{j} - U_{l}^{j}}{h_{l + 1}} - \frac{M_{l}^{j}}{w\mu_{l + 1}} + \frac{M_{l + 1/2}^{j}}{w\mu_{l + 1}}\cos \mu_{l + 1} \biggr) ( x - x_{l} ) \\ &{}+ \biggl( \frac{M_{l}^{j}\cos \mu_{l + 1} - M_{l + 1/2}^{j}}{w^{2}\sin \mu_{l + 1}} \biggr)\sin w ( x - x_{l} ) \\ &{} - \frac{M_{l}^{j}}{w^{2}}\cos w ( x - x_{l} ),\quad x \in [x_{l},x_{l + 1}]. \end{aligned}$$
(2.5)

On differentiating equations (2.4) and (2.5), we get

$$\begin{aligned} P'_{j}(x) ={}& \frac{U_{l}^{j} - U_{l - 1}^{j}}{h_{l}} + \frac{M_{l}^{j}}{w\mu_{l}} - \frac{M_{l - 1/2}^{j}}{w\mu_{l}}\cos \mu_{l} \\ &{}+ \biggl( \frac{M_{l - 1/2}^{j} - M_{l}^{j}\cos \mu_{l}}{w\sin \mu_{l}} \biggr)\cos w ( x - x_{l} ) \\ &{}+ \frac{M_{l}^{j}}{w^{2}}\sin w ( x - x_{l} ),\quad x \in [x_{l - 1},x_{l}] \end{aligned}$$
(2.6)

and

$$\begin{aligned} P'_{j}(x) ={}& \frac{U_{l + 1}^{j} - U_{l}^{j}}{h_{l + 1}} - \frac{M_{l}^{j}}{w\mu_{l + 1}} + \frac{M_{l + 1/2}^{j}}{w\mu_{l + 1}}\cos \mu_{l + 1} \\ &{}+ \biggl( \frac{M_{l}^{j}\cos \mu_{l + 1} - M_{l + 1/2}^{j}}{w\sin \mu_{l + 1}} \biggr)\cos w ( x - x_{l} ) \\ &{} + \frac{M_{l}^{j}}{w^{2}}\sin w ( x - x_{l} ),\quad x \in [x_{l},x_{l + 1}]. \end{aligned}$$
(2.7)

Using the continuity of the first derivative, that is, \(P'_{j}(x_{l} - ) = P'_{j}(x_{l} + )\),we obtain the consistency condition

$$ \frac{U_{l + 1}^{j} - (1 + \sigma )U_{l}^{j} + \sigma U_{l - 1}^{j}}{\sigma h_{l}^{2}} = \bigl[ \alpha_{l}M_{l + 1/2}^{j} + ( \beta_{1l} + \beta_{2l} )M_{l}^{j} + \gamma_{l}M_{l - 1/2}^{j} \bigr] + T_{l}^{j},\quad l = 1(1)N, $$
(2.8)

where

$$\begin{aligned} &\alpha_{l} = \frac{\sigma}{2\mu_{l + 1}^{2}} \biggl[ \frac{\mu_{l + 1}}{\sin \mu_{l + 1}} - \cos \mu_{l + 1} \biggr] = \frac{\sigma}{3} - \frac{\sigma^{3}\mu_{l}^{2}}{90} + O \bigl( \mu_{l}^{4} \bigr), \end{aligned}$$
(2.9a)
$$\begin{aligned} &\beta_{1l} = \frac{\sigma}{2\mu_{l + 1}^{2}} ( 1 - \mu_{l + 1}\cot \mu_{l + 1} ) = \frac{\sigma}{6} + \frac{\sigma^{3}\mu_{l}^{2}}{90} + O \bigl( \mu_{l}^{4} \bigr), \end{aligned}$$
(2.9b)
$$\begin{aligned} &\beta_{2l} = \frac{1}{2\mu_{l}^{2}} ( 1 - \mu_{l}\cot \mu_{l} ) = \frac{1}{6} + \frac{\mu_{l}^{2}}{90} + O \bigl( \mu_{l}^{4} \bigr), \end{aligned}$$
(2.9c)
$$\begin{aligned} &\gamma_{l} = \frac{1}{2\mu_{l}^{2}} \biggl[ \frac{\mu_{l}}{\sin \mu_{l}} - \cos \mu_{l} \biggr] = \frac{1}{3} - \frac{\mu_{l}^{2}}{90} + O \bigl( \mu_{l}^{4} \bigr), \end{aligned}$$
(2.9d)

and \(T_{l}^{j} = O ( h_{l}^{3} )\).

On equating the coefficients of \(M_{l}^{j}\) in (2.8), we obtain the condition

$$ \alpha_{l} + \beta_{1l} + \beta_{2l} + \gamma_{l} = \frac{(1 + \sigma )}{2} + O \bigl( \mu_{l}^{4} \bigr). $$
(2.10)

Using (2.9a)-(2.9d) in equation (2.8), we get the consistency condition in the following form:

$$\begin{aligned} &U_{l + 1}^{j} - (1 + \sigma )U_{l}^{j} + \sigma U_{l - 1}^{j} \\ &\quad = \sigma h_{l}^{2} \biggl[ \biggl( \frac{\sigma}{3} - \frac{\sigma^{3}\mu_{l}^{2}}{90} \biggr)M_{l + 1/2}^{j} + \frac{ ( 1 + \sigma )}{6}M_{l}^{j} + \frac{ ( 1 + \sigma^{3} )\mu_{l}^{2}}{90}M_{l}^{j} + \biggl( \frac{1}{3} - \frac{\mu_{l}^{2}}{90} \biggr)M_{l - 1/2}^{j} \biggr] \\ &\qquad{} + O \bigl( h_{l}^{5} \bigr) \\ &\quad= \frac{\sigma h_{l}^{2}}{3} \biggl[ \sigma M_{l + 1/2}^{j} + \frac{ ( 1 + \sigma )}{2}M_{l}^{j} + M_{l - 1/2}^{j} \biggr] \\ &\qquad{}- \frac{\sigma h_{l}^{2}\mu_{l}^{2}}{90} \bigl[ \sigma^{3}M_{l + 1/2}^{j} + M_{l - 1/2}^{j} - \bigl( 1 + \sigma^{3} \bigr)M_{l}^{j} \bigr] + O \bigl( h_{l}^{5} \bigr). \end{aligned}$$
(2.11)

Since the term \(\frac{\sigma h_{l}^{2}\mu_{l}^{2}}{90} [ \sigma^{3}M_{l + 1/2}^{j} + M_{l - 1/2}^{j} - ( 1 + \sigma^{3} )M_{l}^{j} ]\) is of \(O ( h_{l}^{5} )\), simplifying (2.11), we obtain the consistency condition

$$ U_{l + 1}^{j} - (1 + \sigma )U_{l}^{j} + \sigma U_{l - 1}^{j} = \frac{\sigma h_{l}^{2}}{3} \biggl[ \sigma M_{l + 1/2}^{j} + \frac{ ( 1 + \sigma )}{2}M_{l}^{j} + M_{l - 1/2}^{j} \biggr] + O \bigl( h_{l}^{5} \bigr). $$
(2.12)

Further, substituting the values of (2.9a)-(2.9d) in (2.10) and neglecting \(O(\mu_{l}^{4})\) terms, we get

$$ \tan (\mu_{l}/2) = \mu_{l}/2. $$
(2.13)

The above equation has an infinite number of roots, the smallest positive non-zero root being given by \(\mu_{l} = \mu = 8.986818916\). When \(w \to 0\), then \(( \alpha_{l},\beta_{1l},\beta_{2l},\gamma_{l} ) \to ( \frac{\sigma}{3},\frac{\sigma}{6},\frac{1}{6},\frac{1}{3} )\), and equation (2.8) reduces to a cubic spline relation.

Further, from equations (2.6)-(2.7), we get

$$\begin{aligned} P'_{j}(x_{l - 1/2}) ={}& \frac{U_{l}^{j} - U_{l - 1}^{j}}{h_{l}} + \frac{ ( M_{l}^{j} - M_{l - 1/2}^{j}\cos \mu_{l} )}{w\mu_{l}} \\ &{}+ \frac{ ( M_{l - 1/2}^{j} - M_{l}^{j}\cos \mu_{l} )}{w\sin \mu_{l}}\cos \mu_{l} - \frac{M_{l}^{j}}{w}\sin \mu_{l}, \end{aligned}$$
(2.14)

and

$$\begin{aligned} P'_{j}(x_{l + 1/2}) ={}& \frac{U_{l + 1}^{j} - U_{l}^{j}}{\sigma h_{l}} - \frac{ ( M_{l}^{j} - M_{l + 1/2}^{j}\cos \mu_{l + 1} )}{w\mu_{l + 1}} \\ &{}+ \frac{ ( M_{l}^{j}\cos \mu_{l + 1} - M_{l + 1/2}^{j} )}{w\sin \mu_{l + 1}}\cos \mu_{l + 1} + \frac{M_{l}^{j}}{w}\sin \mu_{l + 1}. \end{aligned}$$
(2.15)

Simplifying (2.14) and (2.15), we obtain

$$\begin{aligned} &P'_{j}(x_{l - 1/2}) = \frac{U_{l}^{j} - U_{l - 1}^{j}}{h_{l}} - \frac{h_{l}}{4} \bigl( 2\beta_{2l}M_{l}^{j} - \gamma_{l}M_{l - 1/2}^{j} \bigr), \end{aligned}$$
(2.16)
$$\begin{aligned} &P'_{j}(x_{l + 1/2}) = \frac{U_{l + 1}^{j} - U_{l}^{j}}{\sigma h_{l}} + \frac{h_{l}}{4} \bigl( 2\beta_{1l}M_{l}^{j} - \alpha_{l}M_{l + 1/2}^{j} \bigr). \end{aligned}$$
(2.17)

Equations (2.16) and (2.17) are two important properties of non-polynomial spline in compression function \(P_{j}(x)\).

3 Derivation of the numerical method

For the derivation of the method, we simply follow the approaches given by Mohanty [14].

At the grid point \((x_{l},t_{j})\), let us denote

$$ U_{pq} = \frac{\partial^{p + q}U}{\partial x^{p}\,\partial t^{q}},\qquad \alpha_{l}^{j} = \frac{\partial f}{\partial u},\qquad \beta_{l}^{j} = \frac{\partial f}{\partial u_{x}},\qquad \gamma_{l}^{j} = \frac{\partial f}{\partial u_{t}}, \qquad\delta_{l}^{j} = \frac{\partial f}{\partial t}. $$
(3.1)

Differentiating the differential equation (1.1) partially with respect to ‘t’ at the grid point \((x_{l},t_{j})\), we obtain a relation

$$ - \gamma_{l}^{j}U_{02} = \delta_{l}^{j} + U_{01}\alpha_{l}^{j} + U_{11} \beta_{l}^{j} - U_{21}. $$
(3.2)

At the grid point \((x_{l},t_{j})\), we can write the differential equation as

$$ M_{l}^{j} = f \bigl( x_{l},t_{j},U_{l}^{j},U_{xl}^{j},U_{tl}^{j} \bigr). $$
(3.3)

Similarly,

$$\begin{aligned} &M_{l + 1/2}^{j} = f \bigl( x_{l + 1/2},t_{j},U_{l + 1/2}^{j},U_{xl + 1/2}^{j},U_{tl + 1/2}^{j} \bigr), \end{aligned}$$
(3.4)
$$\begin{aligned} &M_{l - 1/2}^{j} = f \bigl( x_{l - 1/2},t_{j},U_{l - 1/2}^{j},U_{xl - 1/2}^{j},U_{tl - 1/2}^{j} \bigr). \end{aligned}$$
(3.5)

Since \(M_{l}^{j}\) and \(M_{l \pm 1/2}^{j}\)contain the first derivative terms, from the consistency condition (2.12), the non-polynomial spline in compression method for the parabolic equation (1.1) can be written as

$$ \bigl[ \bar{U}_{l + 1}^{j} - (1 + \sigma )\bar{U}_{l}^{j} + \sigma \bar{U}_{l - 1}^{j} \bigr] = \frac{\sigma h_{l}^{2}}{3} \biggl[ \sigma \hat{M}_{l + 1/2}^{j} + \frac{(1 + \sigma )}{2} \hat{M}_{l}^{j} + \hat{M}_{l - 1/2}^{j} \biggr] + \hat{T}_{l}^{j}, $$
(3.6)

where \(\hat{T}_{l}^{j} \equiv O ( kh_{l}^{3} + h_{l}^{5} )\), provided \(\sigma \ne 1\) and we use the following approximations:

$$\begin{aligned} &\bar{t}_{j} = t_{j} + \theta k, \end{aligned}$$
(3.7)
$$\begin{aligned} &\bar{U}_{l}^{j} = \theta U_{l}^{j + 1} + ( 1 - \theta )U_{l}^{j} = U_{l}^{j} + \theta kU_{01} + O \bigl( k^{2} \bigr), \end{aligned}$$
(3.8)
$$\begin{aligned} &\bar{U}_{l + 1}^{j} = \theta U_{l + 1}^{j + 1} + ( 1 - \theta )U_{l + 1}^{j} = U_{l + 1}^{j} + \theta k ( U_{01} + \sigma h_{l}U_{11} ) + O \bigl( k^{2} \bigr), \end{aligned}$$
(3.9)
$$\begin{aligned} &\bar{U}_{l - 1}^{j} = \theta U_{l - 1}^{j + 1} + ( 1 - \theta )U_{l - 1}^{j} = U_{l - 1}^{j} + \theta k ( U_{01} - h_{l}U_{11} ) + O \bigl( k^{2} \bigr), \end{aligned}$$
(3.10)
$$\begin{aligned} &\bar{U}_{l + 1/2}^{j} = \frac{1}{2} \bigl( \bar{U}_{l + 1}^{j} + \bar{U}_{l}^{j} \bigr) = U_{l + 1/2}^{j} + \theta kU_{01} + \frac{\sigma h_{l}^{2}}{8}U_{20} + O \bigl( kh_{l} + h_{l}^{3} + k^{2} \bigr), \end{aligned}$$
(3.11)
$$\begin{aligned} &\bar{U}_{l - 1/2}^{j} = \frac{1}{2} \bigl( \bar{U}_{l - 1}^{j} + \bar{U}_{l}^{j} \bigr) = U_{l - 1/2}^{j} + \theta kU_{01} + \frac{h_{l}^{2}}{8}U_{20} + O \bigl( kh_{l} + h_{l}^{3} + k^{2} \bigr), \end{aligned}$$
(3.12)
$$\begin{aligned} &\bar{U}_{tl}^{j} = \frac{1}{k} \bigl( U_{l}^{j + 1} - U_{l}^{j} \bigr) = U_{01} + \frac{k}{2}U_{02} + O \bigl( k^{2} \bigr), \end{aligned}$$
(3.13)
$$\begin{aligned} &\bar{U}_{tl + 1}^{j} = \frac{1}{k} \bigl( U_{l + 1}^{j + 1} - U_{l + 1}^{j} \bigr) = U_{tl + 1}^{j} + \frac{k}{2}U_{02} + O \bigl( kh_{l} + k^{2} \bigr), \end{aligned}$$
(3.14)
$$\begin{aligned} &\bar{U}_{tl - 1}^{j} = \frac{1}{k} \bigl( U_{l - 1}^{j + 1} - U_{l - 1}^{j} \bigr) = U_{tl - 1}^{j} + \frac{k}{2}U_{02} + O \bigl( kh_{l} + k^{2} \bigr), \end{aligned}$$
(3.15)
$$\begin{aligned} &\bar{U}_{tl + 1/2}^{j} = \frac{1}{2k} \bigl( U_{l + 1}^{j + 1} + U_{l}^{j + 1} - U_{l + 1}^{j} - U_{l}^{j} \bigr) \\ &\phantom{\bar{U}_{tl + 1/2}^{j}}= U_{tl + 1/2}^{j} + \frac{k}{2}U_{02} + \frac{\sigma^{2}h_{l}^{2}}{8}U_{21} + O \bigl( kh_{l} + h_{l}^{3} + k^{2} \bigr), \end{aligned}$$
(3.16)
$$\begin{aligned} &\bar{U}_{tl - 1/2}^{j} = \frac{1}{2k} \bigl( U_{l - 1}^{j + 1} + U_{l}^{j + 1} - U_{l - 1}^{j} - U_{l}^{j} \bigr) \\ &\phantom{\bar{U}_{tl - 1/2}^{j} }= U_{tl - 1/2}^{j} + \frac{k}{2}U_{02} + \frac{h_{l}^{2}}{8}U_{21} + O \bigl( kh_{l} + h_{l}^{3} + k^{2} \bigr), \end{aligned}$$
(3.17)
$$\begin{aligned} &\bar{U}_{xl}^{j} = \frac{\bar{U}_{l + 1}^{j} - ( 1 - \sigma^{2} )\bar{U}_{l}^{j} - \sigma^{2}\bar{U}_{l - 1}^{j}}{h_{l}\sigma (\sigma + 1)}= U_{10} + \frac{1}{6}\sigma h_{l}^{2}U_{30} + \theta kU_{11} + O \bigl( kh_{l} + h_{l}^{3} \bigr), \end{aligned}$$
(3.18)
$$\begin{aligned} &\bar{U}_{xl + 1/2}^{j} = \frac{\bar{U}_{l + 1}^{j} - \bar{U}_{l}^{j}}{\sigma h_{l}}= U_{xl + 1/2}^{j} + \frac{1}{24}\sigma^{2}h_{l}^{2}U_{30} + \theta kU_{11} + O \bigl( kh_{l} + k^{2} + h_{l}^{3} \bigr), \end{aligned}$$
(3.19)
$$\begin{aligned} &\bar{U}_{xl - 1/2}^{j} = \frac{\bar{U}_{l}^{j} - \bar{U}_{l - 1}^{j}}{h_{l}}= U_{xl - 1/2}^{j} + \frac{1}{24}h_{l}^{2}U_{30} + \theta kU_{11} + O \bigl( kh_{l} + k^{2} + h_{l}^{3} \bigr), \end{aligned}$$
(3.20)
$$\begin{aligned} &\bar{U}_{xxl}^{j} = \frac{2[\bar{U}_{l + 1}^{j} - ( 1 + \sigma )\bar{U}_{l}^{j} + \sigma \bar{U}_{l - 1}^{j}]}{\sigma (\sigma + 1)h_{l}^{2}} \\ &\phantom{\bar{U}_{xxl}^{j}} = U_{xxl}^{j} + \theta kU_{21} + \frac{(\sigma - 1)h_{l}}{3}U_{30} + O \bigl(k^{2} + h_{l}^{2} \bigr), \end{aligned}$$
(3.21)

where ‘θ’ is a parameter to be determined.

With the help of the approximations (3.7)-(3.21), we can simplify the following approximations:

$$\begin{aligned} &\bar{M}_{l}^{j} = f \bigl( x_{l}, \bar{t}_{j},\bar{U}_{l}^{j},\bar{U}_{xl}^{j}, \bar{U}_{tl}^{j} \bigr) \\ &\phantom{\bar{M}_{l}^{j}} = M_{l}^{j} + \theta k \bigl( \delta_{l}^{j} + U_{01}\alpha_{l}^{j} + U_{11} \beta_{l}^{j} \bigr) + \frac{\sigma^{2}h_{l}^{2}}{6}U_{30} \beta_{l}^{j} \\ &\phantom{\phantom{\bar{M}_{l}^{j}}=}{} + \frac{k}{2}U_{02} \gamma_{l}^{j} + O \bigl( kh_{l} + h_{l}^{3} + k^{2} \bigr), \end{aligned}$$
(3.22)
$$\begin{aligned} &\bar{M}_{l + 1/2}^{j} = f \bigl( x_{l + 1/2}, \bar{t}_{j},\bar{U}_{l + 1/2}^{j},\bar{U}_{xl + 1/2}^{j}, \bar{U}_{tl + 1/2}^{j} \bigr) \\ &\phantom{\bar{M}_{l + 1/2}^{j}}= M_{l + 1/2}^{j} + \theta k \bigl( \delta_{l}^{j} + U_{01}\alpha_{l}^{j} + U_{11} \beta_{l}^{j} \bigr) + \frac{\sigma^{2}h_{l}^{2}}{24} \bigl( 3U_{20}\alpha_{l}^{j} + U_{30} \beta_{l}^{j} + 3U_{21}\gamma_{l}^{j} \bigr) \\ &\phantom{\bar{M}_{l + 1/2}^{j}=}{} + \frac{k}{2}U_{02}\gamma_{l}^{j} + O \bigl( kh_{l} + h_{l}^{3} + k^{2} \bigr), \end{aligned}$$
(3.23)
$$\begin{aligned} &\bar{M}_{l - 1/2}^{j} = f \bigl( x_{l - 1/2}, \bar{t}_{j},\bar{U}_{l - 1/2}^{j},\bar{U}_{xl - 1/2}^{j}, \bar{U}_{tl - 1/2}^{j} \bigr) \\ &\phantom{\bar{M}_{l - 1/2}^{j}}= M_{l - 1/2}^{j} + \theta k \bigl( \delta_{l}^{j} + U_{01}\alpha_{l}^{j} + U_{11} \beta_{l}^{j} \bigr) + \frac{h_{l}^{2}}{24} \bigl( 3U_{20}\alpha_{l}^{j} + U_{30} \beta_{l}^{j} + 3U_{21}\gamma_{l}^{j} \bigr) \\ &\phantom{\bar{M}_{l - 1/2}^{j}=}{}+ \frac{k}{2}U_{02}\gamma_{l}^{j} + O \bigl( kh_{l} + h_{l}^{3} + k^{2} \bigr). \end{aligned}$$
(3.24)

From the properties of spline function given by (2.16) and (2.17), we define the approximations:

$$\begin{aligned} &\hat{U}_{xl - 1/2}^{j} = \frac{\bar{U}_{l}^{j} - \bar{U}_{l - 1}^{j}}{h_{l}} - \frac{h_{l}}{4} \bigl( 2\beta_{2l}\bar{M}_{l}^{j} - \gamma_{l}\bar{M}_{l - 1/2}^{j} \bigr), \end{aligned}$$
(3.25)
$$\begin{aligned} &\hat{U}_{xl + 1/2}^{j} = \frac{\bar{U}_{l + 1}^{j} - \bar{U}_{l}^{j}}{\sigma h_{l}} + \frac{h_{l}}{4} \bigl( 2\beta_{1l}\bar{M}_{l}^{j} - \alpha_{l}\bar{M}_{l + 1/2}^{j} \bigr). \end{aligned}$$
(3.26)

With the help of the approximations (3.8)-(3.10), (3.22)-(3.24), and simplifying (3.25) and (3.26), we obtain

$$\begin{aligned} &\hat{U}_{xl - 1/2}^{j} = U_{xl - 1/2}^{j} + \theta kU_{11} + O \bigl( k^{2} + kh_{l} + h_{l}^{3} \bigr), \end{aligned}$$
(3.27)
$$\begin{aligned} &\hat{U}_{xl + 1/2}^{j} = U_{xl + 1/2}^{j} + \theta kU_{11} + O \bigl( k^{2} + kh_{l} + h_{l}^{3} \bigr). \end{aligned}$$
(3.28)

Now, we need \(O ( kh_{l} + h_{l}^{3} + k^{2} )\)-approximations for \(U_{l}^{j}\), \(U_{xl}^{j}\) and \(O ( k^{2} + h_{l}^{3} )\)-approximation for \(\bar{U}_{tl}^{j}\). Let

$$\begin{aligned} &\hat{U}_{l}^{j} = \bar{U}_{l}^{j} + ah_{l}^{2}\bar{U}_{xxl}^{j}, \end{aligned}$$
(3.29)
$$\begin{aligned} &\hat{U}_{xl}^{j} = \bar{U}_{xl}^{j} + bh_{l} \bigl( \bar{M}_{l + 1/2}^{j} - \bar{M}_{l - 1/2}^{j} \bigr), \end{aligned}$$
(3.30)
$$\begin{aligned} &\hat{U}_{tl}^{j} = \bar{U}_{tl}^{j} + c \bigl( \bar{U}_{tl + 1}^{j} - (1 + \sigma )\bar{U}_{tl}^{j} + \sigma \bar{U}_{tl - 1}^{j} \bigr), \end{aligned}$$
(3.31)

where ‘a’, ‘b’ and ‘c’ are parameters to be determined.

With the help of the approximation (3.18), (3.23), (3.24), from (3.30) we obtain

$$ \hat{U}_{xl}^{j} = U_{xl}^{j} + \theta kU_{11} + \frac{h_{l}^{2}}{6} \bigl[ \sigma + 3b(1 + \sigma ) \bigr]U_{30} + O \bigl( k^{2} + kh_{l} + h_{l}^{3} \bigr),\quad \sigma \ne 1. $$
(3.32)

Equating the coefficient of \(h_{l}^{2}\) to zero in equation (3.32), we obtain \(b = \frac{ - \sigma}{3(1 + \sigma )}\) and equation (3.32) reduces to

$$ \hat{U}_{xl}^{j} = U_{xl}^{j} + \theta kU_{11} + O \bigl( k^{2} + kh_{l} + h_{l}^{3} \bigr), \quad \sigma_{l} \ne 1. $$
(3.33)

Similarly, simplifying (3.29) and (3.31), we obtain

$$\begin{aligned} &\hat{U}_{l}^{j} = U_{l}^{j} + \theta kU_{01} + ah_{l}^{2}U_{20} + O \bigl( k^{2} + kh_{l}^{2} + h_{l}^{3} \bigr), \end{aligned}$$
(3.34)
$$\begin{aligned} &\hat{U}_{tl}^{j} = U_{tl}^{j} + \frac{k}{2}U_{02} + c\sigma (1 + \sigma )\frac{h_{l}^{2}}{2}U_{21} + O \bigl( k^{2} + h_{l}^{3} \bigr),\quad \sigma \ne 1. \end{aligned}$$
(3.35)

Further, we define

$$\begin{aligned} &\hat{M}_{l}^{j} = f \bigl( x_{l}, \bar{t}_{j},\hat{U}_{l}^{j},\hat{U}_{xl}^{j}, \hat{U}_{tl}^{j} \bigr), \end{aligned}$$
(3.36)
$$\begin{aligned} &\hat{M}_{l \pm 1/2}^{j} = f \bigl( x_{l \pm 1/2}, \bar{t}_{j},\bar{U}_{l \pm 1/2}^{j},\hat{U}_{xl \pm 1/2}^{j}, \bar{U}_{tl \pm 1/2}^{j} \bigr). \end{aligned}$$
(3.37)

With the help of the approximations (3.7), (3.11)-(3.12), (3.16)-(3.17), (3.33)-(3.35), from (3.36)-(3.37), we obtain

$$\begin{aligned} &\hat{M}_{l}^{j} = M_{l}^{j} + \theta k \bigl( \delta_{l}^{j} + U_{01}\alpha_{l}^{j} + U_{11}\beta_{l}^{j} \bigr) + \frac{k}{2}U_{02}\gamma_{l}^{j} \\ &\phantom{\hat{M}_{l}^{j} =}{}+ \frac{h_{l}^{2}}{2} \bigl( 2aU_{20}\alpha_{l}^{j} + c\sigma (1 + \sigma )U_{21}\gamma_{l}^{j} \bigr) + O \bigl( k^{2} + kh_{l} + h_{l}^{3} \bigr), \end{aligned}$$
(3.38)
$$\begin{aligned} &\hat{M}_{l + 1/2}^{j} = M_{l + 1/2}^{j} + \theta k \bigl( \delta_{l}^{j} + U_{01}\alpha_{l}^{j} + U_{11}\beta_{l}^{j} \bigr) + \frac{k}{2}U_{02}\gamma_{l}^{j} \\ &\phantom{\hat{M}_{l + 1/2}^{j} =}{}+ \frac{\sigma^{2}h_{l}^{2}}{8} \bigl( U_{20}\alpha_{l}^{j} + U_{21}\gamma_{l}^{j} \bigr) + O \bigl( k^{2} + kh_{l} + h_{l}^{3} \bigr), \end{aligned}$$
(3.39)
$$\begin{aligned} &\hat{M}_{l - 1/2}^{j} = M_{l - 1/2}^{j} + \theta k \bigl( \delta_{l}^{j} + U_{01}\alpha_{l}^{j} + U_{11}\beta_{l}^{j} \bigr) + \frac{k}{2}U_{02}\gamma_{l}^{j} \\ &\phantom{\hat{M}_{l - 1/2}^{j} =}{}+ \frac{h_{l}^{2}}{8} \bigl( U_{20}\alpha_{l}^{j} + U_{21}\gamma_{l}^{j} \bigr) + O \bigl( k^{2} + kh_{l} + h_{l}^{3} \bigr). \end{aligned}$$
(3.40)

Using the approximation (3.8)-(3.10), (3.38)-(3.40), from (3.6), we obtain

$$\begin{aligned} & \bigl( U_{l + 1}^{j} - (1 + \sigma )U_{l}^{j} + \sigma U_{l - 1}^{j} \bigr) + O \bigl(kh_{l}^{3} + h_{l}^{5} \bigr) \\ &\quad = \frac{\sigma h_{l}^{2}}{3} \biggl[ \sigma M_{l + 1/2}^{j} + \frac{(1 + \sigma )}{2}M_{l}^{j} + M_{l - 1/2}^{j} + \frac{3(1 + \sigma )}{2}\theta k \bigl( \delta_{l}^{j} + U_{01}\alpha_{l}^{j} + U_{11}\beta_{l}^{j} - U_{21} \bigr) \\ &\qquad{}+ \frac{3k(1 + \sigma )}{4}U_{02}\gamma_{l}^{j} \\ & \qquad{}+ \frac{h_{l}^{2}}{8} \bigl\{ \bigl(1 + \sigma^{3} \bigr) + 4a(1 + \sigma ) \bigr\} U_{20}\alpha_{l}^{j} \\ &\qquad{}+ \frac{h_{l}^{2}}{8} \bigl\{ \bigl(1 + \sigma^{3} \bigr) + 2c\sigma (1 + \sigma )^{2} \bigr\} U_{21}\gamma_{l}^{j} \biggr] + \hat{T}_{l}^{j}. \end{aligned}$$
(3.41)

Now with the help of the consistency condition (2.12) and equation (3.2), and from (3.41), we obtain the local truncation error

$$\begin{aligned} \hat{T}_{l}^{j} ={}& \frac{ - \sigma h_{l}^{2}}{3} \biggl[ \frac{3(1 + \sigma )}{2} \biggl( \frac{1}{2} - \theta \biggr)kU_{02} \gamma_{l}^{j} + \frac{h_{l}^{2}}{8} \bigl\{ \bigl(1 + \sigma^{3} \bigr) + 4a(1 + \sigma ) \bigr\} U_{20} \alpha_{l}^{j} \\ &{}+ \frac{h_{l}^{2}}{8} \bigl\{ \bigl(1 + \sigma^{3} \bigr) + 2c \sigma (1 + \sigma )^{2} \bigr\} U_{21}\gamma_{l}^{j} \biggr] + O \bigl( kh_{l}^{3} + h_{l}^{5} \bigr), \quad\sigma \ne 1. \end{aligned}$$
(3.42)

The proposed non-polynomial spline in compression method (3.6) to be of \(O ( kh_{l} + h_{l}^{3} )\), the coefficients of \(kh_{l}^{2}\) and \(h_{l}^{4}\) in (3.42) must be zero.

Thus we obtain \(\theta = \frac{1}{2}\), \(a = \frac{ - (1 - \sigma + \sigma^{2})}{4}\), \(c = \frac{ - (1 - \sigma + \sigma^{2})}{2\sigma (1 + \sigma )}\) and the local truncation error given by (3.42) reduces to \(\hat{T}_{l}^{j} = O ( kh_{l}^{3} + h_{l}^{5} )\).

4 Method extended to a system of quasi-linear parabolic equations

We now extend our method to the system of quasi-linear parabolic PDEs of the form

$$ \frac{\partial^{2}\mathbf {u}}{\partial x^{2}} = \mathbf {F}, $$
(4.1)

where \(\mathbf {u} = [ u^{(1)},u^{(2)},\ldots,u^{(n)} ]^{T}\), \(\mathbf {F} = [ f^{(1)},f^{(2)},\ldots,f^{(n)} ]^{T}\), T denotes the transpose of the matrix.

Throughout this section, we consider

$$f^{(i)}=f^{(i)} \bigl(x,t,u^{(1)},u^{(2)}, \ldots,u^{(n)}, u_{x}^{(1)},u_{x}^{(2)}, \ldots,u_{x}^{(n)}, u_{t}^{(1)},u_{t}^{(2)}, \ldots,u_{t}^{(n)} \bigr),\quad i = 1(1)n. $$

The initial and boundary conditions are given by

$$\begin{aligned} &u^{(i)}(x,0) = u_{0}^{(i)}(x),\quad 0 \le x \le 1, \end{aligned}$$
(4.2)
$$\begin{aligned} &u^{(i)}(0,t) = g_{0}^{(i)}(t),\qquad u^{(i)}(1,t) = g_{1}^{(i)}(t),\quad t > 0, \end{aligned}$$
(4.3)

where we assume that the functions \(u_{0}^{(i)}(x)\), \(g_{0}^{(i)}(t)\), \(g_{1}^{(i)}(t)\) are sufficiently smooth.

Let \(U_{l}^{(i)j}\) and \(u_{l}^{(i)j}\) be the exact and approximate solution of the ith PDE of the system (4.1) at each grid point \((x_{l},t_{j})\). At the grid point \((x_{l},t_{j})\), we define the following approximations:

$$\begin{aligned} &\bar{t}_{j} = t_{j} + \frac{k}{2}, \end{aligned}$$
(4.4)
$$\begin{aligned} &\bar{U}_{l}^{(i)j} = \frac{1}{2} \bigl(U_{l}^{(i)j + 1} + U_{l}^{(i)j} \bigr), \end{aligned}$$
(4.5)
$$\begin{aligned} &\bar{U}_{l + 1}^{(i)j} = \frac{1}{2} \bigl(U_{l + 1}^{(i)j + 1} + U_{l + 1}^{(i)j} \bigr), \end{aligned}$$
(4.6)
$$\begin{aligned} &\bar{U}_{l - 1}^{(i)j} = \frac{1}{2} \bigl(U_{l - 1}^{(i)j + 1} + U_{l - 1}^{(i)j} \bigr), \end{aligned}$$
(4.7)
$$\begin{aligned} &\bar{U}_{l + 1/2}^{(i)j} = \frac{1}{2} \bigl( \bar{U}_{l + 1}^{(i)j} + \bar{U}_{l}^{(i)j} \bigr), \end{aligned}$$
(4.8)
$$\begin{aligned} &\bar{U}_{l - 1/2}^{(i)j} = \frac{1}{2} \bigl( \bar{U}_{l - 1}^{(i)j} + \bar{U}_{l}^{(i)j} \bigr), \end{aligned}$$
(4.9)
$$\begin{aligned} &\bar{U}_{tl}^{(i)j} = \frac{U_{l}^{(i)j + 1} - U_{l}^{(i)j}}{k}, \end{aligned}$$
(4.10)
$$\begin{aligned} &\bar{U}_{tl + 1}^{(i)j} = \frac{U_{l + 1}^{(i)j + 1} - U_{l + 1}^{(i)j}}{k}, \end{aligned}$$
(4.11)
$$\begin{aligned} &\bar{U}_{tl - 1}^{(i)j} = \frac{U_{l - 1}^{(i)j + 1} - U_{l - 1}^{(i)j}}{k}, \end{aligned}$$
(4.12)
$$\begin{aligned} &\bar{U}_{tl + 1/2}^{(i)j} = \frac{\bar{U}_{tl + 1}^{(i)j} + \bar{U}_{tl}^{(i)j}}{2}, \end{aligned}$$
(4.13)
$$\begin{aligned} &\bar{U}_{tl - 1/2}^{(i)j} = \frac{\bar{U}_{tl - 1}^{(i)j} + \bar{U}_{tl}^{(i)j}}{2}, \end{aligned}$$
(4.14)
$$\begin{aligned} &\bar{U}_{xl}^{(i)j} = \frac{\bar{U}_{l + 1}^{(i)j} - ( 1 - \sigma^{2} )\bar{U}_{l}^{(i)j} - \sigma^{2}\bar{U}_{l - 1}^{(i)j}}{h_{l}\sigma (\sigma + 1)}, \end{aligned}$$
(4.15)
$$\begin{aligned} &\bar{U}_{xl + 1/2}^{(i)j} = \frac{\bar{U}_{l + 1}^{(i)j} - \bar{U}_{l}^{(i)j}}{\sigma h_{l}}, \end{aligned}$$
(4.16)
$$\begin{aligned} &\bar{U}_{xl - 1/2}^{(i)j} = \frac{\bar{U}_{l}^{(i)j} - \bar{U}_{l - 1}^{(i)j}}{h_{l}}, \end{aligned}$$
(4.17)
$$\begin{aligned} &\bar{U}_{xxl}^{(i)j} = \frac{2[\bar{U}_{l + 1}^{(i)j} - ( 1 + \sigma )\bar{U}_{l}^{(i)j} + \sigma \bar{U}_{l - 1}^{(i)j}]}{\sigma (\sigma + 1)h_{l}^{2}}. \end{aligned}$$
(4.18)

Further, we define

$$\begin{aligned} &\overline{M}_{l}^{(i)j} = f^{(i)} \bigl( x_{l},\bar{t}_{j},\bar{U}_{l}^{(1)j}, \bar{U}_{l}^{(2)j},\ldots,\bar{U}_{l}^{(n)j}, \bar{U}_{xl}^{(1)j},\bar{U}_{xl}^{(2)j}, \ldots,\bar{U}_{xl}^{(n)j},\bar{U}_{tl}^{(1)j}, \bar{U}_{tl}^{(2)j},\ldots,\bar{U}_{tl}^{(n)j} \bigr), \end{aligned}$$
(4.19)
$$\begin{aligned} &\overline{M}_{l \pm 1/2}^{(i)j} = f^{(i)} \bigl( x_{l \pm 1/2},\bar{t}_{j},\bar{U}_{l \pm 1/2}^{(1)j}, \bar{U}_{l \pm 1/2}^{(2)j},\ldots,\bar{U}_{l \pm 1/2}^{(n)j}, \bar{U}_{xl \pm 1/2}^{(1)j},\bar{U}_{xl \pm 1/2}^{(2)j}, \ldots, \\ &\phantom{\overline{M}_{l \pm 1/2}^{(i)j} =}\bar{U}_{xl \pm 1/2}^{(n)j},\bar{U}_{tl \pm 1/2}^{(1)j}, \bar{U}_{tl \pm 1/2}^{(2)j},\ldots,\bar{U}_{tl \pm 1/2}^{(n)j} \bigr), \end{aligned}$$
(4.20)
$$\begin{aligned} &\hat{U}_{l}^{(i)j} = \bar{U}_{l}^{(i)j} - \frac{(1 - \sigma + \sigma^{2})h_{l}^{2}}{4}\bar{U}_{xxl}^{(i)j}, \end{aligned}$$
(4.21)
$$\begin{aligned} &\hat{U}_{xl}^{(i)j} = \bar{U}_{xl}^{(i)j} - \frac{\sigma h_{l}}{3(1 + \sigma )} \bigl( \overline{M}_{l + 1/2}^{(i)j} - \overline{M}_{l - 1/2}^{(i)j} \bigr), \end{aligned}$$
(4.22)
$$\begin{aligned} &\hat{U}_{xl + 1/2}^{(i)j} = \frac{\bar{U}_{l + 1}^{(i)j} - \bar{U}_{l}^{(i)j}}{\sigma h_{l}} + \frac{h_{l}}{4} \bigl( 2\beta_{1l}\overline{M}_{l}^{(i)j} - \alpha_{l}\overline{M}_{l + 1/2}^{(i)j} \bigr), \end{aligned}$$
(4.23)
$$\begin{aligned} &\hat{U}_{xl - 1/2}^{(i)j} = \frac{\bar{U}_{l}^{(i)j} - \bar{U}_{l - 1}^{(i)j}}{h_{l}} - \frac{h_{l}}{4} \bigl( 2\beta_{2l}\overline{M}_{l}^{(i)j} - \gamma_{l}\overline{M}_{l - 1/2}^{(i)j} \bigr), \end{aligned}$$
(4.24)
$$\begin{aligned} &\hat{U}_{tl}^{(i)j} = \bar{U}_{tl}^{(i)j} - \frac{(1 - \sigma + \sigma^{2})}{2\sigma (1 + \sigma )} \bigl( \bar{U}_{tl + 1}^{(i)j} - (1 + \sigma ) \bar{U}_{tl}^{(i)j} + \sigma \bar{U}_{tl - 1}^{(i)j} \bigr), \end{aligned}$$
(4.25)

where the values of \(\alpha_{l}\), \(\beta_{1l}\), \(\beta_{2l}\) and \(\gamma_{l}\) are already defined in Section 2.

Finally, let

$$\begin{aligned} &\hat{M}_{l}^{(i)j} = f^{(i)} \bigl( x_{l}, \bar{t}_{j},\hat{U}_{l}^{(1)j},\hat{U}_{l}^{(2)j}, \ldots,\hat{U}_{l}^{(n)j},\hat{U}_{xl}^{(1)j}, \hat{U}_{xl}^{(2)j},\ldots,\hat{U}_{xl}^{(n)j}, \hat{U}_{tl}^{(1)j},\hat{U}_{tl}^{(2)j}, \ldots,\hat{U}_{tl}^{(n)j} \bigr), \end{aligned}$$
(4.26)
$$\begin{aligned} &\hat{M}_{l \pm 1/2}^{(i)j} = f^{(i)} \bigl( x_{l \pm 1/2}, \bar{t}_{j}, \bar{U}_{l \pm 1/2}^{(1)j},\bar{U}_{l \pm 1/2}^{(2)j}, \ldots,\bar{U}_{l \pm 1/2}^{(n)j},\hat{U}_{xl \pm 1/2}^{(1)j}, \hat{U}_{xl \pm 1/2}^{(2)j},\ldots, \\ &\phantom{\hat{M}_{l \pm 1/2}^{(i)j} =}\hat{U}_{xl \pm 1/2}^{(n)j}, \bar{U}_{tl \pm 1/2}^{(1)j},\bar{U}_{tl \pm 1/2}^{(2)j}, \ldots,\bar{U}_{tl \pm 1/2}^{(n)j} \bigr). \end{aligned}$$
(4.27)

Then at each grid point \((x_{l},t_{j})\), each differential equation of the system (4.1) is discretized by

$$\begin{aligned} &\bigl[ \bar{U}_{l + 1}^{(i)j} - (1 + \sigma ) \bar{U}_{l}^{(i)j} + \sigma \bar{U}_{l - 1}^{(i)j} \bigr] \\ &\quad = \frac{\sigma h_{l}^{2}}{3} \biggl[ \sigma \hat{M}_{l + 1/2}^{(i)j} + \frac{(1 + \sigma )}{2}\hat{M}_{l}^{(i)j} + \hat{M}_{l - 1/2}^{(i)j} \biggr] + \hat{T}_{l}^{(i)j},\quad i=1(1)n, \end{aligned}$$
(4.28)

where \(\hat{T}_{l}^{(i)j} = O ( kh_{l}^{3} + h_{l}^{5} )\), provided \(\sigma \ne 1\).

5 Application and stability analysis

Now let us consider the one-dimensional Burgers equation in polar coordinates

$$ \frac{1}{R_{e}} \biggl( u_{rr} + \frac{p}{r}u_{r} - \frac{p}{r^{2}}u \biggr) = u_{t} + uu_{r} + g(r,t),\quad 0 < r < 1, t > 0, $$
(5.1)

where \(R_{e} > 0\) denotes the Reynolds number. For \(p = 1\) and 2, the above equation represents Burgers’ equation in cylindrical and spherical coordinates, respectively. It is the simplest model for the differential equations of fluid flow. It is used in fluid dynamics as a simplified model for turbulence, boundary layer behavior and shock wave formation. The viscous Burgers equation in polar coordinates is a useful test equation for investigating various numerical schemes, which are then applied to more complicated systems of partial differential equations. It shows a structure roughly similar to that of Navier-Stokes equations due to the form of the nonlinear convection term and the occurrence of the viscosity term. So it can be considered as a simplified form of the one-space dimensional Navier-Stokes equation. If we suppress the variables θ, z and θ, φ from the Navier-Stokes equations of motion in cylindrical polar coordinates (\(r,\theta,z,t\)) and spherical polar coordinates (\(r,\theta,\varphi,t\)), respectively (see [15]), we obtain Burgers’ equation (5.1) in polar coordinates. The high-accuracy numerical solution of Burgers’ equation in polar coordinates plays an important role for viscous fluid flow. It has been experienced in the past that the high-accuracy numerical solution usually deteriorates in the vicinity of the singular point say \(r=0\), whereas the proposed spline method is applicable to 1D nonlinear parabolic equations irrespective of coordinates, that is, the proposed spline method is directly applicable to solve equation (5.1). We do not require any modification in the spline scheme unlike other methods discussed in [16, 17]. Thus the numerical schemes for problems in polar coordinates are of importance in this discussion.

Re-write equation (5.1) as

$$ \varepsilon u_{rr} = u_{t} + Q(r)u_{r} + uu_{r} + S(r)u + g(r,t), $$
(5.2)

where \(R_{e} = \varepsilon^{ - 1} > 0\) represents a Reynolds number and \(Q(r) = \frac{ - p\varepsilon}{r}\), \(S(r) = \frac{p\varepsilon}{ r^{2}}\).

Replacing the variable ‘x’ by ‘r’ and applying the method (3.6) to the differential equation (5.2), we obtain

$$ \varepsilon \bigl[ \bar{U}_{l + 1}^{j} - (1 + \sigma ) \bar{U}_{l}^{j} + \sigma \bar{U}_{l - 1}^{j} \bigr] = \frac{\sigma h_{l}^{2}}{3} \biggl[ \sigma \hat{M}_{l + 1/2}^{j} + \frac{(1 + \sigma )}{2}\hat{M}_{l}^{j} + \hat{M}_{l - 1/2}^{j} \biggr] + \hat{T}_{l}^{j}, $$
(5.3)

where

$$\begin{aligned} &\hat{M}_{l}^{j} =\hat{U}_{tl}^{j} + Q_{l}\hat{U}_{rl}^{j} + \hat{U}_{l}^{j} \hat{U}_{rl}^{j} + S_{l}\hat{U}_{l}^{j} + \bar{g}_{l}^{j}, \\ &\hat{M}_{l \pm 1/2}^{j}= \bar{U}_{tl \pm 1/2}^{j} + Q_{l \pm 1/2}\hat{U}_{rl \pm 1/2}^{j} + \bar{U}_{l \pm 1/2}^{j} \hat{U}_{rl \pm 1/2}^{j} + S_{l \pm 1/2}\bar{U}_{l \pm 1/2}^{j} + \bar{g}_{l \pm 1/2}^{j}, \end{aligned}$$

where \(\bar{U}_{l \pm 1/2}^{j}\), \(\bar{U}_{tl \pm 1/2}^{j}\), \(\hat{U}_{l}^{j}\), \(\hat{U}_{rl}^{j}\), \(\hat{U}_{rl \pm 1/2}^{j}\) and \(\hat{U}_{tl}^{j}\) are defined in Section 3 and \(Q_{l} = Q(r_{l})\), \(Q_{l \pm 1/2} = Q(r_{l \pm 1/2})\), \(S_{l} = S(r_{l})\), \(S_{l \pm 1/2} = S(r_{l \pm 1/2})\), \(\bar{g}_{l} = g ( r_{l},t_{j} + \frac{k}{2} )\), \(\bar{g}_{l \pm 1/2} = g ( r_{l \pm 1/2},t_{j} + \frac{k}{2} )\).

Note that the scheme (5.3) is of \(O(kh_{l} + h_{l}^{3})\) for the solution of differential equation (5.1) and is free from the terms \(1/(r_{l \pm 1})\), thus, it is very easily solved for \(l = 1(1)N\); \(j = 0,1,2,\ldots \) , in the solution region without any modification. We do not require any fictitious point to solve the singular problem.

For stability, we consider the 1-D linear parabolic equation with variable coefficients

$$ \nu u_{xx} = u_{t} + D(x)u_{x} + f(x,t),\quad 0 < x < 1, t > 0, $$
(5.4)

where \(\nu > 0\) and D and f are sufficiently smooth functions. Applying the method (3.6) to the differential equation (5.4) on a uniform mesh (that is, when \(h_{l + 1} = h_{l} = h\)), we obtain the following scheme for the solution of the above differential equation:

$$ \nu \bigl( \bar{U}_{l + 1}^{j} - 2\bar{U}_{l}^{j} + \bar{U}_{l - 1}^{j} \bigr) = \frac{h^{2}}{3} \bigl[ \hat{M}_{l + 1/2}^{j} + \hat{M}_{l - 1/2}^{j} + \hat{M}_{l}^{j} \bigr] + \hat{T}_{l}^{j}, $$
(5.5)

where

$$\begin{aligned} &\hat{M}_{l}^{j} = \hat{U}_{tl}^{j} + D_{l}\hat{U}_{xl}^{j} + \bar{f}_{l}^{j}, \end{aligned}$$
(5.6)
$$\begin{aligned} &\hat{M}_{l + 1/2}^{j} = \bar{U}_{tl + 1/2}^{j} + D_{l + 1/2}\hat{U}_{xl + 1/2}^{j} + \bar{f}_{l + 1/2}^{j}, \end{aligned}$$
(5.7)
$$\begin{aligned} &\hat{M}_{l - 1/2}^{j} = \bar{U}_{tl - 1/2}^{j} + D_{l - 1/2}\hat{U}_{xl - 1/2}^{j} + \bar{f}_{l - 1/2}^{j}, \end{aligned}$$
(5.8)

where

$$\begin{aligned} &\hat{U}_{xl - 1/2}^{j} = \frac{\bar{U}_{l}^{j} - \bar{U}_{l - 1}^{j}}{h} - \frac{h}{4} \bigl( \bar{\beta} \bar{M}_{l}^{j} - \bar{\alpha} \bar{M}_{l - 1/2}^{j} \bigr), \\ &\hat{U}_{xl + 1/2}^{j} = \frac{\bar{U}_{l + 1}^{j} - \bar{U}_{l}^{j}}{h} + \frac{h}{4} \bigl( \bar{\beta} \bar{M}_{l}^{j} - \bar{\alpha} \bar{M}_{l + 1/2}^{j} \bigr), \\ &\bar{\alpha} = \frac{1}{2\mu^{2}} \biggl[ \frac{\mu}{\sin \mu} - \cos \mu \biggr], \qquad \bar{\beta} = \frac{1}{\mu^{2}} ( 1 - \mu \cot \mu ) \end{aligned}$$

and \(\bar{f}_{l}^{j} = f ( x_{l},t_{j} + \frac{k}{2} )\), … .

The approximations associated with (5.6)-(5.8) are already defined in Section 3. In order to discuss the stability, we require the following approximations:

$$\begin{aligned} &D_{l \pm 1/2} = D_{l} \pm \frac{h}{2}D_{xl} + \frac{h^{2}}{8}D_{xxl} \pm O \bigl(h^{3} \bigr), \end{aligned}$$
(5.9)
$$\begin{aligned} &\bar{f}_{l \pm 1/2} = \bar{f} \pm \frac{h}{2}\bar{f}_{x} + \frac{h^{2}}{8}\bar{f}_{xx} \pm O \bigl(h^{3} \bigr), \end{aligned}$$
(5.10)
$$\begin{aligned} &\bar{\alpha} = \frac{1}{3} + O \bigl(h^{2} \bigr), \end{aligned}$$
(5.11)
$$\begin{aligned} &\bar{\beta} = \frac{1}{3} + O \bigl(h^{2} \bigr). \end{aligned}$$
(5.12)

With the help of the approximations (5.6)-(5.8) and (5.9)-(5.12), neglecting higher-order terms, from (5.5), we obtain

$$\begin{aligned} \nu \delta_{x}^{2}\bar{U}_{l}^{j} ={}& \frac{h^{2}}{12} \biggl[ \bigl( 12 + \delta_{x}^{2} \bigr) \bar{U}_{tl}^{j} - \frac{hD_{l}}{2\nu} ( 2\mu_{x} \delta_{x} )\bar{U}_{tl}^{j} \biggr] \\ &{}+ \frac{h^{2}}{12} \biggl[ 2D_{xl} - \frac{D_{l}^{2}}{\nu} \biggr] \delta_{x}^{2}\bar{U}_{l}^{j} + \frac{h}{24} \biggl[ 12D_{l} + h^{2} \biggl( D_{xxl} - \frac{D_{l}D_{xl}}{\nu} \biggr) \biggr] ( 2\mu_{x} \delta_{x} )\bar{U}_{l}^{j} \\ &{} + \frac{h^{2}}{12} \biggl[ 12\bar{f}_{l}^{j} + h^{2} \biggl( \bar{f}_{xxl}^{j} - \frac{D_{l}\bar{f}_{xl}^{j}}{\nu} \biggr) \biggr] + \hat{T}_{l}^{j}, \end{aligned}$$
(5.13)

where \(\delta_{x}U_{l}^{j} = ( U_{l + 1/2}^{j} - U_{l - 1/2}^{j} )\) and \(\mu_{x}U_{l}^{j} = \frac{1}{2} ( U_{l + 1/2}^{j} + U_{l - 1/2}^{j} )\).

Multiplying (5.13) throughout by \(\lambda = (k/h^{2})\) and neglecting the local truncation error term, we have

$$\begin{aligned} &\biggl[ 1 + \frac{1}{12} ( 1 - 6\lambda \nu + \lambda P_{1} ) \delta_{x}^{2} - \frac{1}{12} ( hQ_{2} - \lambda P_{2} ) ( 2\mu_{x}\delta_{x} ) \biggr]u_{l}^{j + 1} \\ &\quad= \biggl[ 1 + \frac{1}{12} ( 1 + 6\lambda \nu - \lambda P_{1} ) \delta_{x}^{2} - \frac{1}{12} ( hQ_{2} + \lambda P_{2} ) ( 2\mu_{x}\delta_{x} ) \biggr]u_{l}^{j} + FF, \end{aligned}$$
(5.14)

where

$$\begin{aligned} &P_{1} = \frac{h^{2}}{2} \biggl[ 2D_{xl} - \frac{D_{l}^{2}}{\nu} \biggr],\qquad P_{2} = \frac{h}{4} \biggl[ 12D_{l} + h^{2} \biggl( D_{xxl} - \frac{D_{l}D_{xl}}{\nu} \biggr) \biggr],\qquad Q_{2} = \frac{D_{l}}{2\nu}, \\ &FF = \frac{ - k}{12} \biggl[ 12\bar{f}_{l}^{j} + h^{2} \biggl( \bar{f}_{xxl}^{j} - \frac{D_{l}}{\nu} \bar{f}_{xl}^{j} \biggr) \biggr]. \end{aligned}$$

To study the stability of scheme (5.14), we apply the von Neumann linear stability analysis. Let \(\varepsilon_{l}^{j} = \xi^{j}e^{i\eta l}\) be the error at the grid point \((x_{l},t_{j})\), where ξ is a complex number and η is a real number. Substituting \(\varepsilon_{l}^{j} = \xi^{j}e^{i\eta l}\) into the homogeneous part of the error equation of (5.14), we obtain the amplification factor ξ as

$$\begin{aligned} \xi &= \frac{ ( 1 - \frac{1}{3}(1 + 6\lambda \nu - \lambda P_{1})\sin^{2}\frac{\eta}{2} - \frac{i}{6}(hQ_{2} + \lambda P_{2})\sin \eta )}{ ( 1 - \frac{1}{3}(1 - 6\lambda \nu + \lambda P_{1})\sin^{2}\frac{\eta}{2} - \frac{i}{6}(hQ_{2} - \lambda P_{2})\sin \eta )} \\ & = \frac{1 + ( X + iY )}{1 - ( X + iY )}, \end{aligned}$$
(5.15)

where

$$X = \frac{ - \lambda [ ( \frac{1}{3} ( 6\nu - P_{1} )\sin^{2}\frac{\eta}{2} ) ( 1 - \frac{1}{3}\sin^{2}\frac{\eta}{2} ) - \frac{h}{36}P_{2}Q_{2}\sin^{2}\eta ]}{ ( 1 - \frac{1}{3}\sin^{2}\frac{\eta}{2} )^{2} + \frac{h^{2}}{36}Q_{2}^{2}\sin^{2}\eta}. $$

For stability, it is required that \(\vert \xi \vert ^{2} \le 1\). Imposing this condition on (5.15), we get

$$\begin{aligned} &\biggl\vert \frac{1 + ( X + iY )}{1 - ( X + iY )} \biggr\vert ^{2} \le 1 \\ &\quad\Rightarrow\quad ( 1 + X )^{2} + Y^{2} \le ( 1 - X )^{2} + Y^{2} \\ &\quad\Rightarrow\quad X \le 0. \end{aligned}$$

Above inequality is satisfied for all values of η and, \(D(x) = \frac{ - \alpha \nu}{x}\), \(\alpha = 1\) and 2. Hence the scheme (5.14) is unconditionally stable.

Next, we consider the fourth-order parabolic equations

$$ \biggl( \varepsilon \frac{\partial^{2}}{\partial x^{2}} - \frac{\partial}{ \partial t} \biggr)^{2}u \equiv \varepsilon^{2}\frac{\partial^{4}u}{\partial x^{4}} - 2 \varepsilon \frac{\partial^{3}u}{\partial x^{2}\,\partial t} + \frac{\partial^{2}u}{\partial t^{2}} = f(x,t),\quad 0 < x < 1, t > 0, $$
(5.16)

where \(\varepsilon > 0\) and f is sufficiently smooth function.

The initial values of \(u, u_{t}\) are prescribed at \(t = 0\) and boundary values of \(u, u_{xx}\) are prescribed at \(x = 0\) and \(x = 1\). Since the grid lines are parallel to the coordinate axes and the values of \(u, u_{xx}\) are exactly known on the boundary, the values of successive tangential partial derivatives of \(u, u_{xx}\), i.e., the values of \(u_{t}\),\(u_{\mathit{xxt}}\), …, are also known on the boundary \(x = 0\) and \(x = 1\). Similarly, the values of \(u_{x}\), \(u_{xx}\), \(u_{tx}\), … are also known at \(t = 0\). Hence the values of \(u_{xx}(x,0) - u_{t}(x,0)\), \(u_{xx}(0,t) - u_{t}(0,t)\) and \(u_{xx}(1,t) - u_{t}(1,t)\) are known exactly on the boundary.

Now, equation (5.16) can be re-written as

$$\begin{aligned} &\varepsilon u_{xx} = u_{t} + v, \end{aligned}$$
(5.17a)
$$\begin{aligned} &\varepsilon v_{xx} = v_{t} + f(x,t). \end{aligned}$$
(5.17b)

Applying the numerical method (4.28) to the above system of equations and neglecting local truncation errors, we obtain the following non-polynomial spline in compression schemes in coupled form:

$$\begin{aligned} &\varepsilon \bigl( \bar{u}_{l + 1}^{j} - 2\bar{u}_{l}^{j} + \bar{u}_{l - 1}^{j} \bigr) = \frac{h^{2}}{3} \bigl[ \bar{u}_{tl + \frac{1}{2}}^{j} + \bar{u}_{tl - \frac{1}{2}}^{j} + \hat{u}_{tl}^{j} + \bar{v}_{l + \frac{1}{2}}^{j} + \bar{v}_{l - \frac{1}{2}}^{j} + \hat{v}_{l}^{j} \bigr], \end{aligned}$$
(5.18a)
$$\begin{aligned} &\varepsilon \bigl( \bar{v}_{l + 1}^{j} - 2\bar{v}_{l}^{j} + \bar{v}_{l - 1}^{j} \bigr) = \frac{h^{2}}{3} \bigl[ \bar{v}_{tl + \frac{1}{2}}^{j} + \bar{v}_{tl - \frac{1}{2}}^{j} + \hat{v}_{tl}^{j} \bigr] + \frac{h^{2}}{3} \bigl[ \bar{f}_{l + 1/2}^{j} + \bar{f}_{l - 1/2}^{j} + \bar{f}_{l}^{j} \bigr]. \end{aligned}$$
(5.18b)

Using the approximations defined in Section 4, and multiplying (5.18a) and (5.18b) throughout by \(\lambda = (k/h^{2})\), we get

$$\begin{aligned} &6\lambda \varepsilon \delta_{x}^{2} \bigl( u_{l}^{j + 1} + u_{l}^{j} \bigr) = \bigl[ \bigl( u_{l + 1}^{j + 1} + 10u_{l}^{j + 1} + u_{l - 1}^{j + 1} \bigr) - \bigl( u_{l + 1}^{j} + 10u_{l}^{j} + u_{l - 1}^{j} \bigr) \bigr] \\ &\phantom{6\lambda \varepsilon \delta_{x}^{2} \bigl( u_{l}^{j + 1} + u_{l}^{j} \bigr) =}{}+ \frac{k}{2} \bigl( v_{l + 1}^{j + 1} + 10v_{l}^{j + 1} + v_{l - 1}^{j + 1} \bigr) + \frac{k}{2} \bigl( v_{l + 1}^{j} + 10v_{l}^{j} + v_{l - 1}^{j} \bigr), \end{aligned}$$
(5.19a)
$$\begin{aligned} &6\lambda \varepsilon \delta_{x}^{2} \bigl( v_{l}^{j + 1} + v_{l}^{j} \bigr) = \bigl[ \bigl( v_{l + 1}^{j + 1} + 10v_{l}^{j + 1} + v_{l - 1}^{j + 1} \bigr) - \bigl( v_{l + 1}^{j} + 10v_{l}^{j} + v_{l - 1}^{j} \bigr) \bigr] \\ &\phantom{6\lambda \varepsilon \delta_{x}^{2} \bigl( v_{l}^{j + 1} + v_{l}^{j} \bigr) =}{}+ 4k \bigl[ \bar{f}_{l + 1/2}^{j} + \bar{f}_{l - 1/2}^{j} + \bar{f}_{l}^{j} \bigr]. \end{aligned}$$
(5.19b)

Neglecting the homogeneous part, the above system in matrix form may be written as

$$ \begin{bmatrix} \mathbf {A}_{11} & \mathbf {A}_{12} \\ \mathbf {0} & \mathbf {A}_{11} \end{bmatrix}\begin{bmatrix} \mathbf {u}^{j + 1} \\ \mathbf {v}^{j + 1} \end{bmatrix} = \begin{bmatrix} \mathbf {B}_{11} & \mathbf {B}_{12} \\ \mathbf {0} & \mathbf {B}_{11} \end{bmatrix} \begin{bmatrix} \mathbf {u}^{j} \\ \mathbf {v}^{j} \end{bmatrix}, $$

or

$$ \mathbf {A} \mathbf {Y}^{j + 1} = \mathbf {B} \mathbf {Y}^{j}, $$
(5.20)

where \(\mathbf {A}_{ij}\) and \(\mathbf {B}_{ij}\), \(i,j = 1,2\) are \(N \times N\) tri-diagonal matrices are given by

$$\begin{aligned} &\mathbf {A}_{11} = [ 1, 10, 1 ] - 6\lambda \varepsilon [ 1, - 2, 1 ],\qquad \mathbf {A}_{12} = \frac{k}{2} [ 1, 10, 1 ], \\ &\mathbf {B}_{11} = [ 1, 10, 1 ] + 6\lambda \varepsilon [ 1, - 2, 1 ],\qquad \mathbf {B}_{12} = - \frac{k}{2} [ 1, 10, 1 ], \end{aligned}$$

and

$$\mathbf{A}= \begin{bmatrix} \mathbf {A}_{11} & \mathbf {A}_{12} \\ \mathbf {0} & \mathbf {A}_{11} \end{bmatrix},\qquad \mathbf{B}= \begin{bmatrix} \mathbf {B}_{11} & \mathbf {B}_{12} \\ \mathbf {0} & \mathbf {B}_{11} \end{bmatrix},\qquad \mathbf {Y}^{j} = \begin{bmatrix} \mathbf {u}^{j} \\ \mathbf {v}^{j} \end{bmatrix}, \qquad \mathbf {Y}^{j + 1} = \begin{bmatrix} \mathbf {u}^{j + 1} \\ \mathbf {v}^{j + 1} \end{bmatrix}. $$

Assume that the matrix A is non-singular. Pre-multiplying both sides of (5.20) by \(\mathbf{A} ^{-1}\), we get

$$ \mathbf {Y}^{j + 1} = \mathbf {A}^{ - 1}\mathbf {B} \mathbf {Y}^{j}. $$
(5.21)

The eigenvalues of \(N \times N\) tri-diagonal matrix \([ a, b, c ]\) are defined by

$$\begin{aligned} \begin{aligned} &\lambda_{s} = b + 2\sqrt{ac} \cos \frac{s\pi}{N + 1} = b + 2 \sqrt{ac} \bigl(1 - 2\sin^{2}\psi \bigr),\\ & 2\psi = \frac{s\pi}{N + 1},\qquad s=1(1)N. \end{aligned} \end{aligned}$$
(5.22)

Using equation (5.22), the eigenvalues of the tri-diagonal matrices \(\mathbf {A}_{11}, \mathbf {A}_{12}, \mathbf {B}_{11}\) and \(\mathbf {B}_{12}\) are given by

$$\begin{aligned} &12 - 4\sin^{2}\psi + 24\lambda \varepsilon \sin^{2}\psi,\qquad \frac{k}{2} \bigl[ 12 - 4\sin^{2}\psi \bigr], \\ &12 - 4\sin^{2}\psi - 24\lambda \varepsilon \sin^{2}\psi \quad\mbox{and}\quad \frac{ - k}{2} \bigl[ 12 - 4\sin^{2}\psi \bigr], \end{aligned}$$

respectively.

The characteristic equations of the matrices A and B are given by

$$ \left \vert \begin{matrix} 12 - 4\sin^{2}\psi + 24\lambda \varepsilon \sin^{2}\psi - \xi & \frac{k}{2} [ 12 - 4\sin^{2}\psi ] \\ 0 & 12 - 4\sin^{2}\psi + 24\lambda \varepsilon \sin^{2}\psi - \xi \end{matrix} \right \vert =0, $$
(5.23)

and

$$ \left \vert \begin{matrix} 12 - 4\sin^{2}\psi - 24\lambda \varepsilon \sin^{2}\psi - \eta & \frac{k}{2} [ 12 - 4\sin^{2}\psi ] \\ 0 & 12 - 4\sin^{2}\psi - 24\lambda \varepsilon \sin^{2}\psi - \eta \end{matrix} \right \vert =0, $$
(5.24)

respectively. Hence the eigenvalues of A are given by \(\xi = 12 - 4\sin^{2}\psi + 24\lambda \varepsilon \sin^{2}\psi\), and the eigenvalues of B are given by \(\eta = 12 - 4\sin^{2}\psi - 24\lambda \varepsilon \sin^{2}\psi\).

Since \(\mathbf {A}^{ - 1}\) and B commute with each other, the eigenvalues of \(\mathbf {A}^{ - 1}\mathbf {B}\) are given by

$$ \rho = \frac{12 - 4\sin^{2}\psi - 24\lambda \varepsilon \sin^{2}\psi}{12 - 4\sin^{2}\psi + 24\lambda \varepsilon \sin^{2}\psi}. $$
(5.25)

For stability, it is required that \(\vert \rho \vert \le 1\) for all values of ψ. Imposing this condition on (5.25) yields

$$ - 1 \le \frac{12 - 4\sin^{2}\psi - 24\lambda \varepsilon \sin^{2}\psi}{12 - 4\sin^{2}\psi + 24\lambda \varepsilon \sin^{2}\psi} \le 1. $$
(5.26)

Both inequalities of (5.26) are true for all values of ψ. Hence the scheme (5.19a)-(5.19b) is unconditionally stable.

6 Numerical illustrations

In this section, we have solved several benchmark problems using the proposed method based on spline in compression and compared the results with the results obtained by other researchers. The exact solutions are provided in each case. The right hand side homogeneous functions, initial and boundary conditions are obtained using the exact solution as a test procedure. The linear equations are solved using a tri-diagonal solver, whereas nonlinear equations are solved using the Newton-Raphson method. While using the Newton-Raphson method, we choose 0 as the initial guess. All the computations are carried out using MATLAB codes.

From equation (2.13), we have obtained the value \(\mu_{l} = \mu_{l + 1} = 8.986818916\). In order to compute the proposed method (3.6), we have evaluated the values of

$$\begin{aligned} &\alpha_{l} = \frac{\sigma}{2\mu_{l + 1}^{2}} \biggl[ \frac{\mu_{l + 1}}{\sin \mu_{l + 1}} - \cos \mu_{l + 1} \biggr], \qquad \beta_{1l} = \frac{\sigma}{ 2\mu_{l + 1}^{2}} [ 1 - \mu_{l + 1}\cot \mu_{l + 1} ],\\ & \beta_{2l} = \frac{1}{2\mu_{l}^{2}} [ 1 - \mu_{l}\cot \mu_{l} ] \quad\mbox{and}\quad\gamma_{l} = \frac{1}{2\mu_{l}^{2}}\biggl[ \frac{\mu_{l}}{\sin \mu_{l}} - \cos \mu_{l} \biggr] \end{aligned}$$

using the values of \(\mu_{l}\) and \(\mu_{l + 1}\).

The given interval \([0,1]\) is divided into \((N+1)\) parts with \(0 = x_{0} < x_{1} <\cdots<x_{N} < x_{N + 1} = 1\), where \(h_{l} = x_{l} - x_{l - 1}\), \(l = 1,2,\ldots,N + 1\) and \(\sigma = h_{l + 1}/h_{l} > 0\), \(l = 1,2,\ldots,N\).

We can write

$$\begin{aligned} 1 &= x_{N + 1} - x_{0} = (x_{N + 1} - x_{N}) + (x_{N} - x_{N - 1}) +\cdots + (x_{1} - x_{0}) \\ &= h_{N + 1} + h_{N} +\cdots + h_{1} = \bigl( \sigma^{N} + \sigma^{N - 1} +\cdots + \sigma^{2} + \sigma \bigr)h_{1}. \end{aligned}$$
(6.1)

Thus,

$$ h_{1} = 1/ \bigl(\sigma + \sigma^{2} +\cdots + \sigma^{N} \bigr). $$
(6.2)

Alternatively, (6.2) can be re-written as

$$ h_{1} = (1 - \sigma )/ \bigl(1 - \sigma^{N + 1} \bigr). $$
(6.3)

By prescribing the total number of mesh points \((N+2)\), we can compute the value of \(h_{1}\) from (6.2) or (6.3). This is the first mesh spacing on the left and remaining mesh is determined by \(h_{l + 1} = \sigma h_{l}\), \(l = 1,2,\ldots,N\).

Example 1

The one-dimensional GBFE is given by the following form:

$$ \varepsilon u_{xx} = u_{t} + \alpha u^{\delta} u_{x} + \beta u \bigl(u^{\delta} - 1 \bigr), \quad a \le x \le b, t > 0, $$
(6.4)

where the real valued function \(u = u(x,t)\) is a sufficiently smooth function of the space and time variables; \([a,b]=[0,1]\), and \(\alpha, \beta\) are real parameters and δ is a positive integer.

The initial condition associated with differential equation (6.4) is given by

$$ u(x,0) = \biggl[ \frac{\gamma}{2} + \frac{\gamma}{2}\tanh (a_{1}x) \biggr]^{\frac{1}{\delta}}, \quad a \le x \le b, $$
(6.5)

and the boundary conditions associated with (6.4) are given by

$$\begin{aligned} &u(a,t) = \biggl[ \frac{\gamma}{2} + \frac{\gamma}{2}\tanh \bigl(a_{1}(a - a_{2}t) \bigr) \biggr]^{\frac{1}{\delta}},\quad t \ge 0, \end{aligned}$$
(6.6)
$$\begin{aligned} &u(b,t) = \biggl[ \frac{\gamma}{2} + \frac{\gamma}{2}\tanh \bigl(a_{1}(b - a_{2}t) \bigr) \biggr]^{\frac{1}{\delta}},\quad t \ge 0. \end{aligned}$$
(6.7)

The exact solution [6] of (6.4) is given by

$$ u(x,t) = \biggl[ \frac{\gamma}{2} + \frac{\gamma}{2}\tanh \bigl(a_{1}(x - a_{2}t) \bigr) \biggr]^{\frac{1}{\delta}},\quad t \ge 0, $$
(6.8)

where

$$\varepsilon = 1,\qquad a_{1} = \frac{ - \alpha \delta}{2(1 + \delta )},\qquad a_{2} = \frac{\alpha}{(1 + \delta )} + \frac{\beta (1 + \delta )}{\alpha}. $$

This problem is solved with N= 10, 16, k = 0.0001 and mesh ratio \(\sigma = 0.9\) by present method. The following cases have been discussed for different values of the parameters \(\alpha, \beta, \gamma\) and δ, which are involved in equation (6.4).

Case 1.1: We choose \(\alpha = 0.001\), \(\beta = 0.001\).

Case 1.1(a): In this case, results are computed for different time levels and \(\delta = 1, 4\). The maximum absolute errors are tabulated for \(x = 0.1, 0.5, 0.9\) in Tables 1-2.

Table 1 Example  1 : Case 1.1(a)(i): Maximum absolute errors at \(\pmb{\delta = 1}\)
Table 2 Example  1 : Case 1.1 (a)(ii): Maximum absolute errors at \(\pmb{\delta = 4}\)

Case 1.1(b): In this case, results are computed for different time levels and \(\delta = 1, 4,8\). The maximum absolute errors are tabulated for \(t = 1,2,3,4,5\) in Table 3.

Table 3 Example  1 : Case 1.1(b): Maximum absolute errors

Case 1.2: We consider \(\alpha = 1\), \(\beta = 1\), \(N = 10\). In this case, results are computed for different time levels \(t = 0.2, 0.4, 0.6, 0.8, 1.0\) and \(\delta = 1, 2, 4\). The maximum absolute errors are tabulated in Tables 4-6.

Table 4 Example  1 : Case 1.2(a): Maximum absolute errors at \(\pmb{\delta = 1}\)
Table 5 Example  1 : Case 1.2(b): Maximum absolute errors at \(\pmb{\delta = 2}\)
Table 6 Example  1 : Case 1.2(c): Maximum absolute errors at \(\pmb{\delta = 4}\)

Case 1.3: We consider \(\alpha = 1\), \(\beta = 0\), \(N = 10\). In this case, results are computed for different time levels and \(\delta = 1, 2, 8\). The maximum absolute errors are tabulated for \(x = 0.1, 0.5, 0.9\) in Tables 7-9.

Table 7 Example  1 : Case 1.3(a): Maximum absolute errors at \(\pmb{\delta = 1}\)
Table 8 Example  1 : Case 1.3(b): Maximum absolute errors at \(\pmb{\delta = 2}\)
Table 9 Example  4 : Case 1.3(c): Maximum absolute errors at \(\pmb{\delta = 8}\) .

Example 2

Consider equation (6.4) with \(\alpha = 1\), \(\beta = 0\), \(\delta = 1\) initial and boundary conditions as given in Mittal and Jiwari [18], namely

$$\begin{aligned} &u(x,0) = x \bigl(1 - x^{2} \bigr),\quad 0 < x < 1, \end{aligned}$$
(6.9a)
$$\begin{aligned} &u(0,t) = u(1,t) = 0,\quad t > 0. \end{aligned}$$
(6.9b)

In this example, we have computed solutions for \(\varepsilon = 2^{ - 3}\) and 2−9 at \(t = 0.1, 0.3, 0.6, 0.9\) with step size \(k = 0.001\) and mesh ratio \(\sigma = 0.9\). The computed numerical solutions as presented in Figure 1(a)-(b) are consistent with the dynamics of the corresponding differential equations. Similar patterns have been presented in [8, 18, 19] also.

Figure 1
figure 1

Example  2 : Computed solutions for different time levels. (a) \(\varepsilon = 2^{ - 3}\), (b) \(\varepsilon = 2^{ - 6}\).

Example 3

Consider equation (6.4) with \(\alpha = 0\), \(\delta = 1\) initial and boundary conditions as given in Zhao et al. [20], namely

$$\begin{aligned} &u(x,0) = x \bigl(1 - x^{2} \bigr)e^{x}, \quad - 1 \le x \le 1, \end{aligned}$$
(6.10a)
$$\begin{aligned} &u( - 1,t) = u(1,t) = 0,\quad t > 0. \end{aligned}$$
(6.10b)

The computed numerical solutions for this example are presented in Figure 2(a)-(f) for different value of the parameters. In our first computation, we compute the results for a fixed value of β and different value of ε at different time levels. We take \(\beta = 1\), \(t = 0.0, 0.5, 1.0, 1.5\) and \(\varepsilon = 0.005, 0.05, 0.5\), respectively. The corresponding graphical solutions are presented in Figure 2(a)-(c). In our second computation, we compute the results for a fixed value of ε and different valued of β at different time levels. We choose \(\varepsilon = 0.2\), \(t = 0.0, 0.5, 1.0, 1.5\) and \(\beta = 1.5, 2.5, 5.0\), respectively. The corresponding graphical results are presented in Figure 2(d)-(f). The numerical solutions, as presented in Figure 2(a)-(f), are consistent with those illustrated in [8, 20]. In Figure 2(a)-(c), the results exhibit that the numerical diffusion is dominated with the increasing diffusion coefficient ε, whereas the reaction is gradually dominant with the increasing coefficient β as shown in Figure 2(d)-(f). Thus, the computed and numerical solutions are in good agreement with the solution in the literature and the physical behavior of the differential equation.

Figure 2
figure 2

Example  3 : Computed solutions for different time levels. (a) \(\varepsilon = 0.005\), \(\beta = 1.0\), (b) \(\varepsilon = 0.05\), \(\beta = 1.0\), (c) \(\varepsilon = 0.5\), \(\beta = 1.0\), (d) \(\varepsilon = 0.2\), \(\beta = 1.5\), (e) \(\varepsilon = 0.2\), \(\beta = 2.5\), (f) \(\varepsilon = 0.2\), \(\beta = 5.0\).

Example 4

The one-dimensional GBHE is given by the following form:

$$ \varepsilon u_{xx} = u_{t} + \alpha u^{\delta} u_{x} + \beta u \bigl(u^{\delta} - 1 \bigr) \bigl(u^{\delta} - \gamma \bigr), \quad a < x < b, t > 0, $$
(6.11)

where \(u = u(x,t)\) is sufficiently differentiable function, \([a,b]=[0,1]\), \(\varepsilon > 0\) is a small positive parameter, αis real parameter, \(\beta \ge 0\), \(\delta > 0\), \(\gamma \in (0,1)\) and \(\gamma_{0} = - (1 + \gamma )\). When \(\alpha = 1\), \(\beta = 0\), \(\delta = 1\) and \(0 < \varepsilon \ll 1\), (6.11) is the well-known Burgers equation [21], where ε is the coefficient of viscosity and \(R_{e} = \varepsilon^{ - 1} > 0\) is the Reynolds Number.

The initial condition associated with differential equation (6.11) is given by

$$ u(x,0) = \biggl[ \frac{\gamma}{2} + \frac{\gamma}{2}\tanh (a_{1}x) \biggr]^{1/\delta}, \quad a \le x \le b, $$
(6.12)

and the boundary condition associated with the (6.11) are given by

$$\begin{aligned} &u(a,t) = \biggl[ \frac{\gamma}{2} + \frac{\gamma}{2}\tanh \bigl(a_{1}(a - a_{2}t) \bigr) \biggr]^{1/\delta},\quad t \ge 0, \end{aligned}$$
(6.13)
$$\begin{aligned} &u(b,t) = \biggl[ \frac{\gamma}{2} + \frac{\gamma}{2}\tanh \bigl(a_{1}(b - a_{2}t) \bigr) \biggr]^{1/\delta},\quad t \ge 0, \end{aligned}$$
(6.14)

the exact solution [7] of (6.11) is given by

$$ u(x,t) = \biggl[ \frac{\gamma}{2} + \frac{\gamma}{2}\tanh \bigl(a_{1}(x - a_{2}t) \bigr) \biggr]^{1/\delta}, \quad t \ge 0, $$
(6.15)

where

$$\begin{aligned} &\varepsilon = 1,\qquad a_{1} = \frac{ - \alpha \delta + \delta \sqrt{\alpha^{2} + 4\beta (1 + \delta )}}{4(1 + \delta )}\gamma,\\ & a_{2} = \frac{\alpha \gamma}{ (1 + \delta )} + \frac{ ( 1 + \delta - \gamma ) ( \alpha + \sqrt{\alpha^{2} + 4\beta (1 + \delta )} )}{2(1 + \delta )}. \end{aligned}$$

The following cases have been discussed for different values of the parameters \(\alpha, \beta, \gamma\) and δ which are involved in Eq. (6.11).

Case 4.1: In this case, we consider \(\alpha = 1\), \(\beta = 1\), \(\gamma = 0.001\) and mesh ratio \(\sigma = 0.85\). We have computed the numerical results for different time levels, namely \(t = 0.1, 0.5, 1.0\) with step size \(k = 0.0001\) and \(\delta = 1, 2, 4\), respectively. Maximum absolute errors have been presented for \(x = 0.1, 0.5, 0.9\) in Table 10.

Table 10 Example  4 : Case 4.1: Maximum absolute errors

Case 4.2: In this case, we consider \(\alpha = 1\), \(\delta = 8\), \(\gamma = 10^{ - 4}\) and mesh ratio \(\sigma = 0.9\). We have computed the numerical results for fixed time level \(t = 1.0\) with step size \(k = 0.0001\) and \(\beta = 10, 100, 200\). Maximum absolute errors have been presented for \(x = 0.1, 0.2, 0.3,0.4,0.5\) in Table 11.

Table 11 Example  4 : Case 4.2: Maximum absolute errors

Case 4.3: In this case, we consider \(\alpha = 5\), \(\beta = 10\), \(\delta = 4\). and mesh ratio \(\sigma = 0.9\). We have computed the numerical results for fixed time level \(t = 0.5\) with step size \(k = 0.0001\) and \(\gamma = 10^{ - 2}, 10^{ - 3}, 10^{ - 4}\). Maximum absolute errors have been presented for \(x = 0.1, 0.2, 0.3,0.4,0.5\) in Table 12.

Table 12 Example  4 : Case 4.3: Maximum absolute errors

Case 4.4: In this case, we consider \(\alpha = 1\), \(\beta = 0\) and mesh ratio \(\sigma = 0.9\). We consider the initial and boundary conditions are given by

$$\begin{aligned} &u(x,0) = \frac{2\varepsilon \sin (\pi x)}{2 + \cos (\pi x)},\quad 0 \le x \le 1, \end{aligned}$$
(6.16)
$$\begin{aligned} &u(0,t) = u(1,t) = 0,\quad t \ge 0. \end{aligned}$$
(6.17)

The exact solution [9] is given by

$$ u(x,t) = \frac{2\varepsilon \pi \exp ( - \varepsilon \pi^{2}t\sin (\pi x))}{2 + \exp ( - \varepsilon \pi^{2}t\cos (\pi x))}. $$
(6.18)

Results are computed for fixed time level \(t = 1.0\) and for \(\delta = 1\). Maximum absolute errors have been presented for \(R_{e} = \varepsilon^{ - 1} = 10^{2}, 10^{4}, 10^{6}\) in Table 13.

Table 13 Example  4 : Case 4.4: Maximum absolute errors \(\pmb{\alpha = 1}\) , \(\pmb{\beta = 0}\)

Example 5

We consider equation (6.11) with initial and boundary conditions are given in Mittal and Jiwari [18], namely

$$\begin{aligned} &u(x,0) = \sin (\pi x),\quad 0 < x < 1, \end{aligned}$$
(6.19a)
$$\begin{aligned} &u(0,t) = u(1,t) = 0,\quad t > 0. \end{aligned}$$
(6.19b)

In our computation, we find solutions at different time levels for various decreasing values of ε. We take \(t = 0.1, 0.3, 0.6, 0.9\) with step size \(k = 0.001\) and \(\varepsilon = 2^{ - 1}, 2^{ - 4}, 2^{ - 6}\), respectively. The computed solutions are interpreted graphically in Figure 3(a)-(c) for \(\alpha = 1\), \(\beta = 1\), \(\delta = 1\) and \(\gamma = 0.5\). We notice that, for a fixed value of ε as time t increases, the solutions curves fall to zero. Thus, the obtained solutions explain the nature of equation (6.11) faithfully in terms of diffusivity versus time. The approximate numerical solutions obtained by the present method exhibit correct physical behavior for several values of ε and t. Similar patterns have been depicted in [8].

Figure 3
figure 3

Example  5 : Computed solutions for different time levels. (a) \(\varepsilon = 2^{ - 1}\), (b) \(\varepsilon = 2^{ - 4}\), (c) \(\varepsilon = 2^{ - 6}\).

Example 6

We consider equation (6.11) with initial and boundary conditions as given in Kaushik [19], namely

$$\begin{aligned} &u(x,0) = 1 - \cos (x),\quad 0 < x < 1, \end{aligned}$$
(6.20a)
$$\begin{aligned} &u(0,t) = u(1,t) = 0, \quad t > 0. \end{aligned}$$
(6.20b)

We computed numerical solutions for different time levels for various decreasing values of ε. We take \(t = 0.2, 0.4, 0.6, 0.8\) with step size \(k = 0.001\) and \(\varepsilon = 2^{ - 4}, 2^{ - 6}, 2^{ - 7}\), respectively. The obtained solutions have been plotted in Figure 4(a)-(c) for \(\alpha = 3\), \(\beta = 9.8\), \(\delta = 1\) and \(\gamma = 0.7\). The graphs obtained in Figure 4(a)-(c) capture the nature of equation (6.11) faithfully in terms of diffusivity versus time. As the time increases, solution curves decreases to zero. For the decreasing value of ε, curves become steeper and propagate to the right which is the behavior of shocks waves. Similar patterns have been presented in [8, 19] also.

Figure 4
figure 4

Example  6 : Computed solutions for different time levels. (a) \(\varepsilon = 2^{ - 4}\), (b) \(\varepsilon = 2^{ - 6}\), (c) \(\varepsilon = 2^{ - 7}\).

Example 7

The coupled viscous nonlinear Burgers equation is given by the following form:

$$\begin{aligned} &\varepsilon \frac{\partial^{2}u}{\partial x^{2}} = \frac{\partial u}{\partial t} + \alpha_{1}u \frac{\partial u}{\partial x} + \alpha_{2}\frac{\partial (uv)}{\partial x}, \quad a < x < b, t > 0, \end{aligned}$$
(6.21)
$$\begin{aligned} &\varepsilon \frac{\partial^{2}v}{\partial x^{2}} = \frac{\partial v}{\partial t} + \beta_{1}v \frac{\partial v}{\partial x} + \beta_{2}\frac{\partial (uv)}{\partial x},\quad a < x < b, t > 0. \end{aligned}$$
(6.22)

Here \(0 < \varepsilon \ll 1\) is the viscosity, \(R_{e} = \varepsilon^{ - 1} > 0\) is the Reynolds number, \(\alpha_{1}\) and \(\beta_{1}\) are real constants, \(\alpha_{2}\) and \(\beta_{2}\) are arbitrary constants depending on the system parameters [12]. The coupled Burgers equations (6.21) and (6.22) represent a system of one-space dimensional quasi-linear parabolic equations with two unknown variables u and v.

The initial condition associated with differential equations (6.21) and (6.22) is given by

$$ u(x,0) = v(x,0) = \sin x, \quad - \pi \le x \le \pi, $$
(6.23)

and the boundary conditions associated with (6.21), (6.22) are given by

$$\begin{aligned} &u( - \pi,t) = u(\pi,t) = 0, \quad 0 \le t \le T, \end{aligned}$$
(6.24)
$$\begin{aligned} &v( - \pi,t) = v(\pi,t) = 0,\quad 0 \le t \le T. \end{aligned}$$
(6.25)

The values of parameters are given by \(\alpha_{1} = \beta_{1} = - 2\) and \(\alpha_{2} = \beta_{2} = 1\). The exact solutions of equations (6.21), (6.22) are \(u(x,t) = e^{ - t}\sin x\) and \(v(x,t) = e^{ - t}\sin x\) (see [22]).

In this example, we choose a uniform mesh \((\sigma = 1)\) to compute the numerical solutions for different values of the parameters \(\varepsilon, \alpha_{1}, \alpha_{2}, \beta_{1}\) and \(\beta_{2}\) with different values of h and k. In our first computation, we choose \(\varepsilon = 1\), \(\alpha_{1} = \beta_{1} = - 2\), \(\alpha_{2} = \beta_{2} = 1\), \(h = \frac{2\pi}{100}\), \(k = 0.01\) and maximum absolute errors are computed at various time levels from \(t = 0.5\) to 3.0. The corresponding results are tabulated in Table 14. In our second computation, the maximum absolute errors are computed at \(t = 1.0\) and \(t = 2.0\) for a fixed \(\lambda = \frac{1.6}{4\pi^{2}}\), \(\varepsilon = 1\), \(\alpha_{1} = \beta_{1} = - 2\), \(\alpha_{2} = \beta_{2} = 1\). Numerical results are presented in Table 15.

Table 14 Example  7 : Maximum absolute error at \(\pmb{\varepsilon = 1}\) , \(\pmb{\alpha_{1} = \beta_{1} = - 2}\) , \(\pmb{\alpha_{2} = \beta_{2} = 1}\) , \(\pmb{h = 2\pi /100}\) , \(\pmb{k = 0.01}\)
Table 15 Example  7 : Maximum absolute errors, \(\pmb{\varepsilon = 1}\) , \(\pmb{\alpha_{1} = \beta_{1} = - 2}\) , \(\pmb{\alpha_{2} = \beta_{2} = 1}\) , \(\pmb{\lambda = 1.6/4\pi^{2}}\)

Example 8

We consider the coupled Burgers equations (6.21), (6.22) with the following initial and boundary conditions:

$$ u(x,0) = v(x,0) = \cos (\pi x), \quad 0 \le x \le 1 $$
(6.26)

and

$$\begin{aligned} &u(0,t) = v(0,t) = e^{ - \varepsilon \pi^{2}t},\quad 0 \le t \le T, \end{aligned}$$
(6.27)
$$\begin{aligned} &u(1,t) = v(1,t) = - e^{ - \varepsilon \pi^{2}t},\quad 0 \le t \le T. \end{aligned}$$
(6.28)

In this example, we choose a uniform mesh size to compute the numerical solution for different parameters \(\alpha_{1} = \beta_{1} = 2\) and \(\alpha_{2} = \beta_{2} = - 1\), the exact solutions of equations (6.21), (6.22) are \(u(x,t) = e^{ - \varepsilon \pi^{2}t}\cos (\pi x)\) and \(v(x,t) = e^{ - \varepsilon \pi^{2}t}\cos (\pi x)\).

We computed the maximum absolute errors at time \(t = 1\) for a fixed \(\lambda = 3.2\) and the parameters \(\alpha_{1} = \beta_{1} = 2\), \(\alpha_{2} = \beta_{2} = - 1\) with the decreasing values of h and k, and different values of \(R_{e} = \varepsilon^{ - 1}\). The numerical results are reported in Table 16. The graphs of numerical and exact solutions at \(t = 1\) are plotted in Figure 5(a)-(c).

Figure 5
figure 5

Example  8 : The graphs of numerical and exact solutions for the values \(\pmb{\alpha_{1} = \beta_{1} = 2}\) , \(\pmb{\alpha_{2} = \beta_{2} = -1}\) , \(\pmb{R_{e} = 200}\) at \(\pmb{t=1}\) . (a) Numerical solution of \(u=v\), (b) Exact solution of \(u=v\), (c) Numerical and exact solution for \(N+1=16\).

Table 16 Example  8 : Maximum absolute errors at \(\pmb{t = 1}\) , \(\pmb{\alpha_{1} = \beta_{1} = 2}\) , \(\pmb{\alpha_{2} = \beta_{2} = - 1}\) , \(\pmb{\lambda = 3.2}\)

Example 9

Equation (5.1) is solved, for which an exact solution is \(u(r,t) = e^{ - t}\sinh r\). In this example, we choose uniform mesh to compute the maximum absolute errors at time \(t = 1\) for a fixed \(k = 0.01\), \(p = 1\) and 2 and for various values of \(R_{e} = \varepsilon^{ - 1}\). The corresponding numerical results are reported in Table 17. The graphs of numerical and exact solutions at \(t = 1\) are plotted in Figure 6.

Figure 6
figure 6

Example  9 : The graph of numerical and exact solution at \(\pmb{R_{e} = 10}\) , \(\pmb{p = 1}\) , \(\pmb{N + 1 = 50}\) , \(\pmb{k = 0.01}\) .

Table 17 Example  9 : Maximum absolute errors at \(\pmb{t = 1}\) , \(\pmb{k = 0.01}\)

7 Final remarks

In this article, we have presented a new two-level implicit method based on spline in compression approximations of accuracy \(O(kh_{l} + h_{l}^{3})\) for the numerical solution of quasi-linear parabolic partial differential equation in one spatial dimension. Mathematical formulation of the proposed scheme using three spatial grid points is discussed in detail. We have extended the proposed scheme to the system of quasi-linear parabolic equations. The stability analysis of the present numerical approach for one-dimensional linear convection-diffusion equation and fourth-order parabolic equation is presented. We have solved several benchmark problems using proposed method and it successfully provides highly accurate solutions in different settings of parameters. For different values of the parameters involved in GBFE, we have computed maximum absolute errors in Example 1 and we observe that our method is giving more accurate results than the results obtained by [5, 2325]. In Examples 2 and 3, we have plotted the graphs (Figure 1(a)-(b) and Figure 2(a)-(f)) at different time levels and for different values of parameters in GBFE, which exhibits that the numerical diffusion is dominated with the increasing diffusion coefficient ε, whereas the reaction is gradually dominant with the increasing coefficient β. Similar patterns of graphs have been presented in [8, 1820]. We have compared the computed numerical solutions with the exact solutions of GBHE in Example 4. Maximum absolute errors have been tabulated. The results obtained are quite good and competent with exact solution available in the literature. In Examples 5 and 6, we have plotted the graphs (Figure 3(a)-(c) and Figure 4(a)-(c)) at different time levels and different values of parameters involved in GBHE which describes that solution curves decreases to zero as time increases and for small value of ε, solution curves behave like a shocks waves. We have computed maximum absolute errors for coupled viscous nonlinear Burgers’ equation in Examples 7 and 8. On comparing the nature of computed solution with the computed solutions available in [10, 11], we obtained better results by our scheme. Also we have plotted graphs (Figure 5(a)-(c)) of exact versus numerical solution \(t = 1\). In Example 9, we have solved singular parabolic partial differential equation in polar coordinates and obtained maximum absolute errors for cylindrical and spherical case. At \(t = 1\), we have plotted graph (Figure 6) of numerical versus exact solution for Example 9. It can be observed that the approximate solution computed with our scheme and exact solutions are identical.

References

  1. Fisher, RA: The wave of advance of advantageous genes. Annu. Eugen. 7, 353-369 (1937)

    MATH  Google Scholar 

  2. Kolmogorov, AN, Petrovskii, IG, Piskunov, NS: A study of the equation of diffusion with increase in the quantity of matter, and its application to a biological problem. Bjul. Moskovskogo Gos. Univ. 1(7), 1-26 (1937)

    Google Scholar 

  3. Satsuma, J, Ablowitz, M, Fuchssteiner, B, Kruskal, M: Topics in Soliton Theory and Exactly Solvable Nonlinear Equations. World Scientific, Singapore (1987)

    Google Scholar 

  4. Bratsos, AG: A fourth order improved numerical scheme for the generalized Burgers-Huxley equation. Am. J. Comput. Math. 1, 152-158 (2011)

    Article  Google Scholar 

  5. Mohammadi, R: Spline solution of the generalized Burgers’-Fisher equation. Appl. Anal. 91(12), 2189-2215 (2011)

    Article  MathSciNet  MATH  Google Scholar 

  6. Zhang, R, Yu, X, Zhao, G: The local discontinuous Galerkin method for Burgers-Huxley and Burgers-Fisher equations. Appl. Math. Comput. 218, 8773-8778 (2012)

    MathSciNet  MATH  Google Scholar 

  7. Macias-Diaz, JE: On an exact numerical simulation of solitary wave-solutions of the Burgers-Huxley equation through Cardano’s method. BIT Numer. Math. 54, 763-776 (2014)

    Article  MathSciNet  MATH  Google Scholar 

  8. Mittal, RC, Tripathi, A: Numerical solutions of generalized Burgers-Fisher and generalized Burgers-Huxley equations using collocation of cubic B-splines. Int. J. Comput. Math. 92(5), 1053-1077 (2015)

    Article  MathSciNet  MATH  Google Scholar 

  9. Mohanty, RK, Dai, W, Liu, D: Operator compact method of accuracy two in time and four in space for the solution of time independent Burgers-Huxley equation. Numer. Algorithms 70, 591-605 (2015)

    Article  MathSciNet  MATH  Google Scholar 

  10. Jain, MK, Jain, RK, Mohanty, RK: High order difference methods for system of 1-D non-linear parabolic partial differential equations. Int. J. Comput. Math. 37, 105-112 (1990)

    Article  MATH  Google Scholar 

  11. Mittal, RC, Jiwari, R: Differential quadrature method for numerical solution of coupled viscous Burgers’ equations. Int. J. Comput. Methods Eng. Sci. Mech. 13, 88-92 (2012)

    Article  MathSciNet  MATH  Google Scholar 

  12. Mohanty, RK, Dai, W, Han, F: Compact operator method of accuracy two in time and four in space for the numerical solution of coupled viscous Burgers’ equations. Appl. Math. Comput. 256, 381-393 (2015)

    MathSciNet  MATH  Google Scholar 

  13. Talwar, J, Mohanty, RK, Singh, S: A new spline in compression approximation for one space dimensional quasilinear parabolic equations on a variable mesh. Appl. Math. Comput. 260, 82-96 (2015)

    MathSciNet  Google Scholar 

  14. Mohanty, RK: An implicit high accuracy variable mesh scheme for 1D non-linear singular parabolic partial differential equations. Appl. Math. Comput. 186, 219-229 (2007)

    MathSciNet  MATH  Google Scholar 

  15. Mohanty, RK, Setia, N: A new high order compact off-step discretization for the system of 3D quasi-linear elliptic partial differential equations. Appl. Math. Model. 37, 6870-6883 (2013)

    Article  MathSciNet  Google Scholar 

  16. Mohanty, RK, Jain, MK: High-accuracy cubic spline alternating group explicit methods for 1D quasi-linear parabolic equations. Int. J. Comput. Math. 86, 1556-1571 (2009)

    Article  MathSciNet  MATH  Google Scholar 

  17. Mohanty, RK: A variable mesh C-SPLAGE method of accuracy \(O(k^{2}h^{-1}+kh+h^{3})\) for 1D nonlinear parabolic equations. Appl. Math. Comput. 213, 79-91 (2009)

    MathSciNet  MATH  Google Scholar 

  18. Mittal, RC, Jiwari, R: Numerical study of Burgers-Huxley equation by differential quadrature method. Int. J. Appl. Math. Mech. 5, 1-9 (2009)

    MATH  Google Scholar 

  19. Kaushik, A: Pointwise uniformly convergent numerical treatment for the non-stationary Burgers-Huxley using grid equidistribution. Int. J. Comput. Math. 84(10), 1527-1546 (2007)

    Article  MathSciNet  MATH  Google Scholar 

  20. Zhao, T, Li, C, Zang, Z, Wu, Y: Chebyshev-Legendre pseudo-spectral method for generalized Burgers-Fisher equation. Appl. Math. Model. 36(3), 1046-1056 (2012)

    Article  MathSciNet  MATH  Google Scholar 

  21. Burgers, JM: A mathematical model illustrating the theory of turbulence. Adv. Appl. Mech. 1, 171-199 (1948)

    Article  MathSciNet  Google Scholar 

  22. Kaya, D: An explicit solution of coupled viscous Burgers’ equations by the decomposition method. Int. J. Math. Math. Sci. 27, 675-680 (2001)

    Article  MathSciNet  MATH  Google Scholar 

  23. Sari, M, Gürarslan, G, Zeytinoglu, A: High-order finite difference schemes for the solution of the generalized Burgers’-Fisher equation. Commun. Numer. Methods Eng. 27(8), 1296-1308 (2011)

    MathSciNet  MATH  Google Scholar 

  24. Zhu, C-G, Kang, W-S: Numerical solution of Burgers’-Fisher equation by cubic B-spline quasi-interpolation. Appl. Math. Comput. 216, 2679-2686 (2010)

    MathSciNet  MATH  Google Scholar 

  25. Sari, M, Gürarslan, G, Dag, I: A compact finite difference method for the solution of the generalized Burgers’-Fisher equation. Numer. Methods Partial Differ. Equ. 26, 125-134 (2010)

    Article  MathSciNet  MATH  Google Scholar 

Download references

Acknowledgements

The authors thank the reviewers for their valuable comments and suggestions, which substantially improved the standard of the paper. This research work is supported by CSIR-SRF, Grant No: 09/045(1161)/2012-EMR-I.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to RK Mohanty.

Additional information

Competing interests

The authors declare that they have no competing interest.

Authors’ contributions

All authors drafted the manuscript, and they read and approved the final version.

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

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

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Mohanty, R., Sharma, S. High-accuracy quasi-variable mesh method for the system of 1D quasi-linear parabolic partial differential equations based on off-step spline in compression approximations. Adv Differ Equ 2017, 212 (2017). https://doi.org/10.1186/s13662-017-1274-3

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s13662-017-1274-3

MSC

Keywords