This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
 BUILT-IN MATHEMATICA SYMBOL Tutorials »| See Also »| More About »

# Collect

 Collectcollects together terms involving the same powers of objects matching x. Collectcollects together terms that involve the same powers of objects matching , , .... Collectapplies h to the expression that forms the coefficient of each term obtained.
• Collect effectively writes expr as a polynomial in x or a fractional power of x.
• Collect[expr, x, Simplify] can be used to simplify each coefficient separately.
• Collect automatically threads over lists in expr, as well as equations, inequalities and logic functions.
Collect terms involving :
Collect each power of :
Simplify each coefficient:
Collect terms involving :
 Out[1]=

Collect each power of :
 Out[1]=
Simplify each coefficient:
 Out[2]=
 Scope   (4)
A polynomial:
A Puiseux polynomial:
Collect with respect to two variables:
Collect with respect to a pattern:
Collect derivative terms:
 Options   (1)
Collect over the integers modulo 2:
Expand is effectively the inverse of Collect:
The order of variables matters:
New in 1 | Last modified in 6