Step 1: Understanding the Concept
Multiply the numerator and denominator of \(I_2\) by \(e^{2x}\): \(I_{2}=\int \dfrac{e^{2x}}{1+e^{x}+e^{2x}}dx\).
Step 2: Subtract
\(I_{1}-I_{2}=\int \dfrac{e^{x}-e^{2x}}{e^{2x}+e^{x}+1}dx\).
Put \(t=e^{x}\), \(dx=\dfrac{dt}{t}\), giving \(\int \dfrac{1-t}{t^{2}+t+1}dt\).
Step 3: Split
Write \(1-t=-\dfrac{1}{2}(2t+1)+\dfrac{3}{2}\).
Then the integral is \(-\dfrac{1}{2}\log (t^{2}+t+1)+\dfrac{3}{2}\int \dfrac{dt}{\left(t+\frac{1}{2}\right)^{2}+\frac{3}{4}}\).
Step 4: Integrate
The last integral gives \(\dfrac{3}{2}\cdot \dfrac{2}{\sqrt{3}}\tan ^{-1}\dfrac{2t+1}{\sqrt{3}}=\sqrt{3}\tan ^{-1}\dfrac{2t+1}{\sqrt{3}}\).
Final Answer:
The result is \(-\dfrac{1}{2}\log |e^{2x}+e^{x}+1|+\sqrt{3}\tan ^{-1}\left(\dfrac{2e^{x}+1}{\sqrt{3}}\right)+c\).
\[ \boxed{\text{(A) }-\dfrac{1}{2}\log |e^{2x}+e^{x}+1|+\sqrt{3}\tan ^{-1}\left(\dfrac{2e^{x}+1}{\sqrt{3}}\right)+c} \]