The second-order secular equation in the theory of molecular vibrations