If is a
field, the polynomial ring has many properties that are similar to those of the
ring of integers \Z. Most of these similarities result from the similarity between the
long division of integers and the
long division of polynomials. Most of the properties of that are listed in this section do not remain true if is not a field, or if one considers polynomials in several indeterminates. Like for integers, the
Euclidean division of polynomials has a property of uniqueness. That is, given two polynomials and in , there is a unique pair of polynomials such that , and either or . This makes a
Euclidean domain. However, most other Euclidean domains (except integers) do not have any property of uniqueness for the division nor an easy algorithm (such as long division) for computing the Euclidean division. The Euclidean division is the basis of the
Euclidean algorithm for polynomials that computes a
polynomial greatest common divisor of two polynomials. Here, "greatest" means "having a maximal degree" or, equivalently, being maximal for the
preorder defined by the degree. Given a greatest common divisor of two polynomials, the other greatest common divisors are obtained by multiplication by a nonzero constant (that is, all greatest common divisors of and are associated). In particular, two polynomials that are not both zero have a unique greatest common divisor that is monic (leading coefficient equal to ). The
extended Euclidean algorithm allows computing (and proving)
Bézout's identity. In the case of , it may be stated as follows. Given two polynomials and of respective degrees and , if their monic greatest common divisor has the degree , then there is a unique pair of polynomials such that :ap + bq = g, and :\deg (a) \le n-d, \quad \deg(b) (For making this true in the limiting case where or , one has to define as negative the degree of the zero polynomial. Moreover, the equality \deg (a)= n-d can occur only if and are associated.) The uniqueness property is rather specific to . In the case of the integers the same property is true, if degrees are replaced by absolute values, but, for having uniqueness, one must require .
Euclid's lemma applies to . That is, if divides , and is
coprime with , then divides . Here,
coprime means that the monic greatest common divisor is .
Proof: By hypothesis and Bézout's identity, there are , , and such that and . So c=c(ap+bq)=cap+aeq=a(cp+eq). The
unique factorization property results from Euclid's lemma. In the case of integers, this is the
fundamental theorem of arithmetic. In the case of , it may be stated as:
every non-constant polynomial can be expressed in a unique way as the product of a constant, and one or several irreducible monic polynomials; this decomposition is unique up to the order of the factors. In other terms is a
unique factorization domain. If is the field of complex numbers, the
fundamental theorem of algebra asserts that a univariate polynomial is irreducible if and only if its degree is one. In this case the unique factorization property can be restated as:
every non-constant univariate polynomial over the complex numbers can be expressed in a unique way as the product of a constant, and one or several polynomials of the form ;
this decomposition is unique up to the order of the factors. For each factor, is a
root of the polynomial, and the number of occurrences of a factor is the
multiplicity of the corresponding root.
Derivation The
(formal) derivative of the polynomial :a_0+a_1X+a_2X^2+\cdots+a_nX^n is the polynomial :a_1+2a_2X+\cdots+na_nX^{n-1}. In the case of polynomials with
real or
complex coefficients, this is the standard
derivative. The above formula defines the derivative of a polynomial even if the coefficients belong to a ring on which no notion of
limit is defined. The derivative makes the polynomial ring a
differential algebra. The existence of the derivative is one of the main properties of a polynomial ring that is not shared with integers, and makes some computations easier on a polynomial ring than on integers.
Square-free factorization A polynomial with coefficients in a field or integral domain is
square-free if it does not have a
multiple root in the
algebraically closed field containing its coefficients. In particular, a polynomial of degree with real or complex coefficients is square-free if it has distinct complex roots. Equivalently, a polynomial over a field is square-free if and only if the
greatest common divisor of the polynomial and its derivative is . A
square-free factorization of a polynomial is an expression for that polynomial as a product of powers of
pairwise relatively prime square-free factors. Over the real numbers (or any other field of
characteristic 0), such a factorization can be computed efficiently by
Yun's algorithm. Less efficient algorithms are known for
square-free factorization of polynomials over finite fields.
Lagrange interpolation Given a finite set of ordered pairs (x_j, y_j) with entries in a field and distinct values x_j, among the polynomials f(x) that interpolate these points (so that f(x_j) = y_j for all j), there is a unique polynomial of smallest degree. This is the
Lagrange interpolation polynomial L(x). If there are k ordered pairs, the degree of L(x) is at most k - 1. The polynomial L(x) can be computed explicitly in terms of the input data (x_j, y_j).
Polynomial decomposition A
decomposition of a polynomial is a way of expressing it as a
composition of other polynomials of degree larger than 1. A polynomial that cannot be decomposed is
indecomposable.
Ritt's polynomial decomposition theorem asserts that if f = g_1 \circ g_2 \circ \cdots \circ g_m = h_1 \circ h_2 \circ \cdots\circ h_n are two different decompositions of the polynomial f, then m = n and the degrees of the indecomposables in one decomposition are the same as the degrees of the indecomposables in the other decomposition (though not necessarily in the same order).
Factorization Except for factorization, all previous properties of are
effective, since their proofs, as sketched above, are associated with
algorithms for testing the property and computing the polynomials whose existence are asserted. Moreover these algorithms are efficient, as their
computational complexity is a
quadratic function of the input size. The situation is completely different for factorization: the proof of the unique factorization does not give any hint for a method for factorizing. Already for the integers, there is no known algorithm running on a classical (non-quantum) computer for factorizing them in
polynomial time. This is the basis of the
RSA cryptosystem, widely used for secure Internet communications. In the case of , the factors, and the methods for computing them, depend strongly on . Over the complex numbers, the irreducible factors (those that cannot be factorized further) are all of degree one, while, over the real numbers, there are irreducible polynomials of degree 2, and, over the
rational numbers, there are irreducible polynomials of any degree. For example, the polynomial X^4-2 is irreducible over the rational numbers, is factored as (X - \sqrt[4]2)(X+\sqrt[4]2)(X^2+\sqrt 2) over the real numbers and, and as (X-\sqrt[4]2)(X+\sqrt[4]2)(X-i\sqrt[4]2)(X+i\sqrt[4]2) over the complex numbers. The existence of a factorization algorithm depends also on the ground field. In the case of the real or complex numbers,
Abel–Ruffini theorem shows that the roots of some polynomials, and thus the irreducible factors, cannot be computed exactly. Therefore, a factorization algorithm can compute only approximations of the factors. Various algorithms have been designed for computing such approximations, see
Root finding of polynomials. There is an example of a field such that there exist exact algorithms for the arithmetic operations of , but there cannot exist any algorithm for deciding whether a polynomial of the form X^p - a is
irreducible or is a product of polynomials of lower degree. On the other hand, over the rational numbers and over finite fields, the situation is better than for
integer factorization, as there are
factorization algorithms that have a
polynomial complexity. They are implemented in most general purpose
computer algebra systems.
Minimal polynomial If is an element of an
associative -algebra , the
polynomial evaluation at is the unique
algebra homomorphism from into that maps to and does not affect the elements of itself (it is the
identity map on ). It consists of
substituting with in every polynomial. That is, : \varphi\left(a_m X^m + a_{m - 1} X^{m - 1} + \cdots + a_1 X + a_0\right) = a_m \theta^m + a_{m - 1} \theta^{m - 1} + \cdots + a_1 \theta + a_0. The image of this
evaluation homomorphism is the subalgebra generated by , which is necessarily commutative. If is injective, the subalgebra generated by is isomorphic to . In this case, this subalgebra is often denoted by . The notation ambiguity is generally harmless, because of the isomorphism. If the evaluation homomorphism is not injective, this means that its
kernel is a nonzero
ideal, consisting of all polynomials that become zero when is substituted with . This ideal consists of all multiples of some monic polynomial, that is called the
minimal polynomial of . The term
minimal is motivated by the fact that its degree is minimal among the degrees of the elements of the ideal. There are two main cases where minimal polynomials are considered. In
field theory and
number theory, an element of an
extension field of is
algebraic over if it is a root of some polynomial with coefficients in . The
minimal polynomial over of is thus the monic polynomial of minimal degree that has as a root. Because is a field, this minimal polynomial is necessarily
irreducible over . For example, the minimal polynomial (over the reals as well as over the rationals) of the
complex number is X^2 + 1. The
cyclotomic polynomials are the minimal polynomials of the
roots of unity. In
linear algebra, the
square matrices over form an
associative -algebra of finite dimension (as a vector space). Therefore the evaluation homomorphism cannot be injective, and every matrix has a
minimal polynomial (not necessarily irreducible). By
Cayley–Hamilton theorem, the evaluation homomorphism maps to zero the
characteristic polynomial of a matrix. It follows that the minimal polynomial divides the characteristic polynomial, and therefore that the degree of the minimal polynomial is at most .
Quotient ring In the case of , the
quotient ring by an ideal can be built, as in the general case, as a set of
equivalence classes. However, as each equivalence class contains exactly one polynomial of minimal degree, another construction is often more convenient. Given a polynomial of degree , the
quotient ring of by the
ideal generated by can be identified with the
vector space of the polynomials of degrees less than , with the "multiplication modulo " as a multiplication, the
multiplication modulo consisting of the remainder under the division by of the (usual) product of polynomials. This quotient ring is variously denoted as K[X]/pK[X], K[X]/\langle p \rangle, K[X]/(p), or simply K[X]/p. The ring K[X]/(p) is a field if and only if is an
irreducible polynomial. In fact, if is irreducible, every nonzero polynomial of lower degree is coprime with , and
Bézout's identity allows computing and such that ; so, is the
multiplicative inverse of modulo . Conversely, if is reducible, then there exist polynomials of degrees lower than such that ; so are nonzero
zero divisors modulo , and cannot be invertible. For example, the standard definition of the field of the complex numbers can be summarized by saying that it is the quotient ring :\mathbb C =\mathbb R[X]/(X^2+1), and that the image of in \mathbb C is denoted by . In fact, by the above description, this quotient consists of all polynomials of degree one in , which have the form , with and in \mathbb R. The remainder of the Euclidean division that is needed for multiplying two elements of the quotient ring is obtained by replacing by in their product as polynomials (this is exactly the usual definition of the product of complex numbers). This construction of \C illustrates the more general construction of
quadratic algebras as quotient rings over a monic, quadratic polynomial. Let be an
algebraic element in a -algebra . By
algebraic, one means that has a minimal polynomial . The
first ring isomorphism theorem asserts that the substitution homomorphism induces an
isomorphism of K[X]/(p) onto the image of the substitution homomorphism. In particular, if is a
simple extension of generated by , this allows identifying and K[X]/(p). This identification is widely used in
algebraic number theory.
Modules The
structure theorem for finitely generated modules over a principal ideal domain applies to
K[
X], when
K is a field. This means that every finitely generated module over
K[
X] may be decomposed into a
direct sum of a
free module and finitely many modules of the form K[X]/\left\langle P^k \right\rangle, where
P is an
irreducible polynomial over
K and
k a positive integer. ==Definition (multivariate case)==