Identifying parts of an algebraic expression