The different sections of the periodic table of elements are governed by electron orbitals and quantum spin. Those orbitals, as you'd expect, are the result of a quantum mechanical wave function. Here's a glimpse into how that works.