Skip to content
ihateDesmos

Integral of 1/x²

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The integral of 1/x²
∫
1x2
dx =
−1x+C

The integral of 1/x² is −1/x + C. Rewrite it as x⁻², and the power rule applies as usual.

−22−550
Open in calculator
y=1x2
in blue and its integral
y=−1x
(with C = 0) in red. Defined for x ≠ 0.

How to integrate 1/x²

Method: power rule.

  1. 1
    Rewrite the integrand as a power: 1/x² = x⁻².
  2. 2
    Apply the power rule with n = −2: x⁻¹/(−1).
  3. 3
    Simplify: −x⁻¹ = −1/x.
  4. 4
    Add the constant: −1/x + C.
  5. 5
    Check: the derivative of −1/x is 1/x².

What it means

Unlike 1/x, this function falls fast enough that the area out to infinity is finite: the area from 1 to ∞ is exactly 1. That is why infinite sums like 1 + 1/4 + 1/9 + … converge.

The integral from 1 to 2

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

−4−3−2−11234−6−4−22468

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
x1/x²Slope of the answer
−21/41/4
−111
1/244
111
21/41/4

Common mistakes

  • Writing ln(x²), which is wrong: only 1/x integrates to a logarithm.
  • Integrating across x = 0. The area near zero is infinite, so the integral from −1 to 1 diverges, even though the formula seems to give −2.

Frequently asked questions

What is the integral of 1/x²?
The integral of 1/x² is −1/x + C, for x ≠ 0.
What is the integral of 1/x² from 1 to 2?
1/2, which is about 1/2.

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