The energy of a photon corresponding to the wavelength of the LED is equal to the band gap energy of the semiconductor.
Given: Wavelength λ=4000 A˚=4000×10−10 m=4×10−7 m
The energy band gap is:
E=λhc
where h=6.626×10−34 J s and c=3×108 m s−1.
E=4×10−76.626×10−34×3×108
E=4×10−719.878×10−26=4.9695×10−19 J
Converting to electron volts (1 eV=1.6×10−19 J):
E=1.6×10−194.9695×10−19=3.106 eV
Rounding off to the nearest integer:
E≈3 eV
Therefore, the energy band gap is 3 eV.