Molecular simulations rely on the numerical solution of equations governing molecular interactions. These equations can be based on classical mechanics, quantum mechanics, or statistical mechanics. For example, MD simulations solve Newton's equations of motion for each atom in a system to predict how the system evolves over time. The interactions between atoms are described by force fields, which are mathematical functions that approximate the potential energy of the system.