White dwarfs are a type of stellar corpse, the mass left over when fusion stops in a star. They would collapse on themselves under gravity if it wasn't for quantum mechanics, the Pauli exclusion principle, and electron degeneracy pressure. Here's how they work.