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

Integral of $|f|$ for a step function

#absolute value#step function#triangle inequality

Statement

Let ff be a step function on [a,b][a,b]. Show that ∣f∣|f| is a step function and
∣∫abf∣≤∫ab∣f∣.\left|\int_a^bf\right|\le\int_a^b|f|.

Hint

∣f∣|f| has the same subdivisions as ff; apply the triangle inequality to the sum.

Show solutionHide solution

Solution

∣f∣|f| is a step function. On each interval where f=ckf=c_k, ∣f∣=∣ck∣|f|=|c_k|, constant.

Inequality.
∣∫abf∣=∣∑kckΔk∣≤∑k∣ck∣Δk=∫ab∣f∣.\left|\int_a^bf\right|=\left|\sum_kc_k\Delta_k\right|\le\sum_k|c_k|\Delta_k=\int_a^b|f|.

Conclusion. The triangle inequality for integrals holds for step functions.