what is the absolute value of x-1
If x>=1 then it is x-1
If x<1 then it is 1-x
|x-1|.
I don't mean to be a wise guy, but is there more to the problem?