Problems involving polynomials and trigonometric functions