integrate (e^x-x)^2 dx

1 answer

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
Similar Questions
  1. Please can anyone help with the following problems - thanks.1) Integrate X^4 e^x dx 2) Integrate Cos^5(x) dx 3) Integrate
    1. answers icon 0 answers
  2. Please do help solve the followings1) Integrate e^4 dx 2) Integrate dx/sqrt(90^2-4x^2) 3) Integrate (e^x+x)^2(e^x+1) dx 4)
    1. answers icon 0 answers
    1. answers icon 0 answers
  3. 1) Integrate Cos^n(x) dx2) Integrate e^(ax)Sinbx dx 3) Integrate (5xCos3x) dx I Will be happy to critique your thinking on
    1. answers icon 0 answers
more similar questions