Abstract
This paper examines the noise handling properties of three of the most widely used algorithms for numerically inverting the Laplace transform. After examining the genesis of the algorithms, their error handling properties are evaluated through a series of standard test functions in which noise is added to the inverse transform. Comparisons are then made with the exact data. Our main finding is that the for “noisy data”, the Talbot inversion algorithm performs with greater accuracy when compared to the Fourier series and Stehfest numerical inversion schemes as they are outlined in this paper.
Keywords
The Laplace transform
The Laplace transform is an integral transform defined as follows.
Let f(t) be defined for
Thus,
Analytically, the inverse Laplace transform is usually obtained using the techniques of complex contour integration with the resulting set of standard transforms presented in tables. 1
However, using the Laplace transform to obtain solutions of differential equations can lead to solutions in the Laplace domain, which are not easily invertible to the real domain by analytical means. Thus, numerical inversion techniques are used to convert the solution from the Laplace to the real domain.
The inverse Laplace transform and precision
The recovery of the function f(t) is via the inverse Laplace transform, which is most commonly defined by the Bromwich integral formula
The choice of s in equation (1) and so in equation (3) is not an arbitrary one. If we choose s such that it lies on the positive real axis, we are treating the solution of equation (3) as a positive real integral equation. The problem here is that the inverse problem is known to be ill-posed meaning that small changes in the values of F(s) can lead to large errors in the values for f(t). 2
Hence, when Laplace transform methods are used in finding numerical solutions to partial differential equations, the corresponding inversion methods can be highly sensitive to the inevitable noisy data that arises in their computation via truncation and round off error, a process that is exacerbated in nonlinear schemes. Abate and Valko 3 have shown that to some extent these errors can be curtailed by working in a multi-precision environment, however, as we show in the “Tests” section later, a small amount of noise in the data can significantly perturb the solution. When this is the case, it becomes difficult for unlimited precision to aid in the convergence of the algorithm to the correct solution.
The algorithms
There are over 100 algorithms available for inverting the Laplace transform with numerous comparative studies. Examples include Duffy,
2
Narayanan and Beskos,
4
Cohen
5
and, perhaps, the most comprehensive by Davies and Martin.
6
However, for the purposes of this investigation we apply our tests using “Those algorithms that have passed the test of time”,
3
this is because these algorithms are reported to give the most accurate results on the widest variety of functions.2,6 These fall into four groups:
Fourier series expansion. Combination of Gaver functionals. Laguerre function expansion. Deformation of the Bromwich contour.
Derivations of particular versions of these algorithms are given in the sections which follow. In the upcoming sections, we examine the Stehfest algorithm, which is a widely used version of the Gaver functionals and the Talbot algorithm that uses a particular deformation of the Bromwich contour.
However, for now we do not run our tests using the Laguerre function expansion. While we do intend to investigate this method later on in our work, our choices in this work have been made based on the ease of implementation of the inversion method—an issue connected to parameter choice and control. The Laguerre method requires more than two parameters to effectively compute the desired transform, while the other three methods can perform reasonably well when defined using just the one parameter.
The Fourier series method
In their survey of algorithms for inverting the Laplace transform, Davies and Martin
6
note that the Fourier series method without accelerated convergence gives good accuracy on a wide variety of functions. Since the Laplace transform is closely related to the Fourier transform, it is not surprising that inversion methods based on a Fourier series expansion would yield accurate results. In fact, the two-sided Laplace transform can be derived from the Fourier transform in the following way. We can define the Fourier transform as
This Fourier transform exists provided f(t) is an absolutely integrable function, i.e.
As many functions do not satisfy condition (6), f(t) is multiplied by the exponential dampening factor
LePage
7
noted that the integral given by equation (8) can be written in two parts as follows
The second term in the above expression is referred to as the one-sided Laplace transform or simply the Laplace transform. Thus, s is defined as a complex variable in the definition of the Laplace transform.
As before the inverse Laplace transform is given as
With
Equations (1) and (11) can be replaced by the cosine transform pair
Dunbar and Abate
8
applied a trapezoid rule to equation (13) resulting in the Fourier series approximation
This series can be summed much faster than equation (16) as there are no cosines to compute. 10 This algorithm is relatively easy to implement with u being the only real varying parameter.
However, as pointed out by Crump 11 for the expression in equation (17), the transform F(s) must now be computed for a different set of s-values for each distinct t. Since this type of application occurs often in practice in which the numerical computation of F(s) is itself quite time consuming, this may not be an economical inversion algorithm to use. These drawbacks to some extent can be overcome by using the fast Fourier transform techniques.10,12
Crump 11 also extends this method to one of faster convergence by making use of the already computed imaginary parts. There are several other acceleration schemes for example, those outlined by Cohen; 5 however, these acceleration methods in general require the introduction of new parameters, which for the purpose of this investigation we wish to avoid.
The Stehfest algorithm
Davies and Martin 13 cite the Stehfest 14 algorithm as providing accurate results on a wide variety of test functions. Since that time, this algorithm has become widely used for inverting the Laplace transform, being favored due its reported accuracy and ease of implementation.
Here, we give a brief overview of the evolution of the algorithm from a probability distribution function to the Gaver functional whose asymptotic expansion leads to an acceleration scheme which yields the algorithm in its most widely used form.
Gaver
15
investigated a method for obtaining numerical information on the time dependent behavior of stochastic processes, which often arise in queuing theory. The investigation involved examining the properties of the three parameter class of density functions namely
While the expression in equation (20) can be used to successfully invert the Laplace transform for a large class of functions, its rate of convergence is slow.2,13 However, Gaver
15
has shown that equation (20), with
For the conditions on m and n and justification for the substitution for a referred to the above, see Gaver. 15 This asymptotic expansion provides scope for applying various acceleration techniques enabling a more viable application of the basic algorithm.
Stehfest’s acceleration scheme
For the purposes of the following Stehfest’s derivation it will be convenient to rewrite equation (20) as
Stehfest
1
begins by supposing we have N values for
As pointed out by Stehfest,
1
the αj’s are the same for each of the above expansions and by using a suitable linear combination, the first (
Finally, Stehfest
14
substituted these results into equation (23) and obtained the inversion formula
The Talbot algorithm
Equations (4) to (8) showed that the Laplace transform can be seen as a Fourier transform of the function
Hence, the Fourier transform inversion formula can be applied to recover the function, thus
as
This result provides a direct means of obtaining the inverse Laplace transform. In practice, the integral in equation (31) is evaluated using contour integration
Derivation of the fixed Talbot contour
In the derivation that follows Abate and Valko 3 and Murli and Rizzardi 16 are used as the primary basis for extending the explanation of the derivation of the Talbot algorithm for inverting the Laplace transform.
Abate and Valko
3
begin with the Bromwich inversion integral along the Bromwich contour B with the substitution
So f(t) can be expressed as
However, this evaluation can be achieved by deforming the contour B into a path of constant phase, thus eliminating the oscillations in the imaginary component. These paths of constant phase are also paths of steepest decent for the real part of the integrand.3,16,17
There are, in general, a number of contours for which the imaginary component remains constant and so we choose one on which the real part attains a maximum on the interior (a saddle point) and this occurs at
With
Expressing u + iv as
With
Conformal mapping of the Talbot contour
While the above parametrization can be used as a basis for inverting the Laplace transform, we proceed with the algorithm’s development via a convenient conformal mapping as follows. Expressing
Then
The function
For details of this transformation, one can refer to the study of Logan. 19
Next we follow the procedure as adopted by Logan
19
for numerically integrating equation (48). With
For convenience we write
The integral in equation (51) is then rotated by
The regularization properties of the Talbot algorithm
Despite the intricacies of deriving the Talbot algorithm we have found it to be a relatively easy algorithm to implement. Also, the tests we have carried out so far show that the algorithm performs to a high degree of accuracy. Moreover, the algorithm converges much faster than the Fourier series method without requiring the use of any acceleration schemes. Additionally, in the form in which we have used it, there is only one parameter to control. But perhaps its greatest strength is the fact that we have found that it is able to handle noisy data (of magnitude outlined below) with little growth in the corresponding error. As shown by us, this is not the case for either the Fourier series or the Stehfest inversion algorithms presented above. Moreover, this “regularization property” does not exist for many of the numerical inversion schemes as indicated by Egonmwan. 20 For most algorithms, this is generally overcome by constructing some regularization scheme, which then needs to be attached on to the inversion algorithm(s) of choice. This, of course, increases the complexity of the inversion process involving new parameters thus requiring even greater knowledge of the desired solution. This is even more so if the scheme also involves some additional accelerated convergence process.
As pointed out earlier, the perturbation in the numerical schemes is a consequence of the inversion being carried out on the real axis in the complex plane. The inclusion of complex arithmetic in the Talbot scheme enormously diminishes this perturbation. Of great importance here too is that the “regularization properties” of the Talbot algorithm means that very good performance can be obtained on many of the test functions without the necessity for multi-precision.
Egonmwan
20
examined regularized and collocation methods for the numerical inversion of the Laplace transform, which involve Tikhonov
18
based methods. This is then applied to the Stehfest
14
and Piessens
21
methods on various standard test functions for both exact F(s) and noisy (
For the Stehfest,
14
Piessens,
4
and the regularized method, Egonwan
20
added noise of a magnitude
In other words, methods that performed well for exact data did not do well for noisy data and the regularized collocation method failed for exact data. Thus, to use such regularized methods requires some a priori knowledge of the magnitude of the noise involved and by implication a better estimation of the solution than might be otherwise possible.
Tests
Table 1 lists the functions together with a variety of properties for the purpose of testing the noise handling capability of the three inversion algorithms employed.
Test functions.
These functions are the same used by Egonmwan.
20
This sample of test functions has a variety of properties, which we think forms a basis for testing the robustness of the noise handling properties of the inversion schemes. We use three error measures, the L2 norm defined as
To give a good estimation of the errors involved we have sampled t over 40 points for t = 0.1 to 4. The L2 norm is chosen as a measure, which averages out the error over the sample points while the
They are perhaps larger than they need to be but as our interest in this investigation is not on their efficiency but on their ability to handle noisy data we wanted to ensure that the precision played as little part as possible in assessing their performance. Thus, in cases where the extended precision decreases the accuracy of the noisy data we used the usual double precision for these inversions.
For functions which have sine, cosine, and hyperbolic properties we increased the weights for the Stehfest. This is because these functions require more weights and a corresponding increase in precision for the Stehfest method to produce accurate results. For the Fourier series method, we choose the parameter value of a = 4, with u = at in equation (17). Once again this choice is based on trial and error. We have found that this choice for a gives the best results for inverting the widest class of functions.
Results
Tables 2 to 9 and Figures 1 to 4 show very good performance of the Talbot algorithm in handling noisy data. (For brevity, we have included only four graphical results for the eight functions using different weights as the performance of these functions with a higher number of weights are well illustrated in the tables.)

Numerical reconstruction of

Numerical reconstruction of

Numerical reconstruction of

Numerical reconstruction of
With the exception of the function
In Table 6, we also observe that the recovery of the function
Table 8 includes two sets of weights for the Stehfest inversion algorithm. For the accurate inversion of sinusoidal functions, this algorithm requires more weights for increasing values of t, here for example we use 36 weights. However, when noise is added the accuracy decreases with the number of weight used, thus in this case for better performance we have used 16 weights.
Table 9 again shows the minimal error involved for the Talbot inversion when noise is added.
Figures 5 and 6 demonstrate that the Stehfest algorithm handles noisy data more accurately by decreasing the number of weights used. This is because the error generated in reconstructing the function from noisy data increases as the number of weights used rises. However, the accuracy achieved by decreasing the number of weights is not sufficient to justify such an approach for handling noisy data. Moreover, as we have stated a larger number of weights and the corresponding increase in precision is necessary for handling trigonometric and hyperbolic functions. We again note that no such considerations are necessary when employing the Talbot algorithm.

Numerical reconstruction of

Numerical reconstruction of
Conclusions
The results show that the Talbot algorithm handles the noisy data extremely well having very little impact on the final outcome. Both the Stehfest and the Fourier series methods fail to handle the noise. This is due to the fact that a significant part of the perturbation in these numerical schemes is a consequence of the inversion being carried out on the real axis in the complex plane. The inclusion of complex arithmetic in the Talbot scheme via the steepest decent path and the resulting elimination of the oscillations in the imaginary component enormously diminishes this perturbation. This has implications for implementing the LTFD method when solving nonlinear diffusion or time dependent parabolic partial differential equations, which can generate noisy data through a combination of measurement, truncation, and round-off error. Using the Talbot algorithm in these circumstances avoids additional complications such as having to devise regularized collocation methods to attain accurate solutions to these problems.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
