Mathematica > Mathematics and Algorithms > Formula Manipulation > Algebraic Transformations > Collect >

Collect

Collect
collects together terms involving the same powers of objects matching x.
Collect
collects together terms that involve the same powers of objects matching , , ....
Collect
applies 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 :
In[1]:=
Click for copyable input
Out[1]=
 
Collect each power of :
In[1]:=
Click for copyable input
Out[1]=
Simplify each coefficient:
In[2]:=
Click for copyable input
Out[2]=
A polynomial:
A Puiseux polynomial:
Collect with respect to two variables:
Collect with respect to a pattern:
Collect derivative terms:
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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF