Why is it {0,1} Such as the title

Why is it {0,1} Such as the title

x^2=x
x^2-x=0
x(x-1)=0
So x = 0 or x = 1
So the set is {0,1}