pythagorean triples complex squares

While working on a math problem recently that involved Pythagorean Triples I spotted a connection with the complex numbers that I had never noticed previously. It is a trivial observation and I was surprised that in my many years as a mathematician I had never heard anyone mention this little fact. I am curious if this little fact is well known to others and I just happened to miss it or if it really is unknown to most folks.

A Pythagorean triple is a set of three integers like 3,4,5 that make a right triangle with integer sides. Being a right triangle the numbers fit the Pythagorean theorem, a^2 + b^2 = c^2 and sho nuff 9 + 16 = 25

Euclid has a proof that is presented in the Elements that all Pythagorean triples can be generated from two integers s, and t by means of these formulae

a = 2st

b = s^2 - t^2

c = s^2 + t^2

It is fairly easy to use algebra to square a and b using those formulae and see that these numbers do in fact form a Pythagorean triple. It is only slightly more difficult to go the other way and show that all triples are of this form.

So all of this is ancient history - known to Euclid.

Now let us take a complex number, c = a + bi. Let it be a complex integer, meaning that a and b are actually integers. Viewed from the complex plane, the complex number c represents a little right triangle, one leg is the real part, one leg is the imaginary part and the hypotenuse is the norm of the complex number c i.e.

|c| = sqrt(a^2 + b^2)

Clearly because of the square root sign the norm of c is not necessarily an integer and thus the triangle a,b,c is not necessarily a Pythagorean triple. However just square the complex number c

(a + bi)*(a + bi) = (a^2 - b^2) + (2ab)i

Notice anything about the form of a perfect square in the complex plane and Euclid's characterization of a Pythagorean triple? One leg is a difference of squares the other is twice the product of the two numbers.

They are one and the same. The Pythagorean triples are just exactly the perfect squares in the complex plane.

So for example (2 + i) is not a square and is not a Pythagorean triple. Its norm is sqrt(5). but if you square it, you get (3 + 4i) whose norm is 5.

That is the observation. Nothing difficult. Perfectly obvious. Every mathematician from Euclid on knows about right triangles and everyone since Gauss has been able to multiply two complex integers. It is about as easy as math gets. I was astonished that in years as a working mathematician I had never noticed this nor heard anyone mention this simple fact.

Yes, I know - you're thinking that the reason this never came up in conversation is because this observation is totally irrelevant and practically useless, but that has never stopped mathematics. Just ask any mathematician to tell you about paracompact Hausdorff spaces and listen to an amazing tirade of irrelevant and practically useless information.

The Pythagorean triples are just the perfect squares in the complex plane.

Just for grins Google 'Pythagorean triples "complex squares"' to see a Google search that returns but a single result. Hole in one. except that it is not about the result that I just mentioned.

I make no claim that any of this is original, I am only flabbergasted at my ignorance and am casting out to see if I was just asleep the day they covered this in high school or if this really is a rather obscure and little known even if trivial observation.

There is nothing left to say but to ask the survey questions

1) Did you know this before you read it here?

2) If you did know it, was it shown to you or did you discover it yourself?

Enjoy!

[3750 byte] By [marlin314a] at [2007-10-3 0:02:12]
# 1

> 1) Did you know this before you read it here?

No, I did not.

> Enjoy!

I usually do!

I also did some Googling, and found other pages where people noted this fact.

This is what I searched for: http://www.google.com/search?q=%22pythagorean+triples%22+complex

But I was amazed that a page like this: http://mathworld.wolfram.com/PythagoreanTriple.html did not make a reference to the complex numbers.

prometheuzza at 2007-7-14 16:49:49 > top of Java-index,Other Topics,Algorithms...
# 2

Darn, I'm missing all the fun in here; I should read this forum more

frequently ;-)

Just to spoil the fun: Just as that (s^2-t^2, 2st, s^2+t^2) formula, perfect

squares in the complex plane only generate the *primitive* Pythagorean

triples, e.g. the triple (9, 12, 15) is not equivalent to a perfect square in

the complex plane.

kind regards,

Jos (< party pooper)

JosAHa at 2007-7-14 16:49:49 > top of Java-index,Other Topics,Algorithms...
# 3

You are so correct Jos, you can have a common prime root in the legs. Euclid's formula was for the primitive triples.

I had run into a triple in a problem that I was playing with, remembered that there was a characterization in Euclid and while skimming it noticed that it looked exactly like a squared complex number. This would explain the lack of finding this fact noted on the various math sites - the mere fact that it isn't really true.

The connection to the complex plane is real but as you say the complex squares are the pirmitive triples not all of them.

Of course, if I were a good mathematician I would pretend that I knew that all along and in a disgusted tone utter, "Do you take me for some kind of fool? Obviously I meant 'primitive' because it isn't true otherwise."

These days I am closer to fool than to a good mathematician.

I am very glad that you pointed this out. The problem I was working on required triples and I was about to limit my considerations to just the primitive ones when in fact a non-primitive one could do.

Domo arigato gozaimashita!

marlin314a at 2007-7-14 16:49:49 > top of Java-index,Other Topics,Algorithms...
# 4

> These days I am closer to fool than to a good mathematician.

If you add 'sloppy' to that, can I join in then please? ;-)

> I am very glad that you pointed this out. The problem I was working on

> required triples and I was about to limit my considerations to just the

> primitive ones when in fact a non-primitive one could do.

Yep, that's the problem; augmenting it with 2, 3, 4, ... times the found

solution is not very elegant (ahem) IMHO

> Domo arigato gozaimashita!

Waidaminnit; I had Latin classess for six years in a row, so that makes

'domo' == I sleep, 'arigato' ~= I made undue claims? 'gozaimashita' ~=

The Great Gonzo went to Japan? So: while I was making undue claims

being asleep the Great Gonzo went to Japan. Right? What did I win? ;-)

kind regards,

Jos

ps. I did like the Pythagorean triple versus a+bi squared notion.

JosAHa at 2007-7-14 16:49:49 > top of Java-index,Other Topics,Algorithms...
# 5

You have given the litteral translation of the latin. The colloquial form is closer to "I think I'm turning Japanese, I really think so."

While the great gonzo was living in Japan for 3 and a half years he learned among other things that it is just not possible to be extremely polite and respectful in his Brabarian native tongue of English.

Thus when there is lots of bowing and scraping called for he finds himself slipping into nihongo. Furthermore as senility settles in he is occasionally confused as to whether he should refer to himslef in the third person or the first persion. :)

shikata ga nai nee? (It can't be helped, eh?)

marlin314a at 2007-7-14 16:49:49 > top of Java-index,Other Topics,Algorithms...