Class 12 Maths, Worked in Full Past papersGet updates
Chapter 7 · Integrals

Exercise 7.2 · Q36: ∫(x+1)(x+log⁡x)2x dx\int\frac{(x+1)(x+\log x)^2}{x}\,dx

Exercise 7.2Integration by substitution · Section 7.3.1
The question

Integrate the function (Exercise 7.2, "Integrate the functions in Exercises 1 to 37"):

(x+1)(x+log⁡x)2x\frac{(x + 1)(x + \log x)^2}{x}
Exam answer

Let I=∫(x+1)(x+log⁡x)2x dxI = \displaystyle\int\frac{(x + 1)(x + \log x)^2}{x}\,dx⁠.

Put x+log⁡x=tx + \log x = t⁠. Then (1+1x)dx=dt\left(1 + \frac1x\right)dx = dt⁠, that is, x+1x dx=dt\frac{x + 1}{x}\,dx = dt⁠.

I=∫t2 dt=t33+CI = \int t^2\,dt = \frac{t^3}{3} + C

∴ I=13(x+log⁡x)3+C\therefore\ I = \dfrac13(x + \log x)^3 + C⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Differentiate the bracket: ddx(x+log⁡x)=1+1x=x+1x\frac{d}{dx}(x + \log x) = 1 + \frac1x = \frac{x + 1}{x}⁠. That is exactly the rest of the integrand. So with t=x+log⁡xt = x + \log x⁠, the factor x+1x dx\frac{x + 1}{x}\,dx is dtdt⁠, and the integral is ∫t2 dt\int t^2\,dt⁠.

Given, to find, and the plan
Given
f(x)=(x+1)(x+log⁡x)2xf(x) = \dfrac{(x + 1)(x + \log x)^2}{x}⁠, log⁡\log the natural logarithm.
To find
∫f(x) dx\int f(x)\,dx⁠, and where the answer is valid.
Plan
(1) Domain: x>0x > 0⁠. (2) Compute the derivative of x+log⁡xx + \log x⁠. (3) Substitute t=x+log⁡xt = x + \log x⁠. (4) Integrate t2t^2 and return to xx⁠. (5) Differentiate back.

Basics you need

1log⁡x\log x and its derivative

log⁡x\log x needs x>0x > 0⁠, and ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1x⁠. Basics: logarithms and 1/x

2Adding fractions

1+1x=xx+1x=x+1x1 + \frac1x = \frac{x}{x} + \frac1x = \frac{x + 1}{x}⁠. Basics: working with fractions

3Substitution

If t=g(x)t = g(x)⁠, then dt=g′(x) dxdt = g'(x)\,dx⁠. Basics: substitution (the chain rule backwards)

4Power rule

∫t2 dt=t33+C\int t^2\,dt = \frac{t^3}{3} + C⁠. Basics: powers and the power rule

Solution

  1. Where is the integrand defined?

    log⁡x\log x needs x>0x > 0⁠, and then the division by xx is allowed. So the integrand is defined for

    x>0.x > 0.
    The answer is claimed on this interval (Note, Section 7.2).
  2. Differentiate the bracket x+log⁡xx + \log x

    ddx(x+log⁡x)=1+1x=x+1x.\frac{d}{dx}(x + \log x) = 1 + \frac1x = \frac{x + 1}{x}.
    The integrand is a square of x+log⁡xx + \log x⁠, multiplied by x+1x\frac{x + 1}{x}⁠. Computing the bracket's derivative shows that this remaining factor is precisely that derivative. This is the book's advice: substitute for a function whose derivative also occurs in the integrand (Section 7.3.1).
    Sum rule for derivatives; ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1x (Section 5.4). Basics: fractions
  3. Substitute t=x+log⁡xt = x + \log x

    Put t=x+log⁡xt = x + \log x⁠. By Step 2,

    dt=x+1x dx.dt = \frac{x + 1}{x}\,dx.

    Group the integrand to match:

    ∫(x+1)(x+log⁡x)2x dx=∫(x+log⁡x)2⋅x+1x dx=∫t2 dt.\begin{aligned} &\int\frac{(x + 1)(x + \log x)^2}{x}\,dx \\ &= \int(x + \log x)^2\cdot\frac{x + 1}{x}\,dx \\ &= \int t^2\,dt. \end{aligned}
    Moving the factor x+1x\frac{x + 1}{x} next to dxdx makes the substitution visible: one part becomes t2t^2⁠, the other becomes dtdt⁠. Nothing in xx is left.
  4. Integrate and return to xx

    ∫t2 dt=t33+C=13(x+log⁡x)3+C.\int t^2\,dt = \frac{t^3}{3} + C = \tfrac13(x + \log x)^3 + C.
    Power rule with n=2n = 2⁠, then t=x+log⁡xt = x + \log x put back.
    Standard formula (i), Section 7.2. Basics: power rule
  5. Check: differentiate the answer back

    Let F(x)=13(x+log⁡x)3F(x) = \frac13(x + \log x)^3⁠. Chain rule, outer 13u3\frac13u^3⁠, inner u=x+log⁡xu = x + \log x⁠:

    F′(x)=13⋅3(x+log⁡x)2⋅(1+1x)=(x+1)(x+log⁡x)2x.\begin{aligned} F'(x) &= \tfrac13\cdot 3(x + \log x)^2\cdot\left(1 + \frac1x\right) \\ &= \frac{(x + 1)(x + \log x)^2}{x}. \end{aligned}

    This is the integrand. ✓

    Property (I), Section 7.2.1: differentiating the answer must return the integrand.
    Chain rule, Theorem 4, Section 5.3.1. Basics: integration undoes differentiation
Result

∫(x+1)(x+log⁡x)2x dx=13(x+log⁡x)3+C,\int\frac{(x + 1)(x + \log x)^2}{x}\,dx = \tfrac13(x + \log x)^3 + C, valid for x>0x > 0⁠. (Textbook answer: 13(x+log⁡x)3+C\frac13(x + \log x)^3 + C⁠.)

Check it with numbers

Take x=2x = 2 and h=0.001h = 0.001⁠:

  • F(2.001)=6.5220544F(2.001) = 6.5220544 and F(1.999)=6.5002952F(1.999) = 6.5002952⁠,
  • slope ≈6.5220544−6.50029520.002=10.8796\approx \frac{6.5220544 - 6.5002952}{0.002} = 10.8796⁠,
  • integrand: 3 (2+log⁡2)22=3 (2.693147)22=10.8796\frac{3\,(2 + \log 2)^2}{2} = \frac{3\,(2.693147)^2}{2} = 10.8796⁠. ✓
Common mistakes
  1. Expanding everything. Multiplying out produces terms such as 2xlog⁡x2x\log x and (log⁡x)2(\log x)^2⁠, which need integration by parts (Section 7.6). Spotting the derivative avoids all of that.
  2. Taking t=log⁡xt = \log x⁠. Then dt=dxxdt = \frac{dx}{x} leaves (x+1)(x+log⁡x)2(x + 1)(x + \log x)^2 with x=etx = e^t inside: much harder.
  3. Forgetting x>0x > 0⁠.
What to take away
  1. Before expanding, differentiate the most complicated bracket and see if its derivative is the rest of the integrand.
  2. ddx(x+log⁡x)=x+1x\frac{d}{dx}(x + \log x) = \frac{x + 1}{x}⁠: combining 1+1x1 + \frac1x into one fraction is what reveals the match.
  3. Compare Q35: there t=1+log⁡xt = 1 + \log x⁠, here t=x+log⁡xt = x + \log x⁠; the method is identical.

Every fact used, and where it comes from

FactUsed inSource
log⁡x\log x defined for x>0x > 0⁠; ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1xSteps 1, 2Section 5.4
1+1x=x+1x1 + \frac1x = \frac{x + 1}{x}Step 2Adding fractions
Substitution t=x+log⁡xt = x + \log xStep 3Section 7.3.1 (Lesson: substitution)
∫tn dt=tn+1n+1+C\int t^n\,dt = \frac{t^{n+1}}{n+1} + C⁠, n≠−1n \ne -1Step 4Standard formula (i), Section 7.2
Chain rule; F′=fF' = f checks the answerStep 5Theorem 4, Section 5.3.1; Property (I), Section 7.2.1
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →