Suppose they're equal. This is equivalent to their squares being equal (as both numbers are nonnegative):
$$
x^2-2|xy|+y^2=x^2-2xy+y^2
$$
This is equivalent to
$$
|xy|=xy
$$
0
Bumbble Comm
On
Only when $x$ and $y$ have the same sign. This is obvious by considering the four possible cases.
Suppose they're equal. This is equivalent to their squares being equal (as both numbers are nonnegative): $$ x^2-2|xy|+y^2=x^2-2xy+y^2 $$ This is equivalent to $$ |xy|=xy $$