Text this: A Variational Approach to Lyapunov Type Inequalities