The evolution and disappearance of foamy bubbles are governed by linked mathematical equations that two Berkeley researchers say could aid in the manufacture of foams such as those used in cushions and bicycle helmets.