Some of the best moments in World War II movies occur when, during a battle at sea, a periscope pokes up from the water, surveying the ocean terrain.Cut to a submarine gliding through the depths. Torpedoes away, and the enemy battleship is doomed.How do these amazing vessels rise and sink so quickly to specific depths?Although submarines are sophisticated machines, their ability to rise and sink is based on the elementary principle of buoyant force.Say you fill your bathtub with water and put a rubber gym ball on the surface of the water.It floats because the air-filled ball is less dense than the surrounding water.But poke a hole in the ball and as water displaces the air, the overall density increases until the ball is heavy enough to sink to the bottom.