# Invertibility of specific function

This is my first post. I'm not a mathematician, just an electronics engineer who loves mathematics. In one of my projects, I arrived at the following function:

$$V\left(\varphi\right)=\frac{A\sqrt{\pi-\varphi+\sin{\varphi\cos{\varphi}}}}{\sqrt{2\pi}}$$

The project requires $$V\left(\varphi\right)$$ to be inverted, to obtain angle $$\varphi$$ (unknown), from a voltage $$V$$ (known). $$V\left(\varphi\right)$$ is continuous and strictly monotonic (descending), so an inverse mapping should exist. I tried to invert it symbolically, but couldn't arrive at a closed-form solution for $$\varphi\left(V\right)$$. I ended up using MATLAB to compute it numerically, and the project was successfully completed.

Out of pure curiosity, I asked my cousin (a mathematician) to attempt to symbolically invert the above function, but he also couldn't do it, and couldn't even give me a rigorous answer as to the existence of such solution. So, my questions are the following:

1. Does a closed-form expression for $$\varphi\left(V\right)$$ exist?
2. If the answer to (1) is YES, can someone provide that function, or point me to a method for deriving it?
3. If the answer to (1) is NO, what is the formal reason for it? Is there a way to show/prove that such solution does not exist?

I apologise if this problem is too easy, too obvious, or even irrelevant to the MathOverflow community. I've already posted it in the Mathematics Stack Exchange community (for students and professionals), where I got some replies which loosely confirm my suspicion that a closed-form expression for $$\varphi\left(V\right)$$ does not exist. However, the replies were either too descriptive, or used Taylor series expansions to invert the function, which is not what I want. No reply provided rigorous answers to my questions. So, I thought of posting the problem here, where more advanced topics are discussed, in the hope that someone can provide me with some rigorous answers. This is not a homework exercise, and the associated practical problem has already been solved numerically. This post was made out of pure curiosity about the invertibility of functions of the form of $$V\left(\varphi\right)$$. Many thanks to all for your replies.

Adding some graphics, in order to better illustrate the problem.

The following figure shows how the function we're looking for, $$\varphi\left(V\right)$$, looks like. Notice that there appears to be no symmetry in this function. The values of $$\varphi$$ lie in the interval $$[0,\pi]$$, while the values of $$V\left(\varphi\right)$$ lie in the interval $$[0,\frac {A} {\sqrt2}]$$.

Based on the comment by @PietroMajer, the problem can be reduced to the inversion of function $$k=x-\sin(x)$$. In this case, the values of both $$x$$ and $$k$$ lie in the interval $$[0,2\pi]$$. The following figure shows a plot of the inverse of $$k=x-\sin(x)$$, together with a plot of the function itself (dashed line). Plotting them both on the same graph is useful, since they both have the same range for their independent and dependent variables. It can be observed that now there is a clear symmetry of this function at the point $$(\pi,\pi)$$, thanks to the removal of the square root term. This means that we only need to deal with the interval $$[0,\pi]$$, and use symmetry on that result to obtain the other half ($$[\pi,2\pi]$$).

Please see my accepted answer at Mathematics Stack Exchange, for some useful approximations of the inverse of $$k=x-\sin(x)$$, and of $$\varphi\left(V\right)$$. They may not be of much interest to pure mathematicians, but, being an electronics engineer, I consider them very useful in solving practical problems involving the inversion of $$k=x-\sin(x)$$ or similar functions.

• Are you familiar with en.wikipedia.org/wiki/Abel%E2%80%93Ruffini_theorem ? – Piyush Grover Oct 7 '20 at 13:59
• @PiyushGrover, thanks for the comment. Yes, I am familiar with the Abel-Ruffini theorem, but I cannot see how it applies to my function, seeing that $V\left(\varphi\right)$ is not a polynomial of degree $n\geq5$. Please forgive me if the link between the Abel-Ruffini theorem and $V\left(\varphi\right)$ is obvious and I just don't see it, as I am not a mathematician. – DrCeeVee Oct 7 '20 at 14:38
• Note that $$2(\varphi-\pi)- \sin (2(\varphi-\pi)) = -\frac{ 4\pi V\left(\varphi\right)^2}{A^2}$$ so what you should probably look for in the literature is the inverse of $u(x):=x\mapsto x-\sin x$ (Or equivalently $x\mapsto x+\sin x$). – Pietro Majer Oct 7 '20 at 18:24
• – Timothy Chow Oct 7 '20 at 20:33
• @PietroMajer There is a difference: $x-\sin x$ is $x^3/6+O(x^5)$ while $x+\sin x$ is $2x+O(x^3)$ – მამუკა ჯიბლაძე Oct 9 '20 at 13:24

The answer to the question of whether the inverse has a closed form depends of course on one's definition of "closed form." One plausible definition is that a closed-form function is a function that lies in a so-called Liouvillian extension of $$\mathbb{C}(x)$$, the field of rational functions of $$x$$ with complex coefficients. I won't give the exact definition of a Liouvillian extension, but suffice it to say that any function that you can get via a finite number of applications of addition, subtraction, multiplication, division, taking $$n$$th roots, exponentiation, and taking logarithms is going to be a closed-form function in this sense. Note that since we're working over the complex numbers, we get trig functions and their inverses as well. So this covers everything that most everyone would agree is "closed form." (Liouvillian extensions also include algebraic functions that aren't expressible using radicals; not everyone would consider such functions to be expressible in "closed form," but since we're going to show that a certain function is not expressible in closed form, it doesn't hurt to include extra functions in our class of "closed-form functions.")

Rigorous proofs that specific functions of interest are not Liouvillian go back, naturally, to Liouville, with later contributions by other authors (e.g., Ritt, as mentioned by Iosif Pinelis). Again, reviewing the general theory is beyond the scope of a MathOverflow answer, but fortunately, when it comes to finding inverses, there is a theorem of Rosenlicht ("On the explicit solvability of certain transcendental equations," Publications Mathématiques de l'IHÉS 36 (1969), 15–22) that can be used to handle many of the simple "transcendental equations" that arise in practice. Stated slightly informally, the relevant special case of Rosenlicht's theorem is the following.

Theorem. Suppose that $$y_1, \ldots, y_n$$ and $$z_1, \ldots, z_n$$ are closed-form functions of $$x$$ satisfying $$\frac{y_i'}{y_i} = z_i', \qquad i=1,\ldots,n.$$ If $$\mathbb{C}(x,y_1, \ldots,y_n,z_1,\ldots,z_n)$$ is algebraic over both $$\mathbb{C}(x,y_1,\ldots,y_n)$$ and $$\mathbb{C}(x,z_1,\ldots,z_n)$$, then $$y_1,\ldots,y_n$$ and $$z_1,\ldots z_n$$ are all algebraic over $$\mathbb{C}(x)$$.

In light of Pietro Majer's observation, let's use this theorem to show that the function $$f$$ defined implicitly by the equation $$x = f - \sin f$$ (Kepler's equation, as noted by Rob Corless) has no closed-form expression. We're only going to need the special case $$n=1$$ of the theorem. The first step is to write everything in terms of exponentials. Recall that $$\sin f = (e^{if}-e^{-if})/2i$$, so if we set $$z := if$$ then we have the equation $$x = -iz - \frac{e^z - e^{-z}}{2i}.\qquad\qquad(*)$$ The equation $$y'\!/y = z'$$ appearing in Rosenlicht's theorem is secretly the equation $$y=e^z$$ in disguise. So what we need to do is to introduce extra functions to represent the exponentials that appear, to turn our equations into polynomial equations. Here, all we need to do is to set $$y=e^z$$. Then $$y'\!/y = z'$$ and Equation $$(*)$$ becomes $$x = -iz- \frac{y - 1/y}{2i}.\qquad\qquad (**)$$ We're now ready to apply Rosenlicht's theorem with $$n=1$$. Certainly $$\mathbb{C}(x,y,z)$$ is algebraic over $$\mathbb{C}(x,y)$$ because $$z$$ is actually a rational function of $$x$$ and $$y$$. It's also true that $$\mathbb{C}(x,y,z)$$ is algebraic over $$\mathbb{C}(x,z)$$ because $$y$$ satisfies a quadratic equation with coefficients that are polynomial (in fact, linear) in $$x$$ and $$z$$. The hypothesis of the theorem is therefore satisfied. What does this tell us?

Well, if $$f$$ is a closed-form function of $$x$$, then so is $$z=if$$ as well as $$y=e^z = e^{if}$$. So if $$f$$ is a closed-form function, then Rosenlicht's theorem tells us that $$y$$ and $$z$$ must in fact be algebraic functions of $$x$$.

This isn't quite a contradiction yet, but it's not so hard to show that $$y$$ and $$z$$ can't be algebraic functions of $$x$$. We can use the argument given by Bronstein et al. in their paper showing that the Lambert $$W$$ function is not Liouvillian ("Algebraic properties of the Lambert $$W$$ function from a result of Rosenlicht and Liouville," Integral Transforms and Special Functions 19 (2008), 709–712). If $$z$$ has a pole of finite order (in the extended complex plane), then $$y$$ has an essential singularity, but this contradicts Equation $$(**)$$ since the left-hand side has no singularities. So $$z$$ must be constant, but this is absurd.

By the way, according to Rosenlicht, Liouville himself already knew that the solution to Kepler's equation is not Liouvillian, but I haven't checked Liouville's paper myself.

[I'm making this answer community wiki since I benefited from the observations of several other respondents.]

• This is a great answer, Timothy, which pretty much settles the issue for me. It's so surprising (and exciting) to see that a function of such simplicity as $x-\sin(x)$ does not have a closed-form inverse. Many thanks for your help. – DrCeeVee Oct 11 '20 at 22:16

The change of variable given above by Pietro Majer shows that this is equivalent to Kepler's equation Wikepedia on Kepler's Equation which is believed not to have any closed form solution (let alone an elementary solution). I am actually not so sure that's true and I don't know of any proof.

• Actually, now that I have taken the trouble to look up Rosenlicht's paper, he mentions Kepler's equation as a special case of his results (and that was already considered by Liouville), although he doesn't give details. Probably it's just a matter of fiddling around to eliminate the exponential functions in favor of expressions of the form $y'\!/y$. – Timothy Chow Oct 9 '20 at 2:42
• Anecdotal answer: Kepler's equation is one of the most studied equations in the history of science. If there was a closed form solution, it would have been found by now. There are papers about its approximations appearing to this day! – Piyush Grover Oct 9 '20 at 10:35
• Welcome to MathOverflow @RobCorless! – Igor Khavkine Oct 9 '20 at 17:49
• Thank you Igor! Glad to hear a welcome from you! DM me and let me know how you are going! – Rob Corless Oct 10 '20 at 3:25
• The information you've posted about Kepler's equation is very useful. I wasn't aware of it, and when I visited the Wikipedia link you've posted, I saw my own function in the top-right graph! It's amazing that a simple function like $x-\sin(x)$ has proven to be so difficult (very likely impossible) to invert. Many thanks Rob. – DrCeeVee Oct 11 '20 at 22:45

According to Ritt's Theorem 23 (page 89) (see also the first paragraph on page 90 of that paper and the definition of (Liouville) monomials of the first order on page 70 there), your desired inverse is an elementary function only if $$t-\sin t\,\cos t$$ is an algebraic function of $$e^{v(t)}$$ or $$\ln v(t)$$ for some algebraic function $$v$$. However, at this point I do not see how to check the latter condition in your case.

Mathematica cannot invert your function either:

• Perhaps one can adapt the method explained in the answer to the MO question, How to prove Lambert's W function is not elementary? – Timothy Chow Oct 7 '20 at 22:12
• @TimothyChow : Thank you for this hint. The function to invert here seems a bit more complicated than the function $t\mapsto te^t$ (whose inverse is Lambert's function). So, apparently a full-blown paper is needed to completely solve the problem in the OP (if that is possible at all), whereas the inverse function here seems to be of less general interest than Lambert's function. – Iosif Pinelis Oct 8 '20 at 3:08
• Many thanks Iosif, for your answer. I see that all answers so far have common elements, such as Kepler's equation and the work by Liouville. I've also tried inverting it in Mathematica (it was the first thing I tried), and got the symbolically correct, but totally useless $f^{(-1)}$ result... – DrCeeVee Oct 11 '20 at 22:23