The value of ∫x(1+xex)2(1+x)dx , is equal to
(1) \log \left| \frac{x}{1+xe^x} \right| + \frac{1}{(1+xe^x)} + C
(2) \log \left| \frac{xe^x}{1+xe^x} \right| + \frac{1}{1+xe^x} + C
(3) \log \left| \frac{xe^x}{1+e^x} \right| + \frac{1}{1+xe^x} + C
(4) None of the above