In electromagnetic wave, the average energy density is associated
The energy in an electromagnetic wave is tied up in the electric and magnetic fields. In general, the energy per unit volume in an electric field is given by:
energy density in electric field=12ϵ0E2
In a magnetic field, the energy per unit volume is:
energy density in magnetic field=1B22μ0
An electromagnetic wave has both electric and magnetic fields, so the total energy density associated with an electromagnetic wave is:
u=12ϵ0E2+1B22μ0
It turns out that for an electromagnetic wave, the energy associated with the electric field is equal to the energy associated with the magnetic field, so the energy density can be written in terms of just one or the other:
u=12ϵ0E2=1B22μ0
This also implies that in an electromagnetic wave, E = cB.