Polynomials which are decomposable in this way are composite polynomials; those which are not are indecomposable polynomials or sometimes prime polynomials[1] (not to be confused with irreducible polynomials, which cannot be factored into products of polynomials). The degree of a composite polynomial is always a composite number, the product of the degrees of the composed polynomials.
The rest of this article discusses only univariate polynomials; algorithms also exist for multivariate polynomials of arbitrary degree.[2][3][4]
Examples
In the simplest case, one of the polynomials is a monomial. For example,
treating the polynomials implicitly as functions of .
Less trivially,
Uniqueness
A polynomial may have distinct decompositions into indecomposable polynomials where where for some . The restriction in the definition to polynomials of degree greater than one excludes the infinitely many decompositions possible with linear polynomials.
Joseph Ritt proved that , and the degrees of the components are the same, but possibly in different order; this is Ritt's polynomial decomposition theorem.[1][5] For example, . In fact, only three kinds of position swap are possible: between monomials; between Chebyshev polynomials; and between — summarized as "Every polynomial can be written as a composition of indecomposables, uniquely up to permutations and units."[6] For example:
Applications
A polynomial decomposition may enable more efficient evaluation of a polynomial. For example,
can be calculated with 3 multiplications and 3 additions using the decomposition, while Horner's method would require 7 multiplications and 8 additions.
A polynomial decomposition enables calculation of symbolic roots using radicals, even for some irreducible polynomials of degree greater than 4. This technique is used in many computer algebra systems.[7] For example, using the decomposition
the roots of this irreducible polynomial can be calculated as[8]
In the case of quartic polynomials, if there is a decomposition, it can give a simpler form than the general formula. For example, the decomposition
but straightforward application of the quartic formula gives a form that is difficult to simplify and difficult to understand; one of the four roots is:
Algorithms
The first algorithm for polynomial decomposition was published in 1985,[9] though it had been discovered in 1976,[10] and implemented in the Macsyma/Maximacomputer algebra system.[11] That algorithm takes exponential time in worst case, but works independently of the characteristic of the underlying field.
A 1989 algorithm runs in polynomial time but with restrictions on the characteristic.[12]
A 2014 algorithm calculates a decomposition in polynomial time and without restrictions on the characteristic.[13]
^Capi Corrales-Rodrigáñez, "A note on Ritt's theorem on decomposition of polynomials", Journal of Pure and Applied Algebra68:3:293–296 (6 December 1990) doi:10.1016/0022-4049(90)90086-W
^Medvedev, Alice; Scanlon, Thomas (August 31, 2018). "Ritt's Theorem and refinements"(PDF). DART XI (Differential Algebra and Related Topics). University of Leeds.