In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, Bézout's identity (also called Bézout's lemma), named after
Étienne Bézout who proved it for polynomials, is the following
theorem
In mathematics and formal logic, a theorem is a statement (logic), statement that has been Mathematical proof, proven, or can be proven. The ''proof'' of a theorem is a logical argument that uses the inference rules of a deductive system to esta ...
:
Here the greatest common divisor of and is taken to be . The integers and are called Bézout coefficients for ; they are not unique. A pair of Bézout coefficients can be computed by the
extended Euclidean algorithm, and this pair is, in the case of integers one of the two pairs such that and ; equality occurs only if one of and is a multiple of the other.
As an example, the greatest common divisor of 15 and 69 is 3, and 3 can be written as a combination of 15 and 69 as , with Bézout coefficients −9 and 2.
Many other theorems in
elementary number theory, such as
Euclid's lemma
In algebra and number theory, Euclid's lemma is a lemma that captures a fundamental property of prime numbers:
For example, if , , , then , and since this is divisible by 19, the lemma implies that one or both of 133 or 143 must be as well. In ...
or the
Chinese remainder theorem
In mathematics, the Chinese remainder theorem states that if one knows the remainders of the Euclidean division of an integer ''n'' by several integers, then one can determine uniquely the remainder of the division of ''n'' by the product of thes ...
, result from Bézout's identity.
A
Bézout domain is an
integral domain
In mathematics, an integral domain is a nonzero commutative ring in which the product of any two nonzero elements is nonzero. Integral domains are generalizations of the ring of integers and provide a natural setting for studying divisibilit ...
in which Bézout's identity holds. In particular, Bézout's identity holds in
principal ideal domains. Every theorem that results from Bézout's identity is thus true in all principal ideal domains.
Structure of solutions
If and are not both zero and one pair of Bézout coefficients has been computed (for example, using the
extended Euclidean algorithm), all pairs can be represented in the form
where is an arbitrary integer, is the greatest common divisor of and , and the fractions simplify to integers.
If and are both nonzero and none of them divides the other, then exactly two of the pairs of Bézout coefficients satisfy
If and are both positive, one has
and
for one of these pairs, and
and
for the other. If is a divisor of (including the case
), then one pair of Bézout coefficients is .
This relies on a property of
Euclidean division: given two non-zero integers and , if does not divide , there is exactly one pair such that and , and another one such that and .
The two pairs of small Bézout's coefficients are obtained from the given one by choosing for in the above formula either of the two integers next to .
The extended Euclidean algorithm always produces one of these two minimal pairs.
Example
Let and , then . Then the following Bézout's identities are had, with the Bézout coefficients written in red for the minimal pairs and in blue for the other ones.
If is the original pair of Bézout coefficients, then yields the minimal pairs via , respectively ; that is, , and .
Existence proof
Given any nonzero integers and , let . The set is nonempty since it contains either or (with and ). Since is a nonempty set of positive integers, it has a minimum element , by the
well-ordering principle. To prove that is the greatest common divisor of and , it must be proven that is a common divisor of and , and that for any other common divisor , one has .
The
Euclidean division of by may be written as