SHM from energy conservation

When the total energy of the system is in the form $$ E = \frac12 \alpha \dot x^2 + \frac12 \beta x^2 $$ is conserved, the system is in simple harmonic motion with angular frequency $$ \omega = \sqrt{\frac\beta\alpha}. $$ (Derivation)