Derivation of newton second law of motion