#### Abstract

This article presents a new numerical scheme to approximate the solution of one-dimensional telegraph equations. With the use of Laplace transform technique, a new form of trial function from the original equation is obtained. The unknown coefficients in the trial functions are determined using collocation method. The efficiency of the new scheme is demonstrated with examples and the approximations are in excellent agreement with the analytical solutions. This method produced better approximations than the ones produced with the standard weighted residual methods.

#### 1. Introduction

In this paper, we consider the second-order one-dimensional telegraph equationwhere are known constants and is continuous in the displayed arguments.

Equation (1) describes an electrical signal traveling along a transmission cable; this was first derived in the horse and buggy days of the telegraph (from where it derived its name) and it is still useful for describing long distance power lines and cable TV systems [1].

The study of electric signal in a transmission line, dispersive wave propagation, pulsating blood flow in arteries, and random motion of bugs along a hedge is amongst a host of physical and biological phenomena which can be described by (1). For expository details on the abovementioned phenomena, readers are advised to see [1–4].

Recently, telegraph equation is found to be more suitable than ordinary diffusion equation in modelling reaction diffusion for such branches of science [5]. Without any doubt, (1) and its solution are of great importance in many areas of application. Various analytical and numerical methods have been developed and employed to solve this equation. These include the Method of Weighted Residuals [6], Laplace transform inversion technique with homotopy perturbation method [7], radial basis function method [8], Chebyshev tau method [9], Legendre multiwavelet Galerkin method [10], reciprocity boundary integral equation method [3], Adomian decomposition method [11], unconditionally stable difference scheme [12], and the Reduced Differential Transform Method (RDTM) [13] to mention just a few. Other researchers have also proposed different numerical schemes for solving telegraph equation; for example, Dehghan and Lakestani [14] proposed a method based on Chebyshev cardinal functions to solve one-dimensional hyperbolic telegraph equation, and Javidi [15] used Chebyshev spectral collocation method for computing numerical solution of telegraph equation. Borhanifar and Abazari [16] developed an unconditionally stable parallel difference scheme for telegraph equation. Lakestani and Saray [8] developed a numerical technique for the solution of second-order one-dimensional linear hyperbolic equation. The method consists of expanding the required approximate solution as the elements of interpolating scaling function. In their technique, by using operational matrix of derivatives, they reduced the problem to a set of algebraic equations [7]. Hesameddini and Asadolahifard [17] applied the Sinc-Collocation Method to approximate the solution of (1). Mittal and Bhatia [18] and Rashidinia et al. [19] employed the Cubic B-spline Collocation Method (CuBSCM) to approximate the solution of (1). In [20], the authors employed the Fibonacci Polynomials approach to approximate solution of telegraph equations.

Motivated by the works of Odejide and Binuyo [6] where the weighted residual method was applied to the one-dimensional telegraph equation, in this work, a new and efficient collocation method based on the Laplace transform is proposed to approximate the solution of (1). This new method shall be called Laplace Transform Collocation Method (LTCM).

The rest of this paper is organized as follows: In Section 2, brief description of the method is presented, and Section 3 is devoted to the error analysis of the method. Implementation of the method using numerical examples is presented in Section 4 while the last section presents our conclusion.

#### 2. Laplace Transform Collocation Method (LTCM)

To put emphasis on the essential mathematical details of the new method, we consider the following one-dimensional hyperbolic telegraph equation: with the initial conditions

and Dirichlet boundary condition where and are known constant coefficients, , , , and are known continuous functions in their respective domains, and the function is unknown.

Taking the Laplace transform of (2), we have After simple algebraic simplification, we get

The function and its derivatives in (6) are thereafter replaced with a trial function of the form where are constants to be determined which satisfy the given conditions (3) and (4). Thus, we have the following:

Taking the inverse Laplace transform of (8), we haveSubstituting (9) into (2), we get

Now, collocating (10) at points , we have where

Thus, (11) constitutes -equations in -unknowns which can be determined by using Gaussian elimination method. Substituting these coefficients into (9) gives the approximate solutions.

#### 3. Error Analysis of Laplace Transform Collocation Method (LTCM)

Let us define the error function , where and denote, respectively, the exact and approximate solution obtained via our proposed method. In line with [20], we define the residual function where

It then follows that subject to initial conditions

Now since is a linear operator, we obtain for the error function with the homogeneous conditions

By solving (17) subject to the homogeneous conditions above, we obtain the error function This allows us to compute even for problems without known exact solutions.

#### 4. Numerical Examples

In this section, we implement the new method on some examples to test its efficiency and applicability.

*Example 1. *We consider the case in which , , and , and (2) becomes (see [6]) subject to The exact solution is given by .

We assume the trial function of the form:Taking the Laplace transform of (19), we get

Rearranging (22), we have Taking the inverse Laplace transform of (23), we have the following new trial solution:

Substituting (24) into (19), we have the following residual function: Collocating (25) at equally spaced points and for and equating to zero, we then use the Gaussian elimination method to solve the two systems of equations and obtained and .

Substituting these values into (24), we obtain the following approximate solution:

Table 1 gives the comparison between the new method (LTCM) and the Method of Weighted Residual (MWR) for Example 1. Figure 1 shows the comparison of approximate and exact solution for Example 1. The error plot for Example 1 is shown in Figure 2.

*Example 2. *We consider next the case in which , , and , and (2) becomes subject to The exact solution is given by [6].

We assume an approximate solution of the form Following the same procedure as discussed in Example 1, we have the following new trial function:

Substituting (30) into (27) and collocating at points and for and also equating to zero and solving the resulting equations by Gaussian elimination method, we obtain and .

Similarly, substituting these values into (30), we determine the following approximate solution: Comparison between the approximation with the new method (LTCM) and the conventional Method of Weighted Residual (MWR) for Example 2 is given in Table 2. Figure 3 shows the comparison of approximate and exact solution for Example 2. The error plot for Example 2 is shown in Figure 4.

*Example 3. *We now consider the case in which , , and , and we solve subject to The exact solution is given by [6].

Similarly, taking and following the same procedure as in Example 2, we have the following new trial solution:

Substituting (35) into (32) and collocating at points and and later solving the resulting equations, we obtain the following values for and : and .

Substituting these values into (35), we have Comparison between the approximation with the new method (LTCM) and the conventional Method of Weighted Residual (MWR) for Example 3 is given in Table 3. Figure 5 shows the comparison of approximate and exact solution for Example 3.

The error plot for Example 3 is shown in Figure 6.

*Example 4. *We consider the case in which , , and , and we have subject to The exact solution is given by [6].

We assume a trial solution of the form: Following the same procedure as in other examples, we obtain a new form of trial solution which is given as

Substituting (40) into (37) yields a residual function which is then collocated at points and for . Solving the resulting equations, we obtain .

Substituting these values into (40), we have which is the exact solution.

Table 4 gives the comparison between approximation with the new method (LTCM) and the Method of Weighted Residual (MWR) for Example 4. Figure 7 shows the comparison of approximate and exact solution for Example 4.

The absolute error plot for Example 4 is shown in Figure 8.

#### 5. Conclusion

In this paper, we adopted a combination of Laplace transform scheme and collocation method to develop a new numerical method for solving one-dimensional linear hyperbolic telegraph equation. Four numerical examples were considered to demonstrate the efficiency and accuracy of the method. It is observed from the solution process that the present method provides a good approximate solution in comparison to the exact solution as it can be seen in Figures 1, 3, 5, and 7 with the absolute error plots displayed in Figures 2, 4, 6, and 8, respectively. Our approximations are compared with the results obtained by Odejide and Binuyo [6] and from the tables of results (Tables 1–4) it is evident that the LTCM produced better results than the MWR. The method proposed in this paper will be extended to solve parabolic Volterra integrodifferential equation in future work.

#### Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this paper.