Work energy theorem for a variable force