The number of solutions of x2+|x−1|=1 is
2
x2+|x−1|=x2+x−1,x≥1x2−x+1,x<1(ii)x2+x−1=1⇒x2+x−2=0⇒x2+2x−x−2=0⇒x(x+2)−1(x+2)=0⇒(x+2)(x−1)=0⇒x+2=0orx−1=0⇒x=−2orx=1Since -2 does not satisfy the conditionx≥1.(ii)x2−x+1=1⇒x2−x=0⇒x2−x=0⇒x(x−1)=0⇒x=0 or (x−1)=0⇒x=0,x=1x=1does not satisfy the condition x < 1 So, there are two solutions.