work done on x.initial,x.rest