Search for all pages containing CoefficientRules
CoefficientRules
✖
CoefficientRules
gives the list {{e11,e12,…}c1,{e21,…}c2,…} of exponent vectors and coefficients for the monomials in poly with respect to the xi.
gives the result with the monomial ordering specified by order.
Details and Options

- CoefficientRules works whether or not poly is explicitly given in expanded form.
- CoefficientRules[poly] is equivalent to CoefficientRules[poly,Variables[poly]].
- Possible settings for order are the same as in MonomialList.
- The default order is "Lexicographic".
- CoefficientRules[poly,vars,Modulus ->m] computes the coefficients modulo m.
- CoefficientRules[poly,All,order] is the same as CoefficientRules[poly,Variables[poly],order].
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Scope (1)Survey of the scope of standard use cases
Options (1)Common values & functionality for each option
Properties & Relations (2)Properties of the function, and connections to other functions
FromCoefficientRules reconstructs the original polynomial:

https://wolfram.com/xid/0b8cn0k4y6-lspjtq


https://wolfram.com/xid/0b8cn0k4y6-kocky6

MonomialList gives a different representation:

https://wolfram.com/xid/0b8cn0k4y6-i83krh

For two variables "DegreeLexicographic" and "DegreeReverseLexicographic" coincide:

https://wolfram.com/xid/0b8cn0k4y6-bof22u


https://wolfram.com/xid/0b8cn0k4y6-jo9s9

Possible Issues (1)Common pitfalls and unexpected behavior
The list given by Variables[poly] is not always sorted:

https://wolfram.com/xid/0b8cn0k4y6-e4vsy3


https://wolfram.com/xid/0b8cn0k4y6-bz064l


https://wolfram.com/xid/0b8cn0k4y6-dlgf70

Neat Examples (2)Surprising or curious use cases
Visualize monomial orderings in 2D:

https://wolfram.com/xid/0b8cn0k4y6-dplr7j
The standard built-in orderings:

https://wolfram.com/xid/0b8cn0k4y6-hcdq2g
In 2D some orderings cannot be distinguished:

https://wolfram.com/xid/0b8cn0k4y6-gb745u

Visualize monomial orderings in 3D:

https://wolfram.com/xid/0b8cn0k4y6-f7l40x

https://wolfram.com/xid/0b8cn0k4y6-yk14d
In 3D all orderings are distinct:

https://wolfram.com/xid/0b8cn0k4y6-gdxl7x

Wolfram Research (2008), CoefficientRules, Wolfram Language function, https://reference.wolfram.com/language/ref/CoefficientRules.html.
Text
Wolfram Research (2008), CoefficientRules, Wolfram Language function, https://reference.wolfram.com/language/ref/CoefficientRules.html.
Wolfram Research (2008), CoefficientRules, Wolfram Language function, https://reference.wolfram.com/language/ref/CoefficientRules.html.
CMS
Wolfram Language. 2008. "CoefficientRules." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CoefficientRules.html.
Wolfram Language. 2008. "CoefficientRules." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CoefficientRules.html.
APA
Wolfram Language. (2008). CoefficientRules. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CoefficientRules.html
Wolfram Language. (2008). CoefficientRules. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CoefficientRules.html
BibTeX
@misc{reference.wolfram_2025_coefficientrules, author="Wolfram Research", title="{CoefficientRules}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/CoefficientRules.html}", note=[Accessed: 15-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_coefficientrules, organization={Wolfram Research}, title={CoefficientRules}, year={2008}, url={https://reference.wolfram.com/language/ref/CoefficientRules.html}, note=[Accessed: 15-March-2025
]}