degree wrt polynomial
The degree of the indeterminate in a monomial is the exponent on that indeterminate in a monomial.
The degree of a term is the sum of the degrees of the indeterminates in that term.
The degree of a polynomial is the largest degree of any term with a nonzero coefficient.