I'm looking for a computational approach here, since I don't think there is a closed-form solution.
I have the following:
$$ s(x) = \rho + \int_{\rho}^{x} \sqrt{ 1 + (\alpha \cos t - k)^2 } \, dt $$
$ k = \frac{\rho \sin \alpha - \alpha \sin(\rho \cos \alpha)}{\frac{\pi}{2} - \rho \cos \alpha} $ for $x<\frac{\pi}{2}$, otherwise $k=0$.
The following are all constants: $0 < \rho < \frac{\pi}{2}$, $0 < \alpha < \frac{\pi}{2}$ (and thus $k$).
I'd like to find $x$ such that $s(x) = r$ for some constant $0 \le r \le \pi$.
The interesting thing is that $s(x)$ is an elliptic integral for $x \ge \frac{\pi}{2}$, because $k=0$. However, my lower limit $\rho$ means that I need to handle $k \ne 0$.
My hunch is that I can use some kind of series expansion here. Any ideas?