If the question is ∫|x-1|dx in the interval [0,2] meaning the limits are 0 to 2, then we can write:
∫|x-1|dx=∫(1-x)dx[0,1] + ∫(x-1)dx[1,2]=
(x-½x²)[0,1]+(½x²-x)[1,2]=1-½+(4/2-2)-(½-1)=
½+0+½=1.
A different answer will result if different limits are applied. For example, [-1,3] will give the answer 4 if '' is just a typing error or a symbol that has no effect on the result. If '' means squared (²) for example, the answer will be different again. Note that, if you do not have superscript facilities on your keyboard, you can use x^2 to mean the same as x², etc. You can use words to express other symbols: integral(x^2dx) can be used to mean ∫x²dx, the indefinite integral. Definite integrals need limits and I use square brackets: [low limit,high limit]. Otherwise just state the limits in words.
The question doesn’t give the limits or say what '' means. Without this information no answer can be given.