The formula for integration by parts is:
$$\int u \, dv = uv - \int v \, du$$
In this case, we can choose $u = x$ and $dv = e^{-x} \, dx$. Taking the derivative of $u$ and finding the antiderivative of $dv$, we have:
$$du = dx \quad \text{and} \quad v =
Show more…