writing polynomial equations with a