AP Calculus AB and BC

Derivative of x^2 ln x: Answer, Proof, and Mistakes

The derivative of x^2 ln x is x(2 ln x + 1), which expands to 2x ln x + x, for x > 0. In prime notation, if f(x) = x^2 ln x then f'(x) = x(2 ln x + 1). The product rule gives 2x ln x plus x^2 times 1/x, and that second term collapses to x.

ddx[x2lnx]=x(2lnx+1)\frac{d}{dx}\left[x^2\ln x\right] = x(2\ln x+1)

How to differentiate x^2 ln x

Set u=x2u = x^{2} and v=lnxv = \ln x, so u=2xu' = 2x and v=1xv' = \frac{1}{x}, then apply the product rule uv+uvu'v+uv'.

ddx(x2lnx)=2xlnx+x21x=2xlnx+x\frac{d}{dx}\left(x^{2}\ln x\right) = 2x\ln x+x^{2}\cdot\frac{1}{x} = 2x\ln x+x

The step worth slowing down for is x21x=xx^{2}\cdot\frac{1}{x} = x. Cancelling one power of xx leaves xx, not 11 and not 1x\frac{1}{x}.

f(x)=x(2lnx+1)f'(x) = x(2\ln x+1)

What the factored form shows

On the domain x>0x>0 the factor xx is positive, so the derivative changes sign only when the bracket does.

2lnx+1=0lnx=12x=1e2\ln x+1 = 0 \quad\Longrightarrow\quad \ln x = -\frac{1}{2} \quad\Longrightarrow\quad x = \frac{1}{\sqrt{e}}

To the left of 1e0.607\frac{1}{\sqrt{e}}\approx 0.607 the derivative is negative and to the right it is positive, so that input gives the minimum of x2lnxx^{2}\ln x, with value 12e-\frac{1}{2e}.

Product rule questions with a logarithm factor sit in Unit 2, and this one also sets up the integration by parts version, x2lnxdx\int x^{2}\ln x\,dx, later in the course.

Common mistakes with the derivative of x^2 ln x

  • Multiplying derivatives and answering 2x1x=22x\cdot\frac{1}{x} = 2. The product rule adds two terms rather than multiplying two derivatives.
  • Writing 2xlnx+1x2x\ln x+\frac{1}{x}, forgetting to multiply 1x\frac{1}{x} by the factor x2x^{2} that stays put.
  • Expanding the factored answer wrong: x(2lnx+1)=2xlnx+xx(2\ln x+1) = 2x\ln x+x, not 2xlnx+12x\ln x+1.
  • Treating lnx\ln x as if it had a derivative of lnx\ln x, which loses the whole point of the logarithm rule.

Check yourself, not just the answer

Type derivatives and get graded on mathematical equivalence, with rule-level hints when you miss, in the Derivative Practice Checker.

Frequently asked questions

What is the derivative of x2lnxx^{2}\ln x?

It is x(2lnx+1)x(2\ln x+1), equivalently 2xlnx+x2x\ln x+x, for x>0x>0.

Why does the product rule give xx and not 1x\frac{1}{x}?

Because the second term is x21xx^{2}\cdot\frac{1}{x}, the untouched factor x2x^{2} times the derivative of lnx\ln x. Those cancel down to xx.

Where does x2lnxx^{2}\ln x reach its minimum?

At x=1ex = \frac{1}{\sqrt{e}}, where 2lnx+1=02\ln x+1 = 0. The minimum value there is 12e-\frac{1}{2e}.