Why momentum conserved in elastic collision and inelastic collision? Please attach mathematical proof too