# Counting modes Rayleigh-Jeans

In the derivation of the Rayleigh-Jeans Law, we count the number of EM modes in a square cavity. After calculating the number of allowed modes due to boundary conditions, we multiply it by a factor of 2 due to polarization of the EM waves.

What I do not understand is how, quantitatively, the polarization influences the number of modes allowed. We know each EM wave has a polarization which is a superposition of 2 perpendicular components, and supposedly this is where the factor comes from. However, it makes sense to me that there would be infinite modes of vibration due to infinite polarizations, instead of only 2. How come you only have double the modes of vibration, when you have infinite polarizations?

• Because those polarizations are a linear combination of the 2 perpendicular ones. The 2 are the basis set. – Jon Custer Jul 29 '15 at 18:28
• I understand the argument, but I don't see the maths. Aside from that factor of "2", all the derivation is mathematically sound. What's the equation that tells us that, since any polarization is a linear combination of 2 others, you have 2 vibration modes for each 'wave profile'? – André Pereira Jul 29 '15 at 19:06 NOTE: If you want a mathematically more rigorous approach, I am afraid that I cannot help. I can offer to you a small mathematical intuition though. During the derivation of the formula, when we are using $k$-space to find the number of modes density(or just number of modes), each polarization has its own octant, so in order to be mathematically correct, you have to do the same derivation twice and sum the number of modes, so we just put the factor $2$ in front of the formula instead. And again, I can't offer a purely mathematical derivation(if there is any, because here we use our intuition, although something from vector calculus might help where you include the electric field as a vector field. Then, I am sure that mathematics can include the factor $2$ by themselves due to them actually considering that $\vec E$ is a vector, and thus we can describe it by $2$ other basis vectors(polarizations). And you can get rid of the third basis vector using Maxwell's equations, which one of them will make one basis vector depended on the other $2$).