A locomotive of mass starts moving so that its velocity varies according to the law , where is a constant and is the distance covered. Find the total work performed by all the forces which are acting on the locomotive during the first seconds, after the beginning of motion.