Bézout’s identity for integers
Let be not both zero, and let
Then there are integers such that
In fact, the set of all integer linear combinations of and is exactly the set of multiples of :
The polynomial analogue is a separate result; it is proved over fields below.
Integer proof
Consider the set of positive integer linear combinations
This set is nonempty. Since are not both zero, at least one is nonzero. If , choose when and when , and take ; then . If , then , and choosing and to have the sign of gives .
By the well-ordering principle, has a least element . Thus for some , and .
Apply division with remainder to and the positive integer : there are such that
Since ,
so is an integer linear combination of and . If , then and , contradicting the minimality of . Therefore , and . Applying the same argument to shows that .
Conversely, if is any common divisor of and , then divides every integer linear combination of them, in particular . Thus every common divisor of divides . Together with and , this means that is their positive greatest common divisor. Hence , and the representation of already gives integers with .
It remains to identify all the combinations. Because divides both and , it divides for every . Thus every such combination is a multiple of . Conversely, for any , multiplying by gives
which is an integer linear combination of and . Therefore the combinations are exactly the multiples of , as claimed.
Polynomial Bézout identity over a field
Let be a field, and let be not both zero. Let be their monic greatest common divisor. Then there are polynomials such that
Moreover, the set of polynomial combinations is exactly the ideal generated by :
To prove this, consider the nonzero polynomials in
This set is nonempty because and are not both zero. Choose a member of least degree and scale it to be monic; call it . Divide by :
Since , the remainder also belongs to . If , it contradicts the minimal degree of . Therefore . The same argument gives .
Every common divisor of and divides every element of , including . Thus is their monic greatest common divisor. Since , its definition supplies with .
Every combination is divisible by , so . Conversely, multiplying by any gives
so every multiple of is a combination. Hence . The coefficient-domain assumption matters: this proof uses polynomial division over a field.
Source history
The polynomial extension was prompted by Tistory ID 25, published on 2022-04-03 by 0archlinux0 / MINJUN PARK and marked CC BY 4.0. The source states the polynomial analogue but does not prove it on that page; the proof above establishes it independently over a field. The integer statement and proof remain separate.