Collect the Terms of a Polynomial

Collect can collect together the terms of a polynomial.

    
Define a polynomial and collect the powers of x:
You can also simplify the terms from within Collect:
Use Collect with respect to two variables: