+ (-x) ^2 or -(x) ^ 2

If we have the equation

X + y =0

And need to replace a +y2 in a simultaneous equation, do I do:

+(-x)2 = x2

Or

+-(x)2 = -(x)2 = -x2