I know photon energy density is proportional to the fourth power of the scale factor, because it dilutes and redshifts.
I want to take into account the added photon energy density from astrophysical sources along the scale factor to the CMB energy density from the beginning of the age of the universe. I know for most of the cases, this one can be disregarded, but I still want to calculate it assuming a certain rate of energy density production proportional to the scale factor.
How can I introduce the creation of photons along the universe scale factor in the Friedmann equations?