The package polynomial.sty offers an easy way to write (univariate) 
polynomials and rational functions.