Solution
> r_i,r_f;
> r_1:=[2,-2,1];
> r_tp1:=evalm(r_i+(r_1-r_i)*t);
> r_2:=[-2,-2,1];
> v_tp1:=map(diff,r_tp1,t);
> r_tp2:=evalm(r_1+(r_2-r_1)*t);
> v_tp2:=map(diff,r_tp2,t);
> r_tp3:=evalm(r_2+(r_f-r_2)*t);
> v_tp3:=map(diff,r_tp3,t);
Now we are ready to calculate the work integral.
> Work1:=int(dotprod(subs(x=r_tp1[1],y=r_tp1[2],z=r_tp1[3],F),v_tp1),t=0..1);
> Work2:=int(dotprod(subs(x=r_tp2[1],y=r_tp2[2],z=r_tp2[3],F),v_tp2),t=0..1);
> Work3:=int(dotprod(subs(x=r_tp3[1],y=r_tp3[2],z=r_tp3[3],F),v_tp3),t=0..1);
> evalf(Work1+Work2+Work3);
>