Groebner
NormalForm
normal form of a polynomial modulo an ideal
Reduce
full reduction of a polynomial
Calling Sequence
Parameters
Description
Examples
References
NormalForm(f, G, T, Q, characteristic=p)
Reduce(f, G, T, s, Q, characteristic=p)
f
-
a polynomial or a list or set of polynomials
G
a list of polynomials or a PolynomialIdeal
T
a MonomialOrder or ShortMonomialOrder
Q
(optional) name - assigned quotients
p
(optional) characteristic
s
(optional) name - assigned denominator
The NormalForm command computes the remainder of a multivariate polynomial f divided by a list of multivariate polynomials G. The division takes place with respect to a monomial order T. If G is a Groebner basis with respect to T then the result is a canonical representative for the equivalence class of f modulo G. A list of quotients can be assigned to an optional fourth argument Q.
The Reduce command is similar to NormalForm, except that denominators are cleared and content is removed. The result is a scaled remainder r, denominator s, and quotients Q such that rs=f−∑i=1n⁡Qi⁢Gi where r/s is the normal form. Note that NormalForm and Reduce return the same quotients Q (they are not scaled by s).
If the first argument is a list or set then a sparse algorithm based on linear algebra is used to divide all the polynomials simultaneously. This is more efficient than mapping NormalForm or Reduce over the list or set. It is also more efficient when a lot of reduction steps are expected (the polynomials involved have high degree or many terms). The sparse algorithm does not compute quotients. Setting infolevel[F4] to either 4 or 5 will output information about the size of the linear system being solved.
If T is a ShortMonomialOrder then the elements of f and G must be polynomials in the ring implied by T. If T is a MonomialOrder created with the Groebner[MonomialOrder] command, then the elements of f and G must be members of the algebra used to define T. If G is a PolynomialIdeal, a Groebner basis with respect to T is computed automatically and used for the division.
The optional argument characteristic=p can be used to specify the ring characteristic when G is a list of polynomials and T is a ShortMonomialOrder. The default value is zero.
Note that the normalf and reduce commands have been superseded by NormalForm and Reduce. They are now deprecated, and may not be supported in a future Maple release.
with⁡Groebner:
F≔x2−2⁢x⁢z+5,x⁢y2+y⁢z3,3⁢y2−8⁢z3
F≔x2−2⁢x⁢z+5,y⁢z3+x⁢y2,−8⁢z3+3⁢y2
G≔Basis⁡F,tdeg⁡x,y,z
G≔x2−2⁢x⁢z+5,8⁢z3−3⁢y2,8⁢x⁢y2+3⁢y3,9⁢y4+48⁢y3⁢z+320⁢y2
p≔320⁢x⁢y2+9⁢x⁢y4−96⁢z2⁢y4⁢x+1600⁢y3−18⁢y5⁢x⁢z−592⁢x⁢z⁢y3+45⁢y5+240⁢z⁢y4
p≔−18⁢y5⁢x⁢z−96⁢z2⁢y4⁢x+9⁢x⁢y4−592⁢x⁢z⁢y3+45⁢y5+240⁢z⁢y4+320⁢x⁢y2+1600⁢y3
NormalForm⁡p,G,tdeg⁡x,y,z,Q
0
0,0,−94⁢y3⁢z−12⁢z2⁢y2+98⁢y2−74⁢z⁢y+40,34⁢z⁢y2+378⁢y
r≔p−add⁡Qi⁢Gi,i=1..nops⁡G
r≔−18⁢y5⁢x⁢z−96⁢z2⁢y4⁢x+9⁢x⁢y4−592⁢x⁢z⁢y3+45⁢y5+240⁢z⁢y4+320⁢x⁢y2+1600⁢y3−−94⁢y3⁢z−12⁢z2⁢y2+98⁢y2−74⁢z⁢y+40⁢8⁢x⁢y2+3⁢y3−34⁢z⁢y2+378⁢y⁢9⁢y4+48⁢y3⁢z+320⁢y2
expand⁡r
q≔3⁢x3⁢y⁢z2−x⁢z2+y3+y⁢z
q≔3⁢x3⁢y⁢z2−x⁢z2+y3+z⁢y
NormalForm⁡q,G,tdeg⁡x,y,z
9⁢y3⁢z2−15⁢y⁢z2⁢x−x⁢z2−414⁢y3+60⁢z⁢y2+z⁢y
Reduce⁡q,G,tdeg⁡x,y,z,s
36⁢y3⁢z2−60⁢y⁢z2⁢x−4⁢x⁢z2−41⁢y3+240⁢z⁢y2+4⁢z⁢y
4
infolevelF4≔5:
NormalForm⁡p,q,G,tdeg⁡x,y,z
19 x 19 with 2 rhs symbolic preproc 0.001 sec linear solve 0.001 sec build result 0.000 sec
0,9⁢y3⁢z2−15⁢y⁢z2⁢x−x⁢z2−414⁢y3+60⁢z⁢y2+z⁢y
The next example is a non-commutative (Weyl) algebra where Dn*n = n*Dn + 1
with⁡Ore_algebra:
A≔diff_algebra⁡Dn,n
A≔Ore_algebra
T≔MonomialOrder⁡A,tdeg⁡Dn
T≔monomial_order
w1≔7⁢n⁢Dn+1
w2≔5⁢Dn−2
Reduce⁡skew_product⁡n5⁢Dn4−1,w1,A,w1,T
w≔skew_product⁡skew_product⁡n⁢Dn+5,w1,A,skew_product⁡n3⁢Dn2,w2,A,A+Dn5−1
w≔35⁢n5⁢Dn5+−14⁢n5+425⁢n4⁢Dn4+−170⁢n4+880⁢n3⁢Dn3−352⁢n3⁢Dn2+Dn5−1
Reduce⁡w,w1,w2,T,s
−1
16807⁢n5225008⁢n6+16807⁢n5+76560
r≔NormalForm⁡w,w1,w2,T,Q
r≔−225008⁢n6−16807⁢n5−7656016807⁢n5
5⁢Dn4⁢n4−2⁢Dn3⁢n4+40⁢n3⁢Dn3−18⁢n3⁢Dn2+Dn47⁢n−82⁢n2⁢Dn7−29⁢Dn349⁢n2+656⁢n49+638⁢Dn2343⁢n3−9570⁢Dn2401⁢n4+7656016807⁢n5,0
normal⁡w−skew_product⁡Q1,w1,A+skew_product⁡Q2,w2,A,expanded
−225008⁢n6−16807⁢n5−7656016807⁢n5
Cox, D.; Little, J.; and O'Shea, D. Ideals, Varieties, and Algorithms. 2nd ed. Springer-Verlag, 1997.
Pearce, R., and Monagan, M. "A Sparse Algorithm for Polynomial Division with Application to F4." In preparation, 2006.
See Also
Basis
InterReduce
MonomialOrder
Download Help Document