Pythagorean Triples - An Application of Complex Numbers

Complex Analysis
College Algebra

Solving a2+b2=c2 within the set of natural numbers using complex numbers.

Author
Affiliation
Published

August 9, 2024

1 Discovering Pythagorean Triples

Recently, I learned a fascinating trick to find Pythagorean triples, i.e., (a,b,c) such that a2+b2=c2, from a YouTube video by Professor Richard E. Borcherds. Here’s how it works:

Consider the equation:

a+bi=(x+yi)2

Expanding this, we get:

a+bi=(x2y2)+2xyi

Taking the modulus squared of both sides:

|a+bi|2=|(x+yi)2|2a2+b2=(|x+yi|2)2a2+b2=(x2+y2)2

By setting a=x2y2, b=2xy, and c=x2+y2, we ensure that a2+b2=c2.

In other words, we can find Pythagorean triples by choosing integers x and y such that a=x2y2, b=2xy, and c=x2+y2.

1.1 Examples of Pythagorean Triples

Example 1  

  • For x=2 and y=1, we get: a=2212=3, b=221=4, c=22+12=5.

  • For x=3 and y=1, we get: a=3212=8, b=231=6, c=32+12=10.

  • For x=3 and y=2, we get: a=3222=5, b=232=12, c=32+22=13.