Simplifying expressions and coefficients