I have two polynomials:
$$f(x)=x^5+x^3+x+1\\ g(x)=x^4+x^3+x+1.$$
I have to find out $\gcd(f,g)$ over $\operatorname{GF}(2).$
I think the gcd is: $x+1.$ But I am not sure, because here is the remainder $x^2+1.$
Another problem is to find out polynomials $a(x)$ and $b(x),$ like $$\gcd(f(x),g(x))= a(x)f(x)+b(x)g(x).$$ Maybe I can use Extended Euclid's algorithm, but I have no idea how to do it.
Note that$$x^5+x^3+x+1=(x^4+x^3+x+1)(x+1)+x^2+x,$$that$$x^4+x^3+x+1=(x^2+x)x^2+x+1,\tag1$$and that$$x^2+1=(x+1)x.$$The remainder of this final polynomial division is $0$ and therefore$$\gcd(x^5+x^3+x+1,x^4+x^3+x+1)=x+1$$since $x+1$ is the remainder of the division $(1)$ (that is, it is the last non-null remainder).