I am near the end of the book The First Three Minutes by Steven Weinberg. I am reading it in order to get a better picture of the early universe in the Big Bang model. But one thing I am having trouble with and wanted to get some clarity. Namely:
Question
What is meant by "temperature" if the very early universe in the Big Bang model was mostly radiation, or pre-inflation, something more basic than radiation?
Explanation
Below I will try to explain why I am getting confused. Please let me know if it needs clarification (but that's also part of the question, I haven't been able to clearly understand temperature in this context yet).
Since the temperature equation is about the movement of massive particles:
$$T = {m\overline{v^2}\over 3 k_B}$$
How do you think of temperature when there is no mass, or when there is mostly radiation in the very early universe? Here is where I get confused.. Radiation is moving at the speed of light $c$, and since the speed of light is constant, and since radiation doesn't have mass, it seems like the universe would be "maximally" hot (particles moving at the speed of light). But intuitively that's not true because the temperature formula requires mass. But then if the early universe was mostly radiation, how does it have a temperature? If mass slowly increased to be the majority ~400,000 years after the Big Bang, it seems the temperature would increase rather than decrease. But then taking into account the expansion, it makes sense that even if more matter was forming, the temperature would decrease. But how could it decrease if there was less matter before?
To summarize, in trying to pinpoint temperature, I seem to be stuck in cyclic reasoning and am looking for a better way of understanding it.
I am working toward learning the purely mathematical form of these theories, but have a ways to go. For now, looking for a description to broadly make sense of "temperature" during the evolution of the few moments after the Big Bang.
Examples of how "temperature" is used
In the book above, Steven Weinberg talks a lot about the temperature and radiation of the early universe, and how the early universe was dominated by photons/radiation, and ~400,000 years later became dominated by mass-particles when the temperature cooled.
Some other quotes from the web include:
In the first moments after the big bang, the universe was extremely hot and dense. As the universe cooled, conditions became just right to give rise to the building blocks of matter – the quarks and electrons of which we are all made. (CERN)
...the temperature was so high that the four fundamental forces ... were one fundamental force. (Planck Epoch, Wikipedia)
...the temperature of the universe was still too high to allow quarks to bind together to form hadrons. (Quark Epoch, Wikipedia)