Like others have shared it is a function of TAS
Vx is the greatest difference in power required and power available. Whereas Vy is the greatest difference between thrust horsepower required and thrust horsepower available where thrust horsepower = Thrust* Velocity (TAS)