Dimensional methods provide three major advantages in verification, derivation and changing the system of units. Any empirical formula that is derived based on this method has to be verified and proportionality constants found by experimental means. The presence or absence of certain factors - non dimensional constants or variables - cannot be identified by this method. So every dimensionally correct relation cannot be taken as perfectly correct.
The energy of an SHM is dependent on mass m, frequency f, and amplitude A of oscillation. The relation is