Step 1: Understanding the Concept
Write \(x-1=(x+1)-2\). The integrand becomes \(e^x\left[\frac{1}{(x+1)^2}-\frac{2}{(x+1)^3}\right]\).
Step 2: Identify the Pattern
Take \(f(x)=\frac1{(x+1)^2}\). Then \(f'(x)=-\frac{2}{(x+1)^3}\), so the integrand is \(e^x(f+f')\).
Step 3: Integrate
\(\int e^x(f+f')\,dx=e^xf(x)+c=\frac{e^x}{(x+1)^2}+c\).
Final Answer:
The integral is \(\frac{e^x}{(x+1)^2}+c\).
\[ \boxed{\text{(B) }\dfrac{e^{x}}{(x+1)^{2}}+c} \]