Solution:
Key idea: Since e2x=(ex)2 and the numerator exdx is the derivative of ex, the substitution t=ex works. It turns the integrand into the standard form ∫1+t2dt, whose value is tan−1t.
Step 1 — Substitute t = eˣ.
Put t=ex, so dt=exdx and e2x=t2.
∫1+e2xexdx=∫1+t2dt
Step 2 — Use the standard integral.
The integral of 1+t21 is tan−1t.
∫1+t2dt=tan−1t+C
Step 3 — Return to x.
We put back t=ex.
I=tan−1(ex)+C
Therefore, ∫1+e2xexdx=tan−1(ex)+C.