Mathematical formulation of second law of motion