100% free no uploads no sign-up

integral of ln(x)

The integral of ln(x) is x·ln(x) − x + C, where C is any constant.

problem
∫ ln(x) dx
answer
∫ ln(x) dx = x·ln(x) − x + C

✓ checked: differentiating the answer gives back the original function (tested at several points).

step-by-step working

  1. Integration by parts: ∫u dv = u·v − ∫v du, with u = ln(x) and dv = 1 dx. Then du = 1/x dx and v = x.

    ∫ ln(x) dx = x·ln(x) − ∫ 1 dx
  2. The integral of a constant k is k·x.

    ∫ 1 dx = x
  3. Put the pieces together.

    ∫ ln(x) dx = x·ln(x) − x
  4. Add the constant of integration C (any constant differentiates to 0).

plain-text version of this solution
Problem: ∫ ln(x) dx
Step 1: Integration by parts: ∫u dv = u·v − ∫v du, with u = ln(x) and dv = 1 dx. Then du = 1/x dx and v = x. ∫ ln(x) dx = x·ln(x) − ∫ 1 dx
Step 2: The integral of a constant k is k·x. ∫ 1 dx = x
Step 3: Put the pieces together. ∫ ln(x) dx = x·ln(x) − x
Step 4: Add the constant of integration C (any constant differentiates to 0).
Answer: ∫ ln(x) dx = x·ln(x) − x + C
✓ checked: differentiating the answer gives back the original function (tested at several points).

Related problems

Try it yourself

Change the problem below and press Enter. Steps, answer and check update instantly, all in your browser.

mode: integral

Enter solves · Shift+Enter for a new line · put systems on separate lines or separate them with commas

Frequently asked questions

What is the integral of ln(x)?

∫ ln(x) dx = x·ln(x) − x + C. Method: integration by parts.

How do you check the integral of ln(x)?

Differentiate the answer. The derivative of x·ln(x) − x is ln(x), and the + C disappears because the derivative of a constant is 0.

What is the integral of ln(2x)?

∫ ln(2x) dx = x·ln(2x) − x + C.

More integrals