We face the problem to determine whether an algebraic polynomial is nonnegative in an interval the Yau Number Theoretic Conjecture and Yau Geometric Conjecture is proved. In this paper, we propose a new theorem to determine if an algebraic polynomial is nonnegative in an interval. It improves Wang-Yau Lemma for wider applications in light of Sturm’s Theorem. Many polynomials can use the new theorem but cannot use Sturm’s Theorem and Wang-Yau Lemma to judge whether they are nonnegative in an interval. New Theorem also performs better than Sturm’s Theorem when the number of terms and degree of polynomials increase. Main Theorem can be used for polynomials whose coefficients are parameters and to any interval we use. It helps us to find the roots of complicated polynomials. The problem of constructing nonnegative trigonometric polynomials in an interval is a classical, important problem and crucial to many research areas. We can convert a given trigonometric polynomial to an algebraic polynomial. Hence, our proposed new theorem affords a new way to solve this classical, important problem.