|x-1|<=1 and y=-2+sqr(|x-1|)