How to show that for $x,y\in \Bbb R$, the expression $xy+\left(\frac{x-y}{2} \right)^2$ is always a perfect square?
For example $x=7, y=3$, $7\times 3+\left(\frac{7-3}{2} \right)^2=25=5^2$
How to show that for $x,y\in \Bbb R$, the expression $xy+\left(\frac{x-y}{2} \right)^2$ is always a perfect square?
For example $x=7, y=3$, $7\times 3+\left(\frac{7-3}{2} \right)^2=25=5^2$
Expand out the square term, add it to the $xy$ term and factorise the result. You'll find it comes to $((x+y)/2)^2$, which is a perfect square if $x=y\mod 2$