Here's the integral:
$$\int\limits_C(x^2+y^2)\,\mathrm{d}x+(x^2-y^2)\,\mathrm{d}y$$
Where:
$$\begin{cases}y=1-|1-x| \\ 0\le x \le 2 \end{cases}$$
The integral itself seems easy, but I am more confused about how to deal with module inside the function.
$$ y=\begin{cases} x&\text{ for }0\le x<1\\ 2-x&\text{ for }1\le x\le2\end{cases}$$
$$ dy=\begin{cases} \phantom{-}dx&\text{ for }0\le x<1\\ -dx&\text{ for }1\le x\le2\end{cases}$$
\begin{eqnarray} \int\limits_C(x^2+y^2)\,\mathrm{d}x+(x^2-y^2)\,\mathrm{d}y &=&\int\limits_{C_1}2x^2-(x^2-x^2)\,\mathrm{d}x+\int\limits_{C_2}(x^2+(2-x)^2)-(x^2-(2-x)^2)\,\mathrm{d}x\\ &=&2\int\limits_{C_1}x^2\,\mathrm{d}x+2\int\limits_{C_2}(2-x)^2\,\mathrm{d}x \end{eqnarray}
Where $C_1$ is the portion of the path where $0\le x<1$ and $C_2$ the portion where $1\le x\le2$.