Newton's third law relates to a more fundamental principle, the conservation of momentum. The latter remains true even in cases where Newton's statement does not, for instance when force fields as well as material bodies carry momentum, and when momentum is defined properly, in quantum mechanics as well. In Newtonian mechanics, if two bodies have momenta p 1 and p 2 respectively, then the total momentum of the pair is p = p 1 + p 2 , and the rate of change of p is d p d t = d p 1 d t + d p 2 d t . By Newton's second law, the first term is the total force upon the first body, and the second term is the total force upon the second body. If the two bodies are isolated from outside influences, the only force upon the first body can be that from the second, and vice versa. By Newton's third law, these forces have equal magnitude but opposite direction, so they cancel when added, and p is constant. Alternatively, if p is known to be constant, it follows that the forces have equal magnitude and opposite direction.