We are interested in the following second order linear Partial Differential Equation (PDE):
where designates an scalar function depending on the variables x and t. Usually x states for the space variable and t for the time. The Equation (1) can be brought in the following form:
The resolution of such an equation presents a great interest, because it governs several phenomenas in physics, chemistry, mathematics, economy, etc. . It is a general form that deals with:
· Elliptic equations: It treats the Poisson equation which describes electrostatic and magnetostatic phenomenas, flow of perfect incompressible fluids, vortex and viscous incompressible flow, filtration of fluids through porous materials, etc. It concerns also the Euler-Tricomi equation that allows the study of transonic flow.
· Parabolic equations: It handles problems governed by the extended diffusion equation or the Diffusion Advection Reaction equation (of concentration, matter, temperature or electromagnetic field) or the BlackScholes equation in mathematical finance  .
· Hyperbolic equation: Equations such the extended complete wave equation and the extended complete telegraph equation are contained in (1). These two equations have important applications in electromagnetic and telecommunications    .
We propose to solve this equation with a simple, accurate and efficient method, by reducing the costs in time, memory space, and method’s heaviness. We aim at a good compromise between simplicity and result accuracy.
So, we will first, formulate the problem. Then, we choose a hybrid approximation scheme, using two finite differences approaches: Backward Time Centered Space (BTCS) and Centered Time Centered Space (CTCS)   . This heterogeneous scheme has the advantages of both. The first method BTCS is implicit and the second one is explicit. With their superposition, the resulting method becomes implicit. Therefore, we will use different methods for processing the matrices that result from the discretization. These methods are the algorithm of Usmani , which inverts any regular tridiagonal matrix directly; and the algorithm of Thomas which inverts a diagonal dominant tridiagonal matrix using the Right Hand Side (RHS) of the equation.
Subsequently, we will treat numerical experimentation to validate our proposed method. Finally, we discuss the results and give outlook for further work.
2. Problem Formulation and Meshing
We consider a scalar function which depends on the real variables x and t. This function satisfies the partial differential Equation (3) with the given conditions.
Here, The coefficients A, B, C, D, E and F are constant or known functions depending on the variables x and t. L is a real constant. The function is a known excitation. The functions , , and have been also given.
The following mesh has been considered: the spatial interval is discretized in points , with . The considered instants are: . The time step is and must be sufficiently small to allow a good, accurate and efficient resolution of the problem. An approximated value of is to be found at point : . We define: , , , and . It holds: , , , , and .
3. Schema BTCS + CTCS
We consider the Finite Difference method in Time Domain (FDTD); more precisely the two schemes: BTCS and CTCS   . Then, we superpose the two approaches in order to obtain a better approximation of the solution of the treated differential equation. In this way we combine the advantages of the two schemes. As one can remark, these two schemes have the same spatial discretization (Centered Space CS). Thus, we have for the derivative in x direction the following approximations:
For the BTCS scheme, we get the first and second order backward time derivatives, for :
Combining the Equations (3)-(5), one gets:
With the CTCS scheme, we have the following first and second order derivatives, for :
Associating the Equations (3), (4), and (7); one gets:
We define , , , , , , and ; for . Thus, we obtain the following matrix equation, considering the mesh points and :
This previous equation is equivalent to:
So, we will discuss the inversion methods of the matrix , which permits to get the solution .
4. General Solution
An important discussion is to be done with respect to Equation (9), particularly concerning the matrix . Principally, this matrix must be inverted for each time in order to get the solution at this time: . But, if the coefficients of Equation (1) do not dependent on the time then one and exactly one inversion is sufficient.
The algorithm of Thomas can be used for the inversion (see Appendix). With this method, we do not have an idea about the regularity of the matrix. But, it is clear that if the tridiagonal matrix is diagonal dominant then it is regular. Of course, this property is sufficient but not necessary for the regularity.
We prefer an inversion with the Usmani’s algorithm , which is a general and stable method. It allows a direct inversion that does not use the right hand side ( ) in the inversion process; contrarily to the algorithm of Thomas. Usmani has presented a direct and exact method to invert a tridiagonal regular matrix .
We can apply it for , defining:
Then, the coefficients of the inverted matrix are obtained with:
We get the solution:
The solution , at point and time , is given by a simple matrix- vector multiplication:
5. Solution for Time-Depending Coefficients
In the case that the coefficients of Equation (1) do not dependent on the space: , , , , and ; then the matrix (A) dependent only on the time. Its coefficients are constant at a fixed time . The formula of the invert matrix can be simplified   :
Defining a real number and a complex number in following manner:
we get , which is the determinant of the submatrix of order i of (A); and which is of dimension ( ). In the case, where , the determinant of the matrix (A) is:
One can verify that this determinant, for , is given by the following relations   :
The inverted matrix (B) exists when d is different of one of the following values :
Outside these values of , the matrix (A) is regular and its inverts (B) is given by the following formula:
6. Numerical Verification
For the numerical verification, we choose the equation of telegraph equation, which has been treated by several authors    . We compare our results with those obtained by .
The following problem treated by  was considered and our method was applied:
By choosing dx = 0.02 and dt = 0.001, the following results were obtained, showing the and errors:
The results are very satisfactory because our method is not heavy and leads to a precise solution. Compared to the one used in , it could be said to be less precise. But it should be emphasized that the method, used in , is a Cubic B-splines collocation method, which is expensive in calculation. On the other hand, we used the finite difference method.
In this work, a method of solving a general linear partial differential equation has been presented. The finite difference hybrid approach (BTCS + FTCS) that has been used is simple, accurate and efficient; and is economical in terms of calculation and occupancy of the memory space.
This study can allow numerous applications of this method to several phenomena of the sciences and techniques governed by this equation. In addition, other methods could be explored to improve performance.
For a resolution of Equation (10) with the algorithm of Thomas, the vector , , and can be introduced, in order to proceed to a forward elimination. Then the solutions are obtained by backward restitution. This algorithm is presented below.
 Gurarslan, G., Karahan, H., Alkaya, D., Sari, M. and Yasar, M. (2013) Numerical Solution of Advection-Diffusion Equation Using a Sixth-Order Compact Finite Difference Method. Mathematical Problems in Engineering, 2013, Article ID: 672936.
 Crank, J. and Nicolson, P. (1947) A Practical Method for Numerical Evaluation of Solutions of Partial Differential Equations of the Heat Conduction Type. Proceedings of the Cambridge Philosophical Society, 43, 50-67.
 Mittal, R.C. and Bhatia, R. (2013) Numerical Solution of Second Order One Dimensional Hyperbolic Telegraph Equation by Cubic B-Spline Collocation Method. Applied Mathematics and Computation, 220, 496-506.
 Inc, M., Akgül, A. and Kiliüman, A. (2013) Numerical Solutions of the Second-Order One-Dimensional Telegraph Equation Based on Reproducing Kernel Hilbert Space Method. Abstract and Applied Analysis, 2013, Article ID: 768963.
 Pandit, S., Kumar, M. and Tiwari, S. (2015) Numerical Simulation of Second-Order Hyperbolic Telegraph Type Equations with Variable Coefficients. Computer Physics Communications, 187, 83-90.
 Lakestani, M. and Saray, B.N. (2010) Numerical Solution of Telegraph Equation Using Interpolating Scaling Functions. Computers and Mathematics with Applications, 60, 1964-1972.
 Gueye, S.B. (2014) Semi-Analytical Solution of the 1D Helmholtz Equation, Obtained from Inversion of Symmetric Tridiagonal Matrix. Journal of Electromagnetic Analysis and Applications, 6, 425-438.