阅读例题:解方程x2-|x|-2=0.
原方程化为|x|2-|x|-2=0.令y=|x|,∴y2-y-2=0
解得y1=2,y2=-1当|x|=2,x=±2;当|x|=-1时(不合题意,舍去)
∴原方程的解是x1=2,x2=-2,仿照上例解方程(x-1)2-5|x-1|-6=0.
(x-1)2-5|x-1|-6=0,
变形得:|x-1|2-5|x-1|-6=0,
设y=|x-1|,方程化为y2-5y-6=0,即(y-6)(y+1)=0,
可得y-6=0或y+1=0,
解得y1=6,y2=-1,
当|x-1|=6时,可得x-1=6或x-1=-6,
解得:x1=7,x2=-5;
当|x-1|=-6,无解,
则原方程的解为:x1=7,x2=-5.