Question: How to find the coefficient of x, x^2,and xy from the following

How to find the coefficient of x, x^2,and xy from the following polynomial

 

F:-2*x+6*y+4*x^2+12*x*y-5*y^2

 

coeff(F, x) gives an answer 12*y+2 but I want it as 2 etc

coeff(F, x*y) gives an error 

Error, invalid input: coeff received x*y, which is not valid for its 2nd argument, x
 

Please Wait...