A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Bézout's Identity

Graduate Depth 77 in the knowledge graph ☐ I know this ☆ Set as goal
11topics build on this
368prerequisites beneath it
See this on the map →
Divisibility Theory (Formal Treatment)The Euclidean Algorithm→→Linear Diophantine EquationsThe Chinese Remainder Theorem and Its Applications
bezout gcd linear-combinations

Core Idea

Bézout's identity states that for any integers a and b, there exist integers x and y such that ax + by = gcd(a,b). This fundamental result expresses the gcd as a linear combination of a and b, directly connecting divisibility to linear Diophantine equations.

How It's Best Learned

Use the extended Euclidean algorithm to compute gcd(a,b) and simultaneously find the Bézout coefficients x and y. Verify with examples like gcd(35,15) step-by-step.

Common Misconceptions

Thinking the coefficients x and y are unique (infinitely many solutions exist). Assuming x and y must be positive.

Explainer

You already know from the Euclidean algorithm that gcd(a, b) can be computed by repeatedly applying the division algorithm: divide a by b, take the remainder, and repeat. Bézout's identity says something deeper: that gcd is not just a number you can calculate, but a number you can *express* as a combination of a and b. Specifically, there exist integers x and y — possibly negative — such that ax + by = gcd(a, b). This is the Bézout identity, and it turns the gcd from a divisibility fact into an algebraic object.

The constructive proof comes from running the Euclidean algorithm in reverse. At each step of the algorithm you have an equation like r_{k} = r_{k-2} - q_k · r_{k-1}. Each remainder is a linear combination of the original inputs. By substituting back up the chain of equations — the extended Euclidean algorithm — you eventually express the final nonzero remainder (the gcd) as an integer linear combination of a and b. For example, gcd(35, 15) = 5: the Euclidean algorithm gives 35 = 2·15 + 5, so 5 = 35 − 2·15, meaning x = 1, y = −2. Check: 1·35 + (−2)·15 = 35 − 30 = 5. ✓

The coefficients are not unique. If (x, y) is one solution to ax + by = gcd(a, b), then so is (x + b/d · t, y − a/d · t) for any integer t, where d = gcd(a, b). This infinite family of solutions is a feature: it generates all solutions to linear Diophantine equations, which you'll study next. The key insight is that ax + by = c has an integer solution if and only if gcd(a, b) divides c — and Bézout's identity is exactly what makes the "if" direction work, since you can scale the (x, y) pair for gcd(a, b) to get a pair for any multiple c.

One powerful consequence: if gcd(a, b) = 1 — that is, a and b are coprime — then there exist integers x and y such that ax + by = 1. This means a has a multiplicative inverse modulo b (namely x mod b), and vice versa. This fact underlies modular inverses, the Chinese Remainder Theorem, and RSA cryptography. The abstract structure behind all of this is that in the integers (a principal ideal domain), every ideal is generated by a single element — the gcd — and Bézout's identity is precisely the statement that the ideal {ax + by : x, y ∈ ℤ} equals {d · n : n ∈ ℤ} where d = gcd(a, b).

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Set Operations: Union, Intersection, and Complement → Proof by Cases → Proving by Cases and Exhaustion → Vacuous Truth and Trivial Cases → Proof by Cases (Proof by Exhaustion) → Mathematical Induction → Divisibility and Greatest Common Divisor → The Fundamental Theorem of Arithmetic → Divisibility Theory (Formal Treatment) → Bézout's Identity

Longest path: 78 steps · 368 total prerequisite topics

Prerequisites (2)

Leads To (2)