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.
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.
- 1Use the log rule: ln(x²) = 2 ln|x|.
- 2Take the constant outside: 2 ∫ln|x| dx.
- 3The integral of ln|x| is x ln|x| − x.
- 4So 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.
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.
| x | ln(x²) | Slope of the answer |
|---|---|---|
| −2 | 2ln 2 | 2ln 2 |
| −1 | 0 | −0 |
| 1/2 | −2ln 2 | −2ln 2 |
| 1 | 0 | −0 |
| 2 | 2ln 2 | 2ln 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.