The Exponential Integral Ei(x) and Numerical Calculation of Its Inverse

Authors

  • Martin Ricker Biology Institute, National Autonomous University of Mexico (Instituto de Biología, Universidad Nacional Autónoma de México), Circuito Zona Deportiva, Ciudad Universitaria, Alcaldía Coyoacán, Ciudad de México 04510, Mexico https://orcid.org/0000-0002-9814-113X
  • Martin Singull Department of Mathematics, Linköping University, Campus Valla, Mäster Mattias Väg, B-huset, 58183 Linköping, Sweden https://orcid.org/0000-0001-9896-4438

DOI:

https://doi.org/10.37256/cm.7420269353

Keywords:

accuracy, inverse function, Lambert's W-function, remainder of infinite series, root-finding algorithm, Taylor expansion, transcendental function

Abstract

The exponential integral y = Ei(x) = mceclip1-1a63422e35702d60acf8b84c04b18649.pngdx represents a transcendental function that can be applied as a growth function with interesting properties. Representing an infinite series, its numerical evaluation can be carried out with assymptotic expansion or summing up a finite number of elements with a sufficiently small remainder. Its inverse results in two subfunctions that are defined here as x = mceclip2-0915a8181f9308b4aaf455f1368b7ec4.png(y) for x < 0 (and always y < 0), and x = mceclip3-48743ec76c1fc2b2bcce29171315e743.png(y) for x > 0, where x is a real-valued variable. There is no direct formula to calculate numerical values for the two inverse subfunctions. In this article, we first show that for x being close to 0, the inverse function with sufficiently small error is represented by Lambert's W-function. Then we compare two methods. In the first method, two versions of a generic root-finding algorithm search for a number X that solves Y = Ei(X) for given number Y, distinguishing x < 0 and x > 0 in the case of Y < 0. The second method is a Taylor expansion with a 10th-degree polynomial. For the Y-value of interest, a corresponding reference interval is taken by the algorithm from a list that is here developed, and the associated X0 together with Y enters the polynomial to calculate X directly. The chosen remainder or maximum error εY , that results from cutting the infinite Taylor series, is taken into account in the interval limits around X0. The relationship between εY and corresponding εX (the resulting maximum error for X) is analyzed. Iterative formulas for the determination of optimal intervals as a function of X0 are derived for given |εY| or relative error mceclip6-71d05dc7cb62cfb1fa1025ea70ccbc5d.png. The methods were tested with Mathematica notebooks that are provided as supporting information. The more flexible root-finding algorithm will generally be the best choice. However, the Taylor expansion can be implemented without any special functions, as long as the corresponding polynomial can be solved accurately.

Downloads

Published

2026-07-21

How to Cite

1.
Ricker M, Singull M. The Exponential Integral Ei(<i>x</i>) and Numerical Calculation of Its Inverse. Contemp. Math. [Internet]. 2026 Jul. 21 [cited 2026 Aug. 13];7(4):4523-47. Available from: https://ojs.wiserpub.com/index.php/CM/article/view/9353