Asymptotic expansions often occur when an ordinary series is used in a formal expression that forces the taking of values outside of its
domain of convergence. Thus, for example, one may start with the ordinary series : \frac{1}{1-w}=\sum_{n=0}^\infty w^n. The expression on the left is valid on the entire
complex plane w\ne 1, while the right hand side converges only for . Multiplying by e^{-w/t} and integrating both sides yields : \int_0^\infty \frac{e^{-\frac{w}{t}}}{1-w}\, dw = \sum_{n=0}^\infty t^{n+1} \int_0^\infty e^{-u} u^n\, du, after the substitution u=w/t on the right hand side. The integral on the left hand side, understood as a
Cauchy principal value, can be expressed in terms of the
exponential integral. The integral on the right hand side may be recognized as the
gamma function. Evaluating both, one obtains the asymptotic expansion : e^{-\frac{1}{t}} \operatorname{Ei}\left(\frac{1}{t}\right) = \sum_{n=0}^\infty n! t^{n+1}. Here, the right hand side is clearly not convergent for any non-zero value of . However, by truncating the series on the right to a finite number of terms, one may obtain a fairly good approximation to the value of \operatorname{Ei} \left (\tfrac{1}{t} \right ) for sufficiently small . Substituting x=-\tfrac{1}{t} and noting that \operatorname{Ei}(x)=-E_1(-x) results in the asymptotic expansion given earlier in this article.
Integration by parts Using integration by parts, we can obtain an explicit formula\operatorname{Ei}(z) = \frac{e^{z}} {z} \left (\sum _{k=0}^{n} \frac{k!} {z^{k}} + e_{n}(z)\right), \quad e_{n}(z) \equiv (n + 1)!\ ze^{-z}\int _{ -\infty }^{z} \frac{e^{t}} {t^{n+2}}\,dtFor any fixed z, the
absolute value of the error term |e_n(z)| decreases, then increases. The minimum occurs at , at which point \textstyle \vert e_{n}(z)\vert \leq \sqrt{\frac{2\pi } {\vert z\vert }}e^{-\vert z\vert }. This bound is said to be "asymptotics beyond all orders". == Properties ==