阅读下列例题:解方程x^2-|x|-2=0,(1)当x ≥0时,原方程化为x^2-x-2=0,解得x1=2,x2=-1(