Qualitative Analysis Flowchart

flowchart TD Start(["Unknown solution
(mixed cations)"]):::start subgraph S1[" "] direction LR T1("1. Add dilute HCl"):::test G1["Group I
Ag+, Pb2+, Hg22+
chlorides"]:::group T1 -->|precipitate| G1 end subgraph S2[" "] direction LR T2("2. Add H2S
in acidic solution"):::test G2["Group II
Cu2+, Bi3+, Cd2+, Sn2+
sulfides"]:::group T2 -->|precipitate| G2 end subgraph S3[" "] direction LR T3("3. Add NH3/NH4+
buffer and H2S"):::test G3["Group III
Fe3+, Al3+, Cr3+,
Ni2+, Zn2+
hydroxides or sulfides"]:::group T3 -->|precipitate| G3 end subgraph S4[" "] direction LR T4("4. Add (NH4)2CO3"):::test G4["Group IV
Ba2+, Ca2+, Sr2+
carbonates"]:::group T4 -->|precipitate| G4 end G5["Group V
Na+, K+, NH4+
stay dissolved"]:::group Start --> S1 S1 -->|filtrate| S2 S2 -->|filtrate| S3 S3 -->|filtrate| S4 S4 -->|filtrate| G5 classDef start fill:#eceff1,stroke:#455a64,stroke-width:2px,color:#102027,font-size:16px classDef test fill:#ffcdd2,stroke:#b71c1c,stroke-width:2px,color:#3e0a0a,font-size:16px classDef group fill:#bbdefb,stroke:#0d47a1,stroke-width:2px,color:#0a2540,font-size:16px classDef stepBand fill:#ffffff,stroke:#90a4ae,stroke-width:1px,stroke-dasharray:5 4 class S1,S2,S3,S4 stepBand linkStyle 0,1,2,3 stroke:#c62828,stroke-width:2.5px linkStyle 4 stroke:#555,stroke-width:2px linkStyle 5,6,7,8 stroke:#2e7d32,stroke-width:2.5px
Add a reagent Group identified Precipitate Filtrate continues
Step 1 of 10