Method (§7.4, form 9): for ∫at2+bt+cpt+qdt, write pt+q=Adtd(at2+bt+c)+B.
Given / To find: the indefinite integral above.
Step 1 — substitute. Put t=ex, so dt=exdx and e2x=t2:
I=∫t2+4t+13t+3dt
Step 2 — split the numerator. dtd(t2+4t+13)=2t+4. From t+3=A(2t+4)+B: 2A=1 and 4A+B=3, so A=21 and B=1:
I=21∫t2+4t+132t+4dt+∫t2+4t+13dt
Step 3 — first integral. The numerator is the derivative of the denominator, and t2+4t+13=(t+2)2+9>0:
21∫t2+4t+132t+4dt=21log(t2+4t+13)+C1
Step 4 — second integral. Completing the square, t2+4t+13=(t+2)2+32:
∫(t+2)2+32dt=31tan−13t+2+C2
Step 5 — return to x.
Answer:
∫e2x+4ex+13ex(ex+3)dx=21log(e2x+4ex+13)+31tan−1(3ex+2)+C
Note: No modulus is needed inside the logarithm because e2x+4ex+13>0 for every x. Forgetting the factor 21 (that is, taking A=1) is the usual slip in Step 2.