Square-free polynomial

From HandWiki
Short description: Polynomial with no repeated root

In mathematics, a square-free polynomial is a polynomial defined over a field (or more generally, an integral domain) that does not have as a divisor any square of a non-constant polynomial.[1] A univariate polynomial is square free if and only if it has no multiple root in an algebraically closed field containing its coefficients. This motivates that, in applications in physics and engineering, a square-free polynomial is commonly called a polynomial with no repeated roots.

In the case of univariate polynomials, the product rule implies that, if p2 divides f, then p divides the formal derivative f' of f. The converse is also true and hence, [math]\displaystyle{ f }[/math] is square-free if and only if [math]\displaystyle{ 1 }[/math] is a greatest common divisor of the polynomial and its derivative.[2]

A square-free decomposition or square-free factorization of a polynomial is a factorization into powers of square-free polynomials

[math]\displaystyle{ f = a_1 a_2^2 a_3^3 \cdots a_n^n =\prod_{k=1}^n a_k^k\, }[/math]

where those of the ak that are non-constant are pairwise coprime square-free polynomials (here, two polynomials are said coprime is their greatest common divisor is a constant; in other words that is the coprimality over the field of fractions of the coefficients that is considered).[1] Every non-zero polynomial admits a square-free factorization, which is unique up to the multiplication and division of the factors by non-zero constants. The square-free factorization is much easier to compute than the complete factorization into irreducible factors, and is thus often preferred when the complete factorization is not really needed, as for the partial fraction decomposition and the symbolic integration of rational fractions. Square-free factorization is the first step of the polynomial factorization algorithms that are implemented in computer algebra systems. Therefore, the algorithm of square-free factorization is basic in computer algebra.

Over a field of characteristic 0, the quotient of [math]\displaystyle{ f }[/math] by its greatest common divisor (GCD) with its derivative is the product of the [math]\displaystyle{ a_i }[/math] in the above square-free decomposition. Over a perfect field of non-zero characteristic p, this quotient is the product of the [math]\displaystyle{ a_i }[/math] such that i is not a multiple of p. Further GCD computations and exact divisions allow computing the square-free factorization (see square-free factorization over a finite field). In characteristic zero, a better algorithm is known, Yun's algorithm, which is described below.[1] Its computational complexity is, at most, twice that of the GCD computation of the input polynomial and its derivative. More precisely, if [math]\displaystyle{ T_{n} }[/math] is the time needed to compute the GCD of two polynomials of degree [math]\displaystyle{ n }[/math] and the quotient of these polynomial by the GCD, then [math]\displaystyle{ 2T_{n} }[/math] is an upper bound for the time needed to compute the square free decomposition.

There are also known algorithms for the computation of the square-free decomposition of multivariate polynomials, that proceed generally by considering a multivariate polynomial as a univariate polynomial with polynomial coefficients, and applying recursively a univariate algorithm.[3]

Yun's algorithm

This section describes Yun's algorithm for the square-free decomposition of univariate polynomials over a field of characteristic 0.[1] It proceeds by a succession of GCD computations and exact divisions.

The input is thus a non-zero polynomial f, and the first step of the algorithm consists of computing the GCD a0 of f and its formal derivative f'.

If

[math]\displaystyle{ f = a_1 a_2^2 a_3^3 \cdots a_k^k }[/math]

is the desired factorization, we have thus

[math]\displaystyle{ a_0 = a_2^1 a_3^2 \cdots a_k^{k-1}, }[/math]
[math]\displaystyle{ f/a_0 = a_1 a_2 a_3 \cdots a_k }[/math]

and

[math]\displaystyle{ f'/a_0 = \sum_{i=1}^k i a_i' a_1 \cdots a_{i-1} a_{i+1} \cdots a_k. }[/math]

If we set [math]\displaystyle{ b_1=f/a_0 }[/math], [math]\displaystyle{ c_1=f'/a_0 }[/math] and [math]\displaystyle{ d_1=c_1-b_1' }[/math], we get that

[math]\displaystyle{ \gcd(b_1,d_1) = a_1, }[/math]
[math]\displaystyle{ b_2=b_1/a_1 = a_2 a_3 \cdots a_n, }[/math]

and

[math]\displaystyle{ c_2=d_1/a_1 = \sum_{i=2}^k (i-1) a_i' a_2 \cdots a_{i-1} a_{i+1} \cdots a_k. }[/math]

Iterating this process until [math]\displaystyle{ b_{k+1}=1 }[/math] we find all the [math]\displaystyle{ a_i. }[/math]

This is formalized into an algorithm as follows:

[math]\displaystyle{ a_0:=\gcd(f,f'); \quad b_1:=f/a_0; \quad c_1:= f'/a_0;\quad d_1:=c_1-b_1'; \quad i:=1; }[/math]
repeat
[math]\displaystyle{ a_i:=\gcd(b_i,d_i);\quad b_{i+1}:=b_i/a_i; \quad c_{i+1}:=d_i/a_i; \quad i:=i+1; \quad d_i := c_i - b_i'; }[/math]
until [math]\displaystyle{ b=1; }[/math]
Output [math]\displaystyle{ a_1, \ldots, a_{i-1}. }[/math]


The degree of [math]\displaystyle{ c_i }[/math] and [math]\displaystyle{ d_i }[/math] is one less than the degree of [math]\displaystyle{ b_i. }[/math] As [math]\displaystyle{ f }[/math] is the product of the [math]\displaystyle{ b_i, }[/math] the sum of the degrees of the [math]\displaystyle{ b_i }[/math] is the degree of [math]\displaystyle{ f. }[/math] As the complexity of GCD computations and divisions increase more than linearly with the degree, it follows that the total running time of the "repeat" loop is less than the running time of the first line of the algorithm, and that the total running time of Yun's algorithm is upper bounded by twice the time needed to compute the GCD of [math]\displaystyle{ f }[/math] and [math]\displaystyle{ f' }[/math] and the quotient of [math]\displaystyle{ f }[/math] and [math]\displaystyle{ f' }[/math] by their GCD.

Square root

In general, a polynomial has no square root. More precisely, most polynomials cannot be written as the square of another polynomial.

A polynomial has a square root if and only if all exponents of the square-free decomposition are even. In this case, a square root is obtained by dividing these exponents by 2.

Thus the problem of deciding if a polynomial has a square root, and of computing it if it exists, is a special case of square-free factorization.

Notes

References

  1. 1.0 1.1 1.2 1.3 Yun, David Y.Y. (1976). "On square-free decomposition algorithms". SYMSAC '76 Proceedings of the third ACM Symposium on Symbolic and Algebraic Computation. Association for Computing Machinery. pp. 26–35. doi:10.1145/800205.806320. ISBN 978-1-4503-7790-4. https://dl.acm.org/doi/10.1145/800205.806320. 
  2. Dummit, David S.; Foote, Richard M. (2004). Abstract Algebra. pp. 547. ISBN 978-81-265-3228-5. 
  3. Gianni, P.; Trager, B. (1996). "Square-Free Algorithms in Positive Characteristic". Applicable Algebra in Engineering, Communication and Computing 7 (1): 1–14. doi:10.1007/BF01613611.