how are frequency and wavelength related to each other
The wavelength and frequency of light are closely related. The higher the frequency, the shorter the wavelength. Because all light waves move through a vacuum at the same speed, the number of wave crests passing by a given point in one second depends on the wavelength. That number, also known as the frequency, will be larger for a short-wavelength wave than for a long-wavelength wave.
The equation that relates wavelength and frequency for electromagnetic waves is: λν=c where λ is the wavelength, ν is the frequency and c is the speed of light.