A classic example of this kind of adventure is the proof of the following result: if two integers are each a sum of four squares, so is their product.
Using complex numbers in this proof will make our task considerably easier! Suppose that the integers A and B are written A = a2 + b2 + c2 + d2 and B = p2 + q2 + r2 + s2. It will suffice to introduce the complex numbers z = a + ib, t = c + id, u = p + iq and v = r + is so that we can write
A×B=(z2+t2)(u2+v2)=(zzˉ+ttˉ)(uuˉ+vvˉ)A\times B=(|\,z\,|^{2}+|\,t\,|^{2})(|\,u\,|^{2}+|\,v\,|^{2})=(z\bar{z}+t\bar{t})(u\bar{u}+v\bar{v})
which is nothing other than zu+tv2+zvtu2\left|z\overline{u}+t\overline{v}\right|^{2}+\left|zv-tu\right|^{2} which is indeed a sum of four squares, each of the two terms being a sum of two squares. This very convenient result is used in particular in the proof of Lagrange's four-square theorem: it allows us to prove that every integer is a sum of four squares using only prime numbers.
Another, less well-known, example of an advantageous detour through complex numbers is the one cited by our colleagues from Quebec, Alain Desparois and Paul Guertin (Bulletin de l'Association mathématique du Québec, March 2017), when they look into n-similar functions, that is, functions that are equal to their nth derivative, without being equal to any of their first n – 1 derivatives. The exponential function is obviously 1-similar, x \mapsto exp (–x) is 2-similar, the sine function is 4-similar. How can we find real functions of a real variable that are 3-similar?