The point is: if you had a constant function, f(x)= c, the "area under the curve" from a to b would f(x)(b-a)= c(b-a). With a variable function, that area is [tex]\int_a^b f(x)dx[/tex].
If fave is the average of the function we must have
[tex]\int_a^b f(x)dx= f_{ave}(b-a)[/tex]