Definition and Mathematics of Work