Solve by using the quadratic formula x^2+1=x