Solution:
Key idea: The derivative of e2x+e−2x is 2(e2x−e−2x), so the numerator is half the derivative of the denominator. The substitution t=e2x+e−2x gives half of ∫tdt.
Step 1 — Substitute.
We put the denominator equal to t.
t=e2x+e−2x
Differentiating both sides gives the new differential.
dt=(2e2x−2e−2x)dx
We divide by 2 to get the numerator times dx.
(e2x−e−2x)dx=2dt
Step 2 — Integrate in terms of t.
The integral becomes half the standard logarithm form.
∫e2x+e−2xe2x−e−2xdx=21∫tdt
21∫tdt=21log∣t∣+C
Step 3 — Return to x.
We put back t=e2x+e−2x. This is always positive, so the modulus can be dropped.
21log∣t∣+C=21log(e2x+e−2x)+C
Therefore, ∫e2x+e−2xe2x−e−2xdx=21log(e2x+e−2x)+C.