Polynomial functions with specific conditions