Let $D$ be a euclidean domain and $a, b \in D$. Show that $M = \{xa + yb \ \mid \ x, y \in D\} $ is an ideal of $D$. Find $d \in D$ such that $M = \langle d \rangle$ and prove your claim.
My effort: we can extend Bezout's identity to euclidean domains (I see nothing in the proof that can't be extended here) to find $\alpha, \beta \in D$ such that $d \doteq \text{gcd } (a,b) = \alpha \cdot a + \beta \cdot b$. Then, given any $x \in D$, we have $x d = x\cdot (\alpha \cdot a + \beta \cdot b) = (x\alpha)a + (x \beta)b \in M$, therefore $\langle d \rangle \subset M$. Conversely, since $a = d m $ and $b = d n$ for some $m, n \in D$, given $xa + yb \in M$, we have $xa + yb = d(xm + yn) \in \langle d \rangle$, whence $M \subset \langle d \rangle$, and then $M = \langle d \rangle$.
Is this alright? I'm always wary of questions that are solved too easily (and I'm usually right for that, since my solutions are usually wrong in those cases), so I'd appreciate a second opinion/corrections.
That looks great to me. This is exactly the power of Bezout's identity to show that finitely generated ideals are principal.
It is perhaps worth noting that you should also be able to do it in even more generality for any ideal, not just finitely generated ideals. You simply choose an element of minimal degree under the Euclidean division algorithm and it will generate the ideal. See for example: https://proofwiki.org/wiki/Euclidean_Domain_is_Principal_Ideal_Domain