Posted by **Steff** on Wednesday, July 13, 2011 at 9:55am.

integrate (e^x-x)^2 dx

- Integration by parts -
**Reiny**, Wednesday, July 13, 2011 at 10:45am
I would expand it first

∫ (e^x - x)^2 dx

= ∫ e^(2x) - 2xe^x + x^2 dx

let's concentrate on the middle term, since the other two terms are easy to integrate

∫ 2xe^x dx

let u = 2x , let dv = e^x dx

du = 2dx and v = e^x

then ∫ 2xe^x dx = (2x)(e^x) - ∫ 2e^x dx

= 2xe^x - 2e^x

finally ...

∫ (e^x-x)^2 dx

= ∫ e^(2x) - 2xe^x + x^2 dx

= (1/2e^(2x) - (2xe^x - 2e^x) + (1/3)x^3 + c

= (1/2)e^(2x) - 2xe^x + 2e^x + (1/3)x^3 + c

## Answer this Question

## Related Questions

- calculus-integration - integrate -2/xln^4(x)...plz help me..give me an idea on ...
- integrate - how do i integrate 2u du /u-2+2u^2 so i used subsitution rule? or ...
- Integral calculus - Please can anyone help with the following problems - thanks...
- Calculus - How do I integrate (x^2)(e^(x^3)) dx? I think it is integration by ...
- calculus - How do I integrate x(arctanx) dx? Is it some sort of integration by ...
- Math Integration - i keep getting stuck and i think im missing something ...
- Quick Calc Question - I can't remember how to integrate ye^ey with respect to y...
- Calc ..basic integration - I forgto how to integrate...its been to long. ...
- Math Integration - Integrate: f (x)/(2x + 1) dx let f represent integrate sign ...
- Calculus - I have to use integration by parts to integrate tan^-1 (1/x)dx. I'm ...