Skip to content
ihateDesmos

Derivative of 1/x

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The derivative of 1/x
ddx(1x)=−1x2

The derivative of 1/x is −1/x². Rewrite 1/x as x⁻¹, and the power rule does the rest. The result is negative everywhere, because the curve falls on both branches.

−22−550
Open in calculator
y=1x
in blue and its derivative
y=−1x2
in red. Defined for x ≠ 0.

How to find the derivative of 1/x

Method: power rule.

  1. 1
    Rewrite the function as a power: 1/x = x⁻¹.
  2. 2
    Apply the power rule with n = −1: −1 · x⁻¹⁻¹.
  3. 3
    Simplify the exponent: −x⁻².
  4. 4
    Rewrite it: −1/x².

What it means on the graph

y = 1/x falls on both sides of its asymptote at x = 0. The slope is −1 at x = 1, and gets steeper closer to 0. Far from 0, the curve flattens out and the slope approaches 0.

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 1/x and its derivative
x1/x−1/x²Slope, measured
−2−1/2−1/4−1/4
−1−1−1−1
−1/2−2−4−4
1/22−4−4
11−1−1
21/2−1/4−1/4

Second derivative

Differentiating once more gives:

d2dx2(1x)=2x3

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
12x
−12x2
1x+1
−1(x+1)2
1x3
−3x4

Common mistakes

  • Writing ln x. That is the integral of 1/x, not its derivative.
  • Getting the exponent wrong: −1 − 1 is −2, not 0.
  • Differentiating the top and bottom separately, which would give 0/1 = 0.

Frequently asked questions

What is the derivative of 1/x?
The derivative of 1/x is −1/x², for x ≠ 0.
What is the second derivative of 1/x?
Differentiate −1/x² again to get the second derivative. The result is shown on this page under “Second derivative”.
What is the derivative of 1/x²?
−2/x³. Write it as x⁻² and apply the power rule.

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