Finding the value of a definite integral [closed]

Find the value of the following integral $$I = \int_{-\pi}^\pi\frac{e^{\sin x}}{e^{\sin x}+e^{-\sin x}}\,dx$$

My attempt: I tried to evaluate this by the property of even/odd functions for definite integrals, but found that the function is neither even nor odd. Further, I found that the function is symmetric with respect to $x = {\pi}/2$. But I am not getting an away to proceed to the next step.

Any suggestion will be very helpful.

closed as off-topic by Jack D'Aurizio, Namaste, Glorfindel, user91500, kingW3Jul 14 '17 at 14:56

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question is missing context or other details: Please improve the question by providing additional context, which ideally includes your thoughts on the problem and any attempts you have made to solve it. This information helps others identify where you have difficulties and helps them write answers appropriate to your experience level." – Jack D'Aurizio, Namaste, Glorfindel, user91500, kingW3
If this question can be reworded to fit the rules in the help center, please edit the question.

• Make the substitution $u = -x$ and look at it for a while. – Daniel Fischer Jul 14 '17 at 14:19
• Try substituting $-x$ for $x$. – Lord Shark the Unknown Jul 14 '17 at 14:20
• Thanks to @LordSharktheUnknown & DanielFischer. I got the clue. – MathsLearner Jul 14 '17 at 14:32

$$I = \int_{-\pi}^\pi\frac{e^{\sin x}}{e^{\sin x}+e^{-\sin x}}\,dx......(1)$$ Substituting $u = -x$, we get $$I = \int_{\pi}^{-\pi}\frac{-e^{-\sin u}}{e^{-\sin u}+e^{\sin u}}\,du$$ $$or, I = \int_{-\pi}^{\pi}\frac{e^{-\sin u}}{e^{\sin u}+e^{-\sin u}}\,du$$ $$or, I = \int_{-\pi}^{\pi}\frac{e^{-\sin x}}{e^{\sin x}+e^{-\sin x}}\,du.....(2)$$
$$2I = \int_{-\pi}^{\pi}\frac{e^{\sin u}+e^{-\sin u}}{e^{\sin u}+e^{-\sin u}}\,du= 2{\pi}$$ $$or, I = \pi$$
Formally: $$I=\int_{-\pi}^\pi\frac{e^{\sin x}}{e^{\sin x}+e^{-\sin x}}\,dx$$ Flipping the domain of integration takes $x$ to $-x$ and preserves the value, while swapping $\sin x$ and $-\sin x$: $$I=\int_{-\pi}^\pi\frac{e^{-\sin x}}{e^{\sin x}+e^{-\sin x}}\,dx$$ Add together: $$2I=\int_{-\pi}^\pi\frac{e^{\sin x}+e^{-\sin x}}{e^{\sin x}+e^{-\sin x}}\,dx=\int_{-\pi}^\pi1\,dx=2\pi$$ and thus $I=\frac{2\pi}2=\pi$.