Maths WorkshopMaths problems with full solutions
Exercise 20Calculus › Single-variable calculus › Integration › Riemann integralHigh schoolAdded 5 Nov 2026

Integral of a constant step function

#constant#step function#elementary

Statement

Let f(x)=cf(x)=c for x∈[a,b]x\in[a,b]. Compute ∫abf\int_a^b f directly from the definition for step functions.

Hint

Take the trivial subdivision {a,b}\{a,b\}; the sum is c⋅(b−a)c\cdot(b-a).

Show solutionHide solution

Solution

Direct computation. With subdivision {a,b}\{a,b\}, the single interval [a,b][a,b] has constant value cc. So
∫abc dx=c (b−a).\int_a^b c\,dx=c\,(b-a).

Conclusion. The integral of a constant equals the constant times the length of the interval.