Evaluate ∫(0 to 1) x^n · ln(x) dx using integration by parts

hard JEE-ADVANCED JEE Advanced 2023 3 min read

Question

Evaluate the definite integral:

01xnln(x)dx\int_0^1 x^n \ln(x) \, dx

where n>0n > 0.

(JEE Advanced 2023, similar pattern)


Solution — Step by Step

Let u=ln(x)u = \ln(x) and dv=xndxdv = x^n \, dx.

Then du=1xdxdu = \frac{1}{x} dx and v=xn+1n+1v = \frac{x^{n+1}}{n+1}.

Using integration by parts: udv=uvvdu\int u \, dv = uv - \int v \, du.

01xnln(x)dx=[xn+1n+1ln(x)]0101xn+1n+11xdx\int_0^1 x^n \ln(x) \, dx = \left[\frac{x^{n+1}}{n+1} \cdot \ln(x)\right]_0^1 - \int_0^1 \frac{x^{n+1}}{n+1} \cdot \frac{1}{x} \, dx =[xn+1ln(x)n+1]011n+101xndx= \left[\frac{x^{n+1} \ln(x)}{n+1}\right]_0^1 - \frac{1}{n+1}\int_0^1 x^n \, dx

At x=1x = 1: 1n+1ln(1)n+1=10n+1=0\frac{1^{n+1} \cdot \ln(1)}{n+1} = \frac{1 \cdot 0}{n+1} = 0.

At x=0x = 0: We need limx0+xn+1ln(x)n+1\lim_{x \to 0^+} \frac{x^{n+1} \ln(x)}{n+1}. Since n>0n > 0, xn+10x^{n+1} \to 0 faster than ln(x)\ln(x) \to -\infty. By L’Hopital’s rule or direct analysis, this limit is 00.

So the boundary term vanishes: [xn+1ln(x)n+1]01=00=0\left[\frac{x^{n+1} \ln(x)}{n+1}\right]_0^1 = 0 - 0 = 0.

1n+101xndx=1n+1[xn+1n+1]01=1n+11n+1-\frac{1}{n+1}\int_0^1 x^n \, dx = -\frac{1}{n+1} \cdot \left[\frac{x^{n+1}}{n+1}\right]_0^1 = -\frac{1}{n+1} \cdot \frac{1}{n+1} =1(n+1)2= \boxed{-\frac{1}{(n+1)^2}}

Why This Works

The trick is recognising that ln(x)\ln(x) becomes -\infty as x0+x \to 0^+, but xnx^n goes to 00 fast enough to “tame” the logarithm. The product xnln(x)x^n \ln(x) approaches 00 as x0+x \to 0^+ for any n>0n > 0. This is why the boundary term vanishes.

The result 1(n+1)2-\frac{1}{(n+1)^2} is negative, which makes sense: on [0,1][0, 1], xn>0x^n > 0 but ln(x)<0\ln(x) < 0 (since ln(x)\ln(x) is negative for 0<x<10 < x < 1). So the integrand is negative throughout the interval, and the integral must be negative.

This result has a beautiful connection to the Euler-Mascheroni constant and the Gamma function in advanced mathematics.


Alternative Method — Differentiation under the integral sign

Consider I(n)=01xndx=1n+1I(n) = \int_0^1 x^n \, dx = \frac{1}{n+1}.

Differentiate both sides with respect to nn:

dIdn=01n(xn)dx=01xnln(x)dx\frac{dI}{dn} = \int_0^1 \frac{\partial}{\partial n}(x^n) \, dx = \int_0^1 x^n \ln(x) \, dx

And ddn(1n+1)=1(n+1)2\frac{d}{dn}\left(\frac{1}{n+1}\right) = -\frac{1}{(n+1)^2}.

This technique — differentiating a known integral with respect to a parameter — is sometimes called Feynman’s trick. It’s extremely powerful for JEE Advanced and often gives results faster than integration by parts. If you see a parameter inside the integrand and a known “base” integral, try this approach.


Common Mistake

Many students panic at the lower limit x=0x = 0 because ln(0)\ln(0) is undefined. They declare the integral “divergent” without checking. But the integral is perfectly convergent — xnx^n kills the ln(x)\ln(x) singularity. Always evaluate the limit carefully before concluding that an improper integral diverges.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next