The velocity is given as,
v=α√s
dsdt=α√s
∫x0dsα√s=∫t0dt
2√sα=t
s=α2t24
The acceleration is given as,
a=vdvds
=α√s×α2√s
=α22
The total work done is given as,
W=m×a×s
=m×α22×α2t24
=mα4t28
Thus, the total work done by all forces acting on the locomotive is mα4t28.