Quantum integral inequalities on finite intervals