0

How can I invert the function $f(\theta)=\frac{\theta-\sin(\theta)\cos(\theta)}{a-\frac{1}{2}\sin(2a)}$ where $a$ is some constant? Even for some small interval like $0 \le \theta \le \pi/2$ and $0 \lt a \le \pi/2$ ?

Edit: I'm a software engineer, not a mathematician, so I attempted to find the inverse using WolframAlpha, which plots the inverse, but says that there is "no result found in terms of standard mathematical functions".

IV_
  • 7,902
Justin
  • 197
  • What have you attempted, what makes you think you can or can't? – FishDrowned Mar 28 '25 at 12:47
  • @FishDrowned see edit – Justin Mar 28 '25 at 12:54
  • I am not sure but I don't think the inverse function has a closed form. – Random Math Enthusiast Mar 28 '25 at 12:56
  • 2
    You won’t find an explicit formula. You might tidy it up a bit by replacing $\sin\theta\cos\theta$ with $\tfrac{1}{2}\sin 2\theta$ though – A rural reader Mar 28 '25 at 13:07
  • What makes you think you can find an inverse? Is this a function you created yourself or from some homework assignment? Please note that an inverse expressed in closed form is the exception not the norm. – FishDrowned Mar 28 '25 at 13:09
  • Probably a gigantic lookup table that you already generated from the orignal function. That is, input a lot of $x$'s to get as many possible $y$'s as possible. Therefore, for the inverse function, given an arbitrary $y$, it will be somewhere already on your lookup table. If not, you need a method of picking a nearby $x$, and then approaching better $x$'s that give your desired $y$. Thus, when the user input their $y$ value - you know what $x$ to output to them. Consider $\sin(x) = y$ - how are values generated if you ask a computer for $\arcsin(y)$? There is no formula - but I don't know – DWade64 Mar 28 '25 at 13:23
  • @FishDrowned Not from a homework assignment. This is part of a computer graphics side project I'm working on. This function is just one step in a larger process so it's entirely possible that this is not even the correct function. – Justin Mar 28 '25 at 13:26
  • This is important (at least mathematically) - even though you don't know what the value of the inverse to the sine function will be; if you know it exists, you can call it "inverse sine function" and give it a name .. even though you don't know what it will be; but that it exists. And given any curve in the plane (even if it doesn't pass the horizontal line test as you indicate you understand, when you gave the possibility of restricting yourself to an interval), given any curve, horizontal line test or not, you can always create the inverse curve by rotating your sheet of paper $90$ degrees – DWade64 Mar 28 '25 at 13:37
  • counterclockwise. The $y$-axis (your domain) will now be pointing to the left (when we usually draw the positive part of the domain pointing to the right); but given any curve, just rotate it counterclockwise $90^{\circ}$ and that is the inverse. Thus, now we see that given a function, there is always an inverse. And given a derivative, you know the inverse derivative as well. If you draw a tangent line to a point on your graph, then rotate the graph, well..the tangent line rotated with it (I know this isnt the answer you need - but it's still fun. You need computation) – DWade64 Mar 28 '25 at 13:40
  • 4
    One can substitute $2\theta=x$ in $\theta+\frac12\sin(2\theta)=y$ and have to solve $x+\sin(x)=2y$. This question is similar to: How to solve Kepler's equation $M=E-\varepsilon \sin E$ for $E$?. If you believe it’s different, please [edit] the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem. – Тyma Gaidash Mar 28 '25 at 14:43

2 Answers2

5

Let's get rid of the $a - \frac12 \sin(a) \cos(a)$ because it's just a positive constant, and write $g(x) = x - \sin(x) \cos(x) = x - \sin(2x)/2$. Since the derivative $g'(x) = 1 - \cos(2x) \ge 0$ with $g'(x) = 0$ only at a discrete set of points, $g$ is strictly increasing and therefore has an inverse. Since $g(x) \to +\infty$ as $x \to +\infty$ and $g(x) \to -\infty$ as $x \to -\infty$, the inverse is defined on all real numbers. There is no closed form for the inverse, but you can compute it numerically in many ways. For example, near $x=\pi/2$ we have the series $$ g(x) = \frac{\pi}{2} + 2 \left(x - \frac{\pi}{2}\right) - \frac{2}{3} \left(x - \frac{\pi}{2}\right)^3 + \frac{2}{15} \left(x - \frac{\pi}{2}\right)^5 + \ldots $$ and we can use reversion of series to get $$ g^{-1}(y) = \frac{\pi}{2} + \frac{1}{2} \left(y- \frac{\pi}{2}\right) + \frac{1}{24} \left(y- \frac{\pi}{2}\right)^3 + \frac{1}{120} \left(y- \frac{\pi}{2}\right)^5 + \ldots$$ convergent for $y$ near $\pi/2$.

Robert Israel
  • 470,583
1

Over the reals, the function $f$ is injective. Its inverse function does exist therefore.

1.)

A simple usual way could be Lagrange inversion.

2.)

For closed forms, we have the following.

$$f(\theta)=\frac{\theta-\sin(\theta)\cos(\theta)}{a-\frac{1}{2}\sin(2a)}$$

Let $y$ a real variable.

$$\frac{\theta-\sin(\theta)\cos(\theta)}{a-\frac{1}{2}\sin(2a)}=y$$

As usual for calculating the inverse function in elementary algebra, we want to determine $\theta$ in dependence of $y$.

$a-\frac{1}{2}\sin(2a)\to c$: $$\frac{\theta-\sin(\theta)\cos(\theta)}{c}=y$$ $$\frac{\theta-\frac{-i}{2}(e^{\theta i}-e^{-\theta i})\cdot\frac{1}{2}(e^{\theta i}-e^{-\theta i})}{c}=y$$ $$\frac{\left(e^{\theta i}\right)^4i}{4c}+\theta\left(e^{\theta i}\right)^2-y\left(e^{\theta i}\right)^2-\frac{i}{4c}=0$$

We see, this is an irreducible polynomial equation involving more than one algebraically independent monomials ($\theta,e^{\theta i}$). We therefore don't know how to solve the equation by rearranging for $\theta$ by applying only finite numbers of only elementary operations (means elementary functions).

$\theta\to\frac{x}{i}$: $$1+4cx\left(e^x\right)^2-4cyi\left(e^x\right)^2-\left(e^x\right)^4=0$$

Now we see, the equation seems to be not in a form to solve it in terms of Lambert W or Generalized Lambert W of Mező/Baricz.

Only for the case that $c\neq 0$ is algebraic:
For algebraic $y$, this is an irreducible algebraic equation involving both $x,e^x$. Assuming Schanuel's conjecture is true, the theorem of Lin 1983 implies that such kind of equations don't have solutions except $0$ that are elementary numbers. This means that the inverse function of the function $f$ cannot be an elmentary function if $c\neq 0$ is algebraic.

3.)

As already said by others, this is a kind of Kepler's equation. See Inverse of $f(x)=\sin(x)+x$ and i.a. my answer there.

Already Liouville wrote that he proved that the inverse function of the function in Kepler's equation isn't an elementary function.

IV_
  • 7,902