Next Article in Journal
An Empirical Comparison of Machine Learning and Deep Learning Models for Automated Fake News Detection
Previous Article in Journal
Pseudo-Multiview Learning Using Subjective Logic for Enhanced Classification Accuracy
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Iterative Finite Difference Method for Solving Nonlinear Gordon-Type Problems

College of Integrative Studies, Abdullah Al Salem University, Khaldiya, Kuwait
*
Author to whom correspondence should be addressed.
Mathematics 2025, 13(13), 2084; https://doi.org/10.3390/math13132084
Submission received: 31 March 2025 / Revised: 13 June 2025 / Accepted: 23 June 2025 / Published: 25 June 2025
(This article belongs to the Section C1: Difference and Differential Equations)

Abstract

This paper introduces an enhanced Iterative Finite Difference (IFD) method for efficiently solving strongly nonlinear, time-dependent problems. Extending the original IFD framework for nonlinear ordinary differential equations, we generalize the approach to address nonlinear partial differential equations with time dependence. An improved strategy is developed to achieve high-order accuracy in space and time. A finite difference discretization is applied at each iteration, yielding a flexible and robust iterative scheme suitable for complex nonlinear equations, including the Sine-Gordon, Klein–Gordon, and generalized Sinh-Gordon equations. Numerical experiments confirm the method’s rapid convergence, high accuracy, and low computational cost.

1. Introduction

We present an improved Iterative Finite Difference (IFD) method for efficiently solving highly nonlinear, time-dependent partial differential equations (PDEs). While the method is specifically developed for a class of nonlinear problems known as Gordon-type equations, it is also applicable to a broader range of nonlinear PDEs. Gordon-type equations, including Sine-Gordon, Klein–Gordon, and generalized Sinh-Gordon models, arise in various scientific and engineering disciplines. For example, Sine-Gordon equation is widely used in condensed matter and plasma physics, as well as nonlinear optics, to describe wave propagation and soliton dynamics, with applications ranging from Josephson junctions to optical fibers [1]. On the other hand, Klein–Gordon equation plays a central role in relativistic quantum mechanics and quantum field theory, particularly in modeling scalar particle dynamics [2]. Nevertheless, generalized Sinh-Gordon equation has notably several applications: in fiber optics, it models nonlinear wave propagation [3]; in condensed matter and plasma physics, it captures material behavior and wave instabilities [4]; and in nonlinear optics, it describes soliton formation and interactions [3]. It is also applied in biological systems, where it can model wave-like patterns and soliton behavior in complex biological environments [5]. Beyond their practical relevance, Gordon-type problems also serve as valuable benchmarks for evaluating and comparing numerical methods for nonlinear PDEs. The proposed IFD method addresses the challenges posed by such equations through an iterative finite difference framework capable of achieving high accuracy while maintaining computational efficiency.
A wide range of analytical and numerical methods have been proposed to tackle highly nonlinear problems. Among these techniques, we may cite wavelet-based approaches [6], integral solution methods using Green’s functions [7], and symmetry-based strategies such as the Lie-group shooting method [8]. In the context of finite difference schemes, Buckmire [9] employed Mickens’ nonstandard finite difference methods to solve several nonlinear boundary value problems, including bifurcation-type eigenvalue problems like those of Bratu and Gelfand type. Earlier work by Bank and Chart [10] introduced a multigrid continuation algorithm tailored to parameterized nonlinear elliptic systems. Continuation and multigrid strategies were further explored by Chan et al. [11] and Chang et al. [12] for nonlinear eigenvalue problems, while Fedoseyev et al. [13] developed continuation techniques for nonlinear elliptic PDEs discretized using multiquadratic methods. Additionally, Doedel et al. [14] contributed collocation-based approaches for continuation problems involving nonlinear elliptic PDEs. More recently, an improved IFD technique has been developed and studied in various nonlinear settings, showing promising results in terms of convergence and accuracy. The present work builds on this foundation and extends it to a broader class of nonlinear, time-dependent PDEs. The IFD method has been successfully applied to a variety of well-known nonlinear ordinary differential equations (ODEs) such as Bratu’s problem [15] and the Falkner–Skan problem [16].
Extending the IFD method to time-dependent nonlinear problems, particularly those of the Gordon-type, introduces additional challenges and opportunities. Several studies have explored such time-dependent nonlinear problems using various numerical and analytical techniques. For instance, Wazwaz [17] employed a modified decomposition method to treat nonlinear Klein–Gordon and Lane–Emden equations analytically. Guo et al. [2] applied the element-free kp–Ritz method to the nonlinear Klein–Gordon equation. In another study, Zhang and Ge [18] developed a high-order compact difference scheme for one-dimensional nonlinear advection–diffusion–reaction equations, including Burgers’ equation. Shukla and Tamsir [1] proposed a modified cubic B-spline differential quadrature method to solve the nonlinear sine–Gordon equation. Furthermore, Wazwaz [5] analyzed one- and two-soliton solutions of the sinh–Gordon equation in various dimensions. These works underscore the growing interest in efficient and accurate numerical schemes for solving nonlinear, time-dependent PDEs. In this context, the extension of the IFD method to Gordon-type equations provides a promising direction, offering both high accuracy and computational efficiency.
In this manuscript, we consider the following family of nonlinear problems, given by
u t t k u x x + g ( u ) = f ( x , t ) ,
subject to the boundary conditions
u ( a , t ) = s 1 ( t ) ,
u ( b , t ) = s 2 ( t ) ,
and the initial conditions
u ( x , 0 ) = h 1 ( x ) ,
u t ( x , 0 ) = h 2 ( x ) .
where u = u ( x , t ) is the wave displacement at point x ( a , b ) R and time t [ 0 , T ] ; while g ( u ) is a nonlinear function of u, f ( x , t ) is a function of x and t, and k is a constant.
The general formulation of the above-mentioned problem given by Equations (1a)–(1e) covers a wide range of nonlinear problems well-known in the literature. One set of these famous problems is the various Gordon-type problems, which are obtained depending on the expression of g ( u ) and f ( x , t ) as follows:
-
In the case of: g ( u ) = sin ( u ) , and f ( x , t ) = 0 , We obtain the Sine-Gordon equation
u t t k u x x + sin ( u ) = 0 .
-
In the case of: g ( u ) = β u + γ u q , we obtain the Klein–Gordon equation with nonlinearity of order q > 1 (for pratical applications, usually q = 2 or 3)
u t t k u x x + β u + γ u q = f ( x , t ) .
-
In the case of: g ( u ) = 2 α sinh ( n u ) + β sinh ( 2 n u ) , We obtain the generalized Sinh-Gordon equation
u t t k u x x + 2 α sinh ( n u ) + β sinh ( 2 n u ) = f ( x , t ) .
The main contribution of this work is the development of an improved Iterative Finite Difference scheme for solving nonlinear time-dependent PDEs of the form (1a). This method extends earlier IFD techniques [16] designed for ODEs to a general framework suitable for strongly nonlinear PDEs, including the Sine-Gordon, Klein–Gordon, and generalized Sinh-Gordon equations. The proposed approach offers several advantages: it achieves high-order accuracy in both space and time through an iterative Taylor-based expansion of the nonlinear term; it converges rapidly, often within just a few iterations; it is computationally efficient, relying solely on standard finite difference operations without the need for solving nonlinear systems at each time step; and it is flexible, readily extendable to problems with variable coefficients. These strengths are demonstrated through a series of numerical experiments, which confirm the method’s accuracy, efficiency, and low computational cost. The approach is straightforward to implement, making it a practical and reliable tool for solving a wide class of nonlinear evolution equations.
This manuscript is structured as follows. Section 2 introduces the Time-dependent Iterative Finite Difference (TIFD) scheme for solving Gordon-type problems. Section 3, presents various numerical examples showcasing the accuracy of the scheme in computing solutions for different well-known nonlinear problems. Section 4 provides a summary of our findings, complemented by various graphical representations emphasizing the high precision achieved by the TIFD method, as we suggest as a further extension of the current work.

2. Iterative Finite Difference Method for Time-Dependent Problems

We assume that the exact solution u ( x , t ) is sufficiently smooth, i.e., u C p + 2 ( [ a , b ] × [ 0 , T ] ) , so that all necessary partial derivatives up to order p + 2 in both space and time exist and are continuous. This smoothness assumption ensures the validity of the Taylor series expansions and guarantees the consistency and accuracy of the finite difference approximations used in the proposed method.
First, we can rewrite Equation (1a) as
F ( u , u x x , u t t ) = f ( x , t ) ,
where
F ( u , u x x , u t t ) = u t t k u x x + g ( u ) .
We consider a uniform mesh of size M over the space domain [ a , b ] and a uniform mesh of size N over the time domain [ 0 , T ] . We denote by h x = 1 M and h t = 1 N the step sizes of the mesh over the space domain and the time domain, respectively. Hence, the mesh nodes are denoted as
( x i , t j ) [ a , b ] × [ 0 , T ] | 0 i M , 0 j N .
We also denote by U the numerical solution of the problem (1a)–(1e). We call U n the solution obtained by the iterative finite difference method at iteration n. Then, the discretization of Equation (5) at iteration n can be written as follows:
F ( U n , U x x n , U t t n ) = f ( x i , t j ) , for 0 i M , 0 j N ,
where
F ( U n , U x x n , U t t n ) = U t t n k U x x n + g ( U n ) .
Now, we introduce the following quadratic approximation in function space of g ( U n ) as a generalization of the Newton–Raphson–Kantorovich quasi-linear approximation [19], as follows:
g ( U n ) = g ( U n 1 ) + U n U n 1 g u ( U n 1 ) + 1 2 U n U n 1 2 g u u ( U n 1 ) .
Hence, (8) can be written as:
F ( U n , U x x n , U t t n ) = U t t n k U x x n + g ( U n 1 ) + U n U n 1 g u ( U n 1 ) + 1 2 U n U n 1 2 g u u ( U n 1 ) .
Similarly, the higher-order approximation of order p ( p 2 ) for F ( U n , U x x n , U t t n ) in function space can be written as:
F ( U n , U x x n , U t t n ) = U t t n k U x x n + g ( U n 1 ) + r = 1 p 1 r ! U n U n 1 r g ( r ) ( U n 1 ) ,
with g ( r ) being the r-th derivative of g ( u ) with respect to u.
To ensure the validity of the approximation in Equation (11), we require that the nonlinear function g ( u ) be at least p-times continuously differentiable, i.e., g C p , where p is the order of the expansion. This regularity ensures that the truncated Taylor series remains accurate and that the error introduced in the iterative scheme remains controlled.
Inserting the approximation (11) into the discretization (7) and re-arranging the terms, we obtain, for 1 i M 1 and 1 j N 1 :
U t t n ( x i , t j ) = k U x x n ( x i , t j ) g ( U n 1 ) | ( x i , t j ) r = 1 p 1 r ! U n ( x i , t j ) U n 1 ( x i , t j ) r g ( r ) ( U n 1 ) | ( x i , t j ) + f ( x i , t j ) .
For the sake of simplicity, we will be denoting U n ( x i , t j ) as U i , j n , and we use this notation to write the standard centred finite difference approximations of the second-order partial derivatives in space U x x n ( x i , t j ) and in time U t t n ( x i , t j ) for 1 i M 1 and 1 j N 1 , as:
U x x n ( x i , t j ) D x x U n ( x i , t j ) = U i + 1 , j n 2 U i , j n + U i 1 , j n h x 2 ,
U t t n ( x i , y j ) D t t U n ( x i , t j ) = U i , j + 1 n 2 U i , j n + U i , j 1 n h t 2 ,
substituting (13a) and (13b) in Equation (12) and solving for U i , j + 1 n leads to
U i , j + 1 n = 2 U i , j n U i , j 1 n + k h t 2 h x 2 U i + 1 , j n 2 U i , j n + U i 1 , j n h t 2 g ( U i , j n 1 ) + r = 1 p 1 r ! U i , j n U i , j n 1 r g ( r ) ( U n 1 ) i , j + f ( x i , t j ) , for 1 i M 1 , 1 j N 1 .
The boundary conditions for 0 j N are discretized as:
U n ( x 0 = a , t j ) = s 1 ( t j ) ,
U n ( x M = b , t j ) = s 2 ( t j ) ,
while the initial conditions for 1 i M 1 are discretized as:
U n ( x i , t 0 = 0 ) = h 1 ( x i ) ,
U n ( x i , t 1 ) = h 1 ( x i ) + h t h 2 ( x i ) + 1 2 h t 2 k U i + 1 , 0 n 2 U i , 0 n + U i 1 , 0 n h x 2 g ( U i , 0 n ) + f ( x i , t 0 ) .
We note that (14e) is established by writing the expansion of U ( x i , t 1 ) , given that t 1 = t 0 + h t , as follows:
U n ( x i , t 1 ) = U n ( x i , t 0 ) + h t U t n ( x i , t 0 ) + 1 2 h t 2 U t t n ( x i , t 0 ) ,
then substituting U t t n using the original problem (1a) as
U t t n ( x i , t 0 ) = k U x x n ( x i , t 0 ) g ( U n ( x i , t 0 ) ) + f ( x i , t 0 ) ,
in addition to the use of the initial conditions (1d).
We note that while Equations (1a)–(1e) is strictly valid for t > 0 , we formally use it at t = 0 in conjunction with the initial data to construct a second-order accurate approximation for u ( x , t 1 ) . This practice is standard in time-stepping schemes and does not affect the accuracy or consistency of the numerical method.
It is interesting to highlight that the proposed iterative scheme (14a)–(14e) is simple in terms of implementation and is flexible in terms of application. The proposed scheme not only solves Gordon-type problems, but also applies to any other problem that can be formulated in the form of (1a)–(1e).
In summary, the TIFD scheme will be applied as follows:
  • Given an initial guess U i , j 0 for 0 i M and 0 j N (iteration 0);
  • At iteration n 1 :
    • First, compute the boundary values U 0 , j n and U N + 1 , j n , for 0 j N , using the boundary conditions (14b) and (14c), respectively;
    • Compute the U i , 0 n and U i , 1 n for 1 i M 1 using the initial conditions discretization given by Equations (14d) and (14e), respectively;
    • Compute the remaining values of the solution U i , j n for 1 i M 1 and 2 j N using the TIFD iterative scheme (14a).
  • Compute the solution at iteration n + 1 using the same procedure as iteration n.
Furthermore, to ensure the convergence of the method, it is essential to choose an appropriate initial guess U 0 such as a simple quadratic polynomial function in space and time that satisfies the given boundary and initial conditions.
Remark 1.
The proposed method can be extended to problems where the coefficient k in Equationw (1a)–(1e) is a function of x and t, i.e., k = k ( x , t ) . In this case, the term k ( x , t ) u x x is discretized pointwise, and the iterative structure of the scheme remains applicable. However, additional care may be required to ensure stability and maintain accuracy, particularly if k ( x , t ) varies significantly across the domain.

3. Computational Results

In this section, we evaluate the accuracy and efficiency of the proposed method using problems with known exact solutions. The maximum error between two consecutive iterations ( U n and U n 1 ) is given by
| | U n U n 1 | | = max i , j | U i , j n U i , j n 1 | .
To assess convergence, we define the iterative method as numerically converged when the infinity norm of the difference between two successive iterates satisfies
U n U n 1 < ε ,
where ε is a prescribed tolerance. In our numerical experiments, we use ε = 10 64 , in line with the precision capabilities of the quadruple-precision arithmetic used throughout the computations.
We also compute the infinity norm of the error (difference between the exact solution u and the computed solution U n ) defined as:
| | U n u | | = max i , j | U i , j n u ( x i , t j ) | ,
to check the accuracy of the method.
Computation results are carried out using several examples for different values of approximation order p (in Equation (14a)) and different mesh sizes in space h x and time h t . In all the numerical examples presented in this section, the considered PDEs are solved on the domain ( x , t ) [ 0 , 1 ] × [ 0 , 1 ] . Furthermore, boundary conditions are applied for all t [ 0 , 1 ] , and the numerical solutions are computed over a uniform discrete mesh in both space and time. The results shown in the tables correspond to computations carried out on this domain using a finite number of time steps.
All computations were carried out using MATLAB R2024a with the Multiprecision Computing Toolbox (Advanpix, version 4.9.3.15018) [20], which enables highly accurate quadruple-precision arithmetic (up to the order of 10 64 ) to guarantee the accuracy of the results.
Finally, we note also that we compute the order of convergence of the method for each case of p = 1 , 2 , 3 . The order of convergence is computed as follows:
r = ln ( | | U n U n 1 | | ) ln ( | | U n 1 U n 2 | | ) ln ( | | U n 1 U n 2 | | ) ln ( | | U n 2 U n 3 | | ) .
Assuming the rate of convergence of the method is r, we can write:
| | U n U n 1 | | = λ | | U n 1 U n 2 | | r ,
with λ being a positive constant.
Then, for simplicity reason, we call E n = | | U n U n 1 | | .
Hence,
E n = λ ( E n 1 ) r ,
which also means that:
E n 1 = λ ( E n 2 ) r .
Dividing (21) by (22), leads to
E n E n 1 = E n 1 E n 2 r ,
Then, applying the logarithm on both sides, we obtain
ln E n E n 1 = r ln E n 1 E n 2 ,
which implies that
r = ln E n E n 1 ln E n 1 E n 2 = ln ( E n ) ln ( E n 1 ) ln ( E n 1 ) ln ( E n 2 ) .

3.1. Example 1: Sine-Gordon Equation

3.1.1. Simulation Results

We consider the Sine-Gordon equation problem (2) with k = 1 :
u t t u x x + sin ( u ) = 0 , for x [ 0 , 1 ] and t 0 ,
which is known to have the following exact solution [1]:
u ( x , t ) = 4 arctan ( sec h ( x ) t ) ,
under the following initial conditions
u ( x , 0 ) = 0 , u t ( x , 0 ) = 4 sec h ( x ) , for x [ 0 , 1 ] ,
with boundary conditions taken from the exact solution (27).
In Table 1, we present the infinity norm of the error | | U n u | | and the computation time for the solution pf the Sine-Gordon equation using different mesh sizes in space and time, and for order of approximation p = 3 in the TIFD method. These results validate our proposed method since the computed solution converges to the exact solution. The aforementioned results also show that our method achieves high accuracy, even with a relatively coarse mesh size. Another powerful point about the method is its fast convergence, as the computation time is short even with refined meshes. The presented results of recording the CPU time of a computation performed simply using a regular laptop (Intel Core i7-7700HQ CPU—2.80 GHz) exhibited in the aforementioned Table 1 affirm that the method is highly efficient as it converges to an exact solution in less than 4 s with the use of quadruple precision and mesh size ( h x = 10 2 , h t = 10 2 ) .
Moreover, looking at the computation results in Table 2 of the order of convergence for all three cases of p = 1 , 2 , 3 , it is confirmed that the convergence is of order p + 1 for all three cases. Furthermore, we note that the proposed method has low computation cost as it converges in n = 7 iterations when p = 1 , and in only n = 5 iterations in the case of p = 3 .
Furthermore, for the completeness of the study, in Figure 1, we exhibit a surface plot of the computed solution (left) and a surface plot of the absolute error | U n u | (right) for mesh size ( h x = 10 3 , h t = 10 3 ) . The results are in agreement with the results published in [1], however, the method proposed in this manuscript provides more accurate results with low computation cost.

3.1.2. Comparative Analysis & Validation

To further evaluate the accuracy and efficiency of the proposed Iterative Finite Difference Method, we compare our results with those reported in the literature for the same problem setup, for ( x , t ) [ 1 , 1 ] × [ 0 , 1 ] . In particular, we consider the works of Shukla and Tamsir [1], Mittal and Bhatia [21], and Dehghan and Shokri [22], where various numerical techniques were applied to the one-dimensional nonlinear Sine-Gordon equation. In our approach, using a mesh size of ( h x = 0.04 , h t = 10 3 ) , we obtained an L norm of the error equal to 7.231 × 10 6 . For comparison, the corresponding errors reported in [1,21,22] are 8.75 × 10 6 , 1.64 × 10 4 , and 5.07 × 10 5 , respectively. Furthermore, our method converges in only 4 iterations and completes the computation in just 0.26 s (on the processor specified at the beginning of this section). A summary of this comparison is presented in Table 3, which clearly illustrates the competitive performance of our method in terms of both accuracy and computational cost.

3.2. Example 2: Klein–Gordon Equation with Cubic Nonlinearity

We consider the Klein–Gordon Equation problem (3) with f ( x , t ) = 0 , k = 2.5 , β = 1 , γ = 1.5 , and q = 3 :
u t t 5 2 u x x + u + 3 2 u 3 = 0 ,
with initial conditions
u ( x , 0 ) = B tan ( A x ) ; , u t ( x , 0 ) = c B A sec 2 ( A x ) .
In this case, the problem is known to have the following exact solution [2,23]:
u ( x , t ) = B tan ( A ( x + c t ) ) ,
with c = 0.5 , A = β 2 ( k c 2 ) 0.4714 , and B = β γ 0.8165 .
In Table 4, we present the infinity norm of the error | | U n u | | for the solution of Klein–Gordon equation with cubic nonlinearity. In this case also, the method converges in only n = 2 iterations in the case of p = 3 . Also, in Table 5, we present the computation of the order of convergence for the cases of p = 1 and p = 2 confirming again that the convergence is of order p + 1 . We note that for p = 3 the convergence is extremely fast (converges at the third iteration with an error of order < 10 64 considered 0 for quadruple precision) so that the convergence rate can’t be computed (according to Formula (19), the error needs to be non-zero for at least three iterations to numerically compute the order of convergence).
Again, we exhibit in Figure 2, surface plots of the computed solution and the absolute error | U n u | resealing a perfect agreement with the results published in [2] as well.

3.3. Example 3: Sinh-Gordon Equation

We consider the generalized Sinh-Gordon equation problem (4) with k = 1 , α = 0.5 , β = 0 , and n = 1 :
u t t u x x + sinh ( u ) = f ( x , t ) .
which has the following exact solution:
u ( x , t ) = ln t + x + 1
under the following initial conditions
u ( x , 0 ) = ln ( x + 1 ) , u t ( x , 0 ) = 1 t + x + 1 , for x [ 0 , 1 ] ,
and boundary conditions
u ( 0 , t ) = ln ( t + 1 ) , u ( 1 , t ) = ln ( t + 2 ) , for t 0 ,
with f ( x , t ) taken from substituting the exact solution (31) into the original problem (30):
f ( x , t ) = ( t + x + 1 ) 2 1 2 t + 2 x + 2 , for x [ 0 , 1 ] , for t 0 .
Similarly to the previous examples, in Table 6 and Table 7, we present the computational results for the Sinh-Gordon equation. It is shown again that the method performs efficiently and converges fast in the case of p = 1 , and even faster in the cases p = 2 and p = 3 . The order of convergence is also confirmed to be p + 1 for all the considered cases p = 1 , 2 , 3 .
Finally, we exhibit in Figure 3 surface plots of the computed solution and the absolute error | U n u | for the case of the sinh-Gordon equation.

3.4. Example 4: Another Example of the Sinh-Gordon Equation

We consider the generalized Sinh-Gordon equation problem (4) with k = 1 , α = 1 , β = 1 , and n = 1 :
u t t u x x + 2 sinh ( u ) + sinh ( 2 u ) = f ( x , t ) .
which has the following exact solution:
u ( x , t ) = sinh 1 t x
under the following initial conditions
u ( x , 0 ) = 0 , u t ( x , 0 ) = x , for x [ 0 , 1 ] ,
and boundary conditions
u ( 0 , t ) = 0 , u ( 1 , t ) = sinh 1 ( t ) , for t 0 ,
with f ( x , t ) obtained from the original problem (32) by substituting the exact solution (33), which leads to:
f ( x , t ) = 2 t x + 2 t x 1 + t 2 x 2 + t x t 2 x 2 1 + t 2 x 2 3 2 , for x [ 0 , 1 ] , for t 0 .
Similarly to the previous examples, in Table 8 and Table 9, we present the computational results for another case pf the Sinh-Gordon equation. Our results agree with the observation drawn from the previous examples, that the method is accurate, computationally efficient, and that the order of convergence depends on the approximation order p. It is again confirmed to be p + 1 for all the considered cases p = 1 , 2 , 3 .
Finally, we exhibit in Figure 4 surface plots of the computed solution and the absolute error | U n u | for the case of the Sinh-Gordon Equation (32).
As an ending remark, we note that several of the results reported in Table 1, Table 4, Table 6 and Table 8 correspond to simulations with unequal spatial and temporal step sizes ( h x h t ). These cases confirm that the proposed method remains accurate and convergent under nonuniform discretizations, consistent with the theoretical expectations. For visual clarity, the figures accompanying the examples were generated using equal mesh sizes ( h t = h x ); this was a deliberate technical choice made to facilitate straightforward comparisons between methods and grid levels. Importantly, the method itself does not require the spatial and temporal step sizes to be equal.

4. Conclusions

In this manuscript, we presented an improved high-order iterative finite difference method for solving a class of strongly nonlinear, time-dependent partial differential equations. The method was tested on smooth benchmark problems with known exact solutions, and the results provided strong numerical evidence of its accuracy, fast convergence, and low computational cost. We note, however, that the test cases considered involve smooth solutions. To fully assess the method’s robustness (particularly for dispersive PDEs with oscillatory or less regular behavior), further studies are needed. As such, future work will focus on applying the method to more complex, real-world problems and assessing its effectiveness in those settings. In addition, it may include a sensitivity analysis with respect to perturbations in the initial and boundary conditions, in order to evaluate the method’s robustness in the presence of uncertainty or noise in the input data. Furthermore, a rigorous analysis of convergence and stability could also be the objective of a future study building on the present numerical results.

Author Contributions

Conceptualization, M.B.-R. and H.T.; Methodology, M.B.-R. and H.T.; Software, M.B.-R.; Validation, M.B.-R.; Formal analysis, H.T.; Investigation, M.B.-R.; Data curation, H.T.; Writing—original draft, M.B.-R.; Writing—review & editing, H.T.; Visualization, H.T.; Supervision, H.T.; Project administration, H.T. All authors have read and agreed to the published version of the manuscript.

Funding

The current research did not receive any external funding.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
IFDIterative Finite Difference
TIFDTime-dependent Iterative Finite Difference
ODEOrdinary Differential Equation
PDEPartial Differential Equation

References

  1. Shukla, H.S.; Tamsir, M. Numerical solution of nonlinear sine–Gordon equation by using the modified cubic B-spline differential quadrature method. Beni-Suef Univ. J. Basic Appl. Sci. 2018, 7, 359–366. [Google Scholar] [CrossRef]
  2. Guo, P.F.; Liew, K.M.; Zhu, P. Numerical solution of nonlinear Klein–Gordon equation using the element-free kp-Ritz method. Appl. Math. Model. 2015, 39, 2917–2928. [Google Scholar] [CrossRef]
  3. Ali, K.; Wazwaz, A.; Osman, M.S. Optical soliton solutions to the generalized nonautonomous nonlinear Schrodinger equations in optical fibers via the sine-Gordon expansion method. Optik 2020, 208, 164132. [Google Scholar] [CrossRef]
  4. Alzaleq, L.; Al-zaleq, D.; Alkhushayni, S. Traveling Waves for the Generalized Sinh-Gordon Equation with Variable Coefficients. Mathematics 2022, 10, 822. [Google Scholar] [CrossRef]
  5. Wazwaz, A.-M. One and two soliton solutions for the sinh–Gordon equation in (1 + 1), (2 + 1) and (3 + 1) dimensions. Appl. Math. Lett. 2012, 25, 2354–2358. [Google Scholar] [CrossRef]
  6. Liu, X.; Wang, J.; Zhou, Y. Wavelet solution of a class of two-dimensional nonlinear boundary value problems. Comput. Model. Eng. Sci. 2013, 92, 493–505. [Google Scholar]
  7. Mohsen, A. On the integral solution of the one-dimensional Bratu problem. J. Comput. Appl. Math. 2013, 251, 61–66. [Google Scholar] [CrossRef]
  8. Abbasbandy, S.; Hashemi, M.; Liu, C. The Lie-group shooting method for solving the Bratu equation. Commun. Nonlinear Sci. Numer. Simul. 2011, 16, 4238–4249. [Google Scholar] [CrossRef]
  9. Buckmire, R. Applications of Mickens finite differences to several related boundary value problems. Adv. Appl. Nonstandard Finite Differ. Schemes 2005, 1, 47–87. [Google Scholar]
  10. Bank, R.; Chart, T. PLTMGC: A multi-grid continuation program for parameterized nonlinear elliptic systems. SIAM J. Stat. Sci. Comput. 1986, 7, 540–559. [Google Scholar] [CrossRef]
  11. Chan, T.; Keller, H. Arc-length continuation and multigrid techniques for nonlinear elliptic eigenvalue problems. SIAM J. Sci. Stat. Comput. 1982, 3, 173–194. [Google Scholar] [CrossRef]
  12. Chang, S.; Chien, C. A multigrid-lanczos algorithm for the numerical solutions of nonlinear eigenvalue problems. Int. J. Bifurc. Chaos 2003, 13, 1217–1228. [Google Scholar] [CrossRef]
  13. Fedoseyev, A.; Friedman, M.; Kansa, E. Continuation for nonlinear elliptic partial differential equations discretized by the multiquadratic method. Int. J. Bifurc. Chaos 2000, 10, 481–492. [Google Scholar] [CrossRef]
  14. Doedel, E.; Sharifi, H. Collocation methods for continuation problems in nonlinear elliptic PDEs. Notes Numer. Fluid Mech. 2000, 74, 105–118. [Google Scholar]
  15. Temimi, H.; Ben-Romdhane, M.; Baccouch, M.; Musa, M. A two-branched numerical solution of the two-dimensional Bratu’s problem. Appl. Numer. Math. 2020, 153, 202–216. [Google Scholar] [CrossRef]
  16. Temimi, H.; Ben-Romdhane, M. Numerical solution of Falkner–Skan equation by iterative transformation method. Math. Model. Anal. 2018, 23, 139–151. [Google Scholar] [CrossRef]
  17. Wazwaz, A.-M. The modified decomposition method for analytic treatment of differential equations. Appl. Math. Comput. 2006, 173, 165–176. [Google Scholar] [CrossRef]
  18. Zhang, L.; Ge, Y. Numerical solution of nonlinear advection diffusion reaction equation using high-order compact difference method. Appl. Numer. Math. 2021, 166, 127–145. [Google Scholar] [CrossRef]
  19. Bellman, R.E.; Kalaba, R.E. Quasilinearization and Nonlinear Boundary-Value Problems; American Elsevier Publishing Company: New York, NY, USA, 1965. [Google Scholar]
  20. Advanpix LLC. Multiprecision Computing Toolbox for MATLAB R2018a (Version 4.9.3.15018); Advanpix LLC.: Yokohama, Japan, 2025. [Google Scholar]
  21. Mittal, R.C.; Bhatia, R. Numerical solution of nonlinear sine–Gordon equation by modified cubic B-spline collocation method. Int. J. Partial. Differ. Equ. 2014, 2014, 343497. [Google Scholar] [CrossRef]
  22. Dehghan, M.; Shokri, A. A numerical method for one dimensional nonlinear sine–Gordon equation using collocation and radial basis functions. Numer. Methods Partial. Differ. Equ. 2008, 24, 687–698. [Google Scholar] [CrossRef]
  23. Kaya, D.; El-Sayed, S.M. A numerical solution of the Klein-Gordon equation and convergence of the decomposition method. Appl. Math. Comput. 2004, 156, 341–353. [Google Scholar] [CrossRef]
Figure 1. Computed solution (left) pf the Sine-Gordon Equation (26) and its error (right) for mesh size ( h x = 10 3 , h t = 10 3 ).
Figure 1. Computed solution (left) pf the Sine-Gordon Equation (26) and its error (right) for mesh size ( h x = 10 3 , h t = 10 3 ).
Mathematics 13 02084 g001
Figure 2. Computed solution (left) of the Sine-Gordon Equation (28) and its error (right) for mesh size ( h x = 10 3 , h t = 10 3 ).
Figure 2. Computed solution (left) of the Sine-Gordon Equation (28) and its error (right) for mesh size ( h x = 10 3 , h t = 10 3 ).
Mathematics 13 02084 g002
Figure 3. Computed solution (left) pf the Sine-Gordon Equation (30) and its error (right) for mesh size ( h x = 10 3 , h t = 10 3 ).
Figure 3. Computed solution (left) pf the Sine-Gordon Equation (30) and its error (right) for mesh size ( h x = 10 3 , h t = 10 3 ).
Mathematics 13 02084 g003
Figure 4. Computed solution (left) of the Sinh-Gordon Equation (32) and its error (right) for mesh size ( h x = 10 3 , h t = 10 3 ).
Figure 4. Computed solution (left) of the Sinh-Gordon Equation (32) and its error (right) for mesh size ( h x = 10 3 , h t = 10 3 ).
Mathematics 13 02084 g004
Table 1. Infinity norm of the error | | U n u | | for the solution pf the Sine-Gordon Equation (26), for different mesh sizes using an approximation order p = 3 .
Table 1. Infinity norm of the error | | U n u | | for the solution pf the Sine-Gordon Equation (26), for different mesh sizes using an approximation order p = 3 .
h x h t n | | U n u | | CPU Time
0.10.153.7659   ×   10 3 0.42
0.10.0558.7866   ×   10 4 0.52
0.050.0559.3866   ×   10 4 0.67
0.050.0251.5167   ×   10 4 1.69
0.020.0251.5006   ×   10 4 1.83
0.020.0153.7681   ×   10 5 3.24
0.010.0153.7511   ×   10 5 3.63
0.010.00559.5125   ×   10 6 9.43
0.0050.00559.3774   ×   10 6 13.67
Table 2. Infinity norm of the error | | U n u | | at each iteration for the solution of the Sine-Gordon Equation (26) and order of convergence, for different approximation orders p = 1 , 2 , 3 and mesh size ( h x = 10 3 , h t = 10 3 ) .
Table 2. Infinity norm of the error | | U n u | | at each iteration for the solution of the Sine-Gordon Equation (26) and order of convergence, for different approximation orders p = 1 , 2 , 3 and mesh size ( h x = 10 3 , h t = 10 3 ) .
p = 1 p = 2 p = 3
n | | U n u | | Order n | | U n u | | Order n | | U n u | | Order
13.1416-13.1416-13.1670-
21.9438   ×   10 1 -21.9450   ×   10 1 -26.0798   ×   10 2 -
31.2052   ×   10 4 2.654236.0286   ×   10 6 3.731732.3740   ×   10 10 4.8978
48.3379   ×   10 12 2.232241.7373   ×   10 20 3.224944.5354   ×   10 45 4.1291
59.5175   ×   10 27 2.086953.0386   ×   10 64 3.009450 N / A
62.9183   ×   10 57 2.042060 N / A
70 N / A
Table 3. Comparison of L norm error for the Sine-Gordon Equation (26) with other numerical methods for mesh size ( h x = 0.04 , h t = 10 3 ).
Table 3. Comparison of L norm error for the Sine-Gordon Equation (26) with other numerical methods for mesh size ( h x = 0.04 , h t = 10 3 ).
Method L Error
Present IFD Method 7.23   ×   10 6
Modified Cubic B-spline DQ [1] 8.75   ×   10 6
Modified Cubic B-spline Collocation [21] 1.64   ×   10 4
RBF Collocation Method [22] 5.07   ×   10 5
Table 4. Infinity norm of the error | | U n u | | for the solution of the Klein–Gordon Equation (28), for different mesh sizes using an approximation order p = 3 .
Table 4. Infinity norm of the error | | U n u | | for the solution of the Klein–Gordon Equation (28), for different mesh sizes using an approximation order p = 3 .
h x h t n | | U n u | | CPU Time
0.10.134.6145   ×   10 3 0.18
0.10.0524.8399   ×   10 3 0.19
0.050.0521.1916   ×   10 3 0.21
0.050.0221.2534   ×   10 3 0.43
0.020.0221.9333   ×   10 4 0.52
0.020.0132.0222   ×   10 4 1.28
0.010.0124.8401   ×   10 5 1.15
0.010.00525.0626   ×   10 5 2.91
0.0050.00531.2105   ×   10 5 6.24
0.0050.00221.2727   ×   10 5 13.41
0.0020.00221.9370   ×   10 6 28.18
Table 5. Infinity norm of the error | | U n u | | at each iteration for the solution of the Klein–Gordon Equation (28) and order of convergence, for the different approximation orders p = 1 , 2 , 3 and mesh size ( h x = 10 3 , h t = 10 3 ) .
Table 5. Infinity norm of the error | | U n u | | at each iteration for the solution of the Klein–Gordon Equation (28) and order of convergence, for the different approximation orders p = 1 , 2 , 3 and mesh size ( h x = 10 3 , h t = 10 3 ) .
p = 1 p = 2 p = 3
n | | U n u | | Order n | | U n u | | Order n | | U n u | | Order
12.2645012.2645012.2645-
21.5228   ×   10 1 021.5441   ×   10 1 021.5193   ×   10 64 -
32.0970   ×   10 3 1.587435.6684   ×   10 5 2.945330 N / A
41.0918   ×   10 7 2.301744.1714   ×   10 16 3.2409
57.6517   ×   10 17 2.137251.8760   ×   10 50 3.0851
69.2952   ×   10 36 2.066360 N / A
70 N / A
Table 6. Infinity norm of the error | | U n u | | for the solution pf the Sinh-Gordon Equation (30), for different mesh sizes using an approximation order p = 3 .
Table 6. Infinity norm of the error | | U n u | | for the solution pf the Sinh-Gordon Equation (30), for different mesh sizes using an approximation order p = 3 .
h x h t n | | U n u | | CPU Time
0.10.145.9434   ×   10 4 0.30
0.10.0542.1406   ×   10 4 0.43
0.050.0541.4930   ×   10 4 0.51
0.050.0244.5818   ×   10 5 1.10
0.020.0242.3920   ×   10 5 1.31
0.020.0148.9484   ×   10 6 2.59
0.010.0145.9812   ×   10 6 2.71
0.010.00542.2481   ×   10 6 6.91
0.0050.00551.4954   ×   10 6 12.74
Table 7. Infinity norm of the error | | U n u | | at each iteration for the solution of Sinh-Gordon Equation (30) and order of convergence, for different approximation orders p = 1 , 2 , 3 and mesh size ( h x = 10 3 , h t = 10 3 ) .
Table 7. Infinity norm of the error | | U n u | | at each iteration for the solution of Sinh-Gordon Equation (30) and order of convergence, for different approximation orders p = 1 , 2 , 3 and mesh size ( h x = 10 3 , h t = 10 3 ) .
p = 1 p = 2 p = 3
n | | U n u | | Order n | | U n u | | Order n | | U n u | | Order
11.0986011.0986011.09860
21.4745   ×   10 2 021.4747   ×   10 2 024.6489   ×   10 4 0
32.7678   ×   10 6 1.990431.1458   ×   10 8 3.263431.2723   ×   10 17 4.0204
42.0674   ×   10 14 2.180845.7961   ×   10 28 3.158340 N / A
52.6456   ×   10 31 2.078750 N / A
60 N / A
Table 8. Infinity norm of the error | | U n u | | and computation time for the solution pf the Sinh-Gordon Equation (32), for different mesh sizes using an approximation order p = 3 .
Table 8. Infinity norm of the error | | U n u | | and computation time for the solution pf the Sinh-Gordon Equation (32), for different mesh sizes using an approximation order p = 3 .
h x h t n | | U n u | | CPU Time
0.10.141.8397   ×   10 4 0.27
0.10.0553.8987   ×   10 5 0.63
0.050.0554.6252   ×   10 5 0.82
0.050.0257.0962   ×   10 6 1.64
0.020.0257.4114   ×   10 6 2.23
0.020.0151.7564   ×   10 6 4.34
0.010.0151.8532   ×   10 6 5.81
0.010.00554.4855   ×   10 7 13.17
0.0050.00554.6336   ×   10 7 19.55
Table 9. Infinity norm of the error | | U n u | | at each iteration for the solution pf the Sinh-Gordon Equation (32) and order of convergence, for different approximation orders p = 1 , 2 , 3 and mesh size ( h x = 10 3 , h t = 10 3 ) .
Table 9. Infinity norm of the error | | U n u | | at each iteration for the solution pf the Sinh-Gordon Equation (32) and order of convergence, for different approximation orders p = 1 , 2 , 3 and mesh size ( h x = 10 3 , h t = 10 3 ) .
p = 1 p = 2 p = 3
n | | U n u | | Order n | | U n u | | Order n | | U n u | | Order
18.8137   ×   10 1 -18.8137   ×   10 1 -18.8137   ×   10 1 -
21.8795   ×   10 2 -21.8807   ×   10 2 -21.1001   ×   10 3 -
31.1573   ×   10 5 1.921239.3902   ×   10 8 3.173033.0585   ×   10 15 3.9797
49.7853   ×   10 13 2.203041.2793   ×   10 24 3.181241.0407   ×   10 62 4.1077
51.6300   ×   10 27 2.089450 N / A 50 N / A
61.0273   ×   10 57 2.0436
70 N / A
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ben-Romdhane, M.; Temimi, H. An Iterative Finite Difference Method for Solving Nonlinear Gordon-Type Problems. Mathematics 2025, 13, 2084. https://doi.org/10.3390/math13132084

AMA Style

Ben-Romdhane M, Temimi H. An Iterative Finite Difference Method for Solving Nonlinear Gordon-Type Problems. Mathematics. 2025; 13(13):2084. https://doi.org/10.3390/math13132084

Chicago/Turabian Style

Ben-Romdhane, Mohamed, and Helmi Temimi. 2025. "An Iterative Finite Difference Method for Solving Nonlinear Gordon-Type Problems" Mathematics 13, no. 13: 2084. https://doi.org/10.3390/math13132084

APA Style

Ben-Romdhane, M., & Temimi, H. (2025). An Iterative Finite Difference Method for Solving Nonlinear Gordon-Type Problems. Mathematics, 13(13), 2084. https://doi.org/10.3390/math13132084

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop