Determine if a Polynomial m+m^2