Step 1: Understanding the Concept
\(I=\int_0^\pi\dfrac{e^{\cos x}}{e^{\cos x}+e^{-\cos x}}dx\). Replace \(x\) by \(\pi-x\), so \(\cos x\) becomes \(-\cos x\).
Step 2: Calculation
\(I=\int_0^\pi\dfrac{e^{-\cos x}}{e^{-\cos x}+e^{\cos x}}dx\)\nAdd: \(2I=\int_0^\pi1\,dx=\pi\)
Step 3: Compare the options
\(I=\dfrac\pi2\), option (D).
Final Answer:
The value of the integral is pi over 2.
\[ \boxed{\text{(D) }\dfrac{\pi }{2}} \]