 Therefore,

in any inertial reference frame, where formula_28 is still the energy of the first particle in the frame of the second particle .In the rest frame of the particle the inner product of the momentum is

Therefore, the rest mass (m) is a Lorentz scalar.The relationship remains true independent of the frame in which the inner product is calculated.