Energy-momentum relation

For one particle with rest mass $m$, its total energy $E$ and momentum $p$ follows $$ E^2 - (pc)^2 = (mc^2)^2. $$ (Derivation)