Lyapunov Inequalities and Applications