Continuous-time LQ regulator design by polynomial equations