Constant Rule Calculator
This Constant Rule Calculator differentiates a plain number, and shows the working line by line. A constant function never changes as x moves, so its rate of change is zero no matter how large the constant is. That is why the answer is always zero rather than the constant itself. Following the same pattern every time makes the reasoning behind a zero derivative explicit instead of memorised.
Step-by-step method
- Set up the problem.
- Write the constant rule formula.
- Apply the constant rule.
Formula: Constant Rule
The derivative of a number on its own is 0, because a constant never changes.
Useful Tips to Remember
The derivative of any constant is zero, \(\frac{d}{dx}c = 0\), because a constant never changes. This includes numbers like \(\pi\) and \(e\), which are constants, not variables. A constant added to a function disappears when you differentiate, but a constant multiplying a function stays. A horizontal line has a gradient of zero everywhere.
Required knowledge
- No prerequisite knowledge is needed.
Where Is the Constant Rule Used?
The constant rule says that the derivative of a constant is zero, because a value that never changes has no rate of change. It explains why fixed costs disappear when finding marginal cost, and why the starting height of a falling object does not affect its speed. Every time a function has a constant term, such as the \(+5\) in \(x^2 + 5\), this rule removes it from the derivative. It is also the reason a constant of integration appears when working backwards, since many functions share the same derivative.
- Removing fixed costs when finding marginal cost in economics
- Ignoring a starting height when finding velocity
- Differentiating the constant terms of polynomials
- Understanding why integration needs a \(+C\)
- Checking that a flat graph has a gradient of zero
Constant Rule Practice Problems
Example 1 differentiates \(f(x) = 5\), and Example 2 differentiates the fraction \(f(x) = \frac{7}{2}\). Try each one yourself before opening the examples. For two more free worked examples, check out the Constant Rule Notes.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule formula.
- Apply the constant rule.
Formula
Formula: Constant Rule
The derivative of a number on its own is 0, because a constant never changes.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(5\). This expression does not contain \(x\), so it is a constant.
Step 2
Step 2 - Write the constant rule formula.
In this problem: The constant rule says the derivative of any constant is \(0\).
Step 3
Step 3 - Apply the constant rule.
In this problem: Since \(5\) is constant, its derivative is \(0\).
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule formula.
- Apply the constant rule.
Formula
Formula: Constant Rule
The derivative of a number on its own is 0, because a constant never changes.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(\frac{7}{2}\). This expression does not contain \(x\), so it is a constant.
Step 2
Step 2 - Write the constant rule formula.
In this problem: The constant rule says the derivative of any constant is \(0\).
Step 3
Step 3 - Apply the constant rule.
In this problem: Since \(\frac{7}{2}\) is constant, its derivative is \(0\).
Final Answer
Notes and Practice Mode
Want to understand the method more deeply? The Constant Rule Notes go through the same pattern with extra worked examples and fuller explanations of the ideas behind each step, so you can see why every step works and not just what to do. When you are ready to test yourself, Constant Rule Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode is available on the Plus and Pro plans.
Login and upgrade to Plus to unlock the full step solution.
Example Problems
Click one to load it into the box and solve it.