What is basic law followed by equipartition of energy?

The law of equipartition of energy for any dynamical system in thermal equilibrium, the total energy is distributed equally amongst all the degrees of freedom.
The energy associated with each molecule per degree of
freedom 1/2${ k }{ B }$T where,
${ k }
{ B }$ is constant and T is temperature of the system.