Squarefree - Maple Help

Algebraic

 Squarefree
 Square-free factorization of polynomials over algebraic extensions

 Calling Sequence Squarefree(p, v, options)

Parameters

 p - any algebraic expression; typically a polynomial or rational function in one or more variables. v - (optional) name, set of names, or list of names; most functions can also be included and treated as variables. options - (optional) equation(s) of the form keyword = value, where keyword is one of 'symbolic', 'expanded', 'makeindependent', or 'characteristic'.

Options

 • If the option 'symbolic'=true is given and a RootOf whose minimal polynomial factors nontrivially is detected, then Squarefree will reduce it to a RootOf of lower degree by picking one of the factors arbitrarily. This will eliminate the possibility of a "reducible RootOf detected" error. The default is 'symbolic'=false.
 • If the option 'expanded'=true is given, then all polynomials in the factorization with the same multiplicity will be combined and expanded, producing a single polynomial factor of higher degree, but the same multiplicity.  In this case, all ${e}_{i}$'s in the output will be distinct. The default is 'expanded'=false.
 • If the option 'characteristic'=p is given, where p is a non-negative integer, the square-free factorization is computed over an extension of the ring ${\mathrm{ℤ}}_{p}$ of integers modulo p. The default is 'characteristic'=0 and means that the square-free factorization is computed over an extension of the rational numbers.
 • In positive characteristic, if the input contains a RootOf with a reducible minimal polynomial, then squarefree may not return the correct squarefree factorization or may raise an error.  As well, correctness of the result is not guaranteed if the algebraic numbers in the input do not form an independent set of extensions.
 • Note that if p is positive but not a prime, then ${\mathrm{ℤ}}_{p}$ is not a field, so Squarefree may not be able to compute a square-free factorization of the input.  If it does not succeed because it encounters an integer that has no inverse modulo p, it issues the error "zero divisor modulo p detected".
 • If the option 'makeindependent'=true is given, then Squarefree will always try to find a field representation for algebraic numbers in the input, regardless of how many algebraic objects the input contains. If the input contains many RootOfs, then this can be a very expensive calculation. If 'makeindependent'=false is given, then no independence checking is performed. The default is 'makeindependent'=FAIL, in which case algebraic dependencies will only be checked for if there are $4$ or fewer algebraic objects in the input.

Description

 • The Squarefree function computes a square-free factorization of the multivariate polynomial or rational function p in the variable(s) v over an algebraic number field.
 • The square-free factorization is returned as a nested list of the form $\left[u,\left[\left[{f}_{1},{e}_{1}\right],\mathrm{...},\left[{f}_{n},{e}_{n}\right]\right]\right]$ such that $p=u{f}_{1}^{{e}_{1}}\mathrm{...}{f}_{n}^{{e}_{n}}$ where ${f}_{i}$ is a monic and square-free polynomial in the variable(s) v. Formally, GreatestCommonDivisor $\left({f}_{i},\frac{\partial }{\partial v}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{f}_{i}\right)=1$ for all $i$ and GreatestCommonDivisor $\left({f}_{i},{f}_{j}\right)=1$ for all $i\ne j$.  The coefficient $u$ is an element of the coefficients field of p and is free of v. The ${f}_{i}$'s are collected with respect to the variable(s) v.
 • Algebraic numbers may be represented by radicals or with the RootOf notation.  Usually, they will be returned in the same representation as they were received. (see type,algnum, type,radnum).
 • Non-algebraic sub-expressions such as $\mathrm{sin}\left(x\right)$ that are neither variables, rational numbers, or algebraic objects are frozen and temporarily replaced by new local variables, which are not considered to be constant in what follows.
 • The argument p is considered as a polynomial or a rational function in the variable(s) v. Other names are considered as elements of the coefficient field. If the optional argument v is omitted, then all the names in p are used (including non-algebraic sub-expressions).
 • Functions such as $\mathrm{sin}\left(x\right)$ can also be included in v and treated as variables of p.  However, functions that are also of type AlgebraicObject, such as $\mathrm{sin}\left(\frac{\mathrm{\pi }}{3}\right)$ will be converted to algebraic numbers before proceeding, so they cannot be included. Proceed with caution when including functions in v, as treating some functions as variables may produce mathematically unsound results.
 • The ${e}_{i}$'s will always be integers.  If p is a polynomial in v, then they will all be positive integers.  If p is a rational function in v, then factors in the denominator that cannot be cancelled will be returned with negative corresponding ${e}_{i}$'s.
 • By default, the ${e}_{i}$'s may not be distinct, because partial factorizations in the input are preserved.  If the option 'expanded'=true is specified (see below), then factorizations of polynomials with the same multiplicity are not preserved, so all ${e}_{i}$'s will be distinct. In any case, the ${e}_{i}$'s are returned sorted by non-decreasing value.
 • Algebraic numbers occurring in the result are reduced modulo their minimal polynomial (see Reduce).
 • If p contains functions, their arguments will be normalized recursively (see Normal).
 • Terms will be sorted according to a block-lexicographic ordering of the variables, where all global variables are considered larger than all local ones. If all variables have different names, then this ordering is session-independent.
 • If the set of radicals and RootOfs in the input cannot be embedded into a field algebraically, then Squarefree may not be able to compute a square-free factorization. Squarefree will try to find a field representation if there are at most $4$ algebraic objects in the input (unless option 'makeindependent' is given; see below), and otherwise attempt to proceed anyway. If unsuccessful, a "reducible RootOf detected" error will be returned (unless the option 'symbolic'=true is given; see below).
 • This function does not support input containing floats or radical functions such as $\sqrt{x}$.

Examples

 > $\mathrm{with}\left(\mathrm{Algebraic}\right):$

Introductory examples:

 > $\mathrm{Squarefree}\left(2{x}^{2}+4\mathrm{sqrt}\left(2\right)xy+4{y}^{2}\right)$
 $\left[{2}{,}\left[\left[\sqrt{{2}}{}{y}{+}{x}{,}{2}\right]\right]\right]$ (1)
 > $\mathrm{Squarefree}\left(\frac{{x}^{4}{y}^{5}}{{z}^{2}}\right)$
 $\left[{1}{,}\left[\left[{z}{,}{-2}\right]{,}\left[{x}{,}{4}\right]{,}\left[{y}{,}{5}\right]\right]\right]$ (2)
 > $\mathrm{Squarefree}\left(\frac{\left({x}^{2}-2\right)\left(x+\mathrm{sqrt}\left(2\right)\right)}{{\left(x-\mathrm{RootOf}\left({\mathrm{_Z}}^{2}-2,\mathrm{index}=1\right)\right)}^{2}}\right)$
 $\left[{1}{,}\left[\left[{x}{-}\sqrt{{2}}{,}{-1}\right]{,}\left[{x}{+}\sqrt{{2}}{,}{2}\right]\right]\right]$ (3)
 > $\mathrm{Squarefree}\left(\left(x+\mathrm{sqrt}\left(2\right)\right)\left(x+\mathrm{RootOf}\left({\mathrm{_Z}}^{2}-2,\mathrm{index}=1\right)\right)\right)$
 $\left[{1}{,}\left[\left[{x}{+}\sqrt{{2}}{,}{2}\right]\right]\right]$ (4)
 > $\mathrm{Squarefree}\left(\left({x}^{2}+1\right)\left(2Ix+2\right)\left(x+\mathrm{RootOf}\left({\mathrm{_Z}}^{2}+1,\mathrm{index}=1\right)\right)\right)$
 $\left[{2}{}{I}{,}\left[\left[{x}{-}{I}{,}{2}\right]{,}\left[{x}{+}{I}{,}{2}\right]\right]\right]$ (5)

All factors in the output will be monic polynomials, even if rationals must be introduced:

 > $\mathrm{Squarefree}\left(4{x}^{2}+4x+1\right)$
 $\left[{4}{,}\left[\left[{x}{+}\frac{{1}}{{2}}{,}{2}\right]\right]\right]$ (6)
 > $\mathrm{p1}≔\mathrm{expand}\left(\left({x}^{2}+{\mathrm{RootOf}\left({\mathrm{_Z}}^{2}-2\right)}^{3}x+2\right)\left(2z+3\right)\right)$
 ${\mathrm{p1}}{≔}{2}{}{{x}}^{{2}}{}{z}{+}{3}{}{{x}}^{{2}}{+}{2}{}{{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{2}}{-}{2}\right)}^{{3}}{}{x}{}{z}{+}{3}{}{{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{2}}{-}{2}\right)}^{{3}}{}{x}{+}{4}{}{z}{+}{6}$ (7)
 > $\mathrm{Squarefree}\left(\mathrm{p1}\right)$
 $\left[{2}{,}\left[\left[{z}{+}\frac{{3}}{{2}}{,}{1}\right]{,}\left[{x}{+}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{2}}{-}{2}\right){,}{2}\right]\right]\right]$ (8)

The input will be factored over the variable(s) given by the optional v parameter.  Variables not included in v will be treated as constants:

 > $\mathrm{p2}≔3{x}^{2}{y}^{4}+12x{y}^{4}+12{y}^{4}$
 ${\mathrm{p2}}{≔}{3}{}{{x}}^{{2}}{}{{y}}^{{4}}{+}{12}{}{x}{}{{y}}^{{4}}{+}{12}{}{{y}}^{{4}}$ (9)
 > $\mathrm{Squarefree}\left(\mathrm{p2}\right)$
 $\left[{3}{,}\left[\left[{x}{+}{2}{,}{2}\right]{,}\left[{y}{,}{4}\right]\right]\right]$ (10)
 > $\mathrm{Squarefree}\left(\mathrm{p2},\left[x,y\right]\right)$
 $\left[{3}{,}\left[\left[{x}{+}{2}{,}{2}\right]{,}\left[{y}{,}{4}\right]\right]\right]$ (11)
 > $\mathrm{Squarefree}\left(\mathrm{p2},\left[x\right]\right)$
 $\left[{3}{}{{y}}^{{4}}{,}\left[\left[{x}{+}{2}{,}{2}\right]\right]\right]$ (12)
 > $\mathrm{Squarefree}\left(\mathrm{p2},\left[y\right]\right)$
 $\left[{3}{}{\left({x}{+}{2}\right)}^{{2}}{,}\left[\left[{y}{,}{4}\right]\right]\right]$ (13)
 > $\mathrm{Squarefree}\left(\mathrm{p2},\left[z\right]\right)$
 $\left[{3}{}{{x}}^{{2}}{}{{y}}^{{4}}{+}{12}{}{x}{}{{y}}^{{4}}{+}{12}{}{{y}}^{{4}}{,}\left[\right]\right]$ (14)

The output will not necessarily be factored into a product of irreducibles, but partial factorization in the input is preserved, so long as no factors have a GCD greater than 1:

 > $\mathrm{Squarefree}\left({x}^{2}+3x+2\right)$
 $\left[{1}{,}\left[\left[{{x}}^{{2}}{+}{3}{}{x}{+}{2}{,}{1}\right]\right]\right]$ (15)
 > $\mathrm{Squarefree}\left(\left(x+1\right)\left(x+2\right)\right)$
 $\left[{1}{,}\left[\left[{x}{+}{1}{,}{1}\right]{,}\left[{x}{+}{2}{,}{1}\right]\right]\right]$ (16)
 > $\mathrm{Squarefree}\left(\left(x+1\right)\left(x+2\right)\left(\mathrm{sqrt}\left(2\right)x+\mathrm{RootOf}\left({\mathrm{_Z}}^{2}-8,\mathrm{index}=1\right)\right)\right)$
 $\left[\sqrt{{2}}{,}\left[\left[{x}{+}{1}{,}{1}\right]{,}\left[{x}{+}{2}{,}{2}\right]\right]\right]$ (17)

However, with option 'expanded'=true, factors with the same multiplicity will be combined and expanded:

 > $\mathrm{Squarefree}\left(\left(x+1\right)\left(x+2\right),'\mathrm{expanded}'=\mathrm{true}\right)$
 $\left[{1}{,}\left[\left[{{x}}^{{2}}{+}{3}{}{x}{+}{2}{,}{1}\right]\right]\right]$ (18)
 > $\mathrm{Squarefree}\left({x}^{2}{y}^{2}{z}^{3},'\mathrm{expanded}'=\mathrm{true}\right)$
 $\left[{1}{,}\left[\left[{x}{}{y}{,}{2}\right]{,}\left[{z}{,}{3}\right]\right]\right]$ (19)

Trigonometric and exponential functions will be converted to an algebraic form, if possible:

 > $\mathrm{Squarefree}\left(\left(x+\mathrm{tan}\left(\frac{\mathrm{\pi }}{8}\right)\right)\left(x+\mathrm{RootOf}\left({x}^{2}-2,\mathrm{index}=1\right)-1\right)\right)$
 $\left[{1}{,}\left[\left[{x}{+}\sqrt{{2}}{-}{1}{,}{2}\right]\right]\right]$ (20)
 > $\mathrm{Squarefree}\left(\left({x}^{2}+1\right)\left(x+\mathrm{exp}\left(\frac{\mathrm{\pi }I}{2}\right)\right)\right)$
 $\left[{1}{,}\left[\left[{x}{-}{I}{,}{1}\right]{,}\left[{x}{+}{I}{,}{2}\right]\right]\right]$ (21)

All algebraic numbers will be reduced modulo their minimal polynomials (see Reduce):

 > $\mathrm{Squarefree}\left(\left(x-5\mathrm{sqrt}\left(5\right)\right)\left(x+{\mathrm{RootOf}\left({Z}^{2}-5,\mathrm{index}=2\right)}^{3}\right)\right)$
 $\left[{1}{,}\left[\left[{x}{-}{5}{}\sqrt{{5}}{,}{2}\right]\right]\right]$ (22)
 > $\mathrm{Squarefree}\left({x}^{3}{\mathrm{RootOf}\left({\mathrm{_Z}}^{2}+\mathrm{_Z}+2\right)}^{3}\right)$
 $\left[{-}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{2}}{+}{\mathrm{_Z}}{+}{2}\right){+}{2}{,}\left[\left[{x}{,}{3}\right]\right]\right]$ (23)

Non-algebraic sub-expressions such as $\mathrm{sin}\left(x\right)$ will be frozen and replaced by new variables which are not treated as constants if optional argument v is not included:

 > $\mathrm{Squarefree}\left(x\mathrm{sin}\left(x\right)+2\mathrm{sin}\left(x\right)\right)$
 $\left[{1}{,}\left[\left[{\mathrm{sin}}{}\left({x}\right){,}{1}\right]{,}\left[{x}{+}{2}{,}{1}\right]\right]\right]$ (24)
 > $\mathrm{Squarefree}\left(x\mathrm{sin}\left(x\right)+2\mathrm{sin}\left(x\right),x\right)$
 $\left[{\mathrm{sin}}{}\left({x}\right){,}\left[\left[{x}{+}{2}{,}{1}\right]\right]\right]$ (25)

Such functions can also be included in v, but use caution, as some functions may produce strange results.  Constants such as $\mathrm{sin}\left(\frac{\mathrm{\pi }}{3}\right)$ cannot be included, as they will be converted to algebraic numbers whenever possible:

 > $\mathrm{Squarefree}\left(x\mathrm{sin}\left(x\right)+2\mathrm{sin}\left(x\right),\mathrm{sin}\left(x\right)\right)$
 $\left[{x}{+}{2}{,}\left[\left[{\mathrm{sin}}{}\left({x}\right){,}{1}\right]\right]\right]$ (26)
 > $\mathrm{Squarefree}\left(\left(\mathrm{exp}\left(x\right)+\mathrm{exp}\left(\frac{\mathrm{\pi }I}{2}\right)\right)\left({\left(\mathrm{exp}\left(x\right)\right)}^{2}+\mathrm{cos}\left(0\right)\right)\right)$
 $\left[{1}{,}\left[\left[{{ⅇ}}^{{x}}{-}{I}{,}{1}\right]{,}\left[{{ⅇ}}^{{x}}{+}{I}{,}{2}\right]\right]\right]$ (27)

The arguments of functions in the input will be recursively normalized and simplified (see Normal):

 > $\mathrm{Squarefree}\left(\left(\mathrm{sin}\left(\frac{{x}^{2}-1}{x-1}\right)+2\right)\left({\mathrm{sin}\left(x+1\right)}^{2}-4\right)\right)$
 $\left[{1}{,}\left[\left[{\mathrm{sin}}{}\left({x}{+}{1}\right){-}{2}{,}{1}\right]{,}\left[{\mathrm{sin}}{}\left({x}{+}{1}\right){+}{2}{,}{2}\right]\right]\right]$ (28)
 > $\mathrm{Squarefree}\left(\mathrm{sin}\left(x+\frac{\mathrm{\pi }}{2}\right)\mathrm{cos}\left(x\right)\right)$
 $\left[{1}{,}\left[\left[{\mathrm{cos}}{}\left({x}\right){,}{2}\right]\right]\right]$ (29)

Non-algebraic subexpressions may evaluate to something algebraic after being normalized:

 > $\mathrm{Squarefree}\left({x}^{2}+\mathrm{cos}\left(\frac{\mathrm{\pi }y+\mathrm{\pi }}{y+1}\right)x+\frac{1}{4},x\right)$
 $\left[{1}{,}\left[\left[{x}{-}\frac{{1}}{{2}}{,}{2}\right]\right]\right]$ (30)

Algebraic functions such as $\sqrt{y}$ are not accepted:

 > $\mathrm{Squarefree}\left({x}^{2}+2x\mathrm{sqrt}\left(y\right)+y\right)$

Floats are not accepted.

 > $\mathrm{Squarefree}\left({x}^{2}-x+0.25\right)$

When a non-indexed RootOf is given in the input, sometimes the square-free factorization can still be computed:

 > $\mathrm{Squarefree}\left({x}^{2}+\mathrm{RootOf}\left({\mathrm{_Z}}^{2}-4\right)x+1\right)$
 $\left[{1}{,}\left[\left[{x}{+}\frac{{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{2}}{-}{4}\right)}{{2}}{,}{2}\right]\right]\right]$ (31)
 > $\mathrm{Squarefree}\left({x}^{2}+\mathrm{RootOf}\left({\mathrm{_Z}}^{2}-4,\mathrm{index}=2\right)x+1\right)$
 $\left[{1}{,}\left[\left[{x}{-}{1}{,}{2}\right]\right]\right]$ (32)

However, in this case, to compute a factorization, Squarefree must know whether $\mathrm{RootOf}\left({\mathrm{_Z}}^{2}-3\mathrm{_Z}+2\right)$ represents $1$ or $2$, in order to guarantee that the output is actually square free:

 > $\mathrm{Squarefree}\left(\left(x+1\right)\left(x+\mathrm{RootOf}\left({\mathrm{_Z}}^{2}-3\mathrm{_Z}+2,\mathrm{index}=1\right)\right)\right)$
 $\left[{1}{,}\left[\left[{x}{+}{1}{,}{2}\right]\right]\right]$ (33)
 > $\mathrm{Squarefree}\left(\left(x+1\right)\left(x+\mathrm{RootOf}\left({\mathrm{_Z}}^{2}-3\mathrm{_Z}+2,\mathrm{index}=2\right)\right)\right)$
 $\left[{1}{,}\left[\left[{x}{+}{1}{,}{1}\right]{,}\left[{x}{+}{2}{,}{1}\right]\right]\right]$ (34)
 > $\mathrm{Squarefree}\left(\left(x+1\right)\left(x+\mathrm{RootOf}\left({\mathrm{_Z}}^{2}-3\mathrm{_Z}+2\right)\right)\right)$

To force Squarefree to reduce this RootOf to one of lower degree by picking one of the substitutions arbitrarily, use option 'symbolic'=true. Here, it makes the substitution $\mathrm{RootOf}\left({\mathrm{_Z}}^{2}-3\mathrm{_Z}+2\right)$ = $2$:

 > $\mathrm{Squarefree}\left(\left(x+1\right)\left(x+\mathrm{RootOf}\left({\mathrm{_Z}}^{2}-3\mathrm{_Z}+2\right)\right),'\mathrm{symbolic}'=\mathrm{true}\right)$
 $\left[{1}{,}\left[\left[{x}{+}{1}{,}{1}\right]{,}\left[{x}{+}{2}{,}{1}\right]\right]\right]$ (35)

Squarefree can factor out un-indexed RootOfs as constants, as long as they don't contain zero divisors:

 > $\mathrm{Squarefree}\left(\mathrm{RootOf}\left({\mathrm{_Z}}^{2}-3\mathrm{_Z}+2\right){x}^{2}+\mathrm{RootOf}\left({\mathrm{_Z}}^{2}-3\mathrm{_Z}+2\right){x}^{4}\right)$
 $\left[{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{2}}{-}{3}{}{\mathrm{_Z}}{+}{2}\right){,}\left[\left[{{x}}^{{2}}{+}{1}{,}{1}\right]{,}\left[{x}{,}{2}\right]\right]\right]$ (36)
 > $\mathrm{Squarefree}\left(\mathrm{RootOf}\left({\mathrm{_Z}}^{2}-\mathrm{_Z}\right){x}^{2}+\mathrm{RootOf}\left({\mathrm{_Z}}^{2}-\mathrm{_Z}\right){x}^{4}\right)$

In this case, option 'symbolic'=true will eliminate the zero divisor:

 > $\mathrm{Squarefree}\left(\mathrm{RootOf}\left({\mathrm{_Z}}^{2}-\mathrm{_Z}\right){x}^{2}+\mathrm{RootOf}\left({\mathrm{_Z}}^{2}-\mathrm{_Z}\right){x}^{4},'\mathrm{symbolic}'=\mathrm{true}\right)$
 $\left[{1}{,}\left[\left[{{x}}^{{2}}{+}{1}{,}{1}\right]{,}\left[{x}{,}{2}\right]\right]\right]$ (37)

Using option 'characteristic', the squarefree factorization can per performed over finite fields:

 > $\mathrm{Squarefree}\left({x}^{2}+1,'\mathrm{characteristic}'=2\right)$
 $\left[{1}{,}\left[\left[{x}{+}{1}{,}{2}\right]\right]\right]$ (38)
 > $a≔\mathrm{Expand}\left({\left(x+y\right)}^{3}{\left(2x+y\right)}^{5}{x}^{2},'\mathrm{characteristic}'=3\right)$
 ${a}{≔}{2}{}{{x}}^{{10}}{+}{2}{}{y}{}{{x}}^{{9}}{+}{2}{}{{y}}^{{2}}{}{{x}}^{{8}}{+}{{y}}^{{6}}{}{{x}}^{{4}}{+}{{y}}^{{7}}{}{{x}}^{{3}}{+}{{y}}^{{8}}{}{{x}}^{{2}}$ (39)
 > $\mathrm{Squarefree}\left(a,'\mathrm{characteristic}'=3\right)$
 $\left[{2}{,}\left[\left[{x}{,}{2}\right]{,}\left[{x}{+}{y}{,}{3}\right]{,}\left[{x}{+}{2}{}{y}{,}{5}\right]\right]\right]$ (40)
 > $b≔\mathrm{Reduce}\left(\mathrm{eval}\left(a,y=\mathrm{RootOf}\left({\mathrm{_Z}}^{3}+2\mathrm{_Z}+1\right)\right),'\mathrm{characteristic}'=3\right)$
 ${b}{≔}{2}{}{{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{+}{2}{}{\mathrm{_Z}}{+}{1}\right)}^{{2}}{}{{x}}^{{8}}{+}{2}{}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{+}{2}{}{\mathrm{_Z}}{+}{1}\right){}{{x}}^{{9}}{+}{2}{}{{x}}^{{10}}{+}{{x}}^{{4}}{}{{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{+}{2}{}{\mathrm{_Z}}{+}{1}\right)}^{{2}}{+}{{x}}^{{3}}{}{{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{+}{2}{}{\mathrm{_Z}}{+}{1}\right)}^{{2}}{+}{{x}}^{{4}}{}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{+}{2}{}{\mathrm{_Z}}{+}{1}\right){+}{2}{}{{x}}^{{2}}{}{{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{+}{2}{}{\mathrm{_Z}}{+}{1}\right)}^{{2}}{+}{2}{}{{x}}^{{3}}{}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{+}{2}{}{\mathrm{_Z}}{+}{1}\right){+}{{x}}^{{4}}{+}{2}{}{{x}}^{{3}}{+}{2}{}{{x}}^{{2}}$ (41)
 > $\mathrm{Squarefree}\left(b,'\mathrm{characteristic}'=3\right)$
 $\left[{2}{,}\left[\left[{x}{,}{2}\right]{,}\left[{x}{+}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{+}{2}{}{\mathrm{_Z}}{+}{1}\right){,}{3}\right]{,}\left[{x}{+}{2}{}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{+}{2}{}{\mathrm{_Z}}{+}{1}\right){,}{5}\right]\right]\right]$ (42)

With option 'makeindependent'=true, the input will be checked for algebraic dependencies even if there are more than $4$ algebraic objects in the input:

 > $\mathrm{CubeRootOf}\left[-4\right]≔\mathrm{RootOf}\left({\mathrm{_Z}}^{3}+4,\mathrm{index}=1\right)$
 ${{\mathrm{CubeRootOf}}}_{{-4}}{≔}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{+}{4}{,}{\mathrm{index}}{=}{1}\right)$ (43)
 > $\mathrm{CubeRootOf}\left[-2\right]≔\mathrm{RootOf}\left({\mathrm{_Z}}^{3}+2,\mathrm{index}=1\right)$
 ${{\mathrm{CubeRootOf}}}_{{-2}}{≔}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{+}{2}{,}{\mathrm{index}}{=}{1}\right)$ (44)
 > $\mathrm{CubeRootOf}\left[2\right]≔\mathrm{RootOf}\left({\mathrm{_Z}}^{3}-2,\mathrm{index}=1\right)$
 ${{\mathrm{CubeRootOf}}}_{{2}}{≔}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{-}{2}{,}{\mathrm{index}}{=}{1}\right)$ (45)
 > $\mathrm{CubeRootOf}\left[3\right]≔\mathrm{RootOf}\left({\mathrm{_Z}}^{3}-3,\mathrm{index}=1\right)$
 ${{\mathrm{CubeRootOf}}}_{{3}}{≔}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{-}{3}{,}{\mathrm{index}}{=}{1}\right)$ (46)
 > $\mathrm{CubeRootOf}\left[4\right]≔\mathrm{RootOf}\left({\mathrm{_Z}}^{3}-4,\mathrm{index}=1\right)$
 ${{\mathrm{CubeRootOf}}}_{{4}}{≔}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{-}{4}{,}{\mathrm{index}}{=}{1}\right)$ (47)
 > $\mathrm{CubeRootOf}\left[6\right]≔\mathrm{RootOf}\left({\mathrm{_Z}}^{3}-6,\mathrm{index}=1\right)$
 ${{\mathrm{CubeRootOf}}}_{{6}}{≔}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{-}{6}{,}{\mathrm{index}}{=}{1}\right)$ (48)
 > $\mathrm{Squarefree}\left(x+\mathrm{CubeRootOf}\left[4\right]\mathrm{CubeRootOf}\left[-2\right]\mathrm{CubeRootOf}\left[3\right]-\mathrm{CubeRootOf}\left[-4\right]\mathrm{CubeRootOf}\left[6\right],x\right)$
 $\left[{1}{,}\left[\left[{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{+}{2}{,}{\mathrm{index}}{=}{1}\right){}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{-}{3}{,}{\mathrm{index}}{=}{1}\right){}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{-}{4}{,}{\mathrm{index}}{=}{1}\right){-}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{+}{4}{,}{\mathrm{index}}{=}{1}\right){}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{-}{6}{,}{\mathrm{index}}{=}{1}\right){+}{x}{,}{1}\right]\right]\right]$ (49)
 > $\mathrm{Squarefree}\left(x+\mathrm{CubeRootOf}\left[4\right]\mathrm{CubeRootOf}\left[-2\right]\mathrm{CubeRootOf}\left[3\right]-\mathrm{CubeRootOf}\left[-4\right]\mathrm{CubeRootOf}\left[6\right],x,'\mathrm{makeindependent}'=\mathrm{true}\right)$
 $\left[{1}{,}\left[\left[{x}{,}{1}\right]\right]\right]$ (50)

With option 'makeindependent'=false, the input will never be checked for algebraic dependencies:

 > $\mathrm{Squarefree}\left(x+\mathrm{CubeRootOf}\left[2\right]\mathrm{CubeRootOf}\left[3\right]-\mathrm{CubeRootOf}\left[6\right],x\right)$
 $\left[{1}{,}\left[\left[{x}{,}{1}\right]\right]\right]$ (51)
 > $\mathrm{Squarefree}\left(x+\mathrm{CubeRootOf}\left[2\right]\mathrm{CubeRootOf}\left[3\right]-\mathrm{CubeRootOf}\left[6\right],x,'\mathrm{makeindependent}'=\mathrm{false}\right)$
 $\left[{1}{,}\left[\left[{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{-}{2}{,}{\mathrm{index}}{=}{1}\right){}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{-}{3}{,}{\mathrm{index}}{=}{1}\right){+}{x}{-}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{-}{6}{,}{\mathrm{index}}{=}{1}\right){,}{1}\right]\right]\right]$ (52)