# Thread: need help integrating (e^(x^2)-2x) / (e^x^2)dx

1. ## need help integrating (e^(x^2)-2x) / (e^x^2)dx

i need help integrating this function.
im not sure where to go i keep getting stuck!
thanks!

2. Originally Posted by LexiRae
i need help integrating this function.
im not sure where to go i keep getting stuck!
thanks!
If the integral is $\int\frac{e^{x^2}-2x}{e^{x^2}}\,dx$, then we can rewrite it $\int\left(1-2xe^{-x^2}\right)\,dx=\int\,dx+\int\left(-2xe^{-x^2}\right)\,dx$

Now apply the substitution $u=-x^2$ on the second integral.

Can you continue?

3. Originally Posted by LexiRae
i need help integrating this function.
im not sure where to go i keep getting stuck!
thanks!
$\int\frac{e^{x^2}-2x}{e^{x^2}}\,dx$

$=\int\left(1-\frac{2x}{e^{x^2}}\right)\,dx$

$=x-\int\frac{2x}{e^{x^2}}\,dx$

$=x+\int(-2x)e^{-x^2}\,dx$

Can you finish?