Anthocyanin, which is found in red cabbage, is a natural indicator that can be easily extracted.
When basic baking soda (NaHCO3) is combined with acidic lemon juice (mainly citric acid, H3C6H5O7) an acid base reaction occurs. The reaction releases CO2 which can be captured using dish soap to form bubbles.
H3C6H5O7 (aq) + 3 NaHCO3 (s) → 3 CO2 (g) + 3 H2O (l) + Na3C6H5O7 (aq)
Universal indicator goes from red (pH 4) to violet (pH10) as the pH of a substance changes. Adding NaOH to water starts the solution off at pH 8-9 (blue). When dry ice is added to water it forms carbonic acid, and lowers the pH, which is the reason for the color changes. The “fog” that we see is condensed water vapor though, not carbon dioxide gas.
This demo uses acid base chemistry and an indicator to make an ink that will appear or disappear depending on the solution added to it. Phenolphthalein, which is clear, reacts with a base, and then turns pink.
This demo harnesses the reaction of baking soda and vinegar to blow a cork off a test tube.
NaHCO3 (s) + CH3COOH (aq) →CO2 (g) + H2O (l) + CH3COONa (aq)