Next Article in Journal
A SARS-CoV-2 Fractional-Order Mathematical Model via the Modified Euler Method
Next Article in Special Issue
Increased Material Density within a New Biomechanism
Previous Article in Journal
Entropy Analysis for Hydromagnetic Darcy–Forchheimer Flow Subject to Soret and Dufour Effects
Previous Article in Special Issue
Symbolic Computation Applied to Cauchy Type Singular Integrals
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Comparison of Symbolic Computations for Solving Linear Delay Differential Equations Using the Laplace Transform Method

by
Michelle Sherman
,
Gilbert Kerr
and
Gilberto González-Parra
*
Department of Mathematics, New Mexico Tech, Socorro, NM 87801, USA
*
Author to whom correspondence should be addressed.
Math. Comput. Appl. 2022, 27(5), 81; https://doi.org/10.3390/mca27050081
Submission received: 23 August 2022 / Revised: 15 September 2022 / Accepted: 19 September 2022 / Published: 23 September 2022

Abstract

:
In this paper, we focus on investigating the performance of the mathematical software program Maple and the programming language MATLAB when using these respective platforms to compute the method of steps (MoS) and the Laplace transform (LT) solutions for neutral and retarded linear delay differential equations (DDEs). We computed the analytical solutions that are obtained by using the Laplace transform method and the method of steps. The accuracy of the Laplace method solutions was determined (or assessed) by comparing them with those obtained by the method of steps. The Laplace transform method requires, among other mathematical tools, the use of the Cauchy residue theorem and the computation of an infinite series. Symbolic computation facilitates the whole process, providing solutions that would be unmanageable by hand. The results obtained here emphasize the fact that symbolic computation is a powerful tool for computing analytical solutions for linear delay differential equations. From a computational viewpoint, we found that the computation time is dependent on the complexity of the history function, the number of terms used in the LT solution, the number of intervals used in the MoS solution, and the parameters of the DDE. Finally, we found that, for linear non-neutral DDEs, MATLAB symbolic computations were faster than Maple. However, for linear neutral DDEs, which are often more complex to solve, Maple was faster. Regarding the accuracy of the LT solutions, Maple was, in a few cases, slightly better than MATLAB, but both were highly reliable.

1. Introduction

Often, engineers and scientists may need to choose a software that is specific to their application or modeling purpose. Some software languages may have different features, speed/computational complexity, tolerances, architecture, libraries, ease of use, etc., that can affect the accuracy of the model. Here, we investigated the performance of the mathematical software program Maple and the programming language MATLAB when applying the method of steps (MoS) and the Laplace transform (LT) methods to solve linear delay differential equations (DDEs). To make the comparison fair, we used the benefits offered by these two programs for symbolic computation, which allows us to derive the solutions of these DDEs in the ways we would think about carrying them out by hand with variables, symbols, functions, and other mathematical formulas. An advantage of using symbolic computation is that it eliminates cases of roundoff errors in intermediate calculations since parameter variables are carried throughout the calculations using infinite precision arithmetic [1,2,3]. However, in some cases, using symbolic computations can lead to slower execution times depending on the program used and the process [4,5,6]. Symbolic computation has been used and proposed for solving many different problems [7,8,9,10,11].
In this paper, we focus on comparing the symbolic mathematical computations of Maple and MATLAB to obtain analytical solutions of linear neutral and non-neutral DDEs by using the LT method. The accuracy of the LT solutions may be determined by comparing them with the MoS solutions [12,13,14,15,16,17]. However, the MoS has a very important limitation since it is a stepwise process that requires solving the relevant differential equation in each respective time interval, which can be computationally expensive. Moreover, for many types of DDEs, we will often encounter the swelling phenomena, i.e., the complexity of the closed-form solution increases rapidly in each successive time interval, making the computations unfeasible [14,16]. On the other hand, the LT method produces a solution that can be evaluated at any particular value of time. Thus, we can compute the approximated solution by evaluating it at any point. Other advantages of the analytical solutions, such as the long-term behavior of the solution, can be seen in [14,15,18,19,20,21,22]. The errors of the LT solutions usually decrease as time increases. On the other hand, for classical numerical solutions, the computation increases as t [14,23,24,25]. However, numerical schemes that solve linear and nonlinear DDEs are useful and, in some cases, are easy to implement. For instance, in [26], the authors developed a numerical scheme based on a fitted difference scheme with the use of exponential basis functions and interpolating quadrature rules to solve first order linear DDEs. Some researchers have proposed different collocation methods to solve linear and nonlinear DDEs [27,28]. For instance, in [29], the Haar wavelet collocation method was applied to obtain the numerical solution of a particular class of DDEs. The method is also applied to systems involving DDEs. In [30], the authors proposed a numerical method for solving linear fractional differential equations using discretization at the Jacobi–Gauss collocation points. Other methods that have been applied that involve more general DDEs can be found in [31,32]. In these works, the authors deal with the differential-difference equation in an infinite-dimensional space and with unbounded domains. Moreover, they consider mixed-type equations that include both forward and backward shifts of the argument. These forms are generated by different temporal and spatial discretizations. It is important to mention that one might expect that some of the techniques and results of retarded differential equations could be applied to mixed-type equations, but, given that the independent variable in this paper is strictly temporal, this may require one to introduce some modifications [32,33]. In addition, these last works deal with idealized nonlinearities in order to obtain a more tractable problem.
It is important to point out that, even for linear DDEs, it might be challenging to obtain an analytical solution. Moreover, in most cases, the neutral delay differential equations (NDDEs) are more difficult to solve due to the appearance of a time delay on the derivative of the state variable. Regarding solving ordinary differential equations (ODEs) and DDEs, the latter is usually more difficult to solve since the derivatives of the state variables depend on the values of the state variable from the past. The classic approach used to obtain the solutions of DDEs is the MoS, but, in many cases, it is unfeasible to advance further in time and obtain the solution in the long term [14,15,34,35,36]. In [14], the authors studied the accuracy of the LT for linear DDEs and, in particular, for NDDEs. In [20], the authors developed a method for solving linear and nonlinear DDEs with a proportional delay using a combination of the LT and the differential transformation method (DTM). The authors mentioned that the convergence rate can be improved by the combination of the two methods. The LT method has also been used to solve linear second order DDEs [37]. However, complex analytical computations and the use of the residue theorem are required [14,37]. Linear DDEs have different applications and have been applied in many problems [17,38,39].
In order to compare the symbolic computations involved in obtaining the solutions of neutral and non-neutral linear DDEs using the LT method, we selected Maple and MATLAB software since they are well-known in the scientific community [3,40]. In Maple, we made use of the symbolic functions diff, dsolve, fsolve, eval, and subs, to name a few, whereas, in MATLAB, we utilized functions from the symbolic math and optimization toolboxes such as fsolve, subs, vpa, and vpasolve. We explored several examples of DDEs of neutral and non-neutral type in order to compare the symbolic computation of Maple and MATLAB. For each example, we computed the solution over some finite time interval using the MoS briefly described in Section 2.1 and the LT method described in Section 3. First, we explored two examples of non-neutral DDEs and then we followed with several examples of neutral DDEs. For each example, we compared: (1) the solutions of the two methods from each program software, (2) the errors associated with each method and software, and (3) the computation times. DDEs have been used in many different fields, including astronomy and epidemiology [17,41,42,43]. For some applications, such as control or communication systems, the computation time may be a critical factor [44,45,46,47]. All computations were performed on a computer system with an Intel(R) Core(TM) i9-10900K CPU @ 3.70 GHz processor and 64 GB RAM.
The organization of this paper is as follows. In Section 2, preliminaries for DDEs, NDDEs, and the MoS for solving linear DDEs are presented. In Section 3, we briefly present the main aspects of the LT method with the relevant equations and formulas. In Section 4, we compare the symbolic computations to obtain the solution of linear DDEs using the LT method. We present several examples related to DDEs and their corresponding numerical solutions. In Section 5, conclusions regarding the symbolic computations required to obtain the solution of DDEs using the LT method are provided.

2. Preliminaries

In this section, we present some preliminary definitions that are needed to solve the different linear DDEs presented in this work. Some preliminaries include background concepts, the Lambert function, the residue theorem, and the MoS. Familiarity with the basic concepts of complex analysis is assumed.

2.1. Method of Steps (MoS)

The traditional method for solving DDEs is with an elementary method called the method of steps [17,34,35,48,49,50]. It is well-known for being a tedious process when being worked out by hand, but the complexity can be drastically simplified with symbolic toolboxes in computer programs [15]. Let us consider a NDDE with fixed delay τ :
y ( t ) = f ( t , y ( t ) , y ( t τ ) , y ( t τ ) ) , t > t 0 , y ( t ) = ϕ 0 ( t ) , t [ τ + t 0 , t 0 ] , y ( t ) = y 0 , t = t 0 ,
where t 0 is the initial time value, τ is a constant/discrete delay, and y 0 is some constant. For DDE initial value problems (IVPs), we require a history function, ϕ 0 ( t ) : [ τ , t 0 ] R , and an initial value, y ( t 0 ) = y 0 for t = t 0 , to solve the problem. This condition implies that DDEs are in fact infinite-dimensional problems since we define an infinite set of initial conditions between t [ τ , t 0 ] .
Using integration properties on the interval [ t 0 , t 0 + τ ] , the solution is then given by y 1 ( t ) , which is a solution to the following NDDE:
y 1 ( t ) = f ( t , y 1 ( t ) , ϕ 0 ( t τ ) , ϕ 0 ( t τ ) ) , t [ t 0 , t 0 + τ ] , y 1 ( t ) = ϕ 0 ( t ) , t = t 0 .
Repeating this process for successive intervals and using the solution over the past interval, we find the following general derivative formula for the nth partition of the IVP ( n N ):
y n ( t ) = f ( t , y n ( t ) , y n 1 ( t τ ) , y n 1 ( t τ ) ) , t [ ( n 1 ) τ , n τ ] , y n ( t ) = y n 1 ( t ) , t = ( n 1 ) τ .
The solutions of { y n ( t ) } n = 1 form a piecewise solution of the original NDDE (1) on the interval t [ 0 , n τ ) .
Even though the MoS provides an analytical solution for DDEs, it has some drawbacks, including time consumption and the complexity of the integrals to be solved over each interval. This method also requires full knowledge of the history before the approach can be used. Since it is a successive process, it can be quite difficult to observe the behavior of the solution or to perform stability analysis of y ( t ) as t .

2.2. Lambert W Function

From ODEs, the roots of the characteristic equation provide information about the solution of a linear ODE or system of linear ODEs. Often times, this equation is a simple polynomial that is easy to solve with algebraic operations or use of the quadratic formula. A linear DDE or system of linear DDEs can be characterized in a similar manner to ODEs by looking at the characteristic equation. Take, for example, the following linear DDE with discrete time delay τ :
y ( t ) = c y ( t τ ) , t > 0 , y ( t ) = ϕ 0 ( t ) , t [ τ , 0 ] , y ( t ) = y 0 , t = 0 ,
where y 0 is the initial value. The characteristic polynomial of the above DDE takes the form of a quasi-polynomial due to the introduction of the exponential, i.e., P ( λ ) = λ e τ λ c y 0 . By setting P ( λ ) = 0 , there could be an infinite number of poles. Through simplifying, we obtain λ e τ λ = c y 0 , which takes the form of a Lambert W function with the equation form z = W ( z ) e W ( z ) , where z is some complex number and W ( z ) is the multi-valued function solution of the equation.
Lambert functions are used when the unknown of an equation appears as both a base and exponent. Equations such as λ e τ λ = c y 0 cannot be solved with algebraic, logarithmic, or exponential properties. For certain values of z, this equation can have an infinite number of solutions called branches of W, and are denoted by W k ( z ) for k Z . One of the branches, called the principal branch, is analytic at zero and is denoted by W 0 ( k = 0 ). For real numbers, the branches W 0 and W 1 can be used to solve the equation y e y = x with real numbers x and y if x 1 e . The solution, y, can be found using the following conditions.
y = W 0 ( x ) if x 0 y = W 1 ( x ) or y = W 0 ( x ) if 1 e x < 0 .
We note that the second condition implies that, in the interval 1 e x < 0 , the equation y e y = x has two real solutions.
In terms of our given problem, the poles of the quasi-polynomial are given by λ k = 1 τ W k ( c y 0 τ ) . The analytical solution to the DDE, then, can be expressed in terms of an infinite number of branches, given as
y ( t ) = k = e λ k t C k , λ k = 1 τ W k ( c y 0 τ )
where the C k s are the coefficients determined from the history function, ϕ 0 ( t ) , and the initial value, y 0 . One can analyze how changes in the parameters c, y 0 , and τ affect the real part of the eigenvalues of the system and, in turn, how that impacts the stability of the solution. Further details and applications of the Lambert function can be found in literature such as [51,52].

2.3. Cauchy’s Residue Theorem

The LT method for solving DDEs requires the use of Cauchy’s residue theorem, which is a powerful tool discussed in complex analysis for evaluating complex real integrals or infinite series [53,54]. Here, it was used to find the solution of a DDE when converting from the s-space back to the t-domain.
Suppose f ( z ) is an analytic function in the complex region R defined by 0 < | z z 0 | < d , or the neighborhood of a point z = z 0 C . Then, z 0 is an isolated singular point of f ( z ) . The function f ( z ) can be represented by the Laurent series expansion as [54]:
f ( z ) = n = C n ( z z 0 ) n
where
C n = 1 2 π i C f ( z ) ( z z 0 ) n + 1 d z
are the coefficients and C is a simple closed contour in R . The principal part of the series is given by the negative portion, n = 1 C n ( z z 0 ) n , where C 1 is called the residue of f ( z ) at z 0 . An isolated singularity is a pole if f ( z ) is of the form [53,54]:
f ( z ) = ψ ( z ) ( z z 0 ) M
where M N is the order of the pole, ψ ( z ) is an analytic function in R , and ψ ( z 0 ) 0 .
Residues of Poles: If M = 1 , then f ( z ) has a simple pole at z 0 . At a simple pole z 0 C , the residue of f ( z ) is given by [54]:
C 1 = Res ( f ( z ) , z 0 ) = lim z z 0 ( z z 0 ) f ( z ) = ψ ( z 0 ) .
If the limit does not exist, then there exists an essential singularity at z 0 . If the limit is zero, then f ( z ) is analytic at z 0 , or z 0 is a removable singularity. If the limit is infinity, then the order is greater than M = 1 [53,54].
Now, suppose f ( z ) can be expressed as a rational function, f ( z ) = N ( z ) D ( z ) , where N ( z ) and D ( z ) are analytic functions in R and D ( z ) has a zero at z 0 . Let D ( z ) = ( z z 0 ) M D ^ ( z ) , where D ^ ( z 0 ) is analytic in R and D ^ ( z 0 ) is nonzero. Using the Taylor series expansion of N ( z ) and D ^ ( z ) , the residue is given as [53,54]:
C 1 = ψ ( z 0 ) = N ( z 0 ) D ( z 0 ) .
If M 2 , then f ( z ) has a pole of order M at z 0 . From Equation (2), the residue of f ( z ) at z 0 is given by [53,54]:
C 1 = 1 ( M 1 ) ! lim z z 0 d M 1 d z M 1 ( z z 0 ) M f ( z ) = ψ ( M 1 ) ( z 0 ) ( M 1 ) ! .
Residue Theorem: Suppose C is a simple closed contour and let f ( z ) be an analytic function inside and on C, excluding a finite number (K) of isolated singularities inside C. Then,
C f ( z ) d z = 2 π i n = 0 K 1 Res ( f ( z ) , z n ) .
The use of Cauchy’s residue theorem in the LT method comes from the definition of the inverse Laplace transform (ILT):
f ( t ) = L 1 { F ( s ) } = 1 2 π i c i c + i F ( s ) e s t d s
where the integration is over a vertical path in the complex plane defined at c = Re ( s ) . From complex analysis, the function e s t is entire and, thus, we require the vertical path to be to the right of all of the poles of F ( s ) . In other words, the real part of all of the poles needs to be to the left of c. Let us denote this vertical path γ shown in Figure 1. To use the residue theorem to evaluate the above integral, we construct a contour path, C R , enclosing all of the poles with radius R as shown in Figure 1 going in a CCW direction. From this contour and Cauchy’s residue theorem, we obtain
C F ( s ) e s t d s = γ F ( s ) e s t d s + C R F ( s ) e s t d s = c i R c + i R F ( s ) e s t d s + C R F ( s ) e s t d s = 2 π i n = 0 N 1 Res ( F ( s ) e s t ; s n ) ,
which implies that
f ( t ) = 1 2 π i lim R , N c i R c + i R F ( s ) e s t d s = n = 0 Res ( F ( s ) e s t ; s n ) 1 2 π i lim R C R F ( s ) e s t d s .
Let I C R = C R F ( s ) e s t d s . We need to show that lim R ( I C R ) = lim R C R F ( s ) e s t d s = 0 . Achieving this will give:
f ( t ) = 1 2 π i c i c + i F ( s ) e s t d s = n = 0 Res ( F ( s ) e s t ; s n )
where c is a fixed real constant s.t. F ( s ) has a finite number of poles located to the left of the line Re ( s ) = c .
Let F ( s ) = N ( s ) D ( s ) . For t > 0 , we enclosed in the left half plane where s = c + R e i θ , θ [ π / 2 , 3 π / 2 ] . Then, d s = i R e i θ d θ , and we obtain
I C R = π / 2 3 π / 2 e ( c + R e i θ ) t · F ( c + R e i θ ) · ( i R e i θ ) d θ | I C R | π / 2 3 π / 2 | e c t + R t e i θ | · | F ( c + R e i θ ) | · | i R e i θ | d θ = π / 2 3 π / 2 | e c t e R t ( cos ( θ ) + i sin ( θ ) ) | · | F ( c + R e i θ ) | · | i ( s c ) | d θ
We find that
| e c t e R t ( cos ( θ ) + i sin ( θ ) ) | = e c t e R t cos ( θ )
and
| i ( s c ) | = | i | · | s c | | s | + | c | < 2 | s |
for sufficiently large | s | . Then, we have
| I C R | 2 e c t π / 2 3 π / 2 e R t cos ( θ ) · | s F ( s ) | d θ
In the integrand, we note that cos ( θ ) is negative for θ ( π / 2 , 3 π / 2 ) . Then, as R , we can observe that | I C R | 0 , which implies that lim R ( I C R ) = lim R C R F ( s ) e s t d s = 0 . Then, we have shown that the ILT of F ( s ) can be represented using residues and is given by
f ( t ) = n = 0 Res ( F ( s ) e s t ; s n ) .

3. Laplace Transform (LT) Method

We denote the LT of the solution y ( t ) as L { y ( t ) } = Y ( s ) . Then, for a given delay term in the state variable, the LT is given by (such that t 0 = 0 )
L { y ( t τ ) } = 0 y ( t τ ) e s t d t = e s τ τ y ( v ) e s v d v = e s τ Y ( s ) + e s τ τ 0 y ( v ) e s v d v .
When the delay is present in the derivative of the state variable, the LT is given by (such that t 0 = 0 ):
L { y ( t τ ) } = 0 y ( t τ ) e s t d t = e s τ τ y ( v ) e s v d v = s e s τ Y ( s ) + e s τ τ 0 y ( v ) e s v d v y ( 0 ) = s e s τ Y ( s ) y ( τ ) + s e s τ τ 0 y ( v ) e s v d v .
The LT method uses Equations (9) and (10) as a part of the process to obtain the solutions of the linear NDDEs. For further details, interested readers are referred to [14,15].

3.1. Theory for Linear Non-Neutral DDE Case

First, we consider a simple linear non-neutral DDE case as shown below, where the solution is derived using the ILT and the residue formula as described in Section 2.3:
y ( t ) = a y ( t ) + b y ( t τ ) + g ( t ) , t > 0 , y ( t ) = ϕ 0 ( t ) , t [ τ , 0 ] .
Considering the homogeneous case, and applying the LT to Equation (11) (using Equation (9)), we obtain the LT transform, Y ( s ) = N ( s ) D ( s ) , of y ( t ) :
Y ( s ) = y ( 0 ) e s τ + b τ 0 ϕ 0 ( v ) e s v d v ( s a ) e s τ b .
Setting D ( s ) = 0 , we find that the poles of Y ( s ) occur at s k = a + 1 τ W k τ b e a τ for k Z . Recall from the definition of the Lambert function that, if the argument τ b e a τ = 1 e , then we encounter a case where the real pole s = a 1 τ is of order M = 2 (since s 0 = s 1 by definition of the W 0 and W 1 Lambert branches). If τ b e a τ 1 e , then the poles s k are of order M = 1 . By applying the ILT, for M = 1 , we obtain the solution
y ( t ) = k Z Re lim s s k c k e s k t ,
where the c k s are the computed residues. Further details can be found in [14].
If the linear non-neutral DDE is non-homogeneous, we obtain the LT:
Y ( s ) = N ( s ) D ( s ) + G ( s ) D ( s )
where G ( s ) is the LT of the function g ( t ) . We denote the additional poles introduced by G ( s ) as s v for v = 1 , 2 , . . . , V (assuming that s k s v , k , v and are of order M = 1 ) with corresponding residues c v . Applying the ILT and the residue theorem, we obtain the solution
y ( t ) = k Z Re lim s s k c k e s k t + v = 1 V Re lim s s k c v ( s v a ) e s v τ b e s v t ,
where
c k = N ( s k ) + G ( s k ) D ( s k ) , k Z
For more details about the LT, the interested readers are referred to [14]. In Section 4.1, we will explore the solutions of both cases (homogeneous and non-homogeneous).

3.2. Theory for NDDE Case

Next, we consider a simple NDDE case as shown below, where the solution is derived using the residue formula as described in Section 2.3:
y ( t ) = a y ( t ) + b y ( t η 1 ) + c y ( t η 2 ) + g ( t ) , t > 0 y ( t ) = ϕ 0 ( t ) , t [ τ , 0 ] ,
where τ = max ( η 1 , η 2 ) , and η 1 , η 2 > 0 . Considering the homogeneous case, and applying the LT to Equation (16) (using Equations (9) and (10)), we obtain the LT transform, Y ( s ) = N ( s ) D ( s ) , of y ( t ) :
Y ( s ) = y ( 0 ) c y ( η 2 ) + b e s η 1 η 1 0 y ( v ) e s v d v + c s e s η 2 η 2 0 y ( v ) e s v d v s a b e s η 1 c s e s η 2 .
Setting D ( s ) = 0 , we can find the poles s k of Y ( s ) . Under some general conditions, the poles s k are of order M = 1 . Then, applying the ILT, we obtain the solution
y ( t ) = k Z Re lim s s k c k e s k t ,
where the c k s are the computed residues. We can analyze different cases depending on g ( t ) , and the signs and magnitudes of a , b , c and η i for i = 1 , 2 . For further details, interested readers are referred to [14].
If the NDDE is non-homogeneous, similar properties hold as in the non-neutral case. In Section 4.2, we explore the solution behavior of different delay cases. Further details and analysis can be found in [14].

4. Comparison of MoS and LT Methods Using Symbolic Computation

Here, we present and discuss different examples of non-neutral DDEs and NDDEs introduced in [14] and apply the MoS and LT methodologies to each example to find the solution of such equations using the Maple and MATLAB software. First, the solutions obtained by each method will be compared between programs to highlight the variances in program computations. Second, the accuracy of the LT method will be evaluated against the analytical solution obtained by the MoS for each program. For this section, we introduce the following notation:
  • e M o S ( t ) = | y M a p l e , M o S ( t ) y M A T L A B , M o S ( t ) | : Absolute error in the solution y ( t ) between Maple and MATLAB via the MoS.
  • e L T ( t ) = | y M a p l e , L T ( t ) y M A T L A B , L T ( t ) | : Absolute error in the solution y ( t ) between Maple and MATLAB via the LT.
  • e M a p ( t ) = | y M a p l e , M o S ( t ) y M a p l e , L T ( t ) | : Absolute error in the solution y ( t ) between the MoS and LT via Maple.
  • e M A T ( t ) = | y M A T L A B , M o S ( t ) y M A T L A B , L T ( t ) | : Absolute error in the solution y ( t ) between the MoS and LT via MATLAB.

4.1. Linear Non-Neutral DDE Examples

The two examples presented in this section demonstrate solutions formed from poles of order M = 1 . Figure 2 and Figure 3 and Table 1 summarize the solution results, error comparisons between MoS and LT in each programming language, and the computation times for the corresponding example.
Example 1.
Let us consider the following DDE:
y ( t ) = 15 y ( t ) + 15 y ( t 1 ) , t > 0 , y ( t ) = ϕ 0 ( t ) = 2 t 6 t ( t + 1 ) 3 , t [ τ , 0 ] ,
where τ = 1 . Taking the LT of Equation (19), we obtain the quasi-polynomial D ( s ) = ( s + 15 ) e s 15 , which has a real pole at s 0 = 0 with residue c 0 = 2.75 (from Equation (4)). The remaining poles and residues are given by: s k = 15 + W k ( 15 e 15 ) , k Z \ { 0 } , with property s k = s k ¯ , and c k = N ( s k ) D ( s k ) . Applying the ILT and Cauchy’s residue theorem, we obtain the LT solution of y ( t ) :
y ( t ) = 2.75 + 2 k = 1 Re lim s s k c k e s k t .
The solution of Example 1 via MoS (over m = 9 intervals) and LT ( n = 5000 ) and in each software program is shown in Figure 2a. We notice that, as t , y ( t ) c 0 = 2.75 since a = b , s 0 = 0 , and each Re ( s k ) < 0 for k Z \ { 0 } . Figure 2b,c demonstrate the variances between the software when evaluating the solution via MoS (blue curve) or the LT (red curve). Figure 2d demonstrates the accuracy of the LT compared to the analytical MoS via Maple (blue curve) and MATLAB (red curve). Upon analyzing Figure 2b,d, we note that the MATLAB MoS solution significantly deviates from its LT solution and the Maple MoS solution. In the MoS process, a piecewise function is produced for each interval and it becomes harder to integrate and solve the sub-IVPs as the functions become more complicated with each step. In the LT solution, we see that, as t progresses, the variance fluctuations in the solution between programs decrease. Each plot shows that error spikes occur every k τ . The reason is that, around these points, the sines of the truncated non-harmonic series do not play any significant role, while the cosine and exponential terms are essentially equal to 1. Therefore, the approximated series solution loses the ability to approximate the solution close to t = k τ . The spikes can be reduced if we include more terms in the truncated series [14].
The computation times via each method and software are shown in Table 1. Given the number of terms to compute for the LT solution, the computation time was higher for both programs compared to the MoS solutions. However, with the use of MATLAB’s symbolic toolbox functions, the computation time for the LT solution was reduced by a factor of four compared to Maple for this particular example.
Example 2.
Let us consider the following DDE:
y ( t ) = 1 5 y ( t ) 5 8 y ( t 3 ) , t > 0 , y ( t ) = ϕ 0 ( t ) = ( t + 3 / 2 ) 2 , t [ τ , 0 ] ,
where τ = 3 . Taking the LT of Equation (20), we obtained the quasi-polynomial D ( s ) = ( s 1 / 5 ) e 3 s 5 / 8 , which has no real poles since D ln ( b τ ) / τ > 0 (see [14]). The complex poles are given by: s k = 1 5 + 1 3 W k 15 8 e 3 / 5 , k Z , with property s ( k + 1 ) = s k ¯ , and corresponding residues c k = N ( s k ) D ( s k ) . Applying the ILT and Cauchy’s residue theorem, we obtained the LT solution of y ( t ) :
y ( t ) = 2 k = 1 R e lim s s k c k e s k t .
The solution of Example 2 via MoS (over m = 9 intervals) and LT ( n = 5000 ) and in each software program is shown in Figure 3a. We noticed that, as t , y ( t ) 0 since Re ( s k ) < 0 k Z . Figure 3b,c demonstrates the variances between the software when evaluating the solution via MoS (blue curve) or the LT (red curve). Figure 3d demonstrates the accuracy of the LT compared to the analytical MoS via Maple (blue curve) and MATLAB (red curve).
Compared to Example 1, Figure 3b,d demonstrates that the performance error in MATLAB’s MoS solution, relative to the Maple MoS solution and the MATLAB LT solution, decreased. One notable difference between Examples 1 and 2 is the reduced complexity in the history function. In Example 1, the history function was a fifth-order polynomial, whereas, here, the history is a second-order polynomial. In both examples, the LT solution is truncated to 5000 terms. Note that truncation creates ringing in the solution near the history function endpoints. In Figure 3d, the LT error decreases exponentially for both software, while, in Figure 2d, we notice that the error has a maximum peak at around t = 8 . In some cases, increasing the number of terms reduces the error further and improves the history function approximation, but at the cost of computational complexity and time.
The computation times via each method and software are shown in Table 1. We noticed that Examples 1 and 2 exhibit similar times since we used the same solution structure in both programs, compatible functions between programs, number of terms to be computed, and number of intervals to integrate over. Given the number of terms to be computed for the LT solution, the computation time was higher for both programs compared to the MoS solutions. However, with the use of MATLAB’s symbolic toolbox functions, the computation time for the LT solution was reduced by 4x compared to Maple for both examples.

4.2. Linear NDDE Examples

The NDDE examples to be discussed conform to the general form in Equation (16). These five examples demonstrate solutions formed from poles of order M = 1 . Figure 4, Figure 5, Figure 6, Figure 7 and Figure 8 and Table 2 summarize the solution results, error comparisons between MoS and LT in each programming language, and the computation times for the corresponding example.
Example 3.
Consider
y ( t ) = y ( t ) + y ( t 1 ) 1 4 y ( t 1 ) , t > 0 , y ( t ) = ϕ 0 ( t ) = t , t [ τ , 0 ] ,
where η 1 = 1 , η 2 = 1 , and τ = max { η 1 , η 2 } = 1 . This example was utilized in [36] to evaluate the performance of a numerical method for solving linear NDDEs using the generalized Lambert W function [55,56]. Applying MoS for a few partitions, we obtained the following analytical solution:
y ( t ) = t , [ τ , 0 ] , t + 1 4 e t 1 4 , [ 0 , 1 ] , t + 1 2 + 3 16 t + 17 16 + 1 4 e e t 1 , [ 1 , 2 ] ,
Taking the LT of Equation (21), we obtained the quasi-polynomial D ( s ) = s 1 e s + 1 4 s e s , which has a real pole at s 0 1.2084 with residue c 0 0.3837 (from Equation (4)). The remaining poles and residues are given by the sequence { s k } k = for k Z \ { 0 } ( s k = s k ¯ ) and c k = N ( s k ) D ( s k ) , respectively. For large j k , these poles approach s j = ln ( | b | ) + ( 2 j + 1 ) π i τ 1.3863 + ( 2 j + 1 ) π i for j N (see [14]). Since s 0 > 0 , then, from the stability analysis, the solution will be unstable. Applying the ILT and Cauchy’s residue theorem, we obtained the LT solution of y ( t ) :
y ( t ) 0.3837 e 1.2084 t + 2 k = 1 R e lim s s k c k e s k t .
The solution of Example 3 via MoS (over m = 5 intervals) and LT ( n = 2000 ) and in each software program is shown in Figure 4a. Figure 4b,c shows that, as t , the variance between each software increases exponentially. Figure 4d indicates that the accuracy of the LT solution improves exponentially as t increases for both programs, and with noticeable spikes every k τ . Compared to the non-neutral examples, NDDE solutions have a higher complexity and, thus, one software may be more beneficial to use vs. another.
Example 4.
Consider
y ( t ) = 2 y ( t ) + y ( t 2 ) + 1 2 y ( t 2 ) , t > 0 , y ( t ) = ϕ 0 ( t ) = sin ( π t ) , t [ τ , 0 ] ,
where η 1 = 2 , η 2 = 2 , and τ = max { η 1 , η 2 } = 2 . This second example was first presented in [57] to study the superconvergence of continuous Galerkin finite element methods for linear NDDEs. Applying the MoS, the following analytical solution of y ( t ) over the interval [ τ , m τ ] was obtained, where m is the number of intervals:
y ( t ) = sin ( π t ) [ τ , 0 ] sin ( π t ) / 2 [ 0 , 2 ] sin ( π t ) / 4 [ 2 , 4 ] sin ( π t ) / ( 2 m ) [ ( m 1 ) τ , m τ ] .
The characteristic equation of the system is given by D ( s ) = s + 2 1 2 s e 2 s e 2 s , which has a real pole at s 0 0.3466 with residue c 0 0.0786 . The remaining poles and residues are given by the sequence { s k } k = for k Z \ { 0 } ( s k = s k ¯ ) and c k = N ( s k ) D ( s k ) , respectively. These poles are exactly given by s k = ln ( c ) + 2 k π i τ 0.3466 + k π i for k N (see [14]). Since s 0 < 0 and Re ( s k ) < 0 k , then, from the stability analysis, the solution will be stable. Applying the ILT and Cauchy’s residue theorem, we obtained the LT solution of y ( t ) :
y ( t ) 0.0786 e 0.3466 t + 2 k = 1 R e lim s s k c k e s k t .
The solution of Example 4 via MoS (over m = 6 intervals) and LT ( n = 500 ) and in each software program is shown in Figure 5a. Figure 5b,c shows that the variance between each software is of order 10 16 and, as t , the error decreases with peak errors every t = k for k N . Figure 5d indicates that the accuracy of the LT solution improves as t increases for both programs, and has an interesting spike located around π τ .
Example 5.
Let us consider
y ( t ) = 3 2 y ( t ) 9 10 y ( t 2 ) + 6 , t > 0 , y ( t ) = ϕ 0 ( t ) = 5 6 ( t + 2 ) t 3 , t [ τ , 0 ] ,
where η 2 = 2 and τ = η 2 . The third example does not contain a state-dependent delay term. This equation is governed by the characteristic quasi-polynomial given by D ( s ) = s + 3 2 + 9 10 s e 2 s , which has a real pole at s 0 0.4602 with residue c 0 2.2994 . The other poles are given by the sequence { s k } k = 1 ( s k = s k ¯ ) . For large j k , these poles approach s j = ln ( | c | ) + ( 2 j + 1 ) π i τ 0.0527 + ( 2 j + 1 ) π i for j N (see [14]). The corresponding residues are given by c k = N ( s k ) D ( s k ) . Applying the ILT and Cauchy’s residue theorem, we obtained the LT solution of y ( t ) :
y ( t ) 2.2994 e 0.4602 t + 2 k = 1 R e lim s s k c k e s k t .
The solution of Example 5 via MoS (over m = 10 intervals) and LT ( n = 500 ) and in each software program is shown in Figure 6a. Figure 6b,c shows that the variance between each software is of order 10 5 via MoS and order 10 15 via LT. From Figure 6d, as t , the error decreases with peak errors every t = k for k N . This indicates that the accuracy of the LT solution improves as t increases for both programs, and has an interesting spike located around π τ .
Example 6.
Let us consider
y ( t ) = 6 y ( t ) 6 y ( t 1 ) + 9 10 y ( t 2 ) , t > 0 , y ( t ) = ϕ 0 ( t ) = t ( 1 + t ) , t [ τ , 0 ] ,
where η 1 = 1 , η 2 = 2 , and τ = max { η 1 , η 2 } = η 2 . The fourth example has the characteristic quasi-polynomial given by D ( s ) = s + 6 9 10 s e 2 s + 6 e s , which has no real poles. The complex poles are given by the sequence { s k } k = 1 ( s k = s k ¯ ) . For large j k , these poles approach s j = ln ( c ) + 2 j π i τ 0.0527 + j π i for j N (see [14]). The corresponding residues are given by c k = N ( s k ) D ( s k ) . Applying the ILT and Cauchy’s residue theorem, we obtained the LT solution of y ( t ) :
y ( t ) 2 k = 1 R e lim s s k c k e s k t .
The solution of Example 6 via MoS (over m = 7 τ intervals) and LT ( n = 500 ) and in each software program is shown in Figure 7a. Figure 7b,c shows that the variance between each software is of order 10 9 via MoS and order 10 16 via LT. We see similar deviances in the MoS solutions compared to Example 5 between each software. A larger timespan would be needed to deduce conclusions on the similarities of the LT solution between each software. From Figure 6d, as t , the error decreases, with peak errors every t = k τ for k N .
Example 7.
Let us consider
y ( t ) = 6 y ( t ) + 6 y ( t 2 ) + 2 3 y ( t 1 ) , t > 0 , y ( t ) = ϕ 0 ( t ) = 4 + t , t [ τ , 0 ] ,
where η 1 = 2 , η 2 = 1 , and τ = max { η 1 , η 2 } = η 1 . The fifth example in Equation (25) has the characteristic quasi-polynomial given by D ( s ) = s + 6 2 3 s e s 6 e 2 s , which has a real pole at s 0 = 0 with residue c 0 3.0811 . The remaining poles are divided into two sequences (see [14]). One sequence of poles, { s k } k = 1 ( s k = s k ¯ ) , lies relatively close to the imaginary axis, which, for large j k , approaches s j = ln ( c ) + 2 j π i η 2 0.4055 + 2 j π i for j N . The second sequence of poles, { s k } k = 1 ( s k = s k ¯ ) , is offset from the imaginary axis, which, for large j k , approaches s j = W j b c η 2 η 1 η 1 η 2 for j N . The corresponding residues are given by c k , k = lim s s k , s k N ( s ) 1 + 2 3 ( s 1 ) e s + 12 e 2 s . Then, the solution is of the form
y ( t ) 3.0811 + 2 k = 1 Re lim s s k c k e s k t + 2 k = 1 R e lim s s k c k e s k t .
The solution of Example 7 via MoS (over m = 7 τ intervals) and LT ( n = 500 ) and in each software program is shown in Figure 8a. Figure 8b,c shows that the variance between each software is of order 10 9 via MoS and order 10 15 via LT. We see similar deviances in the MoS solutions near the boundary intervals compared to Example 5. Relative to previous NDDE examples, Example 7 has a larger error in the LT solution vs. the analytical MoS via both software, with an order of magnitude 10 3 as shown in Figure 8d, despite the simplicity of the history function. Nevertheless, we can observe that, as t , the error decreases.
The computation times via each method and software are shown in Table 2. We make the following notes regarding the time computation results:
  • From Maple MoS solutions, the order of time computation is as follows:
    Example 5 > Example 6 > Example 7 > Example 4 > Example 3.
  • From Maple LT solutions, the order of time computation is as follows:
    Example 7 > Example 3 > Example 6 > Example 5 > Example 4.
  • From MATLAB MoS solutions, the order of time computation is as follows:
    Example 4 > Example 5 > Example 7 > Example 6 > Example 3.
  • From MATLAB LT solutions, the order of time computation is as follows:
    Example 3 > Example 7 > Example 6 > Example 4 > Example 5.
From these results, we notice that the computation time is dependent on the complexity of the history function, the number of terms used in the LT solution, the number of intervals used in the MoS solution, and the magnitude of the parameters of the NDDE. Regarding MoS solutions, Examples 4 and 5 both have a complicated history function (one is a fourth-order polynomial and the other is periodic), and we observe that both programs took longer to compute the solutions. Regarding LT solutions, Examples 3 and 7 took the most time to compute via both software, even though Example 1 had the most terms. The differences between these examples is that Example 7 consisted of an extra sequence of poles due to the different delays in the state-dependent term and the derivative-of-state-dependent term. Nevertheless, Example 3 was found to be the quickest to compute via MoS for both softwares, whereas Examples 4 and 5 were found to be the quickest to compute via LT. We also note that, in all cases, Maple’s computation time was found to significantly outrank MATLAB’s computation time.
We notice that Examples 3 and 4 exhibit similar times since we used the same solution structure in both programs, compatible functions between programs, number of terms to be computed, and number of intervals to integrate over. Given the number of terms to be computed for the LT solution, the computation time was higher for both programs compared to the MoS solutions. However, with the use of MATLAB’s symbolic toolbox functions, the computation time for the LT solution was reduced by 4x compared to Maple for both examples.

5. Conclusions

In this paper, we investigated the symbolic mathematical computational performance of the software program Maple and the programming language MATLAB when applying the method of steps (MoS) and the Laplace transform (LT) methods to solve neutral and retarded linear DDEs. Of particular interest was comparing how these programs performed. The exact, analytic MoS solution was used to aid in this comparison. However, the main reason for why most of the graphs only include the first 5–10 time-intervals is due to the fact that the method of steps often could not compute the solution beyond these intervals. The Laplace solution is an infinite series, which requires one to compute the relevant poles along with their associated residues. We computed the analytical solutions using Maple and MATLAB in order to take advantage of their respective symbolic computation features. The accuracy of the Laplace method solutions were measured by comparing them with those obtained by the method of steps. The Laplace method produces an analytical solution that can be evaluated at any particular value of time. The results obtained emphasize that symbolic computational software is a powerful tool, capable of computing analytic solutions for linear delay differential equations, including neutral ones. From a computational viewpoint, we found that the computation time is dependent on the complexity of the history function, the number of terms used in the LT solution, the number of intervals used in the MoS solution, and the DDE parameters. We found that, for linear non-neutral DDEs, MATLAB symbolic computations were faster than the ones from Maple. However, for the linear neutral DDEs, which are often more difficult to solve, Maple was faster. Regarding accuracy, it is important to point out that we compared Maple and MATLAB via MoS and LT. The differences between both software were smaller for the LT in comparison to the MoS. In addition, the accuracy of the LT solutions using Maple were, in a few cases, slightly better than the ones generated by MATLAB. However, both were reliable, but we can mention that Maple lightly surpasses MATLAB in symbolic computation due to its symbolic capabilities/nature. Finally, we would like to mention some limitations of the LT irrespective of the software choice. The LT method is only applicable for linear DDEs due to the Laplace transform definition. Thus, nonlinear DDEs should be solved by other means. In addition, we implemented the LT for scalar linear DDEs with constant coefficients and a finite number of delays. However, the LT method can also be extended to solve first-order linear DDE systems. In this work, we applied the LT method to homogeneous and non-homogenous DDEs. Future works that are in progress include solving linear non-homogeneous DDEs with Dirac delta function inputs, with one related goal being to develop a Green’s function type kernel.

Author Contributions

Conceptualization, M.S. and G.G.-P.; methodology, M.S., G.K. and G.G.-P.; software, M.S., G.K. and G.G.-P.; validation, M.S., G.K. and G.G.-P.; formal analysis, M.S., G.K. and G.G.-P.; investigation, M.S., G.K. and G.G.-P.; resources, M.S., G.K. and G.G.-P.; writing—original draft preparation, M.S., G.K. and G.G.-P.; writing—review and editing, M.S., G.K. and G.G.-P.; visualization, M.S., G.K. and G.G.-P.; supervision, G.G.-P. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Alnæs, M.S.; Mardal, K.A. On the efficiency of symbolic computations combined with code generation for finite element methods. ACM Trans. Math. Softw. TOMS 2010, 37, 1–26. [Google Scholar] [CrossRef]
  2. Chaparro, L.; Akan, A. Signals and Systems Using MATLAB; Academic Press: Cambridge, MA, USA, 2018. [Google Scholar]
  3. Gander, W.; Gander, M.J.; Kwok, F. Scientific Computing-An Introduction Using Maple and MATLAB; Springer: Berlin/Heidelberg, Germany, 2014; Volume 11. [Google Scholar]
  4. Herber, D.R.; Sundarrajan, A.K. On the uses of linear-quadratic methods in solving nonlinear dynamic optimization problems with direct transcription. In Proceedings of the ASME International Mechanical Engineering Congress and Exposition, Virtual, 16–19 November 2020; Volume 84546, p. V07AT07A003. [Google Scholar]
  5. Petcu, D.; Gheorghiu, D. PAVIS: A parallel virtual environment for solving large mathematical problems. In Parallel Computing: Advances and Current Issues; World Scientific: Singapore, 2002; pp. 490–497. [Google Scholar]
  6. Sam, P.; Nanakorn, P.; Theerakittayakorn, K.; Suttakul, P. Closed-form effective elastic constants of frame-like periodic cellular solids by a symbolic object-oriented finite element program. Int. J. Mech. Mater. Des. 2017, 13, 363–383. [Google Scholar] [CrossRef]
  7. Dorrah, H.T.; Gabr, W.I.; Elsayed, M.S. Generic symbolic parameters varying systems frameworks versus other techniques: Returning back to the roots. Alex. Eng. J. 2018, 57, 3577–3594. [Google Scholar] [CrossRef]
  8. Falcone, A.; Garro, A.; Mukhametzhanov, M.S.; Sergeyev, Y.D. A Simulink-based software solution using the Infinity Computer methodology for higher order differentiation. Appl. Math. Comput. 2021, 409, 125606. [Google Scholar] [CrossRef]
  9. Gama, S.M.; Chertovskih, R.; Zheligovsky, V. Computation of kinematic and magnetic α-effect and eddy diffusivity tensors by Padé approximation. Fluids 2019, 4, 110. [Google Scholar] [CrossRef]
  10. Kovács, Z. Real-time animated dynamic geometry in the classrooms by using fast Gröbner basis computations. Math. Comput. Sci. 2017, 11, 351–361. [Google Scholar] [CrossRef]
  11. Krämer, W. Computer-assisted proofs and symbolic computations. Serdica J. Comput. 2010, 4, 73–84. [Google Scholar]
  12. Erneux, T. Applied Delay Differential Equations; Springer: Berlin/Heidelberg, Germany, 2009; Volume 3. [Google Scholar]
  13. Ha, P.; Mehrmann, V. Analysis and numerical solution of linear delay differential-algebraic equations. BIT Numer. Math. 2016, 56, 633–657. [Google Scholar] [CrossRef]
  14. Kerr, G.; González-Parra, G. Accuracy of the Laplace transform method for linear neutral delay differential equations. Math. Comput. Simul. 2022, 197, 308–326. [Google Scholar] [CrossRef]
  15. Kerr, G.; González-Parra, G.; Sherman, M. A new method based on the Laplace transform and Fourier series for solving linear neutral delay differential equations. Appl. Math. Comput. 2022, 420, 126914. [Google Scholar] [CrossRef]
  16. Roussel, M.R. Delay-differential equations. In Nonlinear Dynamics: A Hands-on Introductory Survey; Morgan & Claypool Publishers: San Rafael, CA, USA, 2019. [Google Scholar]
  17. Smith, H.L. An Introduction to Delay Differential Equations with Applications to the Life Sciences; Springer: New York, NY, USA, 2011; Volume 57. [Google Scholar]
  18. Alfifi, H.Y. Feedback control for a diffusive and delayed Brusselator model: Semi-analytical solutions. Symmetry 2021, 13, 725. [Google Scholar] [CrossRef]
  19. Aljahdaly, N.H.; El-Tantawy, S. On the multistage differential transformation method for analyzing damping Duffing oscillator and its applications to plasma physics. Mathematics 2021, 9, 432. [Google Scholar] [CrossRef]
  20. Chamekh, M.; Elzaki, T.M.; Brik, N. Semi-analytical solution for some proportional delay differential equations. SN Appl. Sci. 2019, 1, 148. [Google Scholar] [CrossRef]
  21. González-Parra, G.; Arenas, A.J.; Jódar, L. Piecewise finite series solutions of seasonal diseases models using multistage Adomian method. Commun. Nonlinear Sci. Numer. Simul. 2009, 14, 3967–3977. [Google Scholar] [CrossRef]
  22. Shakeri, F.; Dehghan, M. Solution of delay differential equations via a homotopy perturbation method. Math. Comput. Model. 2008, 48, 486–498. [Google Scholar] [CrossRef]
  23. Faheem, M.; Raza, A.; Khan, A. Collocation methods based on Gegenbauer and Bernoulli wavelets for solving neutral delay differential equations. Math. Comput. Simul. 2021, 180, 72–92. [Google Scholar] [CrossRef]
  24. Faheem, M.; Raza, A.; Khan, A. Wavelet collocation methods for solving neutral delay differential equations. Int. J. Nonlinear Sci. Numer. Simul. 2021. [Google Scholar] [CrossRef]
  25. Mohamed, S.; Khader, M. Numerical treatment for first order neutral delay differential equations using spline functions. Eng. Math. Lett. 2012, 1, 32–43. [Google Scholar]
  26. Cimen, E.; Ekinci, Y. Numerical method for a neutral delay differential problem. Int. J. Math. Comput. Sci. 2017, 1, 1–11. [Google Scholar]
  27. Adel, W.; Sabir, Z. Solving a new design of nonlinear second-order Lane–Emden pantograph delay differential model via Bernoulli collocation method. Eur. Phys. J. Plus 2020, 135, 427. [Google Scholar] [CrossRef]
  28. Bellour, A.; Bousselsal, M.; Laib, H. Numerical Solution of Second-Order Linear Delay Differential and Integro-Differential Equations by Using Taylor Collocation Method. Int. J. Comput. Methods 2020, 17, 1950070. [Google Scholar] [CrossRef]
  29. Aziz, I.; Amin, R. Numerical solution of a class of delay differential and delay partial differential equations via Haar wavelet. Appl. Math. Model. 2016, 40, 10286–10299. [Google Scholar] [CrossRef]
  30. Peykrayegan, N.; Ghovatmand, M.; Noori Skandari, M. On the convergence of Jacobi-Gauss collocation method for linear fractional delay differential equations. Math. Methods Appl. Sci. 2021, 44, 2237–2253. [Google Scholar] [CrossRef]
  31. Elmer, C.E.; Van Vleck, E.S. Anisotropy, propagation failure, and wave speedup in traveling waves of discretizations of a Nagumo PDE. J. Comput. Phys. 2003, 185, 562–582. [Google Scholar] [CrossRef]
  32. Van Vleck, E.S.; Mallet-Paret, J.; Cahn, J.W. Traveling wave solutions for systems of ODEs on a two-dimensional spatial lattice. SIAM J. Appl. Math. 1998, 59, 455–493. [Google Scholar] [CrossRef]
  33. Hale, J.K.; Lunel, S.M.V. Introduction to Functional Differential Equations; Springer: Berlin/Heidelberg, Germany, 2013; Volume 99. [Google Scholar]
  34. Cooke, K.L. Differential—Difference equations. In International Symposium on Nonlinear Differential Equations and Nonlinear Mechanics; Elsevier: Amsterdam, The Netherlands, 1963; pp. 155–171. [Google Scholar]
  35. Heffernan, J.M.; Corless, R.M. Solving some delay differential equations with computer algebra. Math. Sci. 2006, 31, 21–34. [Google Scholar]
  36. Jamilla, C.; Mendoza, R.; Mezo, I. Solutions of neutral delay differential equations using a generalized Lambert W function. Appl. Math. Comput. 2020, 382, 125334. [Google Scholar] [CrossRef]
  37. Cimen, E.; Uncu, S. On the solution of the delay differential equation via Laplace transform. Commun. Math. Appl. 2020, 11, 379–387. [Google Scholar]
  38. Jamilla, C.U.; Mendoza, R.G.; Mendoza, V.M.P. Explicit solution of a Lotka-Sharpe-McKendrick system involving neutral delay differential equations using the r-Lambert W function. Math. Biosci. Eng. 2020, 17, 5686–5708. [Google Scholar] [CrossRef]
  39. Bellen, A.; Guglielmi, N.; Ruehli, A.E. Methods for linear systems of circuit delay differential equations of neutral type. IEEE Trans. Circuits Syst. I Fundam. Theory Appl. 1999, 46, 212–215. [Google Scholar] [CrossRef]
  40. Shampine, L.F.; Thompson, S. Solving ddes in matlab. Appl. Numer. Math. 2001, 37, 441–458. [Google Scholar] [CrossRef]
  41. Ebaid, A.; Al-Enazi, A.; Albalawi, B.Z.; Aljoufi, M.D. Accurate approximate solution of Ambartsumian delay differential equation via decomposition method. Math. Comput. Appl. 2019, 24, 7. [Google Scholar] [CrossRef]
  42. González-Parra, G.; Sultana, S.; Arenas, A.J. Mathematical modeling of toxoplasmosis considering a time delay in the infectivity of oocysts. Mathematics 2022, 10, 354. [Google Scholar] [CrossRef]
  43. Rihan, F.A. Delay Differential Equations and Applications to Biology; Springer: Berlin/Heidelberg, Germany, 2021. [Google Scholar]
  44. Alagoz, B.B.; Tepljakov, A.; Ates, A.; Petlenkov, E.; Yeroglu, C. Time-domain identification of one noninteger order plus time delay models from step response measurements. Int. J. Model. Simul. Sci. Comput. 2019, 10, 1941011. [Google Scholar] [CrossRef]
  45. Altosole, M.; Campora, U.; Figari, M.; Laviola, M.; Martelli, M. A diesel engine modelling approach for ship propulsion real-time simulators. J. Mar. Sci. Eng. 2019, 7, 138. [Google Scholar] [CrossRef] [Green Version]
  46. Krämer, M.; Rösmann, C.; Hoffmann, F.; Bertram, T. Model predictive control of a collaborative manipulator considering dynamic obstacles. Optim. Control. Appl. Methods 2020, 41, 1211–1232. [Google Scholar] [CrossRef]
  47. van den Berg, R.; Lefeber, E.; Rooda, K. Modeling and control of a manufacturing flow line using partial differential equations. IEEE Trans. Control Syst. Technol. 2007, 16, 130–136. [Google Scholar] [CrossRef]
  48. Bauer, R.J.; Mo, G.; Krzyzanski, W. Solving delay differential equations in S-ADAPT by method of steps. Comput. Methods Programs Biomed. 2013, 111, 715–734. [Google Scholar] [CrossRef]
  49. Kalmár-Nagy, T. Stability analysis of delay-differential equations by the method of steps and inverse Laplace transform. Differ. Equ. Dyn. Syst. 2009, 17, 185–200. [Google Scholar] [CrossRef]
  50. Kaslik, E.; Sivasundaram, S. Analytical and numerical methods for the stability analysis of linear fractional delay differential equations. J. Comput. Appl. Math. 2012, 236, 4027–4041. [Google Scholar] [CrossRef]
  51. Corless, R.M.; Gonnet, G.H.; Hare, D.E.; Jeffrey, D.J.; Knuth, D.E. On the LambertW function. Adv. Comput. Math. 1996, 5, 329–359. [Google Scholar] [CrossRef]
  52. Yi, S.; Duan, S.; Nelson, P.; Ulsoy, A. The Lambert W Function Approach to Time Delay Systems and the LambertW_DDE Toolbox. IFAC Proc. Vol. 2012, 45, 114–119. [Google Scholar] [CrossRef]
  53. Brown, J.W.; Churchill, R.V. Complex Variables and Applications, 8th ed.; McGraw-Hill: New York, NY, USA, 2009. [Google Scholar]
  54. Ablowitz, M.J.; Fokas, A.S. Complex Variables: Introduction and Applications, 2nd ed.; Cambridge University Press: Cambridge, UK, 2003. [Google Scholar] [CrossRef]
  55. Mező, I.; Baricz, A. On the generalization of the Lambert function. Trans. Am. Math. Soc. 2017, 369, 7917–7934. [Google Scholar] [CrossRef]
  56. Scott, T.C.; Mann, R.; Martinez, R.E. General relativity and quantum mechanics: Towards a generalization of the Lambert W function A Generalization of the Lambert W Function. Appl. Algebra Eng. Commun. Comput. AAECC 2006, 17, 41–47. [Google Scholar] [CrossRef]
  57. Hongyu, Q.; Qifeng, Z.; Shaohua, W. The continuous Galerkin finite element methods for linear neutral delay differential equations. Appl. Math. Comput. 2019, 346, 76–85. [Google Scholar] [CrossRef]
Figure 1. Bromwich contour (interested readers are referred to [54]).
Figure 1. Bromwich contour (interested readers are referred to [54]).
Mca 27 00081 g001
Figure 2. Solution results of Equation (19) over t [ 0 , 9 τ ] ( n = 5000 terms): plot of (a) the solution y ( t ) via each method and software, (b) e M o S ( t ) , (c) e L T ( t ) , (d) e M a p ( t ) and e M A T ( t ) .
Figure 2. Solution results of Equation (19) over t [ 0 , 9 τ ] ( n = 5000 terms): plot of (a) the solution y ( t ) via each method and software, (b) e M o S ( t ) , (c) e L T ( t ) , (d) e M a p ( t ) and e M A T ( t ) .
Mca 27 00081 g002
Figure 3. Solution results of Equation (20) over t [ 0 , 9 τ ] ( n = 5000 terms): plot of (a) the solution y ( t ) via each method and software, (b) e M o S ( t ) , (c) e L T ( t ) , (d) e M a p ( t ) and e M A T ( t ) .
Figure 3. Solution results of Equation (20) over t [ 0 , 9 τ ] ( n = 5000 terms): plot of (a) the solution y ( t ) via each method and software, (b) e M o S ( t ) , (c) e L T ( t ) , (d) e M a p ( t ) and e M A T ( t ) .
Mca 27 00081 g003
Figure 4. Solution results of Equation (21) over t [ 0 , 5 τ ] ( n = 2000 terms): plot of (a) the solution y ( t ) via each method and software, (b) e M o S ( t ) , (c) e L T ( t ) , (d) e M a p ( t ) and e M A T ( t ) .
Figure 4. Solution results of Equation (21) over t [ 0 , 5 τ ] ( n = 2000 terms): plot of (a) the solution y ( t ) via each method and software, (b) e M o S ( t ) , (c) e L T ( t ) , (d) e M a p ( t ) and e M A T ( t ) .
Mca 27 00081 g004
Figure 5. Solution results of Equation (22) over t [ 0 , 6 τ ] ( n = 500 terms): plot of (a) the solution y ( t ) via each method and software, (b) e M o S ( t ) , (c) e L T ( t ) , (d) e M a p ( t ) and e M A T ( t ) .
Figure 5. Solution results of Equation (22) over t [ 0 , 6 τ ] ( n = 500 terms): plot of (a) the solution y ( t ) via each method and software, (b) e M o S ( t ) , (c) e L T ( t ) , (d) e M a p ( t ) and e M A T ( t ) .
Mca 27 00081 g005
Figure 6. Solution results of Equation (23) over t [ 0 , 10 τ ] ( n = 500 terms): plot of (a) the solution y ( t ) via each method and software, (b) e M o S ( t ) , (c) e L T ( t ) , (d) e M a p ( t ) and e M A T ( t ) .
Figure 6. Solution results of Equation (23) over t [ 0 , 10 τ ] ( n = 500 terms): plot of (a) the solution y ( t ) via each method and software, (b) e M o S ( t ) , (c) e L T ( t ) , (d) e M a p ( t ) and e M A T ( t ) .
Mca 27 00081 g006
Figure 7. Solution results of Equation (24) over t [ 0 , 7 τ ] ( n = 500 terms): plot of (a) the solution y ( t ) via each method and software, (b) e M o S ( t ) , (c) e L T ( t ) , (d) e M a p ( t ) and e M A T ( t ) .
Figure 7. Solution results of Equation (24) over t [ 0 , 7 τ ] ( n = 500 terms): plot of (a) the solution y ( t ) via each method and software, (b) e M o S ( t ) , (c) e L T ( t ) , (d) e M a p ( t ) and e M A T ( t ) .
Mca 27 00081 g007
Figure 8. Solution results of Equation (25) over t [ 0 , 7 τ ] ( n = 500 terms): plot of (a) the solution y ( t ) via each method and software, (b) e M o S ( t ) , (c) e L T ( t ) , (d) e M a p ( t ) and e M A T ( t ) .
Figure 8. Solution results of Equation (25) over t [ 0 , 7 τ ] ( n = 500 terms): plot of (a) the solution y ( t ) via each method and software, (b) e M o S ( t ) , (c) e L T ( t ) , (d) e M a p ( t ) and e M A T ( t ) .
Mca 27 00081 g008
Table 1. Computation time comparison for the non-neutral systems in Equations (19) and (20).
Table 1. Computation time comparison for the non-neutral systems in Equations (19) and (20).
Example #ProgramMethodTime (s)
1MapleMoS0.407
LT246.031
MATLABMoS1.335
LT64.914
2MapleMoS0.485
LT269.828
MATLABMoS1.385
LT64.914
Table 2. Computation time comparison for the NDDE systems in Equations (21)–(25).
Table 2. Computation time comparison for the NDDE systems in Equations (21)–(25).
Example #ProgramMethodTime (s)
3MapleMoS0.203
LT84.219
MATLABMoS0.838
LT870.978
4MapleMoS0.296
LT15.470
MATLABMoS2.022
LT32.663
5MapleMoS0.453
LT17.110
MATLABMoS1.572
LT29.052
6MapleMoS0.438
LT42.344
MATLABMoS1.130
LT284.252
7MapleMoS0.297
LT89.093
MATLABMoS1.280
LT349.196
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Sherman, M.; Kerr, G.; González-Parra, G. Comparison of Symbolic Computations for Solving Linear Delay Differential Equations Using the Laplace Transform Method. Math. Comput. Appl. 2022, 27, 81. https://doi.org/10.3390/mca27050081

AMA Style

Sherman M, Kerr G, González-Parra G. Comparison of Symbolic Computations for Solving Linear Delay Differential Equations Using the Laplace Transform Method. Mathematical and Computational Applications. 2022; 27(5):81. https://doi.org/10.3390/mca27050081

Chicago/Turabian Style

Sherman, Michelle, Gilbert Kerr, and Gilberto González-Parra. 2022. "Comparison of Symbolic Computations for Solving Linear Delay Differential Equations Using the Laplace Transform Method" Mathematical and Computational Applications 27, no. 5: 81. https://doi.org/10.3390/mca27050081

APA Style

Sherman, M., Kerr, G., & González-Parra, G. (2022). Comparison of Symbolic Computations for Solving Linear Delay Differential Equations Using the Laplace Transform Method. Mathematical and Computational Applications, 27(5), 81. https://doi.org/10.3390/mca27050081

Article Metrics

Back to TopTop