Exponential Integral Ei(x) Table Calculator

Exponential Integral Ei(x) Table Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

Ei(xn)=γ+ln⁡|xn|+∑k=1∞xnkk·k!where{xn=Initial x+n·Stepn=0,1,…,Points−1γ≈0.5772156649\begin{gathered} \operatorname{Ei}(x_n) = \gamma + \ln|x_n| + \sum_{k=1}^{\infty} \frac{x_n^{\,k}}{k \cdot k!} \\[1.5em] \text{where}\quad \left\{ \begin{aligned} x_n &= {{\text{Initial }x}} + n \cdot \text{Step} \\ n &= 0,\,1,\,\dots,\,\text{Points}-1 \\ \gamma &\approx 0.5772156649 \end{aligned} \right. \end{gathered}
Usage stats

Advertisement

Results

Exponential Integral Table
1 points
x₀ = 1, Δx = 1
First row x = 1, Ei = 1.89511782
Last row x = 1, Ei = 1.89511782
x Ei(x)
1 1.8951178164

Report an error on this page

What is the Exponential Integral Ei(x) Table Calculator?

This tool builds a table of the exponential integral Ei(x) over an evenly spaced sequence of x values. You choose a starting value, a step size, and how many points you want, and it computes Ei at each x. The exponential integral is a special function that appears throughout physics and engineering, including radiative transfer, electron-beam simulation, and the asymptotic analysis of integrals.

How to Use It

Enter the initial value of x (the first row), the increment added to x for each successive row, and the number of points (rows). The x value of row n is \(x_n = \text{startX} + n \cdot \text{stepX}\) for \(n = 0, 1, \dots, \text{pointCount}-1\). The calculator returns every (x, Ei(x)) pair plus a quick summary of the first and last rows. A step of zero produces a constant column; \(x = 0\) is undefined because Ei has a logarithmic singularity there.

The Formula Explained

The convergent series used is $$\operatorname{Ei}(x_n) = \gamma + \ln|x_n| + \sum_{k=1}^{\infty} \frac{x_n^{\,k}}{k \cdot k!}$$ where \(\gamma\) is the Euler-Mascheroni constant \(0.5772156649\). The absolute value in \(\ln|x|\) together with the alternating powers of x correctly produce Ei on both the positive and negative branches. For large \(|x|\) (beyond about 40) the series suffers cancellation, so an asymptotic expansion \(\operatorname{Ei}(x) \sim (e^x / x) \sum n!/x^n\) is used instead.

Advertisement
Curve of the exponential integral Ei(x) with a vertical asymptote at x equals zero
The Ei(x) curve: it diverges to negative infinity near \(x = 0\) and rises steeply for positive x.

Worked Example

For \(x = 1\): \(\ln|1| = 0\) and the series sum is about \(1.3179022\), so $$\operatorname{Ei}(1) = 0.5772157 + 0 + 1.3179022 = 1.8951178$$ matching the standard tabulated value. Likewise \(\operatorname{Ei}(2) = 4.9542344\) and \(\operatorname{Ei}(-1) = -0.2193839\).

Table of evenly spaced x values mapped to Ei(x) values with arrows
Each evenly spaced x value produces one Ei(x) entry in the output table.

Reference Values of Ei(x)

The exponential integral is defined here as the Cauchy principal value \(\operatorname{Ei}(x) = -\mathrm{PV}\int_{-x}^{\infty} \frac{e^{-t}}{t}\,dt\) for real \(x \neq 0\). Values are rounded to about 7 significant figures. You can use them to check the output of a table you generate.

x Ei(x) Note
-3 -0.01304838 Negative branch: equals \(-E_1(3)\)
-2 -0.04890051 Equals \(-E_1(2)\)
-1 -0.2193839 Equals \(-E_1(1)\)
-0.5 -0.5597736 Equals \(-E_1(0.5)\)
0.5 0.4542199 Positive x, but still below the zero at 0.3725? No: 0.5 is above it, so Ei is positive
1 1.8951178 Positive
2 4.954234 Positive, growing fast
3 9.933833 Positive
5 40.18528 Positive
10 2492.229 Close to \(e^{10}/10 \approx 2202.6\) times a correction factor

Sign and branch notes: for \(x<0\) the integral has no singularity on its path, and \(\operatorname{Ei}(x) = -E_1(-x)\), which is always negative. For \(x>0\) the principal value is used, which gives a real result. At \(x=0\) the function is undefined (logarithmic singularity).

Interpreting the Ei(x) Table

  • Sign change: \(\operatorname{Ei}(x)\) is negative for \(x < x_0 \approx 0.3725\) (its single real zero) and positive for \(x > x_0\).
  • Behavior at zero: as \(x \to 0\) from either side, \(\operatorname{Ei}(x) \approx \gamma + \ln|x| \to -\infty\). Rows near 0 therefore show large negative values.
  • Negative x: as \(x \to -\infty\), \(\operatorname{Ei}(x)\) approaches 0 from below. For large \(|x|\), \(\operatorname{Ei}(x) \approx e^{x}/x\), which is negative and tiny.
  • Large positive x: \(\operatorname{Ei}(x)\) grows roughly like \(e^{x}/x\), so each step in x multiplies the value by a large factor. The ratio \(\operatorname{Ei}(x)\,x\,e^{-x}\) tends to 1 slowly.
  • Crossing x = 0: if the sequence \(x_n = \text{start} + n\cdot\text{step}\) lands exactly on 0, that row is undefined and shows NaN. The other rows are unaffected.
  • Overflow: in double-precision arithmetic \(e^{x}\) overflows at about \(x \approx 709.8\), so Ei(x) overflows to infinity for x around 700 or more. Keep the range moderate if you want finite values.
Advertisement

Constants Used

Quantity Value / Rule
Euler–Mascheroni constant \(\gamma\) 0.5772156649015329
Zero of Ei (Soldner's constant) \(x_0\) 0.3725074107813668
Series / asymptotic switch about \(|x| \approx 40\): the power series \(\gamma + \ln|x| + \sum_{k\ge1} \frac{x^k}{k\cdot k!}\) is used below this, and the asymptotic expansion above it
Relation for negative arguments \(\operatorname{Ei}(x) = -E_1(-x)\) for \(x<0\)

The power series converges for every x, but for large \(|x|\) it involves large alternating or growing terms that lose accuracy. This is why an asymptotic expansion is used past the threshold.

FAQ

Why is \(x = 0\) undefined? Ei(x) has a logarithmic singularity at the origin (\(\ln|x|\) diverges), so the value is reported as not-a-number.

How accurate is the table? The series reproduces standard Ei values to roughly machine precision for moderate \(|x|\), with an asymptotic fallback keeping large arguments stable.

How is Ei different from E1? They are related by \(\operatorname{Ei}(x) = -E_1(-x)\) for \(x < 0\); this calculator returns the principal-value Ei.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators