Prove that the average energy density of the . . .

Question : Prove that the average energy density of the oscillating electric field is equal to that of the oscillating magnetic field.

Doubt by Sonali

Solution : 

We know,