Research Article | Open Access

Volume 2014 |Article ID 526814 | 9 pages | https://doi.org/10.1155/2014/526814

# A Collocation Method for Numerical Solution of Hyperbolic Telegraph Equation with Neumann Boundary Conditions

Revised08 Sep 2014
Accepted10 Sep 2014
Published28 Sep 2014

#### Abstract

We present a technique based on collocation of cubic B-spline basis functions to solve second order one-dimensional hyperbolic telegraph equation with Neumann boundary conditions. The use of cubic B-spline basis functions for spatial variable and its derivatives reduces the problem into system of first order ordinary differential equations. The resulting system subsequently has been solved by SSP-RK54 scheme. The accuracy of the proposed approach has been confirmed with numerical experiments, which shows that the results obtained are acceptable and in good agreement with the exact solution.

#### 1. Introduction

The hyperbolic partial differential equations model the vibrations of structures (e.g., building, beams, and machines) and are the basis for fundamental equations of atomic physics. In this paper we consider nonlinear second order one-dimensional hyperbolic telegraph equation with initial conditions and Neumann boundary conditions where and are known real constants. If , (1) represents a linear hyperbolic telegraph equation in which both the electric voltage and current, in a double conductor, satisfy the equation, where is distance and is time. For , it represents a damped wave equation and for it is called a telegraph equation. Linear second order hyperbolic telegraph equation arise in the study of propagation of electric signal in a cable of transmission line and wave phenomena. Interaction between convection and diffusion or reciprocal action of reaction and diffusion describes a number of nonlinear phenomena in physical and biological process. In fact telegraph equation is more suitable than ordinary diffusion equation in modeling reaction diffusion for such branches of sciences.

Numerical solutions of one-dimensional linear hyperbolic equation with Dirichlet boundary conditions have been studied by many authors. El-Azab and El-Ghamel  have used Routhe-wavelet method for the numerical solution of telegraph equation. Dehghan and Shokri  presented a meshless method based on collocation with radial basis functions. Spline solutions of hyperbolic telegraph equation have been studied in . L. B. Liu and H. W. Liu  used the quartic spline method. In , H.-W. Liu and L.-B. Liu applied an unconditionally stable spline difference method; Dosti and Nazemi  presented a quartic -spline collocation method; modified cubic -spline collocation method has been proposed by Mittal and Bhatia  to find the numerical solution of one-dimensional linear hyperbolic telegraph equation. Numerical solution of linear and nonlinear one-dimensional hyperbolic telegraph equation with variable coefficient has been presented in [7, 8]. Unconditionally stable finite difference schemes have been proposed in [9, 10]. Dehghan and Lakestani  used the Chebyshev cardinal functions, whereas Saadatmandi and Dehghan  used the Chebyshev tau method for expanding the approximate solution of one-dimensional telegraph equation. Mohebbi and Dehghan  reported a higher order compact finite difference approximation of fourth order in space and used collocation method for time direction. Other techniques used for numerical solutions of one-dimensional hyperbolic telegraph equation with Dirichlet boundary conditions are interpolating scaling function technique  and radial basis function technique . Thus much work has been done to solve (1) with Dirichlet boundary conditions. Little has been done for numerical solution of one-dimensional hyperbolic telegraph equation with Neumann boundary conditions. In , Dehghan and Ghesmati reported a dual reciprocity boundary integral equation (DRBIE) method, in which three different types of radial basis functions have been used to approximate the solution of one-dimensional linear hyperbolic telegraph equation. Recently, L. B. Liu and H. W. Liu  developed an unconditionally stable compact difference scheme for one-dimensional telegraphic equations with Neumann boundary conditions.

In the literature the -spline collocation method has been successfully applied to find the numerical solutions of various linear and nonlinear partial differential equations [6, 18, 19]. -splines have some special properties like local support, smoothness, and capability of handling local phenomena, which make them suitable to solve linear and nonlinear partial differential equations easily and elegantly. The use of cubic -spline basis functions leads to a global solution for which not only the functions but also their first and second derivatives are continuous. The present collocation method has two great advantages: the set-up procedure does not involve integrations and the resulting matrix system is banded with small band width. Hence, -spline when combined with the collocation provides a simple solution procedure of linear and nonlinear partial differential equations. In this paper, we have developed a collocation method based on cubic -spline basis function to solve hyperbolic telegraph equation with Neumann boundary conditions. Equation (1) is converted into a system of equations using the transformation . Then for approximating the solution we use the collocation of cubic -spline basis functions. Finally we get a system of first order systems of ordinary differential equations, which have been solved by five-stage, fourth-order strong stability preserving time stepping Runge Kutta (SSP-RK54)  scheme. The method needs less storage space and causes less accumulation of numerical errors.

The outline of the paper is as follows. In Section 2, cubic -spline basis functions are introduced. In Section 3, numerical scheme is presented for telegraph equation using cubic -spline functions based collocation method. In Section 4, initial vector is computed for given initial conditions. In Section 5, stability of the scheme is discussed and found to be unconditionally stable. In Section 6 computational results for telegraph equations (1)–(3) for some test problems are illustrated and finally conclusions are included in Section 6.

#### 2. Cubic B-Spline Collocation Method

The solution domain is partitioned into a mesh of uniform length by the knot , where such that .

In the cubic -spline collocation method, the approximate solution can be written as the linear combination of cubic -spline basis functions for the approximation space under consideration.

Our numerical treatment for solving (1)–(3) using the collocation method with cubic -spline is to find an approximate solution to the exact solution in the form where are the time dependent quantities to be determined from boundary conditions and collocation from the differential equation.

The cubic -spline at the knots is given by where the set of functions forms a basis for the function defined over the region with the obvious adjustment of the boundary base functions to avoid undefined knots. Each cubic -spline covers four elements so that an element is covered by four cubic -splines.

The values of and its derivatives are tabulated in Table 1. Since outside the interval , so there is no need to tabulate for other values of .

 0 1 4 1 0 0 0 0 0 0

Then, using approximate function (4) and Table 1, the approximate values of and its two derivatives at the knots are determined in terms of the time parameters as follows:

#### 3. Numerical Scheme

The telegraph equation (1) is decomposed into a system of partial differential equations using the following transformation.

Let .

Then the transformed form of (1) is For solving the coupled equations (7) we assume our approximate solution as the linear combination of cubic -spline basis function Using approximate solution (8), approximate values of can be written as follows: where is the derivative of with respect to time .

Using approximate solution (8) and Neumann boundary conditions (3), the approximate solution at the boundary points can be written as

Using Table 1,

From (11), we have

Now using (8) and (9) in the coupled system (7), we have

Using (6) and Table 1 in (13), we have

Eliminating , , , in (14) by using (11) and (12), we get following system of first order differential equations: where

is tridiagonal matrix, is column vector of order (), and and are order vector, represents the rhs of system (14).

Once the vector is computed at a specific time level, the approximate solution can be computed at the required knots.

System (16) represents a system of first order ordinary differential equations, which is solved using SSP-RK54  scheme, with a variant of Thomas algorithm and consequently the approximate solution is completely known.

#### 4. Initial Vectors

To solve the resulting systems of first order ordinary differential equations, we need initial vectors and , which are computed from the initial and boundary conditions as follows.

##### 4.1. Initial Vector

Initial vector is computed from the initial condition and boundary values of the derivatives as the following expressions: Using (10)–(12), in (18) we get a system of equations of the form where

The matrix is tridiagonal matrix. System (19) is solved using Thomas algorithm and hence initial vector is computed.

##### 4.2. Initial Vector

Initial vector can be computed using the initial condition (2) as We have

#### 5. Stability of Scheme

The stability of system (16) is very important since it is related to the stability of numerical scheme for solving it. If the system of ordinary differential equations (16) is unstable, then stable numerical scheme for temporal discretization may not generate converged solution. The stability of this system depends on the eigenvalues of coefficient matrix, since its exact solution can be directly found using its eigenvalues.

For linear case, that is, if , we consider where is the unknown vector and is a column vector of order . Consider where and are symmetric tridiagonal matrix of order , given bywhere and are identity and null matrix of order , respectively.

Stability of system (23) depends on the eigenvalues of the coefficient matrix . If all the eigenvalues are having negative real part, then the system (23) will be stable.

Let be any eigenvalue of and and are two components each of order , of eigenvector corresponding to eigenvalue . We have From (26), we have From the above system of equations, we get is an eigenvalue of .

Since and are tridiagonal matrices, so their eigenvalues are

and are symmetric matrices, so eigenvalues of matrix are which is negative and real.

Let , where and are real numbers.

We have that is real and negative, which implies From the above set of equations, we get the solutions as follows:(i) and is arbitrary real number; is negative real number, since is real and positive;(ii);; is negative and real, since is real and positive.Hence, the real part of eigenvalues of should always be negative for stability.

When , that is, when (1) is nonlinear, we have the following system: The stability can be discussed by finding the eigenvalues of the matrix , where is the Jacobian matrix. For stability eigenvalues of matrix should be negative.

#### 6. Numerical Experiments

In this section, three experiments including linear and nonlinear form of problem (1)–(3) are considered to demonstrate the accuracy and applicability of the proposed method. The numerical efficiency is shown by calculating the , , and root mean square error norms.

Example 1. We consider the following linear telegraph equation: with initial conditions and boundary conditions The exact solution is given  by

, , and RMS errors are reported in Table 2 with , , and . RMS errors with different space step sizes are reported in Table 3 and compared with the results given by Dehghan and Ghesmati . It is noticed that our results are in good agreement with the results of . From Figure 1, it is clear that approximate solution coincides with the exact solution at , with and . Figure 2 depicts the space-time graph of approximate solution up to time with and . Similar figures have been depicted in [16, 17]. It is clear that the obtained numerical results are accurate and comparable favorably with the exact solutions and earlier studies.

 RMS error RMS error 1 2 3
 The proposed method Dehghan and Ghesmati  RMS error CPU time (s) RMS error CPU time (s) .05 .70 — .02 1.7 — .01 3.1 —

Example 2. We consider the following linear telegraph equation: with initial conditions and boundary conditions The exact solution is given  by
, , and RMS errors are reported in Table 4 with and . In Table 5, RMS errors are reported with different space step sizes and compared with the results given by Dehghan and Ghesmati . Figure 3 shows that the approximate solution and exact solution coincide for with and . Space-time graph of approximate solution is depicted in Figure 4 with and up to . Similar figures have been depicted in [16, 17].

 RMS error RMS error 1 2 3
 The proposed method Dehghan and Ghesmati  RMS error CPU time (s) RMS error CPU time (s) .05 .56 — .01 2.4 — .005 4.2 —

Example 3. In this example we consider the nonlinear telegraph equation with initial conditions and boundary conditions The exact solution is given  by
, , and RMS errors are computed for different values of and reported in Table 6 with and . In Table 7, error norms are reported for and and compared with the results given by L. B. Liu and H. W. Liu . From Figure 5, we observe that approximate solution and exact solution coincide for with and . Space-time graph of approximate solution is depicted in Figure 6 with and , which shows the approximate solution profile up to . Similar figure has been depicted in .

 RMS error RMS error 1 3 5 7 10 15
 The proposed method L. B. Liu and H. W. Liu  , , RMS error CPU time RMS 1 .03 2 .04 5 .06 7 .08 — 10 .11 15 .14

It should be noticed that in this case we obtain a system of nonlinear first order ordinary differential equations. Unlike the numerical methods , which use finite difference methods to solve nonlinear hyperbolic wave equation to get a system of nonlinear algebraic equations and finally solved using the Newton-Raphson method, we do not need to do any extra effort to handle the nonlinear term and solutions are easily computed by solving the obtained system of ODEs using SSP-RK54 scheme. Hence, the present scheme reduces the computational cost.

#### 7. Conclusions

The main idea of the present paper is to first convert the given problem into a coupled system of partial differential equations and then using cubic -spline basis functions for spatial variable and derivatives, the coupled system of equations is converted into system of first order ordinary differential equations. The resulting system of first order ordinary differential equations has been solved by SSP-RK54 scheme. The stability of the scheme is discussed using matrix stability analysis and found to be unconditionally stable. The method is also capable of solving nonlinear telegraph equation with Neumann boundary conditions. It has been noticed that obtained numerical solutions are in good agreement with the exact solution and earlier studies. These facts illustrate that the proposed method is a reliable, valid, and powerful tool for solving telegraph equation with Neumann boundary conditions.

#### Conflict of Interests

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

1. M. S. El-Azab and M. El-Gamel, “A numerical algorithm for the solution of telegraph equations,” Applied Mathematics and Computation, vol. 190, no. 1, pp. 757–764, 2007. View at: Publisher Site | Google Scholar | MathSciNet
2. M. Dehghan and A. Shokri, “A numerical method for solving the hyperbolic telegraph equation,” Numerical Methods for Partial Differential Equations, vol. 24, no. 4, pp. 1080–1093, 2008. View at: Publisher Site | Google Scholar | MathSciNet
3. L. B. Liu and H. W. Liu, “Quartic spline methods for solving one-dimensional telegraphic equations,” Applied Mathematics and Computation, vol. 216, no. 3, pp. 951–958, 2010. View at: Publisher Site | Google Scholar | MathSciNet
4. H.-W. Liu and L.-B. Liu, “An unconditionally stable spline difference scheme of $\left({\text{k}}^{\text{2}}+{\text{h}}^{\text{4}}\right)$ for solving the second-order 1D linear hyperbolic equation,” Mathematical and Computer Modelling, vol. 49, no. 9-10, pp. 1985–1993, 2009. View at: Publisher Site | Google Scholar | MathSciNet
5. M. Dosti and A. Nazemi, “Quartic B-spline collocation method for solving one-dimensional hyperbolic telegraph equation,” The Journal of Information and Computing Science, vol. 7, no. 2, pp. 83–90, 2012. View at: Google Scholar
6. R. C. Mittal and R. Bhatia, “Numerical solution of second order one dimensional hyperbolic telegraph equation by cubic B-spline collocation method,” Applied Mathematics and Computation, vol. 220, pp. 496–506, 2013. View at: Publisher Site | Google Scholar | MathSciNet
7. R. K. Mohanty, “An unconditionally stable finite difference formula for a linear second order one space dimensional hyperbolic equation with variable coefficients,” Applied Mathematics and Computation, vol. 165, no. 1, pp. 229–236, 2005.
8. R. K. Mohanty, M. K. Jain, and K. George, “On the use of high order difference methods for the system of one space second order nonlinear hyperbolic equations with variable coefficients,” Journal of Computational and Applied Mathematics, vol. 72, no. 2, pp. 421–431, 1996.
9. R. K. Mohanty, “An unconditionally stable difference scheme for the one-space-dimensional linear hyperbolic equation,” Applied Mathematics Letters, vol. 17, no. 1, pp. 101–105, 2004. View at: Publisher Site | Google Scholar | MathSciNet
10. F. Gao and C. Chi, “Unconditionally stable difference schemes for a one-space-dimensional linear hyperbolic equation,” Applied Mathematics and Computation, vol. 187, no. 2, pp. 1272–1276, 2007.
11. M. Dehghan and M. Lakestani, “The use of Chebyshev cardinal functions for solution of the second-order one-dimensional telegraph equation,” Numerical Methods for Partial Differential Equations, vol. 25, no. 4, pp. 931–938, 2009. View at: Publisher Site |