# Why isn't the inverse of the function $x\mapsto x+\sin(x)$ expressible in terms of “the functions one finds on a calculator”?

The function

$f(x)=x+\sin(x)$

is easily checked to be a bijection from the reals to itself, and so it has a unique inverse $y\mapsto g(y)$ such that $f\circ g=g\circ f$ are both the identity map.

Now $g$ will almost certainly be a function which is not expressible using "the functions in a high-schooler's toolkit" (by which I guess I mean $\exp$, $\log$, and, if you like, the usual trigonometric functions and their friends like $\sinh$, although of course these can all be of course built from exponentials anyway). For purely recreational reasons (stemming from conversations I've had whilst teaching undergraduates) I'm interested in how one proves this sort of thing.

A few years ago I was interested in a related question, and took the trouble to learn some differential Galois theory. My motivation at the time was learning how to prove things like why $h(t):=\int_0^t e^{x^2} dx$ is not expressible in terms of these calculator-button functions (I'm sure there's a better name for them but I'm afraid I don't know it). I've realised that since then I've forgotten most of what I knew, but furthermore I am also unclear about whether this is the way one is supposed to proceed. Is the idea that I come up with some linear differential equation satisfied by $g$ and then apply some differential Galois theory technique? In fact, one of the many things that I have forgotten is the following: if $F$ is a field equipped with a differential operator $D$, and $E/F$ is the field extension obtained by adding a non-zero root of $Dh=ch$, with $c\in F$, then the Galois group of $E/F$ is solvable, whereas the equation itself might not be, in terms of calculator-button functions, if I can't integrate $c$.

Can a more enlightened soul explain to me how one is supposed to proceed? I wonder whether I am somehow conflating two ideas and the differential Galois theory business is a red herring, but it seemed simpler to ask rather than continuing to flounder around.

-
The term I am familiar with is "integration in finite terms". – marty cohen Dec 16 '12 at 5:10
I think the term you are looking for (calculator button) is elementary function. – Marc van Leeuwen Dec 16 '12 at 10:37
Yes, I'm looking for a proof that the inverse function is not an elementary function. Thanks. – Kevin Buzzard Jan 4 '13 at 16:23

This paper, titled "Elementary functions and their inverses" by J.F. Ritt addresses your question.

Some time ago, in searching for why some functions don't have elementary integrals, I was led to the work of Liouville, as digested by Ritt in his book "Integration in finite terms; Liouville's theory of elementary methods". It was written in 1948 so I think the copyright has expired, and you can find a download link via a Google search.

Liouville's results on elementary integrals were derived using quite basic tools (it is hard to be precise here on what I mean by "basic tools", best you see for yourself). The latter portions of Ritt's book explore elementary solutions of differential equations, which is based on the work of mathematicians after Liouville, and it is only from then that some differential Galois theory is used.

Ritt's paper uses methods somewhat similar to Liouville and in particular, does not seem to use differential Galois theory. However, it is possible there may be a more modern approach to your question that does use differential Galois theory, since the generalization of Liouville's original work develops it.

Alternatively, if you can express your inverse function in terms of the Lambert W function as Nicholas suggests, then you can answer your question via the more specific methods of this paper.

-
Thanks for your answer and sorry it's taken so long to follow this up. I think that you're right that Ritt's paper addresses my question, but I don't think it answers it. It reduces my question to proving that $x+sin(x)$ is not expressible in some quite explicit way using $\exp$ and $\log$, but leaves me none the wiser about how to actually check this. – Kevin Buzzard Jan 4 '13 at 16:22
Here is one last comment. A theorem of Liouville gives a necessary and sufficient criterion for a function to be integrable in elementary terms. However the criterion is, in my mind, tough to verify in practice. But a paper by Brian Conrad called "impossibility theorems for elementary integration" states Liouville's result (Theorem 4.1) but then also deduces Theorem 4.4, which is a practical test for impossibility. Conrad uses Theorem 4.4 to prove that $Li(x)$ and $erf(x)$ aren't expressible in elementary terms. I guess I need a practical consequence of Ritt's work but don't know one. – Kevin Buzzard Jan 4 '13 at 16:26

To answer this, let's express $\sin(x)$ as $\frac i 2(e^{-ix}-e^{ix})$ so we now have $x+\frac i2(e^{-ix}-e^{ix})$. And you said that you are trying to find the inverse. From what I can see, this is relatable to $x+e^x = y$, the inverse of which is $x-W(e^x)$ where $W(x)$ is the product log function or Lambert $W$ function which cannot be expressed in terms of quote "the functions one finds on a calulator". Unfortunately, I am only in high school and therefore my answer may not be correct and I apologize if it is. This is only what I have gathered from my knowledge.

-
I think the weak point in your answer is "this is relatable to $x+e^x=y$". If one could express my function in terms of Lambert $W$ this would be a step forward, but there's a world of difference between "this looks similar" and "I can actually relate your function to Lambert $W$". However, thanks for your contribution and, to be honest, you're raising another question in my mind -- how might one prove whether or not there's a way of expressing the function I'm interested in in terms of Lambert $W$? I guess you're also pointing out that perhaps the methods used to prove... – Kevin Buzzard Dec 17 '12 at 12:27
...that Lambert $W$ isn't expressible in terms of elementary functions can perhaps also be used to deal with the inverse of $x+\sin(x)$... – Kevin Buzzard Dec 17 '12 at 12:28

I have finally found an answer to my own question, so I'll answer it myself and make the answer community wiki so I don't profit from it.

Let me first explain why the other answers given here did not completely resolve the problem. Let me use standard notation -- an elementary function is a funtion you can build using the buttons on your calculator. If you allow complex coefficients then basically you only need exp and log, as you can build everything else from this.

Ragib Zaman's answer points us to a paper of Ritt where he proves a theorem of the form "an elementary function whose inverse is also an elementary function must be of a very special form", but this very special form is quite hard to work with: it is basically of the form exp(rational function(log(rational function(log(rational function(exp(...))))))) where at each stage you can choose whether to use exp or log. The problem with this is that it's very hard (for me) to prove that the function $x+\sin(x)$ can provably not be expressed in this form.

Ritt's work relies on ideas of Liouville, and Liouville had a lot of ideas about this sort of question. Liouville proved a criterion for when an elementary function had an elementary integral (in fact he proved several results of this form, best phrased nowadays in the language of differential fields). One can hence use calculus as a tool: one can use strategies such as "the inverse function of this function satisfies a certain differential equation, which implies it can't be elementary". But here you have to be skillful to actually get your equation into the right form. This is why I can't use Nicholas' answer to answer my question. Nicholas observes that Lambert's $W$ function isn't elementary, and I know a proof of this which uses calculus and Liouville's criterion -- the trick being to write down a differential equation which (a simple function of) $W$ satisfies and then using Liouville to prove that this differential equation has no elementary solutions -- but the moment you change the problem a little, the differential equation changes, and the methods may not (and in this case don't) apply. An analogue might be this: if I can integrate $1/\sqrt{1-x^2}$, then even though it looks quite similar, I might well not be able to integrate $1/\sqrt{1-x^2+x^{-2}}$. This is an area where even quite a small change might derail things substantially.

On the other hand, these answers helped me immensely, because they provided me with references which enabled me to start a literature search. And today the search came to an end, because I got my hands on a copy of "Integration in finite terms: Liouville's theory of elementary methods" by J. F. Ritt (written in 1948), and on p56 Ritt shows how to deal with $x+\sin(x)$ explicitly! Apparently the equation $y=x+a\sin(x)$ ($a$ a constant) is called "Kepler's equation".

So the answer to the question is "this has nothing really to do with differential Galois theory; you need Liouville's theory, and a proof is in p56 of Ritt's 1948 book mentioned above".

-