The rule
d/dx (cx) = c
c is a number that does not depend on x. It is the simplest case of the power rule (the exponent is 1, so xⁿ⁻¹ = x⁰ = 1) and of the constant factor rule.
Why
The line y = cx rises c units for every unit to the right, so the average rate of change between any two points is c. The difference quotient confirms it:
(c(x + h) − cx) / h = ch / h = c
and c stays c as h approaches 0.
Worked examples
- d/dx (3x) = 3
- d/dx (−2x) = −2. A falling line has a negative slope.
- d/dx (x/4) = 1/4, since x/4 is (1/4)x.
- f(x) = 5x + 2 gives f′(x) = 5 + 0 = 5, with the derivative of a constant.
Common mistakes
- d/dx (3x) = 3x. The x is gone after differentiating. The derivative of 3x is the number 3.
- d/dx (3x) = 0. The factor 3 does not turn the term into a constant, because x is still there.
- Mixing up cx and xᶜ. d/dx (x³) = 3x² is a different rule, see the derivative of cxⁿ.
Common questions
Is this the same as the slope in y = kx + m?
Yes. The k of the line is the c here, and the m drops out of the derivative, as every constant term does.