Integral of x²·eˣ

∫x2ex dx\int x^{2} e^{x}\,dx = (x2−2x+2)ex+C\left(x^{2} - 2 x + 2\right) e^{x} + C

Answer

Indefinite integral
(x2−2x+2)ex+C\left(x^{2} - 2 x + 2\right) e^{x} + C

Checked numerically before it is shown

Step-by-step solution

  1. Integration by parts

    Integrate by parts with u=x2u = x^{2} and dv=ex dxdv = e^{x}\,dx:

    ∫u dv=uv−∫v du\int u\,dv = uv - \int v\,du
  2. Find du and v

    Then du=2x dxdu = 2 x\,dx and v=exv = e^{x}.

  3. Apply the formula

    ∫x2ex dx=x2ex−∫2xex dx\int x^{2} e^{x}\,dx = x^{2} e^{x} - \int 2 x e^{x}\,dx
  4. Constant multiple rule

    Take the constant factor out of the integral:

    ∫2xex dx=2∫xex dx\int 2 x e^{x}\,dx = 2 \int x e^{x}\,dx
  5. Integration by parts

    Integrate by parts with u=xu = x and dv=ex dxdv = e^{x}\,dx:

    ∫u dv=uv−∫v du\int u\,dv = uv - \int v\,du
  6. Find du and v

    Then du=1 dxdu = 1\,dx and v=exv = e^{x}.

  7. Apply the formula

    ∫xex dx=xex−∫ex dx\int x e^{x}\,dx = x e^{x} - \int e^{x}\,dx
  8. Exponential rule

    Integral of the exponential function:

    ∫ex dx=ex\int e^{x}\,dx = e^{x}
  9. Constant of integration

    Add the constant of integration:

    ∫x2ex dx=x2ex−2xex+2ex+C\int x^{2} e^{x}\,dx = x^{2} e^{x} - 2 x e^{x} + 2 e^{x} + C
  10. Same answer

    The same antiderivative, written as in the answer:

    x2ex−2xex+2ex=(x2−2x+2)exx^{2} e^{x} - 2 x e^{x} + 2 e^{x} = \left(x^{2} - 2 x + 2\right) e^{x}

Change the problem in the solver Integral calculator

Related solved examples