Step 1: Part (i): Coupling reaction.
Benzenediazonium chloride acts as a weak electrophile. It attacks the para position of an activated aromatic ring such as phenol or aniline and forms a brightly coloured azo compound (\(\mathrm{-N=N-}\) link). This is called coupling.
Step 2: With phenol.
Done in mildly alkaline medium (pH 9 to 10) at 273 to 278 K. An orange dye, p-hydroxyazobenzene, is formed.
\[ \mathrm{C_6H_5N_2^+Cl^- + C_6H_5OH \xrightarrow{NaOH} C_6H_5N=NC_6H_4OH(p) + HCl} \]
Step 3: With aniline.
Done in weakly acidic medium (pH 4 to 5). A yellow dye, p-aminoazobenzene, is formed.
\[ \mathrm{C_6H_5N_2^+Cl^- + C_6H_5NH_2 \rightarrow C_6H_5N=NC_6H_4NH_2(p) + HCl} \]
Step 4: Part (ii): Ammonolysis.
Ammonolysis is the cleavage of the C-X bond of an alkyl halide by ammonia. The alkyl halide is heated with alcoholic ammonia in a sealed tube at about 373 K. The \(\mathrm{NH_3}\) molecule acts as a nucleophile.
\[ \mathrm{RX + NH_3 \rightarrow RNH_3^+X^- \xrightarrow{NaOH} RNH_2 + NaX + H_2O} \]
Step 5: Further substitution.
The primary amine is itself a nucleophile, so it can react again. A mixture of primary, secondary, tertiary amines and the quaternary ammonium salt forms. The reactivity order of halides is \(\mathrm{RI > RBr > RCl}\).
Step 6: Part (iii): Gabriel phthalimide synthesis.
This method gives pure primary aliphatic amines. Phthalimide is first treated with ethanolic KOH to form potassium phthalimide, which is a strong nucleophile.
Step 7: Alkylation and hydrolysis.
Potassium phthalimide reacts with an alkyl halide to give N-alkylphthalimide. Alkaline hydrolysis with aqueous NaOH then releases the primary amine.
\[ \mathrm{Phth\text{-}N^-K^+ + RX \rightarrow Phth\text{-}NR + KX} \]
\[ \mathrm{Phth\text{-}NR + 2NaOH + H_2O \rightarrow C_6H_4(COONa)_2 + RNH_2} \]
Step 8: Limit.
Aryl halides do not give aromatic primary amines by this method because they do not undergo nucleophilic substitution easily with the phthalimide anion.
Final Answer:
Coupling makes azo dyes from diazonium salts, ammonolysis makes a mixture of amines from alkyl halides, and Gabriel synthesis makes pure primary amines.
\[ \boxed{\mathrm{ArN_2^+ + Ar'H \rightarrow ArN=NAr'};\quad \mathrm{RX + NH_3 \rightarrow RNH_2};\quad \mathrm{Phth\text{-}NR \xrightarrow{NaOH} RNH_2}} \]