2. For a constant function $\displaystyle f(x)=c$
$\displaystyle f(z)=\frac{1}{b-a}\int_a^bcdx=\frac{1}{b-a}c[b-a]=c$