Skip to content
Exercise 7.6 · Q14

Q.Integrate the following function: x(log⁡x)2x (\log x)^2

Uttarakhand UbseTextbookSubjective· 3mImportance★★★★★
46% · 170/373 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

The integral ∫x(log⁡x)2 dx\int x (\log x)^2 \, dx is solved by applying integration by parts twice, treating (log⁡x)2(\log x)^2 as the first function and xx as the second. The final result is x22(log⁡x)2−x22log⁡x+x24+C\frac{x^2}{2} (\log x)^2 - \frac{x^2}{2} \log x + \frac{x^2}{4} + C.

The core idea here is that we have a product of a polynomial (xx) and a logarithmic power ((log⁡x)2(\log x)^2). The power rule for integration alone can't handle the logarithm directly — but integration by parts can. Why? Because differentiating a logarithm reduces its power, while integrating a polynomial is straightforward. So we repeatedly peel off the logarithm layer by layer.

Let’s work through it step by step.

  1. Set up integration by parts. We use the formula:

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

Choose u=(log⁡x)2u = (\log x)^2 (so that differentiating reduces the power) and dv=x dxdv = x \, dx (easy to integrate).

Then:

du=2log⁡x⋅1x dx=2log⁡xx dxdu = 2 \log x \cdot \frac{1}{x} \, dx = \frac{2 \log x}{x} \, dx

v=∫x dx=x22v = \int x \, dx = \frac{x^2}{2}

  1. Apply the formula.

∫x(log⁡x)2 dx=(log⁡x)2⋅x22−∫x22⋅2log⁡xx dx\int x (\log x)^2 \, dx = (\log x)^2 \cdot \frac{x^2}{2} - \int \frac{x^2}{2} \cdot \frac{2 \log x}{x} \, dx

Simplify the new integral:

=x22(log⁡x)2−∫xlog⁡x dx= \frac{x^2}{2} (\log x)^2 - \int x \log x \, dx

Now we have a simpler integral: ∫xlog⁡x dx\int x \log x \, dx. This still has a logarithm, so we apply integration by parts again.

  1. Second integration by parts. For ∫xlog⁡x dx\int x \log x \, dx, set u=log⁡xu = \log x and dv=x dxdv = x \, dx. Then:

du=1x dx,v=x22du = \frac{1}{x} \, dx, \quad v = \frac{x^2}{2}

So:

∫xlog⁡x dx=log⁡x⋅x22−∫x22⋅1x dx\int x \log x \, dx = \log x \cdot \frac{x^2}{2} - \int \frac{x^2}{2} \cdot \frac{1}{x} \, dx

=x22log⁡x−12∫x dx= \frac{x^2}{2} \log x - \frac{1}{2} \int x \, dx

=x22log⁡x−12⋅x22+C1= \frac{x^2}{2} \log x - \frac{1}{2} \cdot \frac{x^2}{2} + C_1

=x22log⁡x−x24+C1= \frac{x^2}{2} \log x - \frac{x^2}{4} + C_1

  1. Substitute back. From step 2: …

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.