Integral Calculator

Type a function of x to integrate it and see how each step is chosen.

Use x. Type powers with ^, and functions with brackets: sin(x), e^(2x), ln(x), sqrt(x).

Try

Result

You entered∫x ex dx\int x\,e^{x}\,dx

∫x ex dx=x ex−ex+C\displaystyle \int x\,e^{x}\,dx = x\,e^{x} - e^{x} + C
Show the work
  1. Integration by parts

    LIATE (logarithmic, inverse trigonometric, algebraic, trigonometric, exponential) puts algebraic before exponential, so u=xu = x and dv=ex dxdv = e^{x}\,dx.

    Using ∫u dv=uv−∫v du\int u\,dv = uv - \int v\,du

    u=x, dv=ex dx  ⇒  du=1 dx, v=exu = x,\ dv = e^{x}\,dx \;\Rightarrow\; du = 1\,dx,\ v = e^{x}
  2. Exponential rule

    This is one of the basic integrals, so the answer is read straight from the table.

    Using ∫ex dx=ex+C\int e^x\,dx = e^x + C

    ∫ex dx=ex\int e^{x}\,dx = e^{x}
  3. Apply the formula

    Substitute into uv−∫v duuv - \int v\,du and integrate what is left.

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

    This is one of the basic integrals, so the answer is read straight from the table.

    Using ∫ex dx=ex+C\int e^x\,dx = e^x + C

    ∫ex dx=ex\int e^{x}\,dx = e^{x}
  5. Collect the result

    Put the pieces together.

    ∫x ex dx=x ex−ex\int x\,e^{x}\,dx = x\,e^{x} - e^{x}
  6. Result

    An antiderivative is only defined up to a constant, so the constant of integration CC is added.

    ∫x ex dx=x ex−ex+C\int x\,e^{x}\,dx = x\,e^{x} - e^{x} + C

Worked examples