I need some help with the following division proofs. I suppose my biggest problem is not being able to visualize the algebra for one GCD equaling another GCD. I'm not sure of how to arrange the variables.
Let $F$ be a field and $f,g,q,r \in F[X]$ with $f$ being nonzero and $g=fq+r$
A. Prove that $d$ is a greatest common divisor of $f$ and $g$ if and only if $d$ is a greatest common divisor of $f$ and $r$.
B. Prove that the last nonzero remainder of Euclid’s Algorithm on $f$ and $g$ is a greatest common divisor of $f$ and $g$.
C. Show that there are polynomials $r,t \in F[X]$ such that $d = rf +tg$
For part $(A)$, suppose that $d$ is a gcd of $f$ and $g$ and $d'$ is a gcd of $f$ and $r$. Then $d\mid (g-fq)=r$ because $d\mid g$ and $d\mid f$, so $d\mid d'$ (because $d'$ is a greatest common divisor of $r$ and $f$.) Similarly, $d'\mid (fq+r)=g$ and $d'\mid f$, so $d'\mid d$. Hence, $d'$ and $d$ differ by at most multiplication by a constant polynomial, and so each is a gcd of $g$ and $f$ and $f$ and $r$.
Parts $(B)$ and $(C)$ follow from $(A)$ simply by applying the Euclidean algorithm.
For $(B)$, you just apply $(A)$ at each step of the Euclidean algorithm to get that the last nonzero remainder is also a gcd of $f$ and $g$.
For $(C)$, starting at the last equation you get in the Euclidean algorithm (which will be of the form $g_k=q_kf_k+d$ for some $g_k$, $q_k$, and $f_k$,) take the equation $d=g_k-q_kf_k$ and back-substitute for $g_k$ and $f_k$ with the earlier equations in the Euclidean algorithm to get an equation of the desired form for $(C)$.
Here is an example using the Euclidean algorithm in $\mathbb{Z}$ to demonstrate this: \begin{align*} 5 &= 1\cdot 3+2 \\ 3 &= 1\cdot 2+1, \end{align*} so take $1=3-1\cdot 2$, substitute in $2=5-1\cdot 3$ from the previous equation, and you get $1=3-1\cdot(5-1\cdot 3)=2\cdot 3-1\cdot 5$.