The rule
∫ k dx = kx + C
k is a number that does not depend on x, and C is the constant of integration. Differentiating kx + C gives k, which is how the rule is checked: the derivative of a constant removes C and the slope of kx is k.
Worked examples
- ∫ 5 dx = 5x + C
- ∫ (−2) dx = −2x + C
- ∫ 1 dx = x + C. This is why ∫ dx is written with nothing in front.
- ∫₀⁴ 3 dx = [3x]₀⁴ = 12 − 0 = 12, the area of a rectangle 4 wide and 3 high. See the definite integral.
The rule is also the power rule for the exponent 0, since k = k·x⁰.
Common mistakes
- Dropping the x. ∫ 5 dx = 5x + C, not 5 + C. A constant integrated over x grows with x.
- Forgetting C in an indefinite integral.
- Adding C in a definite integral. It cancels, and the answer is a number.
Common questions
Why does the answer have x in it?
Because the antiderivative must differentiate back to k. Only a function with slope k does that, and
the straight line kx has exactly that slope.