Put . The perfect gas relation in the question becomes the polytropic equation of state
At fixed , vertical hydrostatic balance is
After one integration,
Defining the midplane adiabatic sound speed by gives
This is a vertically truncated polytropic atmosphere; the physical perfect-gas case has .
Let . Hydrostatic equilibrium in the uniform gravitational field gives
Substitution and integration with at gives
where fixes the normalization. Integrating the hydrostatic equation from to the free surface gives the pressure directly:
This indeed has and , as required for a polytropic atmosphere.