|MLA Citation:||Bloomfield, Louis A. "Question 1483"|
How Everything Works 13 Dec 2017. 13 Dec 2017 <http://howeverythingworks.org/print1.php?QNum=1483>.
By giving the sealed bottle a shake, your mother-in-law is simply speeding up the approach to equilibrium. She is helping the CO2 molecules leave the beverage and enter the gas phase. The bottle then pressurizes faster, but at the expense of dissolved molecules in the beverage itself. If there is any chance that you'll drink more before equilibrium has been reached, you do best not to shake the bottle. That way, the equilibration process will be delayed as much as possible and you may still be able to drink a few more of those CO2 molecules rather than breathing them.
Incidentally, shaking a new bottle of soda just before you open it also speeds up the equilibration process. For an open bottle, equilibrium is reached when essentially all the CO2 molecules have left and are in the gas phase (since the gas phase extends over the whole atmosphere). That's not what you want at all. Instead, you try not to shake the beverage so that it stays away from equilibrium (and flatness) as long as possible. For most opened beverages, equilibrium is not a tasty situation.