Exponential Integral Calculator screenshot

Exponential Integral Calculator

Evaluate the exponential integral Ei(x) for positive x by power series or asymptotic expansion, with the derivative check and the method both printed.

Privacy First
0 Runs
Updated 2026-11-22
Runs in your browser
No sign-up, no upload
Two methods, one value

Exponential Integral Calculator

Evaluate the exponential integral Ei(x) for positive x by power series or asymptotic expansion, with the derivative check and the method both printed.

How this page computes

Below 40 the series γ + ln x + Σ x^k/(k k!) is summed until a term is negligible relative to the running total. Above 40 the asymptotic series is truncated where its terms begin to grow.

The derivative check differences the evaluator at x ± h and compares with e^x / x, which is the identity Ei'(x) = e^x / x. The page prints the relative gap and the step size it used.

The calculation runs entirely in this browser tab; nothing is uploaded.

The exponential integral Ei(x) is the integral of e^t / t, and it has no elementary closed form, so it is computed rather than looked up. At x = 2 it is 4.954234356.

Two methods cover the range: a power series below 40, where it converges quickly, and an asymptotic expansion above it, truncated at its smallest term. The page also differences the result to check it against e^x / x, which is Ei's derivative.

How to use Exponential Integral Calculator

Type a positive x and press Run. Zero is refused because Ei has a logarithmic singularity there, and negative x is refused because the value needs its principal value.

The output gives Ei(x), the leading term e^x / x, the number of series terms used, the derivative check, and the logarithmic integral li(x) when x is above 1.

Series below 40, asymptotics above it

For moderate x, Ei(x) = γ + ln x + the sum of x^k / (k · k!) for k from 1. Every term is positive, so there is no cancellation, and the sum is stopped once the term is below 1e-17 of the running total.

For large x the series needs too many terms, so the asymptotic expansion e^x / x · (1 + 1/x + 2!/x² + …) is used. Its terms eventually grow, so it is truncated at the smallest term, which leaves a relative error of about e^−x.

What to Expect

Best for

  • Ei(x) at a positive argument
  • A first look at a special function computed two ways
  • Checking a heat-flow or radiation integral

Not ideal for

  • x at or below zero, which needs the principal value
  • Ei(x) past about 709, where it overflows a double
  • The incomplete gamma function, which is a different function

What this tool keeps

  • x exactly as typed

What may need cleanup

  • Nothing: the value and its accuracy are both printed

Common errors

  • x at or below zero is refused with the reason
  • An overflowing x is refused rather than printed as infinity

Example use cases

  • Evaluate Ei(2)
  • See the series converge in about twenty terms
  • Check the derivative against e^x / x

Sample input

x = 2

Sample output

Ei(2) = 4.954234356 with a derivative check against 3.694528049

Who this is for

  • Students meeting special functions
  • Readers checking an integral numerically

Frequently asked questions

Why is there no closed form?

Ei is not an elementary function: no finite combination of powers, exponentials and logarithms equals it. It is a named special function precisely because the integral is common and the result is not elementary.

Which method gave my answer?

The output says so: power series below x = 40 and asymptotic expansion above it. Each branch prints the number of terms it used, so the work is visible.

How accurate is it?

The series is summed to about 1e-17 relative. The asymptotic branch is accurate to roughly e^−x relative, which is better than 1e-16 for every x above 40, so both branches are near machine precision at the switch.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.