Derivative of x
Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The derivative of x
ddx(x)=1
The derivative of x is 1. The line y = x rises by exactly 1 for every 1 it moves across, so its slope is 1 everywhere.
y=x
in blue and its derivative y=1
in red.How to find the derivative of x
Method: power rule.
- 1The power rule says d/dx xⁿ = n xⁿ⁻¹.
- 2Here x = x¹, so n = 1.
- 3That gives 1 · x⁰ = 1, since x⁰ = 1.
- 4From the definition: (x + h − x)/h = h/h = 1, for every h.
What it means on the graph
A straight line has the same slope everywhere, so the derivative of y = mx + b is simply the constant m. For y = x, m = 1.
Table of values
The derivative column uses the formula. The last column estimates the slope directly from the original function, as an independent check.
| x | x | 1 | Slope, measured |
|---|---|---|---|
| −2 | −2 | 1 | 1 |
| −1 | −1 | 1 | 1 |
| 0 | 0 | 1 | 1 |
| 1 | 1 | 1 | 1 |
| 2 | 2 | 1 | 1 |
Second derivative
Differentiating once more gives:
d2dx2(x)=0
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.
| Function | Derivative |
|---|---|
2x | 2 |
3x+7 | 3 |
−x | −1 |
Common mistakes
- Answering x or 0. The derivative of the variable itself is 1, and the derivative of a constant is 0.
Frequently asked questions
What is the derivative of x?
The derivative of x is 1.
What is the second derivative of x?
Differentiate 1 again to get the second derivative. The result is shown on this page under “Second derivative”.
What is the derivative of 2x?
2. A constant multiplier stays where it is: d/dx 2x = 2 · 1 = 2.
What is the derivative of a constant?
0. A constant’s graph is a horizontal line, which has zero slope.
Keep going
Differentiate any function
Type your own function into the derivative calculator and see every rule applied, step by step.