This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Collect

Updated In 6 Graphic
Collect[expr, x]
collects together terms involving the same powers of objects matching x.
Collect[expr, {x1, x2, ...}]
collects together terms that involve the same powers of objects matching x1, x2, ... .
Collect[expr, var, h]
applies h to the expression that forms the coefficient of each term obtained.
  • Collect[expr, x] 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.
New in 1 | Last modified in 6