Integration by Parts Calculator

Type a product such as x sin(x) or ln(x) to integrate it by parts.

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

Try

Result

You entered∫ln⁡x dx\int \ln x\,dx

∫ln⁡x dx=x ln⁡x−x+C\displaystyle \int \ln x\,dx = x\,\ln x - x + C
Show the work
  1. Integration by parts

    The integrand is a single logarithmic function with no easy antiderivative, so take u=ln⁡xu = \ln x and dv=dxdv = dx.

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

    u=ln⁡x, dv= dx  ⇒  du=1x dx, v=xu = \ln x,\ dv = \,dx \;\Rightarrow\; du = \frac{1}{x}\,dx,\ v = x
  2. Apply the formula

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

    ∫ln⁡x dx=x ln⁡x−∫1 dx\int \ln x\,dx = x\,\ln x - \int 1\,dx
  3. Constant rule

    The integrand does not contain xx, so it is a constant.

    Using ∫c dx=cx+C\int c\,dx = cx + C

    ∫1 dx=x\int 1\,dx = x
  4. Collect the result

    Put the pieces together.

    ∫ln⁡x dx=x ln⁡x−x\int \ln x\,dx = x\,\ln x - x
  5. Result

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

    ∫ln⁡x dx=x ln⁡x−x+C\int \ln x\,dx = x\,\ln x - x + C

Worked examples