As scientists of the 19th century thought about the implications of energy, they eventually came to a startling realization—the great principle that every isolated system becomes more disordered with time.