The independent dimensionless variable is . Since and , the chain rule gives . The derivative in the normalized equation must consequently be with respect to . Substituting the gas history in the retained-ejecta chemical evolution equation yields
This step allows a varying retention fraction ; no derivative of is needed because enters the instantaneous metal source and loss terms.
Set and now take . The coefficient in this first-order ordinary differential equation decomposes as
Hence an integrating factor is . With , multiplication by this integrating factor gives
The general solution has an additional term . Finite initial gas-phase metallicity rules it out. Consequently, for ,
The upper limit is the dimensionless , not the unnormalized stellar mass. On each compact subinterval of , the geometric series converges uniformly, permitting integration term by term. Thus
In particular at small . For positive stellar yield, the series is strictly increasing, so the inverse needed for the metallicity distribution function exists. Differentiating either representation gives . It diverges logarithmically as gas exhaustion approaches; the trace-metal approximation eventually becomes inadequate.
The quadratic gas-history enrichment model is not a closed gas reservoir: its gas mass initially increases. This can be made consistent with the metal equation by pristine galactic gas inflow. Indeed gas accounting gives . Since and , the required inflow is . It adds no metals and therefore leaves the preceding derivation intact.
Use the instantaneous recycling approximation and treat the interstellar medium as well mixed. If star formation initially consumes mass , returning a fraction leaves locked stellar mass . The original metal mass removed from the interstellar medium is . Of this original material, returns and remains in the galaxy. In addition, the stellar yield produces fresh metal mass , of which the retained part is . Therefore metal accounting gives
This is the retained-ejecta chemical evolution equation. It assumes that the same retention fraction applies to original and newly synthesized metals. Pristine galactic gas inflow can change without contributing to ; enriched galactic gas inflow would require an additional metal source. Here , and .
A star inherits the gas-phase metallicity at its birth. Suppose enrichment is monotone and a fixed initial mass function, with an appropriate surviving tracer selection, produces observable stars per unit locked mass. For two birth abundances , the relative count is
Thus is proportional to the cumulative metallicity distribution function; its derivative gives the differential metallicity distribution function. The normalized distribution after final locked mass is . For logarithmic abundances, the logarithmic metallicity distribution instead has .
The fixed initial mass function and survival selection matter: a mass distribution is not automatically the number distribution of every presently observable star. If enrichment is nonmonotone, add the contributions from all birth-time branches attaining that abundance, rather than using one inverse.