# Special integrals

There are special integrals such as the logarithmic integral and exponential integrals. I want to know if there are primitives for such integrals. If not, why not?

-
Yes, there are primitives. No, they can't be expressed in terms of exponentials, logarithms, trig functions, etc. – Gerry Myerson Nov 17 '12 at 8:46
@Gerry Myerson , So how are they expressed then? – Badshah Nov 17 '12 at 8:50
@Badshah: as integrals. – Qiaochu Yuan Nov 17 '12 at 9:17
@Badshah, the proof requires some theories such as differential Galois theory, which I know not much about. But maybe you can google on it and find some materials regarding this problem such as this. – Sangchul Lee Nov 17 '12 at 9:37
@Badshah: see, for example, en.wikipedia.org/wiki/…. – Qiaochu Yuan Nov 17 '12 at 9:44

A simple starting point (as indicated by Qiaochu) is Liouville's theorem (or 'principle') based on differential algebra and was extended with the Risch algorithm.

This last link should clarify some of the ideas used :

1. the only new term appearing during an integration (i.e. that was not in the integrand) is a linear combination of logarithms (because logarithms alone may disappear during differentiation...)
2. exponentials $e^f$ had to be in the integrand first (since differentiation doesn't make them disappear) and will reappear as $h\,e^f$ (of course subtle points exist like considering $\sqrt{x}=e^{\ln(x)/2}\cdots$)
3. differentiation of an algebraic function $\theta$ (i.e. there is a polynomial $P(\theta)=0$) will give a rational function $\frac {d(\theta)}{e(\theta)}$ with $\,d$ and $e\,$ two polynomials.

These 3 ideas will provide logarithmic, exponential and algebraic extensions to the differential algebra (starting for example with the field of rational functions over $\mathbb{Q}$) that will give all the elementary functions.

Geddes, Czapor and Labahn's book "Algorithms for Computer Algebra" is very clear too.

Now let's use these ideas to study $\int\frac {e^x}x\,dz$.

From a more precise version of $2.$ a primitive must be of type $\ I(x)=h(x)e^x$ with $h(x)$ a rational function.
Let's suppose this and differentiate : $$(h'(x)+h(x))e^x=\frac {e^x}z$$ so that we need : $$h'(x)+h(x)=\frac 1x$$ We supposed $h$ rational so that it may be decomposed in simple elements but $h'(x)$ can't give $\frac 1x$ so that $\frac 1x$ must be part of $h(x)$. In this case $h'(x)$ will create a term $-\frac 1{x^2}$ that must be compensated by a $\frac 1{x^2}$ term in $h(x)$ that will generate a $-\frac 2{x^3}$ term ... This process clearly doesn't end !

The same method could be used for the sine integral : $\int \frac {\sin(x)}x\,dx\,$ simply by writing $\ \sin(x)=\frac{e^{ix}-e^{-ix}}{2i}$.
(this method is from Matthew P Wiener from an old post at sci.math : recommended reading too !)

Concerning the logarithmic integral we have $\ \operatorname{li}(x)=\operatorname{Ei}(\ln(x))\$ so that the non-elementary proof for the one should apply for the other as well.

-