Bezout's Identity: Proof & Examples

Instructor: Gerald Lemay

Gerald has taught engineering, math and science and has a doctorate in electrical engineering.

A linear combination of two integers can be shown to be equal to the greatest common divisor of these two integers. This is the essence of the Bazout identity. In this lesson, we prove the identity and use examples to show how to express the linear combination.

Bezout's Identity

Although they might appear simple, integers have amazing properties. In this lesson, we revisit an algorithm for finding the greatest common divisor of integers and then use this algorithm to explore the Bazout identity. This exploration includes some examples and a proof.

The Greatest Common Divisor

Let's make sense of the phrase greatest common divisor (gcd). There are 3 parts: divisor, common and greatest. For example, if we have the number, 120, we could ask ''Does 1 go into 120?'' Yes, 120 divided by 1 is 120 with no remainder. Thus, 1 is a divisor of 120. How about 2? Well, 120 divide by 2 is 60 with no remainder. Thus, 2 is also a divisor of 120. So is, 3, 4, 5, and 6. How about 7? In this case, 120 divided by 7 is 17 but there is a remainder (of 1). Thus, 7 is not a divisor of 120. We could do this test by division and get all the divisors of 120:


Wow! Lots of work. How about the divisors of another number, like 168? Same process of division checks for divisors with no remainder. The divisors of 168:


For 120 and 168, we have all the divisors. What are the common divisors? These are the divisors appearing in both lists:


And the ''g'' part of gcd is the greatest of these common divisors: 24. Thus, the gcd of 120 and 168 is 24.

There is a better method for finding the gcd. Take the larger of the two numbers, 168, and divide by the smaller number, 120. We get 1 with a remainder of 48. Thus, 168 = 1(120) + 48.

Divide the number in parentheses, 120, by the remainder, 48, giving 2 with a remainder of 24. Thus, 120 = 2(48) + 24.

Again, divide the number in parentheses, 48, by the remainder 24. We get 2 with a remainder of 0. Thus, 48 = 2(24) + 0.

To summarize:


When the remainder is 0, we stop. The remainder, 24, in the previous step is the gcd. This method is called the Euclidean algorithm.

Bazout's Identity

The Bazout identity says for some x and y which are integers,


For a = 120 and b = 168, the gcd is 24. Thus, 120x + 168y = 24 for some x and y. Let's find the x and y.

Start with the next to last line of the Euclidean algorithm, 120 = 2(48) + 24 and write


In the line above this one, 168 = 1(120)+48. Thus,


Substitute 168 - 1(120) for 48 in 24 = 120 - 2(48), and simplify:


Compare this to 120x + 168y = 24 and we see x = 3 and y = -2.

Checking these values:


And it works!

Proof of Bazout's Identity

To prove Bazout's identity, write the equations in a more general way.


α1 is an integer and r1 is a remainder.

In the second line,


and in the third line we see how the remainders move from line to line:


From a = α1 b + r1, the remainder:


r1 is a linear combination of a and b (an integer times a plus an integer times b).

On the next line, b = α2 r1 + r1:


And again, the remainder is a linear combination of a and b.

To unlock this lesson you must be a Member.
Create your account

Register to view this lesson

Are you a student or a teacher?

Unlock Your Education

See for yourself why 30 million people use

Become a member and start learning now.
Become a Member  Back
What teachers are saying about
Try it risk-free for 30 days

Earning College Credit

Did you know… We have over 200 college courses that prepare you to earn credit by exam that is accepted by over 1,500 colleges and universities. You can test out of the first two years of college and save thousands off your degree. Anyone can earn credit-by-exam regardless of age or education level.

To learn more, visit our Earning Credit Page

Transferring credit to the school of your choice

Not sure what college you want to attend yet? has thousands of articles about every imaginable degree, area of study and career path that can help you find the school that's right for you.

Create an account to start this course today
Try it risk-free for 30 days!
Create an account