int_0^1 ( (int_0^x (x-y)/2 dy ) + (int_x^2 (y-x)/2 dy) ) dx