MathClario
← Back to High school
High school🔢Arithmetic●●●○○· 4 min
🤝

Bézout's identity: au + bv = gcd(a, b)

There exist integers u, v with au + bv = gcd(a,b). Found by extended Euclidean algorithm.

The theorem

Bézout’s theorem: for any integers a,ba, b not both zero, there exist integers u,vu, v such that:

au+bv=gcd⁡(a,b)a u + b v = \gcd(a, b)

Corollary: coprime integers

aa and bb are coprime iff there exist integers u,vu, v with:

au+bv=1a u + b v = 1

Equivalent to gcd⁡(a,b)=1\gcd(a, b) = 1.

Finding uu and vv: extended Euclid

  1. Run the Euclidean algorithm (successive divisions).
  2. Go back up expressing each remainder as a combination of aa and bb.

Example: Bézout for a=30a = 30, b=18b = 18

Euclid descent:

  • 30=1×18+1230 = 1 \times 18 + 12
  • 18=1×12+618 = 1 \times 12 + 6
  • 12=2×6+012 = 2 \times 6 + 0 ⇒ gcd = 6.

Back-substitution:

  • 6=18−126 = 18 - 12
  • 6=18−(30−18)=2×18−306 = 18 - (30 - 18) = 2 \times 18 - 30

So u=−1u = -1, v=2v = 2: 30×(−1)+18×2=630 \times (-1) + 18 \times 2 = 6. ✓

Application 1: Diophantine equation

Solve ax+by=cax + by = c in Z\mathbb{Z}:

  • Has a solution iff gcd⁡(a,b)∣c\gcd(a, b) \mid c.
  • If so: find a particular solution by Bézout, then all others by induction.

Application 2: modular inverse

Find uu with au≡1(modn)a u \equiv 1 \pmod n?

Exists iff gcd⁡(a,n)=1\gcd(a, n) = 1. By Bézout: au+nv=1a u + n v = 1, so au≡1(modn)a u \equiv 1 \pmod n.

GCD is smallest positive

The gcd is the smallest positive integer of the form au+bvau + bv with u,v∈Zu, v \in \mathbb{Z}.

Common mistakes

  1. Confusing Bézout and Gauss (Gauss = if a∣bca | bc and gcd⁡(a,b)=1\gcd(a,b)=1 then a∣ca | c).
  2. Forgetting u,vu, v can be negative.
  3. Searching u,vu, v in N\mathbb{N} (often impossible).
?À toi de jouer

Do integers u, v exist with 15u + 25v = 4?

Mini-quiz

Question 1 / 3

Bézout says: there exist u, v with au + bv = ?

#Bézout#GCD#Euclid#grade 12

You might also like