The Law of Conservation of Energy is one of the cornerstones of physics. When something is conserved, that means it cannot suddenly appear or disappear: if an object suddenly has more or less energy than it did before, that means energy flowed into or out of it from somewhere else. Energy conservation is so important to physicists that when it appears to be violated, physicists will invent new types of energy to account for it! For example, when a block sliding across a table comes to a stop, it loses its motion energy but the table warms up slightly: this led physicists to realize that heat was a type of energy flow, rather than a separate phenomenon as they’d originally assumed. Mass energy is required to explain how a uranium sample sitting quietly on a shelf can suddenly release a very energetic alpha particle (two protons and two neutrons): during nuclear decay, the total mass of the nucleus and the ejected particle is slightly smaller than the mass of the original nucleus. Mathematically, we express energy conservation with the equation
where $E_i$ is the initial energy of an object, $E_f$ is its final energy, and $\Delta E$ is the total flow of energy into (when positive) or out of (when negative) of the object. This equation will be the framework for everything we do with energy.