
((x + 1)/(x + 2)2)

Tip – If f1(x) and f2(x) are two functions , then an integral of the form ∫ f1(x)f2(x)dx can be INTEGRATED BY PARTS as

where f1(x) and f2(x) are the first and second functions respectively.
Taking f1(x) = 1/(x + 2) and f2(x) = ex in the second integral and keeping the first integral intact,

where c is the integrating constant.