I have the following system:
$$ (a + tb)\cos \theta = x \\ (b + ta) \sin \theta = y \\ $$
with the constraints
$$a > b$$ $$\theta \in (-\pi, \pi]$$ $$t > -\frac b a$$
I am trying to solve for $t$ and $\theta$ in terms of $a,b,x,y$.
As far as I can tell, there is no closed-form solution. However, I am wondering if I can find good approximations. I tried substituting truncated Taylor series for $\sin$ and $\cos$, centered at $\pi / 2$ to take advantage of the symmetry of the problem, and I got a decent approximation but I wish I had a better one.
Any suggestions for good approximate solutions to the problem, or methods I could explore? Thanks.
Hint: write $$ \cos \theta = \frac{x}{a+tb} \\ \sin \theta = \frac{y}{b + ta} \\ $$ Then solve $(\frac{x}{a+tb})^2+(\frac{y}{b + ta})^2=1$. Still pretty ugly but finding roots of quartic polynomial is a well-known problem that has a solution.