Integral of ln(x)

∫ln⁡(x) dx\int \ln\left(x\right)\,dx = xln⁡∣x∣−x+Cx \ln\left|x\right| - x + C

Answer

Indefinite integral
xln⁡∣x∣−x+Cx \ln\left|x\right| - x + C

Checked numerically before it is shown

Step-by-step solution

  1. Integration by parts

    Integrate by parts with u=ln⁡(x)u = \ln{\left(x \right)} and dv=1 dxdv = 1\,dx:

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

    Then du=1x dxdu = \frac{1}{x}\,dx and v=xv = x.

  3. Apply the formula

    ∫ln⁡(x) dx=xln⁡(x)−∫1 dx\int \ln{\left(x \right)}\,dx = x \ln{\left(x \right)} - \int 1\,dx
  4. Integral of a constant

    ∫1 dx=x\int 1\,dx = x
  5. Constant of integration

    Add the constant of integration:

    ∫ln⁡(x) dx=xln⁡∣x∣−x+C\int \ln{\left(x \right)}\,dx = x \ln\left|x\right| - x + C

Change the problem in the solver Integral calculator

Related solved examples