Use the instantaneous recycling approximation with a well-mixed gas reservoir, constant stellar yield , no gas inflow, and an irreversible galactic outflow. Let be the mass locked into long-lived stars and remnants after prompt recycling, and put . The yield is the newly synthesized mass of heavy elements returned to the gas per unit increase of . Thus in denotes the heavy-element mass in the gas, excluding metals already locked into stars.
Assume , , and ; initially pristine gas means . Take the outflow rate to be with constant , and assume its metallicity equals the current gas-phase metallicity . This is the well-mixed leaky-box model of galactic chemical evolution. The parameter is a mass-loading factor relative to the net rate of locking mass into stars. If a gross star formation rate and a prompt returned fraction are used instead, and a wind rate corresponds to .
Conservation of mass gives
and the baryonic mass remaining in the box is . Newly made metals enter the gas at rate , while pre-existing metals are locked into stars at rate and leave in the wind at rate . Hence
Using and the product rule,
The cancellation expresses the fact that a well-mixed wind removes gas and metals in the same proportion, while fresh stellar production raises the abundance in the remaining gas.
Divide this equation by along the evolving reservoir, or integrate in time through intervals with no star formation. The resulting gas-phase metallicity is
Equivalently, its fully explicit dependence on a prescribed net star formation rate is
valid while . With pre-existing stars, replace in the gas-mass relation by . Without specifying or a gas-consumption law, the model fixes as a function of gas mass but does not determine a unique function of time.
For the closed-box model of galactic chemical evolution, set . Then and
At the same remaining fraction of the initial gas reservoir, the leaky box has the logarithmic coefficient , lower than the true stellar yield by the wind factor. This coefficient is often called an effective yield, but the definition of the gas fraction must be specified.
In particular, the observable gas fraction of a galaxy is often , using the mass still present, rather than . In our initially star-free model,
Therefore
For and , the leaky-box enrichment is smaller at the same : . If effective yield is defined observationally as , it is consequently not simply the constant at all .
As an explicit time example, choose a linear gas-consumption law , with constant . The mass and metallicity equations give
The closed box with the same has the same metallicity at a given time, while the leaky box exhausts its gas faster. Thus a comparison at fixed time depends on the chosen star formation rate, even though the comparison at fixed gas fraction above is unambiguous.
Finally, the assumption about wind metallicity is essential. If the expelled gas has abundance instead, its metal-loss rate is , and the same bookkeeping yields
A wind enriched relative to the ambient gas lowers the enrichment rate; the logarithmic solution derived above applies to .