Einstein by his theory of relativity proved that mass and energy are related to each other and every substance has energy due to its mass also. If a substance losses an amount ΔM of mass, an equivalent amount ΔE of energy is produced given by ΔE=mc2 ?(i) where, c is speed of light. This is called Einstein. mass-energy relation. Also energy E = hv ... (ii) where h is Plancks constant and v is frequency Also, v=−λc, where c is speed of light and λ is wavelength. Hence, E=λhcE∝λ1 From Eqs. (i) and (ii), mass of photon varies inversely as the wavelength.