I am trying to solve the following integral,
$$\int_{0}^{T}\tanh^{-1}(\sin(x))dx.$$
I have tried writing $\tanh^{-1}(\sin(x))$ as a series and solving the resultant $\sin^n(x)$ integrals using a recursion formula. I have also tried substituting $\sin(x)=u$. But I am not getting anywhere. Part of my problem is that I am not sure that the integral has a solution and I am not sure how to test this.
Note that I am not a mathematician, nor especially mathematically literate. This came up in a research project and I now have another approach which doesn't use this integral. I just want to know it this integral is soluble, and if so, how? It would also be useful to check my other method using this method.
Wolfram Alpha gives the indefinite integral of your expression as
$$\int \tanh^{-1}(\sin(x)) dx = -i \mathrm{Li}_2(-i e^{i x}) + i \mathrm{Li}_2(i e^{i x}) \\ + x (-\log(1 - i e^{i x}) + \log(1 + i e^{i x}) + \tanh^{-1}(\sin(x))) + c$$
where $\mathrm{Li}_2$ is the polylogarithm function of order 2. This might not be particularly satisfying, but it's also possibly the best that we can do.
Note that the integrand has discontinuities, so you need to be careful if your value of $T$ is greater than $\frac{\pi}{2}$. On that note, however, we can find some specific values of the integral, for example if $T = \frac{\pi}{2}$ then the value is 2C, where $C$ is Catalan's constant.
If you wanted to find the integral by hand, then it would probably involve application of some combination of the following:
Using the identity $\tanh^{-1}(x) = \frac{1}{2}(\ln(1+u) - \ln(1-u))$
Using the identity $\sin(x) = \frac{e^{ix} - e^{-ix}}{2i}$
Integration by parts, particularly via $\int 1 \cdot f(x) dx = x f(x) - \int x f'(x) dx$