The correct option is B x=−y
(x+y)2 would be equal to 0 in two cases.
Case 1:–––––––––
When both x and y are equal to 0.
(x+y)2=(0+0)2
=02+02+2×0×0
=0+0+0
=0
But this cannot be the case as in the question, it is given that x≠0 and y≠0. So, case 1 is not correct.
Case 2:–––––––––
(x+y)2 would be equal to zero when the term inside the bracket, i.e., (x+y) becomes equal to 0.
(x+y)2=0
⟹(x+y)=0
Subtracting y from both the sides of the above equation:
(x+y)−y=0−y
x+(y−y)=−y
x+0=−y
x=−y
Case 2 is accepted as x≠0 and y≠0 but (x+y)2=0.
(x+y)2 would be equal to 0 when x=−y. Therefore, option (b.) is the correct answer.