Skip to content
ihateDesmos

Derivative of ln(x²)

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The derivative of ln(x²)
ddx(ln(x2))=2x

The derivative of ln(x²) is 2/x. You can find it with the chain rule, or by first using the log rule ln(x²) = 2 ln|x|.

−4−224−550
Open in calculator
y=ln(x2)
in blue and its derivative
y=2x
in red. Defined for x ≠ 0.

How to find the derivative of ln(x²)

Method: chain rule.

  1. 1
    Apply the chain rule with u = x²: d/dx ln u = (1/u) · u′.
  2. 2
    Here u′ = 2x, so this is (1/x²) · 2x.
  3. 3
    Simplify: 2x/x² = 2/x.
  4. 4
    Check with log rules: ln(x²) = 2 ln|x|, whose derivative is 2 · (1/x) = 2/x.

What it means on the graph

y = ln(x²) has two mirror-image branches, since x² is positive on both sides of 0. The derivative 2/x is positive on the right, where the curve rises, and negative on the left, where it falls.

Table of values

The derivative column uses the formula. The last column estimates the slope directly from the original function, as an independent check.

Values of ln(x²) and its derivative
xln(x²)2/xSlope, measured
−32.19722−2/3−2/3
−10−2−2
1/2−2ln 244
1022
32.197222/32/3

Second derivative

Differentiating once more gives:

d2dx2(ln(x2))=−2x2

The second derivative tells you which way the graph bends: positive means it curves upward, and negative means it curves downward.

Related derivatives

The same result with the chain or product rule. Each of these is checked numerically too.

Related derivatives
FunctionDerivative
ln(x3)
3x
ln(x)2
2ln(x)x

Common mistakes

  • Confusing ln(x²) with (ln x)². The derivative of (ln x)² is 2 ln x / x, which is different.

Frequently asked questions

What is the derivative of ln(x²)?
The derivative of ln(x²) is 2/x, for x ≠ 0.
What is the second derivative of ln(x²)?
Differentiate 2/x again to get the second derivative. The result is shown on this page under “Second derivative”.
What is the difference between ln(x²) and (ln x)²?
ln(x²) takes the log of x squared, and equals 2 ln|x|. (ln x)² squares the log. Their derivatives are 2/x and (2 ln x)/x.

Keep going

Differentiate any function

Type your own function into the derivative calculator and see every rule applied, step by step.

Open the derivative calculator