AP Calculus AB and BC

Derivative of ln(x^2): Answer, Proof, Mistakes

The derivative of ln(x^2) with respect to x is 2/x. By the chain rule with inner function x^2, the derivative is (1/x^2) times 2x, which simplifies to 2/x. You get the same answer by rewriting ln(x^2) as 2 ln|x| and differentiating to 2 times 1/x. It holds for every x except 0.

ddx[ln(x2)]=2x\frac{d}{dx}\left[\ln(x^2)\right] = \frac{2}{x}

The proof: chain rule on ln(x^2)

The outer function is lnu\ln u and the inner is u=x2u = x^2. Differentiate the outer to 1u\frac{1}{u}, keep the inner, then multiply by the inner derivative u=2xu' = 2x.

ddxln(x2)=1x22x=2xx2=2x\frac{d}{dx}\ln(x^2) = \frac{1}{x^2}\cdot 2x = \frac{2x}{x^2} = \frac{2}{x}

The x2x^2 in the denominator and the 2x2x from the chain rule cancel down to 2x\frac{2}{x}. Leaving the answer as 2xx2\frac{2x}{x^2} is not wrong, but the graders expect the simplified 2x\frac{2}{x}.

The shortcut: rewrite ln(x^2) as 2 ln|x|

A log of a power comes down as a coefficient: ln(x2)=2lnx\ln(x^2) = 2\ln|x|. The absolute value matters because x2x^2 is positive for every x0x \neq 0, so the domain of ln(x2)\ln(x^2) is all x0x \neq 0, wider than the domain of lnx\ln x.

ddx[2lnx]=21x=2x\frac{d}{dx}\left[2\ln|x|\right] = 2\cdot\frac{1}{x} = \frac{2}{x}

Both routes agree, and the derivative 2x\frac{2}{x} is itself defined for all x0x \neq 0, matching the domain of the original function.

Common mistakes

  • Answering 1x2\frac{1}{x^2} by differentiating ln\ln and stopping. That skips the chain rule factor 2x2x from the inner function x2x^2.
  • Confusing ln(x2)\ln(x^2) with (lnx)2(\ln x)^2. The second is a square of a log and differentiates by the chain rule to 2lnxx\frac{2\ln x}{x}, a different function.
  • Leaving 2xx2\frac{2x}{x^2} unsimplified. It equals 2x\frac{2}{x}, and simplifying avoids the false impression the answer still depends on x2x^2.
  • Writing 2lnx2\ln x instead of 2lnx2\ln|x| and then claiming the domain is only x>0x > 0. The original ln(x2)\ln(x^2) is defined for negative xx too.

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 ln(x^2)?

It is 2x\frac{2}{x}. The chain rule gives 1x22x=2x\frac{1}{x^2}\cdot 2x = \frac{2}{x}, and rewriting ln(x2)=2lnx\ln(x^2) = 2\ln|x| gives the same 2x\frac{2}{x}.

Is the derivative of ln(x^2) the same as the derivative of 2 ln x?

Yes, the formula is the same, 2x\frac{2}{x}. The only difference is the domain: ln(x2)\ln(x^2) and 2lnx2\ln|x| are defined for all x0x \neq 0, while 2lnx2\ln x needs x>0x > 0.

Why does the x^2 disappear from the answer?

The chain rule puts x2x^2 in the denominator and 2x2x in the numerator. The common factor of xx cancels, leaving 2x\frac{2}{x}.