Class 12 Maths, Worked in Full Past papersGet updates
CBSE Sample Paper 2024-25 · Section C · 3 marks

Q29: ∫{1log⁡x−1(log⁡x)2}dx\int\left\{\frac{1}{\log x} - \frac{1}{(\log x)^2}\right\}dx⁠, or ∫01x(1−x)n dx\int_0^1 x(1 - x)^n\,dx

Sample 2024-25Ch 7 · Integrals
The question

(a) Evaluate: ∫{1log⁡x−1(log⁡x)2}dx\displaystyle\int\left\{\frac{1}{\log x} - \frac{1}{(\log x)^2}\right\}dx⁠; (where x>1x > 1⁠).

OR

(b) Evaluate : ∫01x(1−x)n dx\displaystyle\int_0^1 x(1 - x)^n\,dx⁠; (where n∈Nn \in N⁠).

Exam answer

(a)

Let I=∫{1log⁡x−1(log⁡x)2}dxI = \displaystyle\int\left\{\frac{1}{\log x} - \frac{1}{(\log x)^2}\right\}dx

I=∫dxlog⁡x−∫dx(log⁡x)2I = \int\frac{dx}{\log x} - \int\frac{dx}{(\log x)^2}
Why?

Neither 1log⁡x\frac{1}{\log x} nor 1(log⁡x)2\frac{1}{(\log x)^2} has an antiderivative we can write down on its own. The plan is to integrate the first one by parts and watch the second one cancel.

Integrating the first integral by parts, with 1log⁡x\frac{1}{\log x} as the first function and 1 as the second,

Why?

Integration by parts:

∫u v dx=u∫v dx−∫(dudx∫v dx)dx\begin{aligned} \int u\,v\,dx &= u\int v\,dx \\ &\quad - \int\left(\frac{du}{dx}\int v\,dx\right)dx \end{aligned}

Writing 1log⁡x=1log⁡x⋅1\frac{1}{\log x} = \frac{1}{\log x}\cdot 1 lets us use it with v=1v = 1⁠, which is easy to integrate, while 1log⁡x\frac{1}{\log x} is easy to differentiate.

I=1log⁡x∫dx−∫{ddx(1log⁡x)∫dx}dx−∫dx(log⁡x)2\begin{aligned} I &= \frac{1}{\log x}\int dx \\ &\quad - \int\left\{\frac{d}{dx}\left(\frac{1}{\log x}\right)\int dx\right\}dx \\ &\quad - \int\frac{dx}{(\log x)^2} \end{aligned}
Why?

∫dx=x\int dx = x⁠. Write 1log⁡x=(log⁡x)−1\frac{1}{\log x} = (\log x)^{-1} and use the chain rule:

ddx(log⁡x)−1=−(log⁡x)−2⋅1x=−1x(log⁡x)2\begin{aligned} &\frac{d}{dx}(\log x)^{-1} \\ &= -(\log x)^{-2}\cdot\frac1x \\ &= -\frac{1}{x(\log x)^2} \end{aligned}
=xlog⁡x+∫1(log⁡x)2⋅1x⋅x dx−∫dx(log⁡x)2\begin{aligned} &= \frac{x}{\log x} + \int\frac{1}{(\log x)^2}\cdot\frac1x\cdot x\,dx \\ &\quad - \int\frac{dx}{(\log x)^2} \end{aligned}
Why?

The minus in the formula and the minus in the derivative give a plus.

−∫{−1x(log⁡x)2⋅x}dx=+∫1x(log⁡x)2⋅x dx=∫1(log⁡x)2⋅1x⋅x dx\begin{aligned} &-\int\left\{-\frac{1}{x(\log x)^2}\cdot x\right\}dx \\ &= +\int\frac{1}{x(\log x)^2}\cdot x\,dx \\ &= \int\frac{1}{(\log x)^2}\cdot\frac1x\cdot x\,dx \end{aligned}

The first part is 1log⁡x⋅x=xlog⁡x\frac{1}{\log x}\cdot x = \frac{x}{\log x}⁠.

Inside the integral, 1x⋅x=1\frac1x\cdot x = 1⁠, so the integral is ∫dx(log⁡x)2\int\frac{dx}{(\log x)^2}⁠.

=xlog⁡x+∫dx(log⁡x)2−∫dx(log⁡x)2= \frac{x}{\log x} + \int\frac{dx}{(\log x)^2} - \int\frac{dx}{(\log x)^2}
Why?

The two remaining integrals are the same, so they cancel. Only one arbitrary constant cc is needed at the end.

Check: differentiating xlog⁡x\frac{x}{\log x} by the quotient rule gives back the integrand:

With u=xu = x⁠, v=log⁡xv = \log x⁠, u′=1u' = 1⁠, v′=1xv' = \frac1x⁠:

ddx(xlog⁡x)=u′v−uv′v2=(1)log⁡x−x⋅1x(log⁡x)2=log⁡x−1(log⁡x)2=log⁡x(log⁡x)2−1(log⁡x)2\begin{aligned} \frac{d}{dx}\left(\frac{x}{\log x}\right) &= \frac{u'v - uv'}{v^2} \\ &= \frac{(1)\log x - x\cdot\frac1x}{(\log x)^2} \\ &= \frac{\log x - 1}{(\log x)^2} \\ &= \frac{\log x}{(\log x)^2} - \frac{1}{(\log x)^2} \end{aligned} log⁡x−1(log⁡x)2=1log⁡x−1(log⁡x)2\frac{\log x - 1}{(\log x)^2} = \frac{1}{\log x} - \frac{1}{(\log x)^2}

∴ I=xlog⁡x+c\therefore\ I = \dfrac{x}{\log x} + c, where cc is an arbitrary constant of integration.

(b)

Let I=∫01x(1−x)n dxI = \displaystyle\int_0^1 x(1 - x)^n\,dx⁠.

Using ∫0af(x) dx=∫0af(a−x) dx\displaystyle\int_0^a f(x)\,dx = \int_0^a f(a - x)\,dx⁠,

I=∫01(1−x){1−(1−x)}n dx=∫01xn(1−x) dx\begin{aligned} I &= \int_0^1 (1 - x)\{1 - (1 - x)\}^n\,dx \\ &= \int_0^1 x^n(1 - x)\,dx \end{aligned}
Why?

Expanding (1−x)n(1 - x)^n for a general nn would be very long. The property moves the power onto a single xx instead.

Here a=1a = 1⁠, so every xx is replaced by 1−x1 - x⁠:

1−(1−x)=x1 - (1 - x) = x

So (1−x){1−(1−x)}n(1 - x)\{1 - (1 - x)\}^n becomes (1−x)xn(1 - x)x^n⁠.

I=∫01xn dx−∫01xn+1 dx=1n+1[xn+1]01−1n+2[xn+2]01\begin{aligned} I &= \int_0^1 x^n\,dx - \int_0^1 x^{n + 1}\,dx \\ &= \frac{1}{n + 1}\Big[x^{n + 1}\Big]_0^1 - \frac{1}{n + 2}\Big[x^{n + 2}\Big]_0^1 \end{aligned}
Why?

Multiply out: xn(1−x)=xn−xn+1x^n(1 - x) = x^n - x^{n + 1}⁠.

Then use the power rule for integrals:

∫xm dx=xm+1m+1\int x^m\,dx = \frac{x^{m + 1}}{m + 1}

with m=nm = n and with m=n+1m = n + 1⁠.

I=1n+1−1n+2=(n+2)−(n+1)(n+1)(n+2)\begin{aligned} I &= \frac{1}{n + 1} - \frac{1}{n + 2} \\ &= \frac{(n + 2) - (n + 1)}{(n + 1)(n + 2)} \end{aligned}
Why?

At the upper limit 1n+1=1n+2=11^{n + 1} = 1^{n + 2} = 1⁠. At the lower limit both powers of 0 are 0, since n≥1n \ge 1⁠.

[xn+1]01=1n+1−0n+1=1−0=1[xn+2]01=1n+2−0n+2=1−0=1\begin{aligned} \Big[x^{n + 1}\Big]_0^1 &= 1^{n + 1} - 0^{n + 1} \\ &= 1 - 0 = 1 \\ \Big[x^{n + 2}\Big]_0^1 &= 1^{n + 2} - 0^{n + 2} \\ &= 1 - 0 = 1 \end{aligned}

So I=1n+1(1)−1n+2(1)I = \frac{1}{n + 1}(1) - \frac{1}{n + 2}(1)⁠.

Take the common denominator (n+1)(n+2)(n + 1)(n + 2)⁠. The numerator is n+2−n−1=1n + 2 - n - 1 = 1⁠.

1n+1=n+2(n+1)(n+2)1n+2=n+1(n+1)(n+2)(n+2)−(n+1)=n+2−n−1=(n−n)+(2−1)=0+1=1\begin{aligned} \frac{1}{n + 1} &= \frac{n + 2}{(n + 1)(n + 2)} \\ \frac{1}{n + 2} &= \frac{n + 1}{(n + 1)(n + 2)} \\[4pt] (n + 2) - (n + 1) &= n + 2 - n - 1 \\ &= (n - n) + (2 - 1) \\ &= 0 + 1 = 1 \end{aligned}

∴ I=1(n+1)(n+2)\therefore\ I = \dfrac{1}{(n + 1)(n + 2)}⁠.

Where this comes from

Chapter 7, Integrals: Integration by parts; definite integral property.

Question type: (a) Integration by parts; (b) Limits from 0 to aa

How to spot it: click to see

(a) Type 8. Integration by parts: a product of two different kinds

Spot it: a product such as xsin⁡xx\sin x⁠, xexxe^x or xlog⁡xx\log x⁠. A lone log⁡x\log x or tan⁡−1x\tan^{-1}x works too: take the other function as 1.

Here: Neither 1log⁡x\frac{1}{\log x} nor 1(log⁡x)2\frac{1}{(\log x)^2} has a card. Integrate 1log⁡x\frac{1}{\log x} by parts with 1 as the second function: it leaves +∫dx(log⁡x)2+\int\frac{dx}{(\log x)^2}⁠, which cancels the second term.

(b) Type 12. Limits from 0 to aa⁠: the f(a−x)f(a - x) trick

Spot it: replacing xx by a−xa - x swaps the parts of the question, like sin and cos when aa is π2\frac{\pi}{2}⁠.

Here: With a=1a = 1⁠, replacing xx by 1−x1 - x swaps xx and 1−x1 - x⁠, so the power nn moves onto a plain xx⁠. The integral becomes ∫01(xn−xn+1) dx\int_0^1(x^n - x^{n + 1})\,dx⁠, which the power card finishes.

Found an error?

Tell us if something on this page is wrong or unclear. Send feedback on this question →