When an electron stops, it emits a photon with energy equal to the kinetic energy lost by the electron:

The energy of the photon is

where

is the Planck constant and f is the frequency. Therefore, the maximum frequency of the emitted photon occurs when the loss of kinetic energy is maximum.
The maximum loss of kinetic energy of the electron occurs when the electron stops completely, so it loses all its energy:

Keeping in mind that

, we have

And so, this corresponds to the energy of the emitted photon, E. Therefore, we can find the maximum frequency of the emitted photon:
