The above resultsanswers are all good, but I want to add something else. You can derive the energy-momentum relation from at least principle, the action is $A=-m\int \sqrt{1-v^2}{\rm d}t$ . Lagrangian is $\cal L$$=-m\sqrt{1-v^2}$, then you can get momentum $p$ from derivative with respect to $v$ (this is the real momentum, not $mv$). Energy $H=E=pv-\cal L$ , just as $E^2=p^2+m^2$ you get.