Claim: ∫ex[f(x)+f′(x)]dx=exf(x)+c.
Reasoning: let t=exf(x). Differentiating, dxdt=exf′(x)+f(x)ex=ex[f(x)+f′(x)]. By definition of integration, ∫ex[f(x)+f′(x)]dx=t+c=exf(x)+c.
For example, since dxdtanx=sec2x, we immediately get ∫ex[tanx+sec2x]dx=extanx+c — no by-parts computation needed, once f(x)=tanx is spotted. The skill in applying this pattern is entirely in recognising, and if necessary algebraically producing, the shape "f(x) plus its own derivative":
∫ex1+cos2x2+sin2xdx. Using sin2x=2sinxcosx and 1+cos2x=2cos2x, the fraction is cos2x1+cos2xsinxcosx=sec2x+tanx. Taking f(x)=tanx (so f′(x)=sec2x), the pattern matches exactly: I=extanx+c.
∫ex(x+3)2x+2dx. Write the numerator as (x+3)−1: the fraction becomes x+31−(x+3)21. Taking f(x)=x+31, note f′(x)=−(x+3)21 — an exact match: I=x+3ex+c.
∫etan−1x1+x21+x+x2dx. Put t=tan−1x, so x=tant and 1+x21dx=dt. The integrand becomes et[1+tant+tan2t]=et[tant+sec2t] (using 1+tan2t=sec2t) — an et[f+f′] pattern with f(t)=tant. So I=ettant+c=etan−1x⋅x+c. …