By sketching a graph of a continuous increasing function, can you prove a useful result about integrals?

Generalise this inequality involving integrals.

An inequality involving integrals of squares of functions.