Question: what is the chemical reaction of detergent?
Answer: When a calcium or magnesium particle reacts with a detergent molecule, the new substance does dissolve in water, so there is no scum. When a soap solution is washed away, the soap molecules break up into smaller molecules containing carbon, hydrogen and oxygen atoms.