Explanation
Flowchart animates
Cations are separated in groups, one reagent at a time. Each reagent pulls out only its group.
Flowchart animates: Group 0 → I → II → III → IV → V → VI
Group 0
Group zero: ammonium, detected by ammonia gas with sodium hydroxide. Group one: dilute HCl precipitates lead as white lead chloride.
Group 0: NH₄⁺ + NaOH, heat → NH₃; Group I: dil. HCl → PbCl₂ white
Group II
Group two: hydrogen sulphide in acid. Copper sulphide is black, arsenic sulphide yellow.
Group II: H₂S + dil. HCl → CuS black, As₂S₃ yellow
Ksp logic
Why acid? H plus reduces sulphide ion concentration.
So only sulphides with very low solubility product precipitate. That's group two.
Group III
Group three: ammonium chloride plus ammonium hydroxide. Iron hydroxide reddish brown, aluminium hydroxide white and jelly-like.
Ammonium chloride keeps hydroxide low so group four and six metals don't precipitate.
Group III: NH₄Cl + NH₄OH → Fe(OH)₃ reddish-brown, Al(OH)₃ white gelatinous
Group IV
Group four: hydrogen sulphide in basic medium. More sulphide ion, so higher-Ksp sulphides precipitate: zinc white, manganese buff, nickel and cobalt black.
Group IV: H₂S in ammoniacal medium → ZnS white, MnS buff, NiS/CoS black
Group V
Group five: ammonium carbonate precipitates barium, strontium and calcium carbonates. Group six is magnesium, which has no group reagent.
Group V: (NH₄)₂CO₃ → BaCO₃, SrCO₃, CaCO₃ white; Group VI: Mg²⁺ (Na₂HPO₄)