Archive

Bézout's identity

Archived technical note: Bézout's identity.

Bézout’s identity for integers

Let a,b∈Za,b\in\mathbb Z be not both zero, and let

g=gcd⁡(∣a∣,∣b∣)>0.g=\gcd(|a|,|b|)>0.

Then there are integers x,yx,y such that

ax+by=g.ax+by=g.

In fact, the set of all integer linear combinations of aa and bb is exactly the set of multiples of gg:

{ax+by:x,y∈Z}=gZ={ng:n∈Z}.\{ax+by:x,y\in\mathbb Z\}=g\mathbb Z=\{ng:n\in\mathbb Z\}.

The polynomial analogue is a separate result; it is proved over fields below.

Integer proof

Consider the set of positive integer linear combinations

S={ax+by:x,y∈Z, ax+by>0}.S=\{ax+by:x,y\in\mathbb Z,\ ax+by>0\}.

This set is nonempty. Since a,ba,b are not both zero, at least one is nonzero. If a≠0a\ne0, choose x=1x=1 when a>0a>0 and x=−1x=-1 when a<0a<0, and take y=0y=0; then ax+by=∣a∣>0ax+by=|a|>0. If a=0a=0, then b≠0b\ne0, and choosing x=0x=0 and yy to have the sign of bb gives ax+by=∣b∣>0ax+by=|b|>0.

By the well-ordering principle, SS has a least element mm. Thus m=ax0+by0m=ax_0+by_0 for some x0,y0∈Zx_0,y_0\in\mathbb Z, and m>0m>0.

Apply division with remainder to aa and the positive integer mm: there are q,r∈Zq,r\in\mathbb Z such that

a=qm+r,0≤r<m.a=qm+r,\qquad 0\le r<m.

Since m=ax0+by0m=ax_0+by_0,

r=a−qm=a(1−qx0)+b(−qy0),r=a-qm=a(1-qx_0)+b(-qy_0),

so rr is an integer linear combination of aa and bb. If r>0r>0, then r∈Sr\in S and r<mr<m, contradicting the minimality of mm. Therefore r=0r=0, and m∣am\mid a. Applying the same argument to bb shows that m∣bm\mid b.

Conversely, if cc is any common divisor of aa and bb, then cc divides every integer linear combination of them, in particular m=ax0+by0m=ax_0+by_0. Thus every common divisor of a,ba,b divides mm. Together with m∣am\mid a and m∣bm\mid b, this means that mm is their positive greatest common divisor. Hence m=gm=g, and the representation of mm already gives integers x0,y0x_0,y_0 with ax0+by0=gax_0+by_0=g.

It remains to identify all the combinations. Because gg divides both aa and bb, it divides ax+byax+by for every x,y∈Zx,y\in\mathbb Z. Thus every such combination is a multiple of gg. Conversely, for any n∈Zn\in\mathbb Z, multiplying ax0+by0=gax_0+by_0=g by nn gives

ng=a(nx0)+b(ny0),ng=a(nx_0)+b(ny_0),

which is an integer linear combination of aa and bb. Therefore the combinations are exactly the multiples of gg, as claimed.

Polynomial Bézout identity over a field

Let KK be a field, and let f,g∈K[x]f,g\in K[x] be not both zero. Let dd be their monic greatest common divisor. Then there are polynomials u,v∈K[x]u,v\in K[x] such that

uf+vg=d.uf+vg=d.

Moreover, the set of polynomial combinations is exactly the ideal generated by dd:

{uf+vg:u,v∈K[x]}=dK[x].\{uf+vg:u,v\in K[x]\}=dK[x].

To prove this, consider the nonzero polynomials in

I={uf+vg:u,v∈K[x]}.I=\{uf+vg:u,v\in K[x]\}.

This set is nonempty because ff and gg are not both zero. Choose a member of least degree and scale it to be monic; call it dd. Divide ff by dd:

f=qd+r,r=0 or deg⁡r<deg⁡d.f=qd+r,\qquad r=0\text{ or }\deg r<\deg d.

Since d∈Id\in I, the remainder r=f−qdr=f-qd also belongs to II. If r≠0r\ne0, it contradicts the minimal degree of dd. Therefore d∣fd\mid f. The same argument gives d∣gd\mid g.

Every common divisor of ff and gg divides every element of II, including dd. Thus dd is their monic greatest common divisor. Since d∈Id\in I, its definition supplies u,v∈K[x]u,v\in K[x] with uf+vg=duf+vg=d.

Every combination uf+vguf+vg is divisible by dd, so I⊆dK[x]I\subseteq dK[x]. Conversely, multiplying uf+vg=duf+vg=d by any h∈K[x]h\in K[x] gives

hd=(hu)f+(hv)g,hd=(hu)f+(hv)g,

so every multiple of dd is a combination. Hence I=dK[x]I=dK[x]. 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.