The water retaining gel is sodium polyacrylate. It is a organic chemical, a polymer made up of a long chain of carbon, hydrogen, oxygen and sodium atoms.
The polymer looks like this &
CH2--CH(CO2Na)--
... over and over again. Have a look at this link to see it drawn out.
On its own this polymer is wound up tightly. When water is added the sodium breaks off, dissolving in the same way that salt (sodium chloride) dissolves in water. The sodium is a positively charged ion, and what remains, the carboxyl ion (attached to the rest of the polymer), is negatively charged. Because all the negatively charged carboxyl ions on the polymer repel each other, the whole polymer starts to unwind.
In a water molecule (H20) the oxygen atom attracts the two hydrogen atoms' electrons, leaving the hydrogen atoms slightly positive and the oxygen atom slightly negative: this is the water molecule's polarity. The oxygen side of the water molecules is attracted to the positive sodium ions from the sodium polyacrylate polymer. At the same time, the hydrogen atoms in the water molecules are attracted to the carboxyl groups of the polymer. The polymer has some cross links - so instead of a perfectly long line, the polymer forms a spread out net with water molecules held within it.
Adding other ions to the mix, such as salt, disrupts how the water is held in the gel. Adding salt to the gel turns it back into a watery liquid.
Do not try and drink the liquid / gel, and don't use the cups after performing the experiment. Do not dispose of the gel down a sink as it may cause a blockage.
Source: NESTA
Date: 12 October 2007
Subject: Chemistry Engineering
Suitability: Over 11s Over 14s Over 16s Professionals Teachers