How do you solve the quadratic equation by completing the square: x^2=x?

$x = 0 \to {0}^{2} = 0 \mathmr{and} x = 1 \to {1}^{2} = 1$