Quote:
If we now return to the question "Does light have mass?" this can be taken to mean different things if the light is moving freely or trapped in a container. The definition of the invariant mass of an object is m = sqrt{E2/c4 - p2/c2}. By this definition a beam of light, is massless like the photons it is composed of. However, if light is trapped in a box with perfect mirrors so the photons are continually reflected back and forth in the box, then the total momentum is zero in the boxes frame of reference but the energy is not. Therefore the light adds a small contribution to the mass of the box. This could be measured - in principle at least - either by an increase in inertia when the box is slowly accelerated or by an increase in its gravitational pull. You might say that the light in the box has mass but it would be more correct to say that the light contributes to the total mass of the box of light. You should not use this to justify the statement that light has mass in general.