Whenever an integrand has the exact shape ex times [f(x)+f′(x)], it integrates instantly, no substitution or parts needed:
∫ex[f(x)+f′(x)]dx=exf(x)+C
This follows directly from the product rule run in reverse: dxd[exf(x)]=exf(x)+exf′(x)=ex[f(x)+f′(x)].
Why it works
Differentiate exf(x) with the product rule:
dxd[exf(x)]=ex⋅f(x)+ex⋅f′(x)=ex[f(x)+f′(x)]
So exf(x) is an antiderivative of ex[f(x)+f′(x)], and integrating just reverses that step. The whole skill is spotting f: find a term in the bracket whose derivative is the other term.
Spotting f(x) in some common brackets
Bracket
f(x)
Integral
sinx+cosx
sinx
exsinx+C
tanx+sec2x
tanx
extanx+C
lnx+x1
lnx
exlnx+C
x2+2x
x2
x2ex+C
x1−x21
x1
xex+C
Worked example
Find ∫ex(x1−x21)dx.
Solution: Let f(x)=x1. Then f′(x)=−x21, exactly matching the second term. So the integrand is ex[f(x)+f′(x)], and:
∫ex(x1−x21)dx=exf(x)+C=xex+C
Worked example: f has to be uncovered
Find ∫ex(x+2)2x+1dx.
Solution: The bracket doesn't look like f+f′ yet. Write the numerator as (x+2)−1 and split:
(x+2)2x+1=(x+2)2x+2−(x+2)21=x+21−(x+2)21
With f(x)=x+21, f′(x)=−(x+2)21, which is exactly the second term:
∫ex[x+21−(x+2)21]dx=x+2ex+C
Worked example: a definite integral
Evaluate ∫01ex(x+1)dx.
Solution: With f(x)=x, f′(x)=1, so the integrand is ex[f(x)+f′(x)] and the antiderivative is xex:
∫01ex(x+1)dx=[xex]01=e−0=e≈2.718
Common mistakes
Not checking that the second term is exactly f′.ex(sinx−cosx) is not this pattern with f=sinx, since f′=+cosx. (It is the pattern with f=−cosx, giving −excosx+C.)
Using it with e2x. The general version is ∫ekx[kf(x)+f′(x)]dx=ekxf(x)+C, so with e2x the bracket must be 2f+f′.
Where this comes up in exams
This pattern comes from integration by parts. JEE Main 2026 lists integration by substitution, by parts and by partial fractions, and the 2025-26 CBSE Class XII syllabus lists integration of a variety of functions by substitution, by partial fractions and by parts.