Skip to content
Worked Examples · Example 18

Q.Find ∫log⁡x dx\int \log x\, dx

Uttar Pradesh UpmspTextbookSubjective· 3mImportance★★★★★est
40% · 151/373 Questions
✓ Free question

The integral of log⁡x\log x is solved using integration by parts, treating log⁡x\log x as 1⋅log⁡x1 \cdot \log x. The result is xlog⁡x−x+Cx \log x - x + C.

The key insight here is that log⁡x\log x doesn't have an obvious antiderivative from the power rule or standard formulas. But we can rewrite it as a product: log⁡x=1⋅log⁡x\log x = 1 \cdot \log x. This lets us use integration by parts, which is the reverse of the product rule for derivatives.

Integration by parts says: ∫u dv=uv−∫v du\int u \, dv = uv - \int v \, du. The trick is choosing uu and dvdv so that the new integral ∫v du\int v \, du is simpler than the original. For log⁡x\log x, we set u=log⁡xu = \log x because its derivative is 1x\frac{1}{x}, a simple rational function. Then dv=1 dxdv = 1 \, dx, so v=xv = x.

Let's work through it step by step.

  1. Set up integration by parts.

    We have ∫log⁡x dx=∫(1)(log⁡x) dx\int \log x \, dx = \int (1)(\log x) \, dx.

    Choose:

    u=log⁡xu = \log x

    dv=1 dxdv = 1 \, dx

  2. Find dudu and vv.

    Differentiate uu: du=1x dxdu = \frac{1}{x} \, dx

    Integrate dvdv: v=∫1 dx=xv = \int 1 \, dx = x

  3. Apply the integration by parts formula.

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

    Substitute:

    ∫log⁡x dx=(log⁡x)(x)−∫x⋅1x dx\int \log x \, dx = (\log x)(x) - \int x \cdot \frac{1}{x} \, dx

  4. Simplify the new integral.

    x⋅1x=1x \cdot \frac{1}{x} = 1, so we get:

    ∫log⁡x dx=xlog⁡x−∫1 dx\int \log x \, dx = x \log x - \int 1 \, dx

  5. Integrate the remaining term.

    ∫1 dx=x+C\int 1 \, dx = x + C (don't forget the constant of integration)

    Therefore:

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

Watch out

A common mistake is to forget the constant of integration CC or to misapply the formula by swapping uu and dvdv. If you set u=1u = 1 and dv=log⁡x dxdv = \log x \, dx, you'd need to know the integral of log⁡x\log x already — which is exactly what we're trying to find! Always choose uu as the function that simplifies when differentiated.

Tip

This result is a classic and worth memorizing: ∫log⁡x dx=xlog⁡x−x+C\int \log x \, dx = x \log x - x + C. It also works for ln⁡x\ln x (natural log) — same formula. For log⁡ax\log_a x, use the change of base: log⁡ax=ln⁡xln⁡a\log_a x = \frac{\ln x}{\ln a}, then integrate.

✓Final answer

The integral is xlog⁡x−x+C\boxed{x \log x - x + C}.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.