"I want to obtain a list of the coefficient before 'the term that depends on y', so I want as a result: [a, -b*x, c, d]" I can get this. f:a*y*log(y) - b*x*y^2 + c*y + d$ makelist(ratcoeff(f,y,i), i,0,2); >- [d,a*log(y)+c,-b*x] Hope this helps. Rich