# Math Help - integration by parts question

1. ## integration by parts question

If I have $\int (x-1) e^\frac{-x}{2}$ and am integrating by parts can I have x-1 = u and $e^\frac{-x}{2}$ = dv

or should I multiply through the x-1 so that I am integrating this -

$\int x e^\frac{-x}{2} - \int e^\frac{-x}{2}$

Does it matter?

2. You can do it either way. As for assigning u and dv, refer to this.

3. Thank you for the speedy reply Ackbeet, and it just validates my reasoning for donating to the website. This is a fantastic community!

4. You're very welcome. And thank you for donating!