How this calculation works
Evaluate a generalized exponential integral with a positive real argument, its scaled value and derivative, together with a recurrence diagnostic.
E_n(x)=∫₁^∞ exp(−xt)t^(−n)dt; nE_(n+1)(x)=exp(−x)−xE_n(x).A worked example
At n = 2 and x = 1, E₂(1) ≈ 0.1484955068 and exp(1)E₂(1) ≈ 0.4036526377. Its derivative is −E₁(1) ≈ −0.2193839344.
Good to know
Integer order 0–20 and positive real argument 0.01–50. E_n lower integration limit one, scaled exp(x)E_n output, derivative and adjacent-order recurrence check. Numerical quadrature with analytical tail comparison; no complex continuation or zero-argument extension.
Reference: Official definition and method reference (opens in a new tab) ↗
Recognize the lower limit of the integral
The generalized exponential integral E_n(x) begins at t = 1 and extends to infinity. Its integrand is exp(−xt)/t^n. That lower endpoint distinguishes it from several similarly named exponential integrals. Copying a result under the name Ei without checking the sign, argument and definition would generally compare different mathematical functions.
The order n is a nonnegative integer on this page, and x is strictly positive. Both controls matter independently. Increasing n suppresses larger t through the denominator, while increasing x changes the exponential decay. These effects are not interchangeable, and the same final value can arise from different input pairs.
Compare this with the Numerical inverse Laplace transform calculator from a transform expression. Evaluate E_n(x) and derivative/recurrence diagnostics, rather than invert a transform expression to recover a time-domain function.
Return an ordinary and a scaled value together
The ordinary function can become very small as x increases because it contains an exp(−x) scale. The page also returns exp(x)E_n(x), removing that leading decay factor. This scaled value belongs on the same calculator as the ordinary value; it is a numerical representation choice rather than a separate user task.
Neither output carries a physical unit by itself. If x is formed from attenuation times distance or another dimensionless product, the outside model must supply that relation. The derivative reported here is with respect to x, so a derivative with respect to a physical distance also requires the appropriate chain-rule factor.
Verify the default calculation
For order two at argument one, the ordinary value is approximately 0.1484955068. Multiplying by e gives the scaled value approximately 0.4036526377. The derivative is −E₁(1), approximately −0.2193839344. All three values refer to the same lower-limit-one definition and positive-real branch.
The adjacent-order recurrence gives 2E₃(1) = exp(−1)−E₂(1). It provides an independent algebraic consistency relation between values calculated at neighboring orders. A small recurrence residual supports the normalization and scaling checks, although it cannot by itself prove that a whole family of values is accurate.
Transform the decaying tail
The substitutions t = 1+u and v = xu give exp(x)E_n(x) = (1/x)∫₀^∞ exp(−v)(1+v/x)^(−n)dv. This positive integrand is useful for quadrature because the exponential decay is controlled by v rather than by a widely changing product xt. The ordinary value is recovered afterward.
The implementation integrates the transformed expression to v = 50. Since the remaining denominator factor is at most one for supported nonnegative orders, the omitted scaled tail is bounded above by exp(−50)/x. This simple comparison is an analytical tail statement, separate from the quadrature algorithm’s numerical refinement test.
Check derivative conventions and order zero
For positive integer n, differentiation under the integral gives E_n′(x) = −E_(n−1)(x). At order zero, E₀(x) = exp(−x)/x has an elementary derivative, so the implementation evaluates that formula directly rather than requesting an unsupported negative order as if it were another entered case.
The scaled value has a different derivative from the ordinary value because exp(x) also changes with x. The derivative field on this page always refers to E_n itself. If a later calculation differentiates the scaled output, apply the product rule instead of copying the ordinary derivative into that expression.
Understand why zero is excluded
The function’s endpoint behavior depends strongly on n. For some positive orders a finite zero-argument limit exists, while E₁ has logarithmic divergence and E₀ diverges more strongly. A single generic endpoint rule would therefore be misleading. This implementation validates only x≥0.01 and does not manufacture an endpoint extension.
The upper domain limit is x = 50 and the maximum entered order is twenty. These are tested implementation limits, not mathematical nonexistence boundaries. Within them, quadrature is repeated more tightly and the recurrence is checked. Unresolved calculations are rejected rather than displayed with a convergence label copied from an earlier result.
Compare exact definitions when reusing results
Keep the order, argument and scale choice beside an exported number. A scaled value of order one at one argument can look similar to an ordinary value at another argument, but those coincidences do not make the definitions equivalent. Recording the formula is safer than depending on a short field label alone.
For external comparisons, use a source that explicitly supports the same E_n convention and positive-real argument. Complex values, branch cuts and noninteger-order continuations require additional definitions and are outside this page. The calculator does not silently discard an imaginary component or guess which alternative exponential-integral notation another formula intended.
A few questions, answered
Is this the same as Ei(x)?
Not directly. This page uses E_n(x)=∫₁∞ exp(−xt)t^(−n)dt. Relations to other exponential integrals require their argument and sign conventions.
Why show a scaled value?
Multiplying by exp(x) removes the leading exponential decay and can make comparisons numerically easier. The ordinary value is still returned on the same page.
Which output does the derivative describe?
It differentiates the ordinary E_n(x) with respect to x. Differentiating the scaled value requires an additional product-rule term.
Why can I not enter zero?
Zero-argument behavior depends on order and includes singular cases. The validated implementation uses 0.01≤x≤50 instead of applying one misleading endpoint rule.