Fill the bottle to the brim with water and screw on the cap.
Squeeze the sides of the bottle and hold the squeeze to make the packet sink. Let go and the packet rises. Now, the packet of ketchup
has learned to dive on command!
The packet floats because an air bubble gets trapped inside the packet when it’s sealed at the factory. If the packet sinks when you test-float
it, then the air bubble is too small to make it float.
As you squeeze the bottle and push the water against the floating packet, you compress the air bubble into a smaller space. This happens because
gases are more “squishable” than liquids, so the air compresses before the water. According to the density equation (Density = Mass divided by
Volume), when you decrease the volume or make the bubble of air smaller, you increase the density and the ketchup packet sinks. When you release
the pressure on the bottle, the compressed air expands inside the packet (increasing the volume), the density decreases, and the diving ketchup
floats to the top of the bottle.