Question: Polynomials with variable exponents

My problem is that I have two functions in two variables, say x and y. The functions are both polynomials in x, but sometimes y appears in an exponent. What I want to do is find the gcd of these functions as if they are viewed as polynomials in x. However, when I use the gcd command it says it can not do it because the arguments must be polynomials. I have tried redefining the functions as just functions in x (i.e. h(x) = f(x,y)), but it still does not work. So is there anyway for me to get Maple to look at these functions as polynomials in x and thus find the gcd? Or is there some other way I could do this?

Please Wait...