# Thread: Sum of 2 Squares

1. ## Sum of 2 Squares

How do you express x^2 + xy + y^2 as the sum of two squares

Any help much appreciated.

ViperRobK

2. Hello, ViperRobK!

How do you express $x^2 + xy + y^2$ as the sum of two squares?
There is a way . . . but it's not "pleasant".

Subtract and add $3xy\!:\quad x^2 + xy \:{\color{red}-\;3xy} + y^2 \;{\color{red}+\; 3xy}$

. . . . . .and we have: . $x^2 - 2xy + y^2 + 3xy$

. . . . . . . and finally: . $(x-y)^2 + (\sqrt{3xy})^2$