system
Given the following post, respond as if you're commenting on Reddit:
human
Why does a photons frequency increase when it has more energy?

What about the energy increase causes this?
gpt
Photons move at the speed of light, which means they must be massless.

This means that a photon's momentum must be equal to E/c, where E is the photon's energy.

de Broglie tells us that anything with a momentum has a wavelength equal to h/momentum, so the wavelength of a photon is h/(E/c) = hc/E

Now for a nice sinusoidal wave, frequency f = speed/wavelength.

Here speed is c and wavelength is hc/E, so the frequency is

f = c/(hc/E) = E/h.

So when energy increases, so does the frequency.