In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, especially in the field of
algebra
Algebra is a branch of mathematics that deals with abstract systems, known as algebraic structures, and the manipulation of expressions within those systems. It is a generalization of arithmetic that introduces variables and algebraic ope ...
, a polynomial ring or polynomial algebra is a
ring formed from the
set of
polynomials in one or more
indeterminates (traditionally also called
variables) with
coefficients in another
ring, often a
field.
Often, the term "polynomial ring" refers implicitly to the special case of a polynomial ring in one indeterminate over a field. The importance of such polynomial rings relies on the high number of properties that they have in common with the ring of the
integers
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
.
Polynomial rings occur and are often fundamental in many parts of mathematics such as
number theory
Number theory is a branch of pure mathematics devoted primarily to the study of the integers and arithmetic functions. Number theorists study prime numbers as well as the properties of mathematical objects constructed from integers (for example ...
,
commutative algebra
Commutative algebra, first known as ideal theory, is the branch of algebra that studies commutative rings, their ideal (ring theory), ideals, and module (mathematics), modules over such rings. Both algebraic geometry and algebraic number theo ...
, and
algebraic geometry
Algebraic geometry is a branch of mathematics which uses abstract algebraic techniques, mainly from commutative algebra, to solve geometry, geometrical problems. Classically, it studies zero of a function, zeros of multivariate polynomials; th ...
. In
ring theory, many classes of rings, such as
unique factorization domain
In mathematics, a unique factorization domain (UFD) (also sometimes called a factorial ring following the terminology of Bourbaki) is a ring in which a statement analogous to the fundamental theorem of arithmetic holds. Specifically, a UFD is ...
s,
regular rings,
group rings,
rings of formal power series,
Ore polynomials,
graded rings, have been introduced for generalizing some properties of polynomial rings.
A closely related notion is that of the
ring of polynomial functions on a
vector space
In mathematics and physics, a vector space (also called a linear space) is a set (mathematics), set whose elements, often called vector (mathematics and physics), ''vectors'', can be added together and multiplied ("scaled") by numbers called sc ...
, and, more generally,
ring of regular functions on an
algebraic variety.
Definition (univariate case)
Let be a
field or (more generally) a
commutative ring
In mathematics, a commutative ring is a Ring (mathematics), ring in which the multiplication operation is commutative. The study of commutative rings is called commutative algebra. Complementarily, noncommutative algebra is the study of ring prope ...
.
The polynomial ring in over , which is denoted , can be defined in several equivalent ways. One of them is to define as the set of expressions, called polynomials in , of the form
:
where , the coefficients of , are elements of , if , and are symbols, which are considered as "powers" of , and follow the usual rules of
exponentiation
In mathematics, exponentiation, denoted , is an operation (mathematics), operation involving two numbers: the ''base'', , and the ''exponent'' or ''power'', . When is a positive integer, exponentiation corresponds to repeated multiplication ...
: , , and
for any
nonnegative integers and . The symbol is called an indeterminate or variable. (The term of "variable" comes from the terminology of
polynomial functions. However, here, has no value (other than itself), and cannot vary, being a ''constant'' in the polynomial ring.)
Two polynomials are equal when the corresponding coefficients of each are equal.
One can think of the ring as arising from by adding one new element that is external to , commutes with all elements of , and has no other specific properties. This can be used for an equivalent definition of polynomial rings.
The polynomial ring in over is equipped with an addition, a multiplication and a
scalar multiplication that make it a
commutative algebra
Commutative algebra, first known as ideal theory, is the branch of algebra that studies commutative rings, their ideal (ring theory), ideals, and module (mathematics), modules over such rings. Both algebraic geometry and algebraic number theo ...
. These operations are defined according to the ordinary rules for manipulating algebraic expressions. Specifically, if
:
and
:
then
:
and
:
where ,
:
and
:
In these formulas, the polynomials and are extended by adding "dummy terms" with zero coefficients, so that all and that appear in the formulas are defined. Specifically, if , then for .
The scalar multiplication is the special case of the multiplication where is reduced to its ''constant term'' (the term that is independent of ); that is
:
It is straightforward to verify that these three operations satisfy the axioms of a commutative algebra over . Therefore, polynomial rings are also called ''polynomial algebras''.
Another equivalent definition is often preferred, although less intuitive, because it is easier to make it completely rigorous, which consists in defining a polynomial as an infinite
sequence
In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is cal ...
of elements of , having the property that only a finite number of the elements are nonzero, or equivalently, a sequence for which there is some so that for . In this case, and are considered as alternate notations for
the sequences and , respectively. A straightforward use of the operation rules shows that the expression
:
is then an alternate notation for the sequence
:.
Terminology
Let
:
be a nonzero polynomial with
The ''constant term'' of is
It is zero in the case of the zero polynomial.
The ''degree'' of , written is
the largest such that the coefficient of is not zero.
The ''leading coefficient'' of is
In the special case of the zero polynomial, all of whose coefficients are zero, the leading coefficient is undefined, and the degree has been variously left undefined, defined to be , or defined to be a .
A ''constant polynomial'' is either the zero polynomial, or a polynomial of degree zero.
A nonzero polynomial is
monic if its leading coefficient is
Given two polynomials and , if the degree of the zero polynomial is defined to be
one has
:
and, over a
field, or more generally an
integral domain
In mathematics, an integral domain is a nonzero commutative ring in which the product of any two nonzero elements is nonzero. Integral domains are generalizations of the ring of integers and provide a natural setting for studying divisibilit ...
,
:
It follows immediately that, if is an integral domain, then so is .
It follows also that, if is an integral domain, a polynomial is a
unit (that is, it has a
multiplicative inverse
In mathematics, a multiplicative inverse or reciprocal for a number ''x'', denoted by 1/''x'' or ''x''−1, is a number which when Multiplication, multiplied by ''x'' yields the multiplicative identity, 1. The multiplicative inverse of a ra ...
) if and only if it is constant and is a unit in .
Two polynomials are
associated if either one is the product of the other by a unit.
Over a field, every nonzero polynomial is associated to a unique monic polynomial.
Given two polynomials, and , one says that ''divides'' , is a ''divisor'' of , or is a multiple of , if there is a polynomial such that .
A polynomial is
irreducible if it is not the product of two non-constant polynomials, or equivalently, if its divisors are either constant polynomials or have the same degree.
Polynomial evaluation
Let be a field or, more generally, a
commutative ring
In mathematics, a commutative ring is a Ring (mathematics), ring in which the multiplication operation is commutative. The study of commutative rings is called commutative algebra. Complementarily, noncommutative algebra is the study of ring prope ...
, and a ring containing . For any polynomial in and any element in , the substitution of with in defines an element of , which is
denoted . This element is obtained by carrying on in after the substitution the operations indicated by the expression of the polynomial. This computation is called the evaluation of at . For example, if we have
:
we have
:
(in the first example , and in the second one ). Substituting for itself results in
:
explaining why the sentences "Let be a polynomial" and "Let be a polynomial" are equivalent.
The ''polynomial function'' defined by a polynomial is the function from into that is defined by
If is an infinite field, two different polynomials define different polynomial functions, but this property is false for finite fields. For example, if is a field with elements, then the polynomials and both define the zero function.
For every in , the evaluation at , that is, the map
defines an
algebra homomorphism from to , which is the unique homomorphism from to that fixes , and maps to . In other words, has the following
universal property:
:For every ring containing , and every element of , there is a unique algebra homomorphism from to that fixes , and maps to .
As for all universal properties, this defines the pair up to a unique isomorphism, and can therefore be taken as a definition of .
The
image
An image or picture is a visual representation. An image can be Two-dimensional space, two-dimensional, such as a drawing, painting, or photograph, or Three-dimensional space, three-dimensional, such as a carving or sculpture. Images may be di ...
of the map
, that is, the subset of obtained by substituting for in elements of , is denoted . For example,
, and the simplification rules for the powers of a square root imply
Univariate polynomials over a field
If is a
field, the polynomial ring has many properties that are similar to those of the
ring of integers
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
:
and
:
(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
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
In number theory, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equiv ...
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
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
In mathematics, a unique factorization domain (UFD) (also sometimes called a factorial ring following the terminology of Bourbaki) is a ring in which a statement analogous to the fundamental theorem of arithmetic holds. Specifically, a UFD is ...
. 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
In vascular plants, the roots are the plant organ, organs of a plant that are modified to provide anchorage for the plant and take in water and nutrients into the plant body, which allows plants to grow taller and faster. They are most often bel ...
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
:
is the polynomial
:
In the case of polynomials with
real or
complex coefficients, this is the standard
derivative
In mathematics, the derivative is a fundamental tool that quantifies the sensitivity to change of a function's output with respect to its input. The derivative of a function of a single variable at a chosen input value, when it exists, is t ...
. 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
with entries in a field and distinct values
, among the polynomials
that interpolate these points (so that
for all
), there is a unique polynomial of smallest degree. This is the ''Lagrange interpolation polynomial''
. If there are
ordered pairs, the degree of
is at most
. The polynomial
can be computed explicitly in terms of the input data
.
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
are two different decompositions of the polynomial
, then
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
algorithm
In mathematics and computer science, an algorithm () is a finite sequence of Rigour#Mathematics, mathematically rigorous instructions, typically used to solve a class of specific Computational problem, problems or to perform a computation. Algo ...
s 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 number
In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (for example,
The set of all ...
s, there are irreducible polynomials of any degree. For example, the polynomial
is irreducible over the rational numbers, is factored as
over the real numbers and, and as
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
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
In mathematics, integer factorization is the decomposition of a positive integer into a product of integers. Every positive integer greater than 1 is either the product of two or more integer factors greater than 1, in which case it is a comp ...
, as there are
factorization algorithms that have a
polynomial complexity. They are implemented in most general purpose
computer algebra system
A computer algebra system (CAS) or symbolic algebra system (SAS) is any mathematical software with the ability to manipulate mathematical expressions in a way similar to the traditional manual computations of mathematicians and scientists. The de ...
s.
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
Graph of the identity function on the real numbers
In mathematics, an identity function, also called an identity relation, identity map or identity transformation, is a function that always returns the value that was used as its argument, unc ...
on ). It consists of ''substituting'' with in every polynomial. That is,
:
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
Number theory is a branch of pure mathematics devoted primarily to the study of the integers and arithmetic functions. Number theorists study prime numbers as well as the properties of mathematical objects constructed from integers (for example ...
, 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
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
is
. The
cyclotomic polynomial
In mathematics, the ''n''th cyclotomic polynomial, for any positive integer ''n'', is the unique irreducible polynomial with integer coefficients that is a divisor of x^n-1 and is not a divisor of x^k-1 for any Its roots are all ''n''th prim ...
s are the minimal polynomials of the
roots of unity.
In
linear algebra
Linear algebra is the branch of mathematics concerning linear equations such as
:a_1x_1+\cdots +a_nx_n=b,
linear maps such as
:(x_1, \ldots, x_n) \mapsto a_1x_1+\cdots +a_nx_n,
and their representations in vector spaces and through matrix (mathemat ...
, 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
In mathematics and physics, a vector space (also called a linear space) is a set (mathematics), set whose elements, often called vector (mathematics and physics), ''vectors'', can be added together and multiplied ("scaled") by numbers called sc ...
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
or simply
The ring
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
In mathematics, a multiplicative inverse or reciprocal for a number ''x'', denoted by 1/''x'' or ''x''−1, is a number which when Multiplication, multiplied by ''x'' yields the multiplicative identity, 1. The multiplicative inverse of a ra ...
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
:
and that the image of in
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
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).
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
In mathematics, an isomorphism is a structure-preserving mapping or morphism between two structures of the same type that can be reversed by an inverse mapping. Two mathematical structures are isomorphic if an isomorphism exists between the ...
of
onto the image of the substitution homomorphism. In particular, if is a
simple extension of generated by , this allows identifying and
This identification is widely used in
algebraic number theory
Algebraic number theory is a branch of number theory that uses the techniques of abstract algebra to study the integers, rational numbers, and their generalizations. Number-theoretic questions are expressed in terms of properties of algebraic ob ...
.
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
, where ''P'' is an
irreducible polynomial over ''K'' and ''k'' a positive integer.
Definition (multivariate case)
Given symbols
called
indeterminates, a
monomial (also called ''power product'')
:
is a formal product of these indeterminates, possibly raised to a nonnegative power. As usual, exponents equal to one and factors with a zero exponent can be omitted. In particular,
The
tuple
In mathematics, a tuple is a finite sequence or ''ordered list'' of numbers or, more generally, mathematical objects, which are called the ''elements'' of the tuple. An -tuple is a tuple of elements, where is a non-negative integer. There is o ...
of exponents is called the ''multidegree'' or ''exponent vector'' of the monomial. For a less cumbersome notation, the abbreviation
:
is often used. The ''degree'' of a monomial , frequently denoted or , is the sum of its exponents:
:
A ''polynomial'' in these indeterminates, with coefficients in a field , or more generally a
ring, is a finite
linear combination
In mathematics, a linear combination or superposition is an Expression (mathematics), expression constructed from a Set (mathematics), set of terms by multiplying each term by a constant and adding the results (e.g. a linear combination of ''x'' a ...
of monomials
:
with coefficients in . The ''degree'' of a nonzero polynomial is the maximum of the degrees of its monomials with nonzero coefficients.
The set of polynomials in
denoted
is thus a
vector space
In mathematics and physics, a vector space (also called a linear space) is a set (mathematics), set whose elements, often called vector (mathematics and physics), ''vectors'', can be added together and multiplied ("scaled") by numbers called sc ...
(or a
free module, if is a ring) that has the monomials as a basis.