sums of two squares (original) (raw)

Theorem.

This was presented by Leonardo Fibonacci in 1225 (in_Liber quadratorum_), but was known also by Brahmagupta and already by Diophantus of Alexandria (III book of his_Arithmetica_).

The proof of the equation may utilize Gaussian integersMathworldPlanetmath as follows:

(a2+b2)⁢(c2+d2) =(a+i⁢b)⁢(a-i⁢b)⁢(c+i⁢d)⁢(c-i⁢d)
=(a+i⁢b)⁢(c+i⁢d)⁢(a-i⁢b)⁢(c-i⁢d)
=[(a⁢c-b⁢d)+i⁢(a⁢d+b⁢c)]⁢[(a⁢c-b⁢d)-i⁢(a⁢d+b⁢c)]
=(a⁢c-b⁢d)2+(a⁢d+b⁢c)2

Note 1. The equation (1) is the special case n=2of Lagrange’s identity.

Note 2. Similarly as (1), one can derive the identity

(a2+b2)⁢(c2+d2)=(a⁢c+b⁢d)2+(a⁢d-b⁢c)2. (2)

Thus in most cases, we can get two different nontrivial sum forms (i.e. without a zero addend) for a given product of two sums of squares. For example, the product

attains the two forms 42+72 and 82+12.