A gearbox of a rotary-wing aircraft includes at least one variable speed system which optimizes the main rotor speed for different flight regimes such as a hover flight profile and a high speed cruise flight profile for any rotary wing aircraft while maintaining an independently variable tail rotor speed.