Optimal input estimation : A polynomial approach