Kompaneyets equation refers to a non-relativistic, Fokker–Planck type, kinetic equation for photon number density with which photons interact with an electron gas via Compton scattering, first derived by Alexander Kompaneyets in 1949 and published in 1957 after declassification. The Kompaneyets equation describes how an initial photon distribution relaxes to the equilibrium Bose–Einstein distribution. Komapaneyets pointed out the radiation field on its own cannot reach the equilibrium distribution since the Maxwells equation are linear but it needs to exchange energy with the electron gas. The Kompaneyets equation has been used as a basis for analysis of the Sunyaev–Zeldovich effect.