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 AlgorithmLinear 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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersIntroduction to ExponentsOrder of OperationsInteger Order of OperationsVariable ExpressionsThe Distributive PropertyVariables and Expressions ReviewIntroduction to PolynomialsAdding and Subtracting PolynomialsMultiplying PolynomialsFactorialPermutationsCombinationsCounting Principles: Addition and Multiplication RulesIntroduction to Graph TheoryPropositional Logic FoundationsLogical EquivalencesSet Operations: Union, Intersection, and ComplementProof by CasesProving by Cases and ExhaustionVacuous Truth and Trivial CasesProof by Cases (Proof by Exhaustion)Mathematical InductionDivisibility and Greatest Common DivisorThe Fundamental Theorem of ArithmeticDivisibility Theory (Formal Treatment)Bézout's Identity

Longest path: 78 steps · 368 total prerequisite topics

Prerequisites (2)

Leads To (2)