TITLE: Elementary number theory, sums of two squares
QUESTION [7 upvotes]: Suppose x can be written as a sum of two squares of integers, and y can be written as a sum of two squares of integers. Show that xy can also be written as a sum of two squares of integers.

REPLY [2 votes]: To elaborate a bit on the answer posted by André Nicolas:
https://en.wikipedia.org/wiki/Brahmagupta%E2%80%93Fibonacci_identity
\begin{align}
\left(a^2 + b^2\right)\left(c^2 + d^2\right)
& {}= \left(ac-bd\right)^2 + \left(ad+bc\right)^2 \tag1 \\
& {}= \left(ac+bd\right)^2 + \left(ad-bc\right)^2. \tag2
\end{align}
Thus, there is more than one way to write a product of two sums of two squares as a sum of two squares.
For example,
$$(1^2 + 4^2)(2^2 + 7^2) = 26^2 + 15^2 = 30^2 + 1^2.$$
(On April 6th, 2006, wrote a Wikipedia page titled "Fibonacci's identity".  Here is what it looked like on April 20th: https://en.wikipedia.org/w/index.php?title=Fibonacci%27s_identity&oldid=50311836)  Then that got merged into an older article, linked to above, and I made "Fibonacci's identity into a disambiguation page.)