Solution:
Key idea: The derivative of e2x−2 is 2e2x, so the numerator is half the derivative of the denominator. The substitution t=e2x−2 gives half of ∫tdt.
Step 1 — Substitute.
We put the denominator equal to t.
t=e2x−2
Differentiating both sides gives the new differential.
dt=2e2xdx
We divide by 2 to get the numerator times dx.
e2xdx=2dt
Step 2 — Integrate in terms of t.
The integral becomes half the standard logarithm form.
∫e2x−2e2xdx=21∫tdt
21∫tdt=21log∣t∣+C
Step 3 — Return to x.
We put back t=e2x−2. The modulus matters here, because e2x−2<0 when x<21log2.
21log∣t∣+C=21loge2x−2+C
Note: Taking e2x out of the modulus gives the equivalent form x+21log1−2e−2x+C.
Therefore, ∫e2x−2e2xdx=21loge2x−2+C (for x=21log2).