Solution of the Lyapunov matrix differential equations by the frequency method