In astrophysics, photon diffusion occurs inside a stellar atmosphere. To describe this phenomenon, one should develop the transfer equation in moments and use the Eddington approximation to radiative transfer (i.e. the diffusion approximation). In 3D the results are two equations for the photon energy flux:
where σ {\displaystyle \sigma } is the opacity. By substituting the first equation into the second, one obtains the diffusion equation for the photon energy density:
In medicine, the diffusion of photons can be used to create images of the body (mainly brain and breast) and has contributed much to the advance of certain fields of research, such as neuroscience. This technique is known as diffuse optical imaging.