Derivative of a constant
The derivative of a constant (any number on its own, such as 5, π or e^2) is 0, by the constant rule.
📐 The constant rule
d/dx c = 0 for any constant c.
d/dx a constant = 0.
✍️ Differentiating a constant
- A constant function has the same value everywhere, so its graph is a horizontal line.
- The slope of a horizontal line is 0, at every x.
- So d/dx c = 0: d/dx 5 = 0, d/dx π = 0, d/dx e2 = 0, d/dx √7 = 0.
🔍 Where the rule comes from
From the definition: (c − c)/h = 0 for every h, so the limit is 0. The rule also covers numbers that look like functions, such as e2, ln 3, π2 and sin 1: they contain no x, so they are constants. A constant multiplied by a function is different: d/dx (c·f(x)) = c·f′(x), the constant stays.
📍 The slope of a constant at a point, and the tangent line
f′(a) is the slope of the graph at x = a, and the tangent line there is y = f′(a)(x − a) + f(a). Values to four decimal places; the calculator below gives any other point.
| Point | a constant | 0 | Tangent line |
|---|---|---|---|
| x = −2 | 5 | 0 | y = 5 |
| x = −1 | 5 | 0 | y = 5 |
| x = −0.5 | 5 | 0 | y = 5 |
| x = 0 | 5 | 0 | y = 5 |
| x = 0.5 | 5 | 0 | y = 5 |
| x = 1 | 5 | 0 | y = 5 |
| x = 2 | 5 | 0 | y = 5 |
| x = 3 | 5 | 0 | y = 5 |
👪 Rules and special cases: the derivatives side by side
The same rule, or the same trap, runs through the whole family; each row has its own worked page.
⚠️ The mistakes that lose the marks
- Differentiating e2 as 2e: e2 is a number (about 7.389), its derivative is 0.
- Dropping a constant that multiplies x: d/dx 5x = 5, not 0.
🧮 Calculator
The answer appears here, with the working in words.
✏️ Five questions, answers hidden
1. Differentiate 7.
Answer: 0
2. Differentiate e^2.
Answer: 0
3. Differentiate 3x + 7.
Answer: 3
4. Differentiate π x.
Answer: π
5. Differentiate ln 5 + x^2.
Answer: 2x
📚 The class this belongs to
Derivatives are taught in AP Calculus AB and BC and in Calculus 1 in the US (the power, product, quotient and chain rules, trigonometric, exponential and logarithmic derivatives, implicit differentiation), in A-level Maths (Year 12 and 13, Pure) in the UK, in IB Mathematics Analysis and Approaches (Topic 5), in Class 11 and 12 in CBSE (NCERT Limits and Derivatives, Continuity and Differentiability) and in Mathematical Methods (Units 3 and 4) and Specialist Mathematics in Australia.
If this page is the homework and the method is not sticking, that is what a 1-on-1 class fixes: one tutor with a master's degree, one child, on a shared whiteboard, in your time zone, about US$10 to $13 an hour. How 1-on-1 online tutoring works.
