Class 12 Maths, Worked in Full Past papersGet updates
Chapter 5 · Continuity and Differentiability

Exercise 5.7 · Q5: Second derivative of x3log⁡xx^3\log x

Exercise 5.7Second order derivative · Section 5.7
The question

Find the second order derivatives of the functions given in Exercises 1 to 10.

5. x3log⁡xx^3\log x

Exam answer

Let y=x3log⁡xy = x^3\log x (x>0x > 0⁠). By the product rule,

dydx=3x2log⁡x+x3⋅1x=3x2log⁡x+x2,d2ydx2=6xlog⁡x+3x2⋅1x+2x=6xlog⁡x+5x\begin{aligned} \frac{dy}{dx} &= 3x^2\log x + x^3\cdot\frac1x \\ &= 3x^2\log x + x^2, \\ \frac{d^2y}{dx^2} &= 6x\log x + 3x^2\cdot\frac1x + 2x \\ &= 6x\log x + 5x \end{aligned}

∴ d2ydx2=x(5+6log⁡x)\therefore\ \dfrac{d^2y}{dx^2} = x(5 + 6\log x)

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

The one idea this problem is built on

x3log⁡xx^3\log x is a product, so the product rule gives the first derivative. That derivative, 3x2log⁡x+x23x^2\log x + x^2⁠, still contains the product 3x2log⁡x3x^2\log x⁠, so the product rule is used again. Along the way x3⋅1xx^3\cdot\frac1x simplifies to x2x^2⁠, which is allowed because x>0x \gt 0⁠.

Given, to find, and the plan
Given
y=x3log⁡xy = x^3\log x (natural logarithm), defined for x>0x \gt 0⁠.
To find
d2ydx2\dfrac{d^2y}{dx^2}⁠.
Plan
(1) State the domain. (2) Product rule for dydx\frac{dy}{dx} and simplify. (3) Sum rule, product rule on 3x2log⁡x3x^2\log x⁠, power rule on x2x^2⁠. (4) Collect and factor; compare with the textbook form.

Basics you need

1Product rule (Leibnitz rule)

(uv)′=u′v+uv′(uv)' = u'v + uv' (Section 5.3, rule (2)). Basics: derivative rules

2Logarithm

log⁡x\log x exists only for x>0x \gt 0⁠, and ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1x (Theorem 5(2), Section 5.4). Basics: exponentials and logarithms

3Power rule

ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n-1} (Table 5.3); constants stay in front.

4Second order derivative (Section 5.7)

d2ydx2=ddx(dydx)\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right)⁠. Lesson: second order derivative

Solution

  1. Name the function and its domain

    Let y=x3log⁡xy = x^3\log x⁠. The factor log⁡x\log x needs x>0x \gt 0⁠; x3x^3 is defined everywhere. So the domain is x>0x \gt 0⁠, and every derivative below is taken there.

    A product exists only where both factors exist, so the domain is set by the more restrictive factor, the logarithm.
    Section 5.4: log⁡x\log x is defined for x>0x \gt 0⁠. Basics: exponentials and logarithms
  2. First derivative: product rule

    Take u=x3u = x^3⁠, v=log⁡xv = \log x⁠, so u′=3x2u' = 3x^2 and v′=1xv' = \frac{1}{x}⁠:

    dydx=u′v+uv′=3x2log⁡x+x3⋅1x=3x2log⁡x+x2.\begin{aligned} \frac{dy}{dx} &= u'v + uv' = 3x^2\log x + x^3\cdot\frac{1}{x} \\ &= 3x^2\log x + x^2. \end{aligned}
    yy is a product of a power and a logarithm, so the product rule applies. In the second term x3⋅1x=x2x^3\cdot\frac1x = x^2⁠: cancelling one xx is allowed because x>0x \gt 0⁠, so x≠0x \ne 0⁠.
    Product rule (Section 5.3, rule (2)); ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1x (Theorem 5).
  3. Second derivative: sum rule, then each term

    Differentiate dydx=3x2log⁡x+x2\frac{dy}{dx} = 3x^2\log x + x^2 term by term (sum rule):

    d2ydx2=ddx(3x2log⁡x)+ddx(x2).\frac{d^2y}{dx^2} = \frac{d}{dx}\left(3x^2\log x\right) + \frac{d}{dx}\left(x^2\right).

    First term, product rule with u=3x2u = 3x^2 (u′=6xu' = 6x⁠) and v=log⁡xv = \log x (v′=1xv' = \frac1x⁠):

    ddx(3x2log⁡x)=6xlog⁡x+3x2⋅1x=6xlog⁡x+3x.\begin{aligned} \frac{d}{dx}\left(3x^2\log x\right) &= 6x\log x + 3x^2\cdot\frac{1}{x} \\ &= 6x\log x + 3x. \end{aligned}

    Second term, power rule: ddxx2=2x\frac{d}{dx}x^2 = 2x⁠.

    The second derivative is the derivative of the expression from Step 2. Its first term is again a product of a power and a logarithm, so the product rule is needed once more; the second term is a plain power.
    Sum rule (Section 5.3, rule (1)); product rule (rule (2)); power rule (Table 5.3).
  4. Collect and factor

    d2ydx2=6xlog⁡x+3x+2x=6xlog⁡x+5x=x(5+6log⁡x).\begin{aligned} \frac{d^2y}{dx^2} &= 6x\log x + 3x + 2x \\ &= 6x\log x + 5x \\ &= x(5 + 6\log x). \end{aligned}

    So d2ydx2=x(5+6log⁡x)\dfrac{d^2y}{dx^2} = x(5 + 6\log x) for x>0x \gt 0⁠.

    3x3x and 2x2x are like terms (sum 5x5x⁠). Taking out the common factor xx gives exactly the textbook's form x(5+6log⁡x)x(5 + 6\log x)⁠; expanding it back gives 5x+6xlog⁡x5x + 6x\log x⁠, the same expression.
    Common factor: 6xlog⁡x+5x=x(6log⁡x+5)6x\log x + 5x = x(6\log x + 5)⁠.
Result

For y=x3log⁡xy = x^3\log x⁠, x>0x \gt 0⁠:

dydx=3x2log⁡x+x2,d2ydx2=x(5+6log⁡x).\begin{aligned} \frac{dy}{dx} &= 3x^2\log x + x^2, \\ \frac{d^2y}{dx^2} &= x(5 + 6\log x). \end{aligned}

(Textbook answer: x(5+6log⁡x)x(5 + 6\log x)⁠.)

Check it with numbers

At x=2x = 2⁠, with log⁡2≈0.6931472\log 2 \approx 0.6931472⁠:

  • Formula: y′′=2(5+6×0.6931472)y'' = 2(5 + 6 \times 0.6931472)⁠, which is about 18.317766218.3177662⁠.
  • Second difference with h=0.001h = 0.001⁠: y(2.001)−2y(2)+y(1.999)0.000001\frac{y(2.001) - 2y(2) + y(1.999)}{0.000001} is about 18.317766418.3177664⁠.
  • First derivative: 12log⁡2+4≈12.317766212\log 2 + 4 \approx 12.3177662⁠; central difference y(2.001)−y(1.999)0.002\frac{y(2.001) - y(1.999)}{0.002} is about 12.317768712.3177687⁠.

The values agree to about six significant figures. ✓

Common mistakes
  1. Skipping the product rule in the second round. ddx(3x2log⁡x)\frac{d}{dx}(3x^2\log x) is not 6x⋅1x6x\cdot\frac1x⁠; both terms of the product rule are needed.
  2. Losing the x2x^2 term. The first derivative has two terms, and both must be differentiated; the 2x2x from x2x^2 is part of the 5x5x⁠.
  3. Ignoring the domain. Everything holds only for x>0x \gt 0⁠.
What to take away
  1. Simplify the first derivative (here x3⋅1x=x2x^3\cdot\frac1x = x^2⁠) before differentiating again; it makes the second round shorter.
  2. ddx(xnlog⁡x)=nxn−1log⁡x+xn−1\frac{d}{dx}(x^n\log x) = nx^{n-1}\log x + x^{n-1} for x>0x \gt 0⁠, a pattern used twice here.

Every fact used, and where it comes from

FactUsed inSource
log⁡x\log x is defined for x>0x \gt 0Step 1Section 5.4
(uv)′=u′v+uv′(uv)' = u'v + uv'Steps 2, 3Section 5.3, rule (2)
(u+v)′=u′+v′(u + v)' = u' + v'Step 3Section 5.3, rule (1)
ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1xSteps 2, 3Theorem 5(2), Section 5.4 (Lesson: exponential and logarithmic functions)
ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n-1}Steps 2, 3Table 5.3 (Basics: derivative rules)
d2ydx2=ddx(dydx)\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right)Step 3Section 5.7 (Lesson: second order derivative)
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 →