Skip to content
ihateDesmos

Integral of ln(x²)

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The integral of ln(x²)
∫
ln(x2)
dx =
2xln(|x|)−2x+C

The integral of ln(x²) is 2x ln|x| − 2x + C. The log rule ln(x²) = 2 ln|x| reduces it to the integral of ln x.

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

How to integrate ln(x²)

Method: log rules.

  1. 1
    Use the log rule: ln(x²) = 2 ln|x|.
  2. 2
    Take the constant outside: 2 ∫ln|x| dx.
  3. 3
    The integral of ln|x| is x ln|x| − x.
  4. 4
    So the result is 2(x ln|x| − x) + C = 2x ln|x| − 2x + C.

What it means

ln(x²) is defined on both sides of zero, and symmetric about the y-axis. It is negative between −1 and 1, so the area there counts as negative.

The integral from 1 to 2

Using the antiderivative: F(2) − F(1) = 4 ln 2 − 2, which is about 0.772589. A direct numerical integration of ln(x²) gives 0.772589, which agrees.

−5−4−3−2−112345−6−4−2246

Check by differentiating

The derivative of the answer should give back the original function. The last column measures that slope directly from the answer, and it matches.

Checking the integral
xln(x²)Slope of the answer
−22ln 22ln 2
−10−0
1/2−2ln 2−2ln 2
10−0
22ln 22ln 2

Common mistakes

  • Confusing it with (ln x)², which has a different integral.

Frequently asked questions

What is the integral of ln(x²)?
The integral of ln(x²) is 2x ln|x| − 2x + C, for x ≠ 0.
What is the integral of ln(x²) from 1 to 2?
4 ln 2 − 2, which is about 0.772589.

Keep going

Integrate any function

Type your own function into the integral calculator for the steps, the answer and a graph.

Open the integral calculator