The history of energy use is a sequence of transitions to sources that are cheaper, cleaner, and more flexible.