Which of the following is true?
The hardness of water is due to the presence of calcium and magnesium salts. Soaps react with these salts to form insoluble precipitate in water which reduces the effectiveness of soap. Detergents do not form insoluble precipitates with the calcium and magnesium ions in hard water. Hence, detergents are more effective in hard water.