Step 1: Start from the two observations:
Observation 1: scum with soap in hard water. Scum means an insoluble solid has formed.
Observation 2: easy lather with detergent in the same water. So the detergent does not get removed from the solution.
The only difference is the cleaning agent, so the difference must come from how each one reacts with the ions in hard water.
Step 2: Identify the ions responsible:
Hardness is caused by \(\mathrm{Ca^{2+}}\) and \(\mathrm{Mg^{2+}}\) ions from dissolved salts such as calcium sulphate and magnesium chloride.
The long-chain acid part of soap combines with these ions and gives calcium and magnesium soaps. These are insoluble, and they appear as scum.
In a detergent, the charged head group (a sulphonate) gives soluble calcium and magnesium salts. So there is no scum.
Step 3: Test each statement against this idea:
A says exactly this: \(\mathrm{Ca^{2+}}\) and \(\mathrm{Mg^{2+}}\) form insoluble compounds with soap but not with detergents. It is correct.
B talks about acid and base nature. Scum formation has nothing to do with it, and soap is not acidic. Wrong.
C blames \(\mathrm{Na^{+}}\). Sodium salts of soap are soluble, so \(\mathrm{Na^{+}}\) cannot cause scum. Wrong.
D says soaps do not react with hard water. The scum is proof that they do. Wrong.
Final Answer:
Only option A gives the correct cause of scum.
\[ \boxed{\text{A}} \]