Question:

Evaluate : \(\displaystyle \int_{0}^{\pi} \dfrac{e^{\cos x}}{e^{\cos x} + e^{-\cos x}}\, dx\)

Show Hint

Replace x by pi - x, add the two forms of the integral and the integrand becomes 1, so 2I = pi.
Updated On: Nov 20, 2026
Show Solution
collegedunia
Verified By Collegedunia

Solution and Explanation

Step 1: Name the integral.
Let \( I = \displaystyle\int_{0}^{\pi}\dfrac{e^{\cos x}}{e^{\cos x} + e^{-\cos x}}\,dx \).

Step 2: Apply the property of definite integrals.
We use \( \displaystyle\int_{0}^{a} f(x)\,dx = \int_{0}^{a} f(a - x)\,dx \). Here \( a = \pi \) and \( \cos(\pi - x) = -\cos x \).
\[ I = \int_{0}^{\pi}\dfrac{e^{-\cos x}}{e^{-\cos x} + e^{\cos x}}\,dx \]

Step 3: Add the two forms of I.
The denominators are the same, so the numerators add up to the denominator.
\[ 2I = \int_{0}^{\pi}\dfrac{e^{\cos x} + e^{-\cos x}}{e^{\cos x} + e^{-\cos x}}\,dx = \int_{0}^{\pi} 1\,dx = \pi \]

Step 4: Find I.
Divide by 2.

Final Answer:
\[ \boxed{I = \dfrac{\pi}{2}} \]
Was this answer helpful?
0
0