Let be the gravitational energy. Multiply the stellar hydrostatic equation by and integrate through the star. Integration by parts and zero surface pressure give
while its hydrostatic right-hand side is . Hence the stellar virial theorem is
There is a genuine reference-sheet error to resolve. A monatomic ideal gas with adiabatic exponent has specific internal energy of an ideal gas , not the printed on PDF page 2. The latter would give total internal energy and zero total energy, inconsistent with radiating contraction. The following derivation uses the consistent monatomic value.
A fully convective star is approximately isentropic and has an adiabatic stellar polytrope with index . The given polytropic gravitational-energy formula yields . The virial relation gives total internal energy , so total energy is . At constant mass with no nuclear heating, Kelvin-Helmholtz contraction obeys , whence
Here denotes physical time.
In the plane-parallel atmosphere, the inward optical depth satisfies , so hydrostatic equilibrium in optical depth gives . Neglecting radiation pressure, and the specified opacity becomes . Therefore
The grey atmosphere relation and the boundary integrate to
To apply the Schwarzschild criterion, put . Logarithmic differentiation gives
This increases inward, starting from zero. Marginal convection has , so . Since , the grey-atmosphere convection onset with seventeenth-power opacity is
The purely radiative atmosphere is used only up to this boundary.
The convective relation is spatially uniform in its entropy coefficient at each instant; can change as the star radiates and contracts. At the convection boundary is a fixed number, so at fixed composition and opacity normalization. Thus
On the other hand, the central scalings for the stellar polytrope give and . Hence, at fixed composition,
Equating the interior and atmosphere expressions yields . Applying the Stefan–Boltzmann law then proves the Hayashi contraction with seventeenth-power opacity relation
At fixed mass write , with constant and . The contraction equation is , where . Direct integration gives
Multiplying through by and substituting the current luminosity gives
For the stated very large initial radius, or after that initial-radius term becomes negligible,
This is the luminosity-age relation within the contraction model, rather than an assertion that a physical star begins at literally infinite radius.