Hi, In a polynomial: (a*x + y)^2 + a*x*y + y How do i get the terms to be grouped according to x and y?: (%o40) a*x^2 + y^2 + 3*a*x*y + y Also, coeff(%o40, x*y) gives 0.