Theory and Modern Applications

# A fourth-order finite difference method based on spline in tension approximation for the solution of one-space dimensional second-order quasi-linear hyperbolic equations

## Abstract

In this paper, we propose a new three-level implicit nine-point compact finite difference formulation of order two in time and four in space directions, based on spline in tension approximation in x-direction and central finite difference approximation in t-direction for the numerical solution of one-space dimensional second-order quasi-linear hyperbolic equations with first-order space derivative term. We describe the mathematical formulation procedure in detail and also discuss how our formulation is able to handle a wave equation in polar coordinates. The proposed method, when applied to a general form of the telegrapher equation, is also shown to be unconditionally stable. Numerical examples are used to illustrate the usefulness of the proposed method.

MSC: 65M06, 65M12.

## 1 Introduction

We consider the one-space dimensional second-order quasi-linear hyperbolic equation

$\frac{{\mathrm{âˆ‚}}^{2}u}{\mathrm{âˆ‚}{t}^{2}}=A\left(x,t,u\right)\frac{{\mathrm{âˆ‚}}^{2}u}{\mathrm{âˆ‚}{x}^{2}}+g\left(x,t,u,{u}_{x},{u}_{t}\right),\phantom{\rule{1em}{0ex}}00$
(1.1)

with the following initial conditions:

$u\left(x,0\right)=a\left(x\right),\phantom{\rule{2em}{0ex}}{u}_{t}\left(x,0\right)=b\left(x\right),\phantom{\rule{1em}{0ex}}0â‰¤xâ‰¤1$
(1.2)

and the boundary conditions

$u\left(0,t\right)={p}_{0}\left(t\right),\phantom{\rule{2em}{0ex}}u\left(1,t\right)={p}_{1}\left(t\right),\phantom{\rule{1em}{0ex}}tâ‰¥0.$
(1.3)

We assume that the conditions (1.2) and (1.3) are given with sufficient smoothness to maintain the order of accuracy in the numerical method under consideration.

The study of a second-order quasilinear hyperbolic equation is of keen interest in the fields like acoustics, electromagnetics, fluid dynamics, mathematical physics, engineering etc. Many efforts are going on to develop efficient and high accuracy methods for such types of partial differential equations. The term â€˜splineâ€™ in the spline function arises from the prefabricated wood or plastic curve board, which is called spline and is used by a draftman to plot smooth curves through connecting the known points. In early 1969, the cubic spline method was proposed to be applied on the differential equation to get their numerical solutions, and it was in 1974 that Raggett et al. [1] and Fleck, Jr. [2] successfully implemented cubic spline techniques to 1D wave equations. But, still so far in literature, a very limited number of spline methods are there for second-order quasilinear hyperbolic equations. During last three decades, there has been much effort to develop stable numerical methods based on spline approximations for the solution of the differential equations. Fyfe [3], Jain et al. [4, 5], Al-Said [6, 7], Khan et al. [8] and Kadalbajoo et al. [9] have studied the solution of two point boundary value problems by using the cubic spline method. Kadalbajoo et al. [10â€“12], MaruÅ¡iÄ‡ [13] and Khan et al. [14] have developed the tension spline method for the numerical solution of singular perturbed boundary value problems. Mohanty et al. [15, 16] on both uniform as well as non-uniform mesh have used tension spline to find the numerical solution of singular perturbed boundary value problems. The computational techniques based on cubic spline are discussed in detail by Khan et al. [17] and Kumar et al. [18] for the differential equations. Apart from initial work by Raggett et al. [1] and Fleck, Jr. [2] on wave equations using cubic splines, recently, Rashidinia et al. [19], Ding et al. [20] and Mohanty et al. [21â€“23] have studied the cubic spline and compact finite difference method for the numerical solution of hyperbolic problems. More recently, Ding et al. [24, 25] and Rashidinia et al. [26, 27] have formulated the solution of second-order telegraph equations and a nonlinear Klein-Gordon, sine-Gordon equation by using parametric spline, respectively. In the present paper, we follow the idea of Jain et al. [5, 28] but use non-polynomial tension spline approximation to develop an method of order four for the solution of a wave equation in polar co-ordinates with a significant first-order derivative term. We have shown that our method is in general of order four but, for the sake of computation of the result, we have used the consistency of the first-order continuity condition.

In this paper, using nine grid points, we discuss a new three-level implicit spline in the tension finite difference method of accuracy two in time and four in space for the solution of a one-space dimensional second-order quasilinear hyperbolic equation. In this method, we require only three evaluations of a function g. In Section 2, we discuss spline in tension and its properties. In Section 3, we propose a new three-level Numerov-type finite difference method based on spline in tension approximation. In Section 4, we derive the proposed method. In Section 5 and Section 6, we discuss the application of our method to some important physical problems like wave equation in polar coordinates and telegraph equation in a general form and their stability analysis. Difficulties were experienced in the past for the high-order spline solution of a wave equation in polar coordinates. The solution usually deteriorates in the vicinity of the singularity. We modify our technique in such a way that the solution retains its order and accuracy everywhere in the solution region. In Section 7, we establish, under appropriate conditions, the fourth-order convergence of the method. In Section 8, we discuss the higher-order approximation at first time level in order to compute the proposed numerical method of same accuracy and compare the numerical results with the results of the corresponding second-order accuracy spline in tension method. Concluding remarks are given in Section 9.

## 2 Spline in tension approximation

Let ${S}^{j}\left(x\right)$ be the non-polynomial spline in tension of the function $u\left(x,t\right)$ at the grid point $\left({x}_{l},{t}_{j}\right)$ and be given by

(2.1)

where ${x}_{l}â‰¤xâ‰¤{x}_{l+1}$ and ${a}_{l}^{j}$, ${b}_{l}^{j}$, ${c}_{l}^{j}$, ${d}_{l}^{j}$ are unknowns, and Ï‰ is an arbitrary parameter to be determined. ${S}^{j}\left(x\right)$ is a class of ${C}^{2}\left[0,1\right]$, which interpolates $u\left(x,t\right)$ at the grid point $\left({x}_{l},{t}_{j}\right)$ at j th time level.

The derivatives of a non-polynomial spline in tension function ${S}^{j}\left(x\right)$ are given by

(2.2)
(2.3)

We denote

${M}_{l}^{j}={S}_{j}^{â€³}\left({x}_{l}\right),\phantom{\rule{1em}{0ex}}l=0,1,2,â€¦,N+1;j=1,2,â€¦,J.$
(2.4)

To derive the expression for the coefficients of (2.2) in terms of ${U}_{l}^{j}$, ${U}_{l+1}^{j}$, ${M}_{l}^{j}$ and ${M}_{l+1}^{j}$, we use

${S}_{j}\left({x}_{l}\right)={U}_{l}^{j},\phantom{\rule{2em}{0ex}}{S}_{j}\left({x}_{l+1}\right)={U}_{l+1}^{j},\phantom{\rule{2em}{0ex}}{M}_{l}^{j}={S}_{j}^{\mathrm{â€²}\mathrm{â€²}}\left({x}_{l}\right),\phantom{\rule{2em}{0ex}}{M}_{l+1}^{j}={S}_{j}^{\mathrm{â€²}\mathrm{â€²}}\left({x}_{l+1}\right).$

From algebraic manipulation, we get

where $\mathrm{Î¸}=\mathrm{Ï‰}h$ and $l=0,1,2,â€¦,Nâˆ’1$.

Using the continuity of the first derivative at $\left({x}_{l},{t}_{j}\right)$, that is, ${S}^{j\mathrm{â€²}}\left({x}_{l}âˆ’\right)={S}^{j\mathrm{â€²}}\left({x}_{l}+\right)$, we obtain the following relation for $l=1,2,â€¦,Nâˆ’1$:

$\frac{{U}_{l+1}^{j}âˆ’2{U}_{l}^{j}+{U}_{lâˆ’1}^{j}}{{h}^{2}}=\mathrm{Î±}{M}_{l+1}^{j}+2\mathrm{Î²}{M}_{l}^{j}+\mathrm{Î±}{M}_{lâˆ’1}^{j},$
(2.5)

where

$\mathrm{Î±}=\frac{1}{{\mathrm{Î¸}}^{2}}\left(1âˆ’\frac{2\mathrm{Î¸}}{\left({e}^{\mathrm{Î¸}}âˆ’{e}^{âˆ’\mathrm{Î¸}}\right)}\right),\phantom{\rule{2em}{0ex}}\mathrm{Î²}=\frac{1}{{\mathrm{Î¸}}^{2}}\left(\frac{\mathrm{Î¸}\left({e}^{\mathrm{Î¸}}+{e}^{âˆ’\mathrm{Î¸}}\right)}{\left({e}^{\mathrm{Î¸}}âˆ’{e}^{âˆ’\mathrm{Î¸}}\right)}âˆ’1\right)\phantom{\rule{1em}{0ex}}\text{and}\phantom{\rule{1em}{0ex}}\mathrm{Î¸}=\mathrm{Ï‰}h.$

When $\mathrm{Ï‰}â†’0$, that is, $\mathrm{Î¸}â†’0$, then $\left(\mathrm{Î±},\mathrm{Î²}\right)â†’\left(\frac{1}{6},\frac{1}{3}\right)$, and the relation (2.5) reduces to the ordinary cubic spline relation

${U}_{l+1}^{j}âˆ’2{U}_{l}^{j}+{U}_{lâˆ’1}^{j}=\frac{{h}^{2}}{6}\left({M}_{l+1}^{j}+2{M}_{l}^{j}+{M}_{lâˆ’1}^{j}\right).$

From (2.5), we obtain the consistency condition $\mathrm{Î±}+2\mathrm{Î²}+\mathrm{Î±}=1$, which is equivalent to the equation $tanh\frac{\mathrm{Î¸}}{2}=\frac{\mathrm{Î¸}}{2}$. This equation has an infinite number of roots. Solving graphically, we obtain the smallest nonzero positive value $\mathrm{Î¸}=0.001$.

Now,

${m}_{l}^{j}={S}^{j\mathrm{â€²}}\left({x}_{l}\right)={U}_{xl}^{j}=\frac{{U}_{l+1}^{j}âˆ’{U}_{l}^{j}}{h}âˆ’h\left[\mathrm{Î±}{M}_{l+1}^{j}+\mathrm{Î²}{M}_{l}^{j}\right],\phantom{\rule{1em}{0ex}}{x}_{l}â‰¤xâ‰¤{x}_{l+1},$
(2.6)

and replacing â€˜hâ€™ by â€˜âˆ’hâ€™, we get

${m}_{l}^{j}={S}^{j\mathrm{â€²}}\left({x}_{l}\right)={U}_{xl}^{j}=\frac{{U}_{l}^{j}âˆ’{U}_{lâˆ’1}^{j}}{h}+h\left[\mathrm{Î²}{M}_{l}^{j}+\mathrm{Î±}{M}_{lâˆ’1}^{j}\right],\phantom{\rule{1em}{0ex}}{x}_{lâˆ’1}â‰¤xâ‰¤{x}_{l}.$
(2.7)

Combining (2.6) and (2.7), we obtain

${m}_{l}^{j}={S}^{j\mathrm{â€²}}\left({x}_{l}\right)={U}_{xl}^{j}=\frac{{U}_{l+1}^{j}âˆ’{U}_{lâˆ’1}^{j}}{2h}âˆ’\frac{\mathrm{Î±}h}{2}\left[{M}_{l+1}^{j}âˆ’{M}_{lâˆ’1}^{j}\right].$
(2.8)

Further, from (2.6), we have

${m}_{l+1}^{j}={S}^{j\mathrm{â€²}}\left({x}_{l+1}\right)={U}_{xl+1}^{j}=\frac{{U}_{l+1}^{j}âˆ’{U}_{l}^{j}}{h}+h\left[\mathrm{Î²}{M}_{l+1}^{j}+\mathrm{Î±}{M}_{l}^{j}\right]$
(2.9)

and from (2.7), we have

${m}_{lâˆ’1}^{j}={S}^{j\mathrm{â€²}}\left({x}_{lâˆ’1}\right)={U}_{xlâˆ’1}^{j}=\frac{{U}_{l}^{j}âˆ’{U}_{lâˆ’1}^{j}}{h}âˆ’h\left[\mathrm{Î²}{M}_{lâˆ’l}^{j}+\mathrm{Î±}{M}_{l}^{j}\right].$
(2.10)

Note that (2.4), (2.8), (2.9) and (2.10) are important properties of the non-polynomial cubic spline in tension function ${S}^{j}\left(x\right)$.

## 3 The finite difference method based on spline in tension approximation

For the sake of the simplicity, first we consider the one-space dimensional nonlinear hyperbolic partial differential equation

$\frac{{\mathrm{âˆ‚}}^{2}u}{\mathrm{âˆ‚}{t}^{2}}=A\left(x,t\right)\frac{{\mathrm{âˆ‚}}^{2}u}{\mathrm{âˆ‚}{x}^{2}}+g\left(x,t,u,{u}_{x},{u}_{t}\right),\phantom{\rule{1em}{0ex}}00$
(3.1)

with the given initial conditions (1.2) and boundary conditions (1.3).

The solution domain $\left[0,1\right]Ã—\left[t>0\right]$ is divided into $\left(N+1\right)Ã—J$ mesh with the spatial step size $h=1/\left(N+1\right)$ in x-direction and the time step size $k>0$ in t-direction, respectively, where N and J are positive integers. The mesh ratio parameter is given by $\mathrm{Î»}=\left(k/h\right)>0$. Grid points are defined by $\left({x}_{l},{t}_{j}\right)=\left(lh,jk\right)$, $l=0,1,2,â€¦,N+1$ and $j=0,1,2,â€¦,J$. The notations ${u}_{l}^{j}$ and ${U}_{l}^{j}$ are used for the discrete approximation and the exact value of $u\left(x,t\right)$ at the grid point $\left({x}_{l},{t}_{j}\right)$, respectively. Similarly, at the grid point $\left({x}_{l},{t}_{j}\right)$, we define ${A}_{l}^{j}=A\left({x}_{l},{t}_{j}\right)$, ${A}_{xl}^{j}={A}_{x}\left({x}_{l},{t}_{j}\right),â€¦$â€‰, etc.

We consider the following approximations:

(3.2a)
(3.2b)
(3.2c)
(3.2d)
(3.3a)
(3.3b)
(3.4a)
(3.4b)

Since the derivative values of ${S}^{j}\left(x\right)$ defined by (2.4), (2.8), (2.9) and (2.10) are not known at each grid point $\left({x}_{l},{t}_{j}\right)$, we use the following approximations for the derivatives of ${S}^{j}\left(x\right)$. Let

(3.5a)
(3.5b)
(3.5c)
(3.6a)
(3.6b)
(3.6c)

Now we define the following approximations:

(3.7a)
(3.7b)
(3.7c)

in which we use spline in tension function ${U}_{l}^{j}={S}^{j}\left({x}_{l}\right)$, the approximation of its first-order space derivative defined by (3.6a)-(3.6c) in x-direction and central difference approximations of time derivative defined by (3.2a)-(3.2d) in t-direction.

Then, at each grid point $\left({x}_{l},{t}_{j}\right)$, differential equation (3.1) is discretized by

(3.8)

where

and the local truncation error

${\stackrel{Ë†}{T}}_{l}^{j}=O\left({k}^{4}+{k}^{4}{h}^{2}+{k}^{2}{h}^{4}\right).$
(3.9)

## 4 Derivation of the method

For the derivation of a Numorov-type method (3.8) based on spline in tension approximations for the numerical solution of differential equation (3.1), we follow the ideas of Jain et al. [5, 28]. We use spline in tension approximations in x-direction and second-order finite difference approximation in t-direction.

At the grid point $\left({x}_{l},{t}_{j}\right)$, let us denote

${U}_{ab}={\left(\frac{{\mathrm{âˆ‚}}^{a+b}U}{\mathrm{âˆ‚}{x}^{a}\phantom{\rule{0.2em}{0ex}}\mathrm{âˆ‚}{t}^{b}}\right)}_{l}^{j},\phantom{\rule{2em}{0ex}}{A}_{ab}={\left(\frac{{\mathrm{âˆ‚}}^{a+b}A}{\mathrm{âˆ‚}{x}^{a}\phantom{\rule{0.2em}{0ex}}\mathrm{âˆ‚}{t}^{b}}\right)}_{l}^{j},\phantom{\rule{2em}{0ex}}{\mathrm{Ïˆ}}_{l}^{j}={\left(\frac{\mathrm{âˆ‚}g}{\mathrm{âˆ‚}{U}_{x}}\right)}_{l}^{j}.$
(4.1)

At the grid point $\left({x}_{l},{t}_{j}\right)$, we may write differential equation (3.1) as

${U}_{ttl}^{j}âˆ’{A}_{l}^{j}{U}_{xxl}^{j}=g\left({x}_{l},{t}_{j},{U}_{l}^{j},{U}_{xl}^{j},{U}_{tl}^{j}\right)â‰¡{G}_{l}^{j}\phantom{\rule{1em}{0ex}}\left(\text{say}\right).$
(4.2)

Using the Taylor expansion, we obtain

(4.3)

Simplifying (3.2a)-(3.3b), we get

(4.4a)
(4.4b)
(4.4c)
(4.4d)
(4.5a)
(4.5b)

With the help of the approximations (4.4a) and (4.5b), from (3.4a), we obtain

$\begin{array}{rcl}{\stackrel{Â¯}{G}}_{l}^{j}& =& g\left({x}_{l},{t}_{j},{U}_{l}^{j},{U}_{xl}^{j}+\frac{{h}^{2}}{6}{U}_{30}+O\left({h}^{4}\right),{U}_{tl}^{j}+O\left({k}^{2}\right)\right)\\ =& g\left({x}_{l},{t}_{j},{U}_{l}^{j},{U}_{xl}^{j},{U}_{tl}^{j}\right)+\frac{{h}^{2}}{6}{U}_{30}{\mathrm{Ïˆ}}_{l}^{j}+O\left({k}^{2}+{h}^{4}\right)\\ =& {G}_{l}^{j}+\frac{{h}^{2}}{6}{U}_{30}{\mathrm{Ïˆ}}_{l}^{j}+O\left({k}^{2}+{h}^{4}\right).\end{array}$
(4.6a)

Similarly,

(4.6b)
(4.6c)

Now, using the approximations (4.4a)-(4.5b), (4.6a)-(4.6c) and simplifying (3.5a), we get

${\stackrel{Ë†}{m}}_{l}^{j}={m}_{l}^{j}+O\left({k}^{2}+{h}^{4}\right).$
(4.7a)

Similarly,

(4.7b)
(4.7c)

Now, with the help of the approximations (4.4a) and (4.7a), from (3.7a), we obtain

$\begin{array}{rcl}{\stackrel{Ë†}{G}}_{l}^{j}& =& g\left({x}_{l},{t}_{j},{U}_{l}^{j},{m}_{l}^{j}+O\left({k}^{2}+{h}^{4}\right),{U}_{tl}^{j}+O\left({k}^{2}\right)\right)\\ =& g\left({x}_{l},{t}_{j},{U}_{l}^{j},{m}_{l}^{j},{U}_{tl}^{j}\right)+O\left({k}^{2}+{h}^{4}\right)\\ =& {G}_{l}^{j}+O\left({k}^{2}+{h}^{4}\right).\end{array}$
(4.8a)

Similarly,

(4.8b)
(4.8c)

Using the approximations (4.4a)-(4.4d) and (4.8a)-(4.8c), from (3.8) and (4.3), we obtain the local truncation error ${\stackrel{Ë†}{T}}_{l}^{j}=O\left({k}^{4}+{k}^{4}{h}^{2}+{k}^{2}{h}^{4}\right)$.

Now, we consider the numerical method of $O\left({k}^{4}+{k}^{4}{h}^{2}+{k}^{2}{h}^{4}\right)$ for the solution of 1D second-order quasi-linear hyperbolic equation (1.1).

In order to understand the concept to develop the method for quasi-linear case, we consider the following differential equation:

${u}^{â€³}=f\left(x\right),\phantom{\rule{1em}{0ex}}0
(4.9)

A fourth-order method for differential equation (4.9) is given by

${U}_{lâˆ’1}âˆ’2{U}_{l}+{U}_{l+1}=\frac{{h}^{2}}{12}\left[{f}_{l}+{h}^{2}{f}_{xxl}\right]+O\left({h}^{6}\right),$
(4.10)

where ${f}_{l}=f\left({x}_{l}\right)$, ${f}_{xxl}=\frac{{d}^{2}{f}_{l}}{d{x}^{2}}$.

Whenever differential equation (4.9) is of the form ${u}^{â€³}=f\left(x,u\right)$, then the evaluation of ${f}_{xx}$ is difficult and the formula (4.10) needs to be modified. Substituting ${h}^{2}{f}_{xxl}=\left({f}_{l+1}âˆ’2{f}_{l}+{f}_{lâˆ’1}\right)+O\left({h}^{4}\right)$ in (4.10), we obtain the modified version of (4.10) due to Numerov as

${U}_{lâˆ’1}âˆ’2{U}_{l}+{U}_{l+1}=\frac{{h}^{2}}{12}\left[{f}_{l+1}+{f}_{lâˆ’1}+10{f}_{l}\right]+O\left({h}^{6}\right),$
(4.11)

where ${f}_{l}=f\left({x}_{l},{U}_{l}\right)$. Note that (4.11) is consistent with the differential equation ${u}^{â€³}=f\left(x,u\right)$.

Now, we use the above concept to derive the numerical method for quasi-linear equation (1.1). Whenever the coefficient A is a function of x, t and u, i.e., $A=A\left(x,t,u\right)$, the difference scheme (3.8) needs to be modified. For this purpose, we use the following central differences:

(4.12a)
(4.12b)

where

With the help of the approximations (4.12a)-(4.12b), it is easy to verify that

Thus, substituting the central differences (4.12a)-(4.12b) into (3.8), we obtain the required numerical method of $O\left({k}^{2}+{k}^{2}{h}^{2}+{h}^{4}\right)$ for the solution of second-order quasi-linear hyperbolic equation (1.1) and hence the local truncation error retains its order, that is, ${\stackrel{Ë†}{T}}_{l}^{j}=O\left({k}^{4}+{k}^{4}{h}^{2}+{k}^{2}{h}^{4}\right)$.

Note that the initial and Dirichlet boundary conditions are given by (1.2) and (1.3), respectively. Incorporating the initial and boundary conditions, we can write the method (3.8) in a tri-diagonal matrix form. If differential equation (1.1) is linear, we can solve the linear system using the Gauss-elimination (tri-diagonal solver) method; in the nonlinear case, we can use the Newton-Raphson iterative method to solve the nonlinear system (see Kelly [29], Hageman and Young [30]).

## 5 Application to wave equation with singular coefficients and stability analysis

We consider the one-space dimensional wave equation in polar co-ordinates

${u}_{tt}={u}_{rr}+\frac{\mathrm{Î³}}{r}{u}_{r}âˆ’\frac{\mathrm{Î³}}{{r}^{2}}u+f\left(r,t\right),\phantom{\rule{1em}{0ex}}00.$
(5.1)

For , the above equation represents the one-space dimensional wave equation in cylindrical and spherical co-ordinates, respectively. The initial and the Dirichlet boundary conditions are prescribed by

(5.2)
(5.3)

Assume that $f\left(r,t\right)âˆˆ{C}^{2}\left(0,1\right)Ã—\left[t>0\right]$ and the conditions (5.2) and (5.3) are given with sufficient smoothness to maintain the order of accuracy in the numerical method under consideration.

Replacing the variable x by r, applying the spline in tension method (3.8) to (5.1) and neglecting the local truncation error, we obtain

(5.4)

where the approximations associated with (5.4) are defined in Section 3.

Note that the scheme (5.4) is of $O\left({k}^{2}+{k}^{2}{h}^{2}+{h}^{4}\right)$ accuracy for the solution of wave equation (5.1). Since ${r}_{0}=0$, the scheme (5.4) fails to compute at $l=1$ due to zero division. In order to get a stable spline in tension scheme of $O\left({k}^{2}+{k}^{2}{h}^{2}+{h}^{4}\right)$ accuracy, we need the following approximations:

(5.5a)
(5.5b)
(5.5c)

where

${f}_{l}^{j}=f\left({r}_{l},{t}_{j}\right)={f}_{00},\phantom{\rule{2em}{0ex}}{f}_{rl}^{j}={f}_{r}\left({r}_{l},{t}_{j}\right)={f}_{10},\phantom{\rule{2em}{0ex}}{f}_{rrl}^{j}={f}_{rr}\left({r}_{l},{t}_{j}\right)={f}_{20},â€¦,\mathit{\text{etc}}\text{.}$

Now, with the help of the approximations defined in Section 3 and (5.5a)-(5.5c), neglecting high-order terms, we can re-write the scheme (5.4) in three-level operator compact implicit form

(5.6)

where

and

$âˆ‘f=\frac{{k}^{2}}{12}\left[\left(12+\frac{\mathrm{Î³}}{{l}^{2}}\right){f}_{00}+\frac{\mathrm{Î³}h}{l}{f}_{10}+{h}^{2}{f}_{20}\right],$

and ${\mathrm{Î¼}}_{r}{u}_{l}=\frac{1}{2}\left({u}_{l+\frac{1}{2}}+{u}_{lâˆ’\frac{1}{2}}\right)$ and ${\mathrm{Î´}}_{r}{u}_{l}=\left({u}_{l+\frac{1}{2}}âˆ’{u}_{lâˆ’\frac{1}{2}}\right)$ are averaging and central difference operators with respect to r-direction, etc. This implies $\left(2{\mathrm{Î¼}}_{r}{\mathrm{Î´}}_{r}\right){u}_{l}^{j}={u}_{l+1}^{j}âˆ’{u}_{lâˆ’1}^{j}$, ${\mathrm{Î´}}_{r}^{2}{u}_{l}^{j}={u}_{l+1}^{j}âˆ’2{u}_{l}^{j}+{u}_{lâˆ’1}^{j}$, ${\mathrm{Î´}}_{t}^{2}{u}_{l}^{j}={u}_{l}^{j+1}âˆ’2{u}_{l}^{j}+{u}_{l}^{jâˆ’1}$, etc. The spline in tension finite difference scheme (5.6) has a local truncation error of $O\left({k}^{2}+{h}^{4}\right)$ and is free from the terms $\frac{1}{lÂ±1}$ and hence it can be solved for $l=1\left(1\right)N$, $j=1\left(1\right)J$ in the region $0, $t>0$.

For the stability of the method (5.6), we follow the technique used by Mohanty [31]. We may re-write (5.6) as

(5.7)

The additional terms are of high orders and do not affect the accuracy of the scheme. The exact value ${U}_{l}^{j}=u\left({r}_{l},{t}_{j}\right)$ satisfies

(5.8)

We assume that there exists an error ${\mathrm{Îµ}}_{l}^{j}={U}_{l}^{j}âˆ’{u}_{l}^{j}$ at the grid point $\left({x}_{l},{t}_{j}\right)$. Subtracting (5.7) from (5.8), we obtain the error equation

(5.9)

For the stability of the modified scheme (5.7), we assume that ${\mathrm{Îµ}}_{l}^{j}={A}^{l}{e}^{i\mathrm{Ï•}j}{e}^{i\mathrm{Î¸}l}$ (where $\mathrm{Î¾}={e}^{i\mathrm{Ï•}}$ such that $|\mathrm{Î¾}|=1$) at the grid point $\left({x}_{l},{t}_{j}\right)$, where Î¾ is in general complex, Î¸ is an arbitrary real number and A is a non-zero real parameter to be determined. Substituting ${\mathrm{Îµ}}_{l}^{j}={A}^{l}{e}^{i\mathrm{Ï•}j}{e}^{i\mathrm{Î¸}l}$ in the homogeneous part of error equation (5.9), we obtain the amplification factor

$\begin{array}{rcl}âˆ’4{sin}^{2}\left(\frac{\mathrm{Ï•}}{2}\right)& =& \left({\mathrm{Î»}}^{2}\left[{T}_{2}\left\{\left(A+{A}^{âˆ’1}\right)cos\mathrm{Î¸}âˆ’2+i\left(Aâˆ’{A}^{âˆ’1}\right)sin\mathrm{Î¸}\right\}\\ +{T}_{3}\left\{\left(Aâˆ’{A}^{âˆ’1}\right)cos\mathrm{Î¸}+i\left(A+{A}^{âˆ’1}\right)sin\mathrm{Î¸}\right\}+2{T}_{4}\right]\right)\\ /\left({T}_{0}+\frac{1}{12}\left[{T}_{2}\left\{\left(A+{A}^{âˆ’1}\right)cos\mathrm{Î¸}âˆ’2+i\left(Aâˆ’{A}^{âˆ’1}\right)sin\mathrm{Î¸}\right\}\\ +{T}_{3}\left\{\left(Aâˆ’{A}^{âˆ’1}\right)cos\mathrm{Î¸}+i\left(A+{A}^{âˆ’1}\right)sin\mathrm{Î¸}\right\}\right]\right).\end{array}$
(5.10)

Since the left-hand side of (5.10) is a real quantity, hence the imaginary part of the right-hand side of (5.10) must be zero, from which we obtain

${T}_{2}\left(Aâˆ’{A}^{âˆ’1}\right)+{T}_{3}\left(A+{A}^{âˆ’1}\right)=0$

or

$A=\sqrt{\frac{{T}_{2}âˆ’{T}_{3}}{{T}_{2}+{T}_{3}}},$
(5.11)

where ${T}_{2}Â±{T}_{3}>0$. Substituting the values of A and ${A}^{âˆ’1}$ in (5.10), we get

${sin}^{2}\left(\frac{\mathrm{Ï•}}{2}\right)=\frac{{\mathrm{Î»}}^{2}\left[{T}_{2}+\sqrt{\left({T}_{2}^{2}âˆ’{T}_{3}^{2}\right)}\left(2{sin}^{2}\left(\frac{\mathrm{Î¸}}{2}\right)âˆ’1\right)âˆ’{T}_{4}\right]}{2{T}_{0}âˆ’\frac{1}{3}\left[{T}_{2}+\sqrt{\left({T}_{2}^{2}âˆ’{T}_{3}^{2}\right)}\left(2{sin}^{2}\left(\frac{\mathrm{Î¸}}{2}\right)âˆ’1\right)\right]}.$
(5.12)

Since $0â‰¤{sin}^{2}\left(\frac{\mathrm{Ï•}}{2}\right)â‰¤1$, $max{sin}^{2}\left(\frac{\mathrm{Î¸}}{2}\right)=1$, $min{sin}^{2}\left(\frac{\mathrm{Î¸}}{2}\right)=0$, it follows from (5.12) that the spline in tension finite difference scheme (5.4) is stable if

$0<{\mathrm{Î»}}^{2}â‰¤\frac{2{T}_{0}âˆ’\frac{1}{3}\left[{T}_{2}+\sqrt{{T}_{2}^{2}âˆ’{T}_{3}^{2}}\right]}{{T}_{2}âˆ’{T}_{4}+\sqrt{{T}_{2}^{2}âˆ’{T}_{3}^{2}}}$
(5.13)

leading to $|\mathrm{Î¾}|=1$. It is easy to verify that as $lâ†’\mathrm{âˆž}$, $0<{\mathrm{Î»}}^{2}â‰¤1$.

## 6 Application to telegraph equation in a general form and stability analysis

Consider the telegraph equation in a general form

${u}_{tt}+\left(\mathrm{Î±}+\mathrm{Î²}\right){u}_{t}+\mathrm{Î±}\mathrm{Î²}u={c}^{2}{u}_{xx}+f\left(x,t\right),\phantom{\rule{1em}{0ex}}00,$
(6.1)

where $\mathrm{Î±}>0$, $\mathrm{Î²}â‰¥0$ are real parameters. For $\mathrm{Î²}=0$, the equation above represents a damped wave equation. The initial and boundary conditions are prescribed by (1.2) and (1.3), respectively. The telegraph equation is a linear differential equation which describes the voltage and current on an electric transmission line with distance and time. In fact, the telegraph equation is more suitable than an ordinary diffusion equation in modeling reaction-diffusion for such branches of science. In equation (6.1), $u\left(x,t\right)$ is either voltage or current through the wire at position x and time t, and $\mathrm{Î±}=Z/C$, $\mathrm{Î²}=\mathrm{â„œ}/I$ and ${c}^{2}=1/\left(IC\right)$, where Z is the conductance of a resistor, â„œ is the resistance of the resistor, I is the inductance of the coil and C is the capacitance of the capacitor.

Now onwards, we denote $a={\left(\frac{\mathrm{Î±}+\mathrm{Î²}}{2}\right)}^{2}{k}^{2}$, $b=\mathrm{Î±}\mathrm{Î²}{k}^{2}$; and ${f}_{l}^{j}=f\left({x}_{l},{t}_{j}\right)$.

Applying the scheme (3.8) to differential equation (6.1), we may obtain a numerical approximation of $O\left({k}^{2}+{h}^{4}\right)$ as

(6.2)

The corresponding error equation is

(6.3)

To establish the stability for the scheme (6.2), it is necessary to assume that the solution of the homogeneous part of error equation (6.3) is of the form ${\mathrm{Îµ}}_{l}^{j}={\mathrm{Î¾}}^{j}{e}^{i\mathrm{Î¸}l}$, where $i=\sqrt{âˆ’1}$, Î¸ is real and we obtain the characteristic equation

$p{\mathrm{Î¾}}^{2}+q\mathrm{Î¾}+r=0,$
(6.4)

where

The necessary and sufficient condition for $|\mathrm{Î¾}|<1$ is that $p+q+r>0$, $pâˆ’r>0$, $pâˆ’q+r>0$. The conditions $p+q+r>0$ and $pâˆ’r>0$ are satisfied for $\mathrm{Î±}>0$, $\mathrm{Î²}â‰¥0$ and for all Î¸ except . We can treat this case separately.

The condition $pâˆ’q+r>0$ is satisfied if

$0<{\mathrm{Î»}}^{2}â‰¤\frac{4âˆ’b}{6{c}^{2}}\phantom{\rule{1em}{0ex}}\text{provided}\phantom{\rule{1em}{0ex}}0â‰¤b<4.$
(6.5)

In order to obtain an unconditionally stable spline in tension finite difference scheme of accuracy of $O\left({k}^{2}+{h}^{4}\right)$, we may re-write the scheme (6.2) as

(6.6)

where Î· and Î³ are free parameters to be determined. The additional terms $\mathrm{Î·}{b}^{2}{\mathrm{Î´}}_{t}^{2}{u}_{l}^{j}$ and $âˆ’\mathrm{Î³}{\mathrm{Î»}}^{2}{c}^{2}{\mathrm{Î´}}_{x}^{2}{\mathrm{Î´}}_{t}^{2}{u}_{l}^{j}$ are of higher order and do not affect the consistency and accuracy of the scheme. Now using the technique discussed in [21] and [22], we find that for $\mathrm{Î±}>0$, $\mathrm{Î²}â‰¥0$, $\mathrm{Î·}â‰¥\frac{1}{64}$; and $\mathrm{Î³}â‰¥\frac{1+3{\mathrm{Î»}}^{2}{c}^{2}}{12{\mathrm{Î»}}^{2}{c}^{2}}$, the spline in tension finite difference scheme (6.6) is stable for all choices of $h>0$ and $k>0$.

## 7 Convergence analysis

In this section, we establish under appropriate conditions the fourth-order convergence of the proposed method. For simplicity, we consider the nonlinear hyperbolic differential equation

$\frac{{\mathrm{âˆ‚}}^{2}u}{\mathrm{âˆ‚}{t}^{2}}=\frac{{\mathrm{âˆ‚}}^{2}u}{\mathrm{âˆ‚}{x}^{2}}+g\left(x,t,u,{u}_{x},{u}_{t}\right),\phantom{\rule{1em}{0ex}}00$
(7.1)

with the initial and boundary conditions which are prescribed by (1.2) and (1.3), respectively.

We assume that the initial value problem (7.1), (1.2)-(1.3) has a unique smooth solution $u\left(x,t\right)$ and the following conditions are satisfied:

(i) $g\left(x,t,u,{u}_{x},{u}_{t}\right)$ is continuous,

(ii) $g\left(x,t,u,{u}_{x},{u}_{t}\right)$ satisfies the Lipschitz condition, namely,

where ${\mathrm{Î¾}}_{i}$ and ${\mathrm{Î¾}}_{i}^{âˆ—}$ are arbitrary real numbers and L is a Lipschitz constant,

(iii) $a\left(x\right)$ and $b\left(x\right)$ are continuously differentiable up to order four and two, respectively.

The method (3.8) becomes

(7.2)

where ${\stackrel{Â¯}{G}}_{l}^{j}=g\left({x}_{l},{t}_{j},{U}_{l}^{j},{\stackrel{Â¯}{U}}_{xl}^{j},{\stackrel{Â¯}{U}}_{tl}^{j}\right)$, ${\stackrel{Ë†}{G}}_{l}^{j}=g\left({x}_{l},{t}_{j},{U}_{l}^{j},{\stackrel{Ë†}{U}}_{xl}^{j},{\stackrel{Â¯}{U}}_{tl}^{j}\right)$, etc., â€¦ and ${T}_{l}^{j}=O\left({k}^{4}+{k}^{4}{h}^{2}+{k}^{2}{h}^{4}\right)$.

Let ${\mathbf{U}}^{j}={\left[{U}_{1}^{j},{U}_{2}^{j},â€¦,{U}_{N}^{j}\right]}^{T}$ (T denotes transpose) and ${\mathbf{u}}^{j}={\left[{u}_{1}^{j},{u}_{2}^{j},â€¦,{u}_{N}^{j}\right]}^{T}$ be the exact and approximate solution vectors of the solution $u\left(x,t\right)$ at the grid point $\left({x}_{l},{t}_{j}\right)$, respectively, and $\mathbf{T}={\left[{T}_{1}^{j},{T}_{2}^{j},â€¦,{T}_{N}^{j}\right]}^{T}$ be the local truncation error vector.

Let

$\mathbit{Ï•}\left(\mathbf{U}\right)â‰¡\mathbit{Ï•}\left({\mathbf{U}}^{j+1},{\mathbf{U}}^{j},{\mathbf{U}}^{jâˆ’1}\right)={k}^{2}\left[{\stackrel{Ë†}{G}}_{l+1}^{j}+{\stackrel{Ë†}{G}}_{lâˆ’1}^{j}+10{\stackrel{Ë†}{G}}_{l}^{j}\right]$

and

$\mathbit{Ï•}\left(\mathbf{u}\right)â‰¡\mathbit{Ï•}\left({\mathbf{u}}^{j+1},{\mathbf{u}}^{j},{\mathbf{u}}^{jâˆ’1}\right)={k}^{2}\left[{\stackrel{Ë†}{g}}_{l+1}^{j}+{\stackrel{Ë†}{g}}_{lâˆ’1}^{j}+10{\stackrel{Ë†}{g}}_{l}^{j}\right],$

where ${\stackrel{Â¯}{g}}_{l}^{j}=g\left({x}_{l},{t}_{j},{u}_{l}^{j},{\stackrel{Â¯}{u}}_{xl}^{j},{\stackrel{Â¯}{u}}_{tl}^{j}\right)$, ${\stackrel{Ë†}{g}}_{l}^{j}=g\left({x}_{l},{t}_{j},{u}_{l}^{j},{\stackrel{Ë†}{u}}_{xl}^{j},{\stackrel{Â¯}{u}}_{tl}^{j}\right)$, etc., â€¦â€‰.

Then, the spline in tension method described by (7.2) can be expressed in a matrix form as follows:

$\mathbf{D}{\mathbf{U}}^{j+1}+2\mathbf{C}{\mathbf{U}}^{j}+\mathbf{D}{\mathbf{U}}^{jâˆ’1}+\mathbit{Ï•}\left(\mathbf{U}\right)=\mathbf{T},$
(7.3)

where $\mathbf{D}={\left[âˆ’1,âˆ’10,âˆ’1\right]}^{T}$ and $\mathbf{C}={\left[1+6{\mathrm{Î»}}^{2},10âˆ’12{\mathrm{Î»}}^{2},1+6{\mathrm{Î»}}^{2}\right]}^{T}$ are tri-diagonal matrices of order N.

The method consists of obtaining an approximation ${\mathbf{u}}^{j+1}$ for ${\mathbf{U}}^{j+1}$ by solving the tri-diagonal system

$\mathbf{D}{\mathbf{u}}^{j+1}+2\mathbf{C}{\mathbf{u}}^{j}+\mathbf{D}{\mathbf{u}}^{jâˆ’1}+\mathbit{Ï•}\left(\mathbf{u}\right)=\mathbf{0}.$
(7.4)

Let ${\mathrm{Îµ}}_{l}^{j}={u}_{l}^{j}âˆ’{U}_{l}^{j}$ and ${\mathbf{E}}^{j}={\mathbf{u}}^{j}âˆ’{\mathbf{U}}^{j}={\left[{\mathrm{Îµ}}_{1}^{j},{\mathrm{Îµ}}_{2}^{j},â€¦,{\mathrm{Îµ}}_{N}^{j}\right]}^{T}$.

We may write ${\stackrel{Â¯}{u}}_{tl}^{j}âˆ’{\stackrel{Â¯}{U}}_{tl}^{j}=\left({\mathrm{Îµ}}_{l}^{j+1}âˆ’{\mathrm{Îµ}}_{l}^{jâˆ’1}\right)/\left(2k\right)$, ${\stackrel{Â¯}{u}}_{xl}^{j}âˆ’{\stackrel{Â¯}{U}}_{xl}^{j}=\left({\mathrm{Îµ}}_{l+1}^{j}âˆ’{\mathrm{Îµ}}_{lâˆ’1}^{j}\right)/\left(2h\right),â€¦$â€‰, etc.

(7.5a)
(7.5b)
(7.5c)
(7.5d)

for suitable W, H and I. Further, we may write

${W}_{lÂ±1}^{j}={W}_{l}^{j}Â±{W}_{xl}^{j}+O\left({h}^{2}\right),\phantom{\rule{2em}{0ex}}{H}_{lÂ±1}^{j}={H}_{l}^{j}Â±{H}_{xl}^{j}+O\left({h}^{2}\right)\phantom{\rule{1em}{0ex}}\text{and}\phantom{\rule{1em}{0ex}}{I}_{lÂ±1}^{j}={I}_{l}^{j}Â±{I}_{xl}^{j}+O\left({h}^{2}\right).$

With the help of (7.5c) and (7.5d), we obtain

$\mathbit{Ï•}\left(\mathbf{u}\right)âˆ’\mathbit{Ï•}\left(\mathbf{U}\right)=\mathbf{P}{\mathbf{E}}^{j+1}+2\mathbf{Q}{\mathbf{E}}^{j}+\mathbf{R}{\mathbf{E}}^{jâˆ’1},$
(7.6)

where P, Q and R are the coefficient matrices of error vectors ${\mathbf{E}}^{j+1}$, ${\mathbf{E}}^{j}$ and ${\mathbf{E}}^{jâˆ’1}$, respectively.

Subtracting (7.4) from (7.3), we have

$\left(\mathbf{D}+\mathbf{P}\right){\mathbf{E}}^{j+1}+2\left(\mathbf{C}+\mathbf{Q}\right){\mathbf{E}}^{j}+\left(\mathbf{D}+\mathbf{R}\right){\mathbf{E}}^{jâˆ’1}=\mathbf{T}.$
(7.7)

Assume that the exact solution values of $u\left(x,t\right)$ are known exactly at the initial and first time levels so that ${\mathbf{E}}^{j}={\mathbf{E}}^{jâˆ’1}=0$. Then from (7.7), we obtain the error equation

$\left(\mathbf{D}+\mathbf{P}\right){\mathbf{E}}^{j+1}=\mathbf{T}.$
(7.8)

Let ${P}_{l,m}$ be the $\left(l,m\right)$th element of matrix P, then it is easy to verify that

and hence $\mathbf{D}+\mathbf{P}$ is irreducible (see Varga [32]).

Let ${S}_{m}$ be the sum of the elements of the m th row of $\mathbf{D}+\mathbf{P}$ and ${H}_{âˆ—}=min\left[\left(5\mathrm{Î±}âˆ’\mathrm{Î²}\right){H}_{l}^{j}â‹\dots {I}_{{x}_{l}}^{j}âˆ’\left(2\mathrm{Î±}+\mathrm{Î²}{I}_{l}^{j}\right){H}_{{x}_{l}}^{j}\right]$, then for sufficiently small h and k, we obtain

(7.9a)
(7.9b)

and hence, $\mathbf{D}+\mathbf{P}$ is also monotone.

Then, ${\left(\mathbf{D}+\mathbf{P}\right)}^{âˆ’1}$ exists and ${\left(\mathbf{D}+\mathbf{P}\right)}^{âˆ’1}â‰¥0$ (see Varga [32]), i.e., ${\left(\mathbf{D}+\mathbf{P}\right)}_{l,m}^{âˆ’1}â‰¥0$.

Since

$\underset{m=1}{\overset{N}{âˆ‘}}{\left(\mathbf{D}+\mathbf{P}\right)}_{l,m}^{âˆ’1}â‹\dots {S}_{m}=1,\phantom{\rule{1em}{0ex}}l=1\left(1\right)N,$

hence

(7.10a)

and

$\underset{m=2}{\overset{N}{âˆ‘}}{\left(\mathbf{D}+\mathbf{P}\right)}_{l,m}^{âˆ’1}â‰¤\frac{1}{min{S}_{m}}â‰¤\frac{1}{k{h}^{2}{H}_{âˆ—}},\phantom{\rule{1em}{0ex}}l=1\left(1\right)N.$
(7.10b)

From (7.8), we have

$âˆ¥{\mathbf{E}}^{j+1}âˆ¥â‰¤âˆ¥{\left(\mathbf{D}+\mathbf{P}\right)}^{âˆ’1}âˆ¥âˆ¥\mathbf{T}âˆ¥.$
(7.11)

Now,

$|{\mathrm{Îµ}}_{l}^{j+1}|â‰¤{\left(\mathbf{D}+\mathbf{P}\right)}_{l,1}^{âˆ’1}|{\mathbf{T}}_{1}|+\underset{m=2}{\overset{Nâˆ’2}{âˆ‘}}{\left(\mathbf{D}+\mathbf{P}\right)}_{l,m}^{âˆ’1}â‹\dots |{\mathbf{T}}_{m}|+{\left(\mathbf{D}+\mathbf{P}\right)}_{l,N}^{âˆ’1}|{\mathbf{T}}_{N}|,\phantom{\rule{1em}{0ex}}l=1\left(1\right)N.$
(7.12)

Let $âˆ¥{E}^{j+1}âˆ¥=max\left\{|{\mathrm{Îµ}}_{l}^{j+1}|:l=1\left(1\right)N\right\}$.

With the help of (3.9), (7.10a) and (7.10b), for a fixed value of $\mathrm{Ïƒ}=\frac{k}{{h}^{2}}$, from (7.12), we obtain for sufficiently small h and k

$âˆ¥{\mathbf{E}}^{j+1}âˆ¥=O\left({h}^{4}\right).$

This establishes the fourth-order convergence of the method.

## 8 Numerical illustrations

In this section, we solve some benchmark problems using the method described by equation (3.8) and compare our results with those obtained by the numerical method of $O\left({k}^{2}+{h}^{2}\right)$ accuracy based on spline in tension approximations. The exact solutions are provided in each case. The linear difference equation was solved using a tri-diagonal solver, whereas nonlinear difference equations were solved using the Newton-Raphson method. While using the Newton-Raphson method, the iterations were stopped when absolute error tolerance â‰¤10âˆ’10 was achieved. In order to demonstrate the fourth-order convergence of the proposed method, throughout the computation, we chose the fixed value of the parameter $\mathrm{Ïƒ}=\frac{k}{{h}^{2}}=3.2$. All computations were carried out using double precision arithmetic.

Note that, the proposed spline in tension finite difference method (3.8) for second-order quasilinear hyperbolic equations is a three-level scheme. The value of u at $t=0$ is known from the initial condition. To start any computation, it is necessary to know the numerical value of u of required accuracy at $t=k$. In this section, we discuss an explicit scheme of $O\left({k}^{2}\right)$ for u at first time level, i.e., at $t=k$ in order to solve differential equation (1.1) using the method (3.8), which is applicable to problems in Cartesian and polar coordinates.

Since the values of u and ${u}_{t}$ are known explicitly at $t=0$, this implies all their successive tangential derivatives are known at $t=0$, i.e., the values of $u,{u}_{x},{u}_{xx},â€¦,{u}_{t},{u}_{tx},â€¦$â€‰, etc. are known at $t=0$.

An approximation for u of $O\left({k}^{2}\right)$ at $t=k$ may be written as

${u}_{l}^{1}={u}_{l}^{0}+k{u}_{tl}^{0}+\frac{{k}^{2}}{2}{\left({u}_{tt}\right)}_{l}^{0}+O\left({k}^{3}\right).$
(8.1)

From equation (1.1), we have

${\left({u}_{tt}\right)}_{l}^{0}={\left[A\left(x,t,u\right){u}_{xx}+g\left(x,t,u,{u}_{x},{u}_{t}\right)\right]}_{l}^{0}.$
(8.2)

Thus, using the initial values and their successive tangential derivative values, from (8.2) we can obtain the value of ${\left({u}_{tt}\right)}_{l}^{0}$, and then ultimately, from (8.1) we can compute the value of u at first time level, i.e., at $t=k$. Replacing the variable x by r in (8.1), we can also obtain an approximation of $O\left({k}^{2}\right)$ for u at $t=k$ in polar coordinates.

Example 1 (Wave equation in polar coordinates)

$\frac{{\mathrm{âˆ‚}}^{2}u}{\mathrm{âˆ‚}{t}^{2}}=\frac{{\mathrm{âˆ‚}}^{2}u}{\mathrm{âˆ‚}{r}^{2}}+\frac{\mathrm{Î³}}{r}\frac{\mathrm{âˆ‚}u}{\mathrm{âˆ‚}r}âˆ’\frac{\mathrm{Î³}}{{r}^{2}}u+f\left(r,t\right),\phantom{\rule{1em}{0ex}}00.$
(8.3a)

The initial and boundary conditions are given by

(8.3b)
(8.3c)

We solve equation (8.3a) using the method (5.6) in the region bounded by $0, $t>0$. The exact solution is given by $u\left(r,t\right)={r}^{2}sinht$. The maximum absolute errors (MAE) are tabulated in Table 1 at $t=5.0$ and for $\mathrm{Î³}=1$, $\mathrm{Î³}=2$.

Example 2 (Telegraphic equation in general form)

$\frac{{\mathrm{âˆ‚}}^{2}u}{\mathrm{âˆ‚}{t}^{2}}+\left(\mathrm{Î±}+\mathrm{Î²}\right)\frac{\mathrm{âˆ‚}u}{\mathrm{âˆ‚}t}+\mathrm{Î±}\mathrm{Î²}u={c}^{2}\frac{{\mathrm{âˆ‚}}^{2}u}{\mathrm{âˆ‚}{x}^{2}}+f\left(x,t\right),\phantom{\rule{1em}{0ex}}00.$
(8.4a)

The initial and boundary conditions are given by

(8.4b)
(8.4c)

where $\mathrm{Î±}=6$, $\mathrm{Î²}=4$; $\mathrm{Î±}=\mathrm{Ï€}$, $\mathrm{Î²}=\mathrm{Ï€}$, and $\mathrm{Î±}=3\mathrm{Ï€}$, $\mathrm{Î²}=\mathrm{Ï€}$. We solve equation (8.4a) using the method (6.6). The exact solution is given by $u={e}^{âˆ’t}sinhx$. The MAE are tabulated in Table 2.

Example 3 (Nonlinear hyperbolic equation)

$\frac{{\mathrm{âˆ‚}}^{2}u}{\mathrm{âˆ‚}{t}^{2}}=\frac{{\mathrm{âˆ‚}}^{2}u}{\mathrm{âˆ‚}{x}^{2}}+\mathrm{Î³}u\left(\frac{\mathrm{âˆ‚}u}{\mathrm{âˆ‚}x}+\frac{\mathrm{âˆ‚}u}{\mathrm{âˆ‚}t}\right)+f\left(x,t\right),\phantom{\rule{1em}{0ex}}00.$
(8.5a)

The initial and boundary conditions are given by

(8.5b)
(8.5c)

We solve equation (8.5a) using the method (3.8) in the region bounded by $0, $t>0$. The exact solution is given by $u\left(x,t\right)={x}^{2}sinht$. The MAE are tabulated in Table 3 for at $t=2.0$.

Example 4 (Quasi-linear hyperbolic equation)

$\frac{{\mathrm{âˆ‚}}^{2}u}{\mathrm{âˆ‚}{t}^{2}}=\left(1+{x}^{2}+{u}^{2}\right)\frac{{\mathrm{âˆ‚}}^{2}u}{\mathrm{âˆ‚}{x}^{2}}+\mathrm{Î³}u\left(\frac{\mathrm{âˆ‚}u}{\mathrm{âˆ‚}x}+\frac{\mathrm{âˆ‚}u}{\mathrm{âˆ‚}t}\right)+f\left(x,t\right),\phantom{\rule{1em}{0ex}}00.$
(8.6a)

The initial and the boundary conditions are given by

(8.6b)
(8.6c)

The exact solution is given by $u={e}^{âˆ’t}sinhx$. The MAE are tabulated in Table 4 for at $t=2$.

The order of convergence may be obtained by using the formula

$\frac{log\left({e}_{{h}_{1}}\right)âˆ’log\left({e}_{{h}_{2}}\right)}{log\left({h}_{1}\right)âˆ’log\left({h}_{2}\right)},$
(8.7)

where ${e}_{{h}_{1}}$ and ${e}_{{h}_{2}}$ are maximum absolute errors for two uniform mesh widths ${h}_{1}$ and ${h}_{2}$, respectively. For computation of order of convergence of the proposed method, we have considered ${h}_{1}=\frac{1}{32}$ and ${h}_{2}=\frac{1}{64}$ for all cases, and results are reported in Table 5.

## 9 Concluding remarks

Available numerical methods based on spline in tension approximations for the numerical solution of second-order quasilinear hyperbolic equations are of $O\left({k}^{2}+{h}^{2}\right)$ accuracy only and require 9-grid points. In this article, using the same number of grid points and three evaluations of the function g (as compared to five and nine evaluations of the function g discussed in [33] and [35]), we have derived a new stable spline in tension finite difference method of $O\left({k}^{2}+{h}^{4}\right)$ accuracy for the solution of second-order quasi-linear hyperbolic equation (1.1). For a fixed parameter $\mathrm{Ïƒ}=\frac{k}{{h}^{2}}$, the proposed method behaves like a fourth-order method, which is exhibited by the computed results. The proposed numerical method for the wave equation in polar coordinates is conditionally stable, whereas for the damped wave equation and the telegraphic equation, the method is shown to be unconditionally stable. From Table 5, we found that the order of the method is nearly equal to four.

## References

1. Raggett GF, Wilson PD: A fully implicit finite difference approximation to the one-dimensional wave equation using a cubic spline technique. IMA J. Appl. Math. 1974, 14: 75â€“77. 10.1093/imamat/14.1.75

2. Fleck JA Jr.: A cubic spline method for solving the wave equation of nonlinear optics. J. Comput. Phys. 1974, 16: 324â€“341. 10.1016/0021-9991(74)90043-6

3. Fyfe DJ: The use of cubic splines in the solution of two point boundary value problems. Comput. J. 1969, 12: 188â€“192. 10.1093/comjnl/12.2.188

4. Jain MK, Aziz T: Spline function approximation for differential equations. Comput. Methods Appl. Mech. Eng. 1981, 26(2):129â€“143. 10.1016/0045-7825(81)90090-6

5. Jain MK, Aziz T: Cubic spline solution of two-point boundary value problems with significant first derivatives. Comput. Methods Appl. Mech. Eng. 1983, 39(1):83â€“91. 10.1016/0045-7825(83)90075-0

6. Al-Said EA: Spline methods for solving a system of second order boundary value problems. Int. J. Comput. Math. 1999, 70: 717â€“727. 10.1080/00207169908804784

7. Al-Said EA: The use of cubic splines in the numerical solution of a system of second order boundary value problem. Comput. Math. Appl. 2001, 42: 861â€“869. 10.1016/S0898-1221(01)00204-8

8. Khan A, Aziz T: Parametric cubic spline approach to the solution of a system of second order boundary value problems. J. Optim. Theory Appl. 2003, 118: 45â€“54. 10.1023/A:1024783323624

9. Kadalbajoo MK, Aggarwal VK: Cubic spline for solving singular two-point boundary value problems. Appl. Math. Comput. 2004, 156: 249â€“259. 10.1016/j.amc.2003.07.020

10. Kadalbajoo MK, Bawa RK: Cubic spline method for a class of non-linear singularly perturbed boundary value problems. J. Optim. Theory Appl. 1993, 76: 415â€“428. 10.1007/BF00939375

11. Kadalbajoo MK, Patidar KC: Tension spline for the numerical solution of singularly perturbed non-linear boundary value problems. Comput. Appl. Math. 2002, 21(3):717â€“742.

12. Kadalbajoo MK, Patidar KC: Tension spline for the solution of self-adjoint singular perturbation problems. Int. J.Â Comput. Math. 2002, 79(7):849â€“865. 10.1080/00207160211293

13. MaruÅ¡iÄ‡ M: A fourth/second order accurate collocation method for singularly perturbed two-point boundary value problems using tension splines. Numer. Math. 2001, 88(1):135â€“158. 10.1007/PL00005437

14. Khan I, Aziz T: Tension spline method for second-order singularly perturbed boundary-value problems. Int. J.Â Comput. Math. 2005, 82(12):1547â€“1553. 10.1080/00207160410001684280

15. Mohanty RK, Evans DJ, Arora U: Convergent spline in tension methods for singularly perturbed two-point singular boundary value problems. Int. J. Comput. Math. 2005, 82(1):55â€“66. 10.1080/0020716042000261414

16. Mohanty RK, Arora U: A family of non-uniform mesh tension spline methods for singularly perturbed two-point singular boundary value problems with significant first derivatives. Appl. Math. Comput. 2006, 172(1):531â€“544. 10.1016/j.amc.2005.02.023

17. Khan A, Khan I, Aziz T: A survey on parametric spline function approximation. Appl. Math. Comput. 2005, 171(2):983â€“1003. 10.1016/j.amc.2005.01.112

18. Kumar M, Srivastava PK: Computational techniques for solving differential equations cubic, quintic and sextic splines. Int. J. Comput. Methods Eng. Sci. Mech. 2009, 10: 108â€“115. 10.1080/15502280802623297

19. Rashidinia J, Jalilian R, Kazemi V: Spline methods for the solutions of hyperbolic equations. Appl. Math. Comput. 2007, 190: 882â€“886. 10.1016/j.amc.2007.01.082

20. Ding H, Zhang Y: Parametric spline methods for the solution of hyperbolic equations. Appl. Math. Comput. 2008, 204: 938â€“941. 10.1016/j.amc.2008.08.003

21. Mohanty RK, Gopal V: High accuracy cubic spline finite difference approximation for the solution of one-space dimensional non-linear wave equations. Appl. Math. Comput. 2011, 218(8):4234â€“4244. 10.1016/j.amc.2011.09.054

22. Mohanty RK, Gopal V: An off-step discretization for the solution of 1D mildly nonlinear wave equations with variable coefficients. J. Adv. Res. Sci. Comput. 2012, 4(2):1â€“13.

23. Mohanty RK, Gopal V: High accuracy arithmetic average type discretization for the solution of two-space dimensional nonlinear wave equations. Int. J. Model. Simul. Sci. Comput. 2012., 3: Article ID 1150005

24. Ding H, Zhang Y:A new unconditionally stable compact difference scheme of $O\left({\mathrm{Ï„}}^{2}+{h}^{4}\right)$ for the 1D linear hyperbolic equation. Appl. Math. Comput. 2009, 207: 236â€“241. 10.1016/j.amc.2008.10.024

25. Ding H, Zhang Y, Cao J, Tian J: A class of difference scheme for solving telegraph equation by new non-polynomial spline methods. Appl. Math. Comput. 2012, 218: 4671â€“4683. 10.1016/j.amc.2011.10.078

26. Rashidinia J, Mohammadi R: Tension spline approach for the numerical solution of nonlinear Klein-Gordon equation. Comput. Phys. Commun. 2010, 181(1):78â€“91. 10.1016/j.cpc.2009.09.001

27. Rashidinia J, Mohammadi R: Tension spline solution of nonlinear sine-Gordon equation. Numer. Algorithms 2011, 56(1):129â€“142. 10.1007/s11075-010-9377-x

28. Jain MK: Numerical Solution of Differential Equations. 2nd edition. Wiley, New Delhi; 1984.

29. Kelly CT: Iterative Methods for Linear and Non-Linear Equations. SIAM, Philadelphia; 1995.

30. Hageman LA, Young DM: Applied Iterative Methods. Dover, New York; 2004.

31. Mohanty RK: Stability interval for explicit difference schemes for multi-dimensional second order hyperbolic equations with significant first order space derivative terms. Appl. Math. Comput. 2007, 190: 1683â€“1690. 10.1016/j.amc.2007.02.097

32. Varga RS: Matrix Iterative Analysis. 2nd edition. Springer, Berlin; 2000.

33. Mohanty RK, Jain MK, George K: On the use of high order difference methods for the system of one space second order non-linear hyperbolic equations with variable coefficients. J. Comput. Appl. Math. 1996, 72: 421â€“431. 10.1016/0377-0427(96)00011-8

34. Mohanty RK: New unconditionally stable difference schemes for the solution of multi-dimensional telegraphic equations. Int. J. Comput. Math. 2009, 86: 2061â€“2071. 10.1080/00207160801965271

35. Mohanty RK, Arora U: A new discretization method of order four for the numerical solution of one space dimensional second order quasi-linear hyperbolic equation. Int. J. Math. Educ. Sci. Technol. 2002, 33: 829â€“838. 10.1080/00207390210162465

## Acknowledgements

This research work is supported by South Asian University, New Delhi, India. The authors thank the reviewers for their valuable suggestions, which substantially improved the standard of the paper.

## Author information

Authors

### Corresponding author

Correspondence to Ranjan K Mohanty.

### Competing interests

The authors declare that they have no competing interest.

### Authorsâ€™ contributions

RKM derived the difference method based on spline in tension approximation and discussed the convergence analysis of the method. VG has discussed the application of proposed method to wave equation in polar coordinates and telegraphic equation, and stability analysis. VG also carried out all computational work. All authors read and approved the final manuscript.

## Rights and permissions

Reprints and permissions

Mohanty, R.K., Gopal, V. A fourth-order finite difference method based on spline in tension approximation for the solution of one-space dimensional second-order quasi-linear hyperbolic equations. Adv Differ Equ 2013, 70 (2013). https://doi.org/10.1186/1687-1847-2013-70