Library/Algebra/Polynomials/Integer and polynomial functions

Integer and polynomial functions

Overview
Important

A polynomial function is a function f:ZZf: \mathbb{Z} \to \mathbb{Z} (or f:RRf: \mathbb{R} \to \mathbb{R}) defined by f(x)=anxn+an1xn1++a1x+a0f(x) = a_n x^n + a_{n-1} x^{n-1} + \cdots + a_1 x + a_0, where the coefficients aia_i are integers and n0n \geq 0. When the input is an integer, the output is always an integer.

Important properties

  • The sum, difference, and product of two polynomial functions is also a polynomial function.

  • Polynomial functions are defined for all integers.

  • The degree of a polynomial is the highest power of xx with a nonzero coefficient.

  • If all coefficients are integers, plugging in integer values for xx always gives integer outputs.