I am trying to solve the following integral: $$I=\int\tan(\ln(x))dx$$ which I initially thought would be easy considering there are many ways to solve both: $$\int\sin(\ln(x))dx$$ $$\int\cos(\ln(x))dx$$ But I appear to be wrong. Upon substitution I can it into the following forms, although none of these appear to lead to anything promising and Wolfram Alpha seems to be showing the only solution involves the hypergeometric function. Since I have limited knowledge of this and how to arrive at this answer I was wondering if anybody had an easy way to derive this or point me in the right direction for finding a series which this can be expressed as. I have found it interesting that it can be expressed as: $$\int\tan(\ln(x))dx=-\int\frac{2}{x^{2i}+1}-1\,\,dx=\int\left[1+\frac{1}{x^i-i}-\frac{1}{x^i+i}\right]dx$$ Although I feel that this would probably be the best approach: $$\int\tan(\ln(x))dx=\int e^u\tan(u)du=e^u\tan(u)-\int e^u\sec^2(u)du$$ Any thoughts? Thanks
Another thought I am having is: $$\int\tan(\ln(x))dx=\int e^u\tan(u)du=\int_0^u\sum_{n=0}^\infty\frac{(-1)^n2^{2n+2}(2^{2n+2}-1)B_{2n+2}}{(2n+2)!}e^tt^{2n+1} $$$$=\int_0^u\sum_{n=0}^\infty\frac{(-1)^{3n}2^{2n+2}(2^{2n+2}-1)B_{2n+2}}{(2n+2)!}e^{-t}t^{2n+1}dt $$$$=\sum_{n=0}^\infty\frac{(-1)^{3n}2^{2n+2}(2^{2n+2}-1)B_{2n+2}}{(2n+2)!}\gamma(2n+2,\ln(x)) $$$$=\sum_{n=0}^\infty\sum_{k=0}^\infty\frac{(-1)^{3n}2^{2n+2}(2^{2n+2}-1)B_{2n+2}x^{k+2n+2}e^{-x}}{(2n+2)\Gamma(k+2n+3)}$$ $$=\sum_{n=0}^\infty\sum_{k=0}^\infty\sum_{r=1}^\infty\frac{2^{2n+3}(2^{2n+2}-1)x^{k+2n+2}e^{-x}}{(2\pi)^{2n}(2n+1)^r(2n+2)\Gamma(k+2n+3)}$$