Re: Been wondering...
From my grand-daughter
As far as she understands ---Her caveat, not mine!
Artificial sweeteners such as Aspartame, act in lowering the suface tension of the liquid they are dissolved in, so producing larger bubbles and more rapidly. So more foam is produced by diet versions of both coke and lemonade as they use artificial sweeteners rather than natural sugar.
She says the foam is mainly Co2 bubbles surrounded by a thin layer of the liquid, held around the bubble of gas by the liquids own surface tension.
She also points out that increases in temperature of the drink will also reduce the surface tension.
To quote her... " The warmer the pop the more the molecules in the liquid bop around, so reducing the attraction between the molecules"
I hope this helps