Start from the identity that always holds, x2=∣x∣. The question is when ∣x∣=−x.
∣x∣=−x⟺x≤0
If x<0, then ∣x∣=−x by the definition of absolute value. If x=0, then ∣0∣=0=−0, so the endpoint works too and must be included. If x>0, then ∣x∣=x, which is positive, while −x is negative, so the equation fails.
So the solution set is every x≤0. The set x<0 is not the answer: every one of its members does satisfy the equation, but it leaves out x=0, so it is not the complete set.
This is the mirror image of x2=x, which holds exactly when x≥0.