The process isisothermal because the glass was slowly pushed into the water and the mass of water would cool any increased temperature. Therefore, we can write:
,
where is the volume of air during immersion. By substitution, we can express as
The pressure in the compressed volume is equal to the sum of the atmospheric pressure and the water column above the free surface of the water, i.e., the pressure from the height of the water. So our pressure is
If we substitute the expression for L, we get
Its roots are
It is clear that the length cannot be negative, so we will take only the positive roots of this equation.