
Fnu K. answered 02/05/20
Expert in Mathematics and had 1 year experience in teaching ACT Math.
Whenever you see a piece function, first steps should be to break it into pieces.
f(x) = 2x for 0≤x ≤1 and -2x for -1≤x<0. Now you can integrate the pieces of function in their respective domain.