The ideal gas law has the following equation,
The pressure lowers when a scuba diver swims closer to the surface due to the reduction in depth. We may assume a constant temperature of roughly .
As a result, if the temperature remains constant, we may use Boyle's law, which stipulates that remains constant at constant temperature.
Therefore, the pressure and volume are inversely connected, with a drop in pressure resulting in an increase in volume. Knowing this, we may deduce that the volume of bubbles expelled rises as the scuba diver dives closer to the surface.