Computing A and B such that A*(\partial f / \partial x) + B*(\partial f / \partial y) = 1.

> fxpartial:=diff(f(x,y),x);

[Maple Math]

> fypartial:=diff(f(x,y),y);

[Maple Math]

Here before using the GCD function on polynomials, we make the following adjustment.... namely we assume that B = y *C and then solve for A and C such that

A*fxpartial + C*2(x^3 + x*c1 + c2) = 1.

That we we are taking the gcd with respect to just one variable, namely x.

> lydia:=2*(x^3 + x*c1 + c2);

[Maple Math]

> gcdex(fxpartial,lydia,x, 's', 't');

[Maple Math]

> A:=simplify(s);

[Maple Math]

> B:=y*simplify(t);

[Maple Math]

> Ap:=A^p;

[Maple Math]

> Bp:=B^p;

[Maple Math]

>