cubic polynomial formula sum and product of roots