

This density variation is called the law of atmospherics.
It can be inferred from equation (i) that the rate of decrease of density with height is directly proportional to ρ, i.e.,

Where, k is the constant of proportionality
Height changes from 0 to y, while density changes from P0 to ρ.
Integrating the sides between these limits, we get:


Hence, the balloon will rise to a height of 8 km.