We know that in classical thermodynamics $$v_{rms} = \sqrt{\frac{3k_B T}{m}}$$ However we immediately see that this is wrong for high temperatures as there is no upper bound on velocity. How do I get the exact equation?
My approach-
We have, $E = \sqrt{m_o^2c^4 + p^2c^2}$
Now from thermal energy we have total energy to be(sum of rest energy and thermal energy) $E = m_o c^2 + \frac{3}{2}k_B T$
Thus, $$m_oc^2 + \frac{3}{2}k_B T = \sqrt{m_o^2c^4 + p^2c^2}$$
Here, $p = mv$ & $m = \frac{m_o}{\sqrt{1-\frac{v^2}{c^2}}} $
Then we can solve for $v$ $ ( \sim v_{rms})$
I am not sure if this is right. Can someone correct me? Can you give me atleast the final result if not the entire drivation?