I'd like to integrate
$$I(a)=\int \frac{\sin(x)}{\cosh(ax)+\cos(x)}dx$$
by changing $sin$ etc... into their exponential representation.
Using $e^{ix} = \cos(x) + i \sin(x)$ and $e^{ax} = \cosh(ax)+\sinh(ax)$ we have
$$\frac{1}{i} \int \frac{e^{ix}-e^{-ix}}{e^{ax}+e^{-ax}+e^{ix}+e^{-ix}}dx =I(a)$$
If one substitutes $e^x = y$ we get $y^i$, can we do this? Can one get this method to work? A very similar integral has an answer:
http://integralsandseries.prophpbb.com/topic397.html?sid=77128c640169d5c07a9b32a5e7c35bc2