I believe the line of reasoning that a photon has zero rest mass is this:
According to Special Relativity as an object with mass approaches the speed of light its mass increases. The limit equation is that as an object with mass approaches the speed of light its mass approaches infinity. So if an object is moving at the speed of light it cannot have any rest mass.
One must understand the purpose of an equation and from what I have seen many explanations are not very good at getting into explaining the full essence of such equations. That is because typically a large amount of background is assumed. There are non-mathematical books that explain physics, like Brian Green books. These are good for gaining some insights into physics. There are textbooks with strong mathematical books. These usually assume you took all the prerequisites, i.e. they assume a strong background. There are technical papers that almost always assume a strong background. There are articles like those in wiki that run the gambit. The in between books and especially articles which show the math and do a detailed explanation of each term with simple explanations are more harder to find.
Let me explain the equation . This is a composite equation. The energy contained in “rest mass of matter” is the value m2c4. The motional energy and photonic energy is the p2c2. The following web page has some good information about energy.
http://en.wikipedia.org/wiki/Energy
An except from this is:
2. On the other hand, in the key equation m2c4 = E2 − p2c2, the contribution mc2 is called the rest energy, and all other contributions to the energy are called kinetic energy. For a particle that has mass, this implies that the kinetic energy is 0.5p2 / m at speeds much smaller than c, as can be proved by writing E = mc2 √(1 + p2m − 2c − 2) and expanding the square root to lowest order. By this line of reasoning, the energy of a photon is entirely kinetic, because the photon is massless and has no rest energy. This expression is useful, for example, when the energy-versus-momentum relationship is of primary interest.
Technically speaking, this paragraph does not explain why a photon has zero rest mass. It simply states it. So I do not like the wording in this document about why the photon rest mass is zero.
Always remember there is a big difference between photons and particles. When you look at equations you must ask two questions: does this apply to particles, if so then how; does this apply to photons, if so then how. You will likely get different perspectives depending on whether it is a particle or a photon. One other thing to note is to always be careful about rest mass energy verses relativistic energy of a particle due to motion.
Let me explain my point by discussing the wave equation.
http://en.wikipedia.org/wiki/De_Broglie_hypothesis
http://en.wikipedia.org/wiki/Wave-particle_duality
When one uses the wave equation especially for matter realize that it deals with the interaction of objects. The is explained as follows:
From
http://en.wikipedia.org/wiki/De_Broglie_hypothesis
“the greater the energy, the larger the frequency and the shorter (smaller) the wavelength”
So now ask yourself, what energy are they talking about?
Another question, are we talking about particles or photons?
By the earlier principle, differentiate particles and photons.
It does apply to both. So let me simply discuss the application to particles.
Is the energy dealing with the rest mass, motion, or both?
When you split apart the statement into more detailed questions like this you begin to better understand the nature of the statement and the equations.
This energy is the energy of motion not in rest mass because the equation uses the mass and velocity of a particle. Higher velocity is higher energy is a shorter wavelength.
Principle: motion has no meaning for a single isolated particle. It must be with respect to two or more. A simple statement but remembering it can help clarify.
The energy of motion is in relative velocity. Something moving toward you, which increases its velocity, will increase its energy with respect to you. This will increase this frequency factor. However, you can also increase the energy by accelerating towards this object. If you accelerate towards the object you increase the relative velocity. This increases the relative motional energy and increases this frequency factor also. Your increase in speed effect your view of this objects “frequency”. This frequency factor is what is used on calculating how any interactions between you and this other object will happen.
It is an equation used to help compute outcomes for interactions.
So I hope this helps. I tried to add some principles for understanding what you are reading on physics and how to explore thoughts on physics.
If you might guess these days I do like wiki articles on Physics. They are a nice resource for reference and look up.