Finite-difference inequalities and an extension of Lyapunov's method.