Identifying terms and coefficients