Symbolics > Working with Symbolics > Simplifying and Rewriting Expressions > To Collect Terms
  
To Collect Terms
1. Place the cursor at the end of an expression, insert the symbolic evaluation operator, and type the keyword collect in the placeholder.
2. Type a comma after collect and specify a variable.
Click to copy this expression
PTC Mathcad collects terms in polynomials containing like powers of the variable you specified.
3. Change the variable to y, and view the changed result.
Click to copy this expression