Relativistic energy
An object with mass $m$ and speed $v$ measured in an inertial frame has total energy $$ E = \gamma_v mc^2 $$ where $\gamma_v = 1/\sqrt{1-v^2/c^2}$. (Motivation)
-
Rest mass energy: when the object is stationary, its total energy is called rest mass energy $$ E_0 = mc^2. $$
-
Kinetic energy: for a moving object, its kinetic energy is defined to be $$ K = E - E_0 = (\gamma - 1)mc^2. $$
Total energy of a system is conserved, but total kinetic energy is not.