Solution:
Concept: If f is differentiable, then ∫ex[f(x)+f′(x)]dx=exf(x)+C. To see why, differentiate exf(x) by the product rule: the result is exf(x)+exf′(x), which is exactly the integrand. So whenever the bracket is a function plus its own derivative, the answer is ex times that function.
Step 1 — Expand the numerator.
We expand (1−x)2 and group it as (1+x2)−2x, so that it matches the denominator.
(1−x)2=1−2x+x2
(1−x)2=(1+x2)−2x
Step 2 — Split the fraction.
We divide each part by (1+x2)2.
(1+x21−x)2=(1+x2)2(1+x2)−2x
(1+x21−x)2=1+x21−(1+x2)22x
Step 3 — Choose f(x).
We take f(x)=1+x21, written as (1+x2)−1, and differentiate it by the chain rule.
f′(x)=−(1+x2)−2⋅2x
f′(x)=−(1+x2)22x
Step 4 — Match the pattern.
The integrand is ex[f(x)+f′(x)], so the integral is exf(x). This holds for every real x, since 1+x2>0.
I=1+x2ex+C
Step 5 — Check by differentiating.
The derivative of 1+x2ex is 1+x2ex−(1+x2)22xex, which is the integrand written as in Step 2.
Therefore, ∫ex(1+x21−x)2dx=1+x2ex+C.