In an alternator, the frequency is directly proportional to the speed of rotation. As the speed increases, the frequency of the output voltage also increases, according to the formula \(f = \frac{N}{60} \times P\), where \(f\) is the frequency, \(N\) is the speed in RPM, and \(P\) is the number of poles.