This is for a modern algebra course.
Find the greatest common divisor of each of the following pairs of $p(x)$ an $q(x)$ of polynomials. If $d(x)=gcd(p(x),q(x))$, find two polynomials $a(x)$ and $b(x)$ such that $a(x)p(x)+b(x)q(x)=d(x)$.
a. $p(x)=7x^3+6x^2-8x+4$ and $q(x)=x^3+x-2$ where $p(x),q(x)\in\mathbb{Q}[x]$
1st attempt:
I used an online factoring calculator to try to factor $p(x)=7x^3+6x^2-8x+4$ and it told me it's not factorable (I am not really sure how to factor polynomials with cubic terms easily by hand). and since $p(X)$ is not a multiple of $7q(x)=7x^3+7x-14$ I think maybe $gcd((p(x),q(x))=1$ in this case?
$$d(x)=a(x)p(x)+b(x)q(x)$$ $$1=a(x)(7x^3+6x^2-8x+4)+b(x)(x^3+x-2)$$ $$1=7x^3a(x)+6x^2a(x)-8xa(x)+4a(x)+x^3b(x)+x-2b(x)$$ $$1=x^3(7a(x)+b(x))+6x^2a(x)-8xa(x)+(4a(x)-2b(x))$$
Kind of got stuck here...
b. $p(x)=x^3+x^2-x+1$ and $q(x)=x^3+x-1$ where $p(x),q(x)\in\mathbb{Z}_2[x]$
1st attempt: I also can't seem to factor either of these...
I'm so confused..
Any help would be greatly appreciated!