Step 1: What is being asked:
We need four equations. Three of them make or test amines (Gabriel, Hoffmann, carbylamine). The fourth makes azo dyes from the diazonium salt. In every equation, the reagents and the condition are written on the arrow.
Step 2: Gabriel synthesis, written as three small steps:
The N-H of phthalimide is acidic because it sits between two C=O groups. KOH takes the proton away and gives the potassium salt $\mathrm{C_6H_4(CO)_2N^{-}K^{+}}$.
This anion is a good nucleophile. It displaces the halide from $\mathrm{R{-}X}$ (an $S_N2$ attack) and gives N-alkylphthalimide.
Hydrolysis with aqueous NaOH breaks both C-N bonds of the imide ring. We get disodium phthalate and the free primary amine.
\[ \mathrm{C_6H_4(CO)_2NH \xrightarrow{KOH} C_6H_4(CO)_2N^{-}K^{+} \xrightarrow{R{-}X} C_6H_4(CO)_2N{-}R \xrightarrow{NaOH(aq),\ \Delta} C_6H_4(COONa)_2 + R{-}NH_2}\]
Step 3: Hoffmann bromamide (degradation) reaction:
Here the amide loses its carbonyl carbon as carbonate. Bromine and NaOH together act like sodium hypobromite. The R group moves from carbon to nitrogen, so the amine has one carbon atom fewer than the amide.
Counting atoms: the left side has 5 O and 6 H, and so does the right side, so the equation is balanced.
\[ \mathrm{R{-}CONH_2 + Br_2 + 4NaOH \to R{-}NH_2 + Na_2CO_3 + 2NaBr + 2H_2O}\]
Step 4: Carbylamine (isocyanide) test:
Chloroform and strong base make dichlorocarbene, $:\mathrm{CCl_2}$. A primary amine adds to it and loses two molecules of HCl, which leaves the isocyanide group.
\[ \mathrm{R{-}NH_2 + CHCl_3 + 3KOH \xrightarrow{heat} R{-}N{\equiv}C + 3KCl + 3H_2O}\]
Only $\mathrm{{-}NH_2}$ has the two N-H bonds needed, so only primary amines respond.
Step 5: Azo coupling with phenol and with aniline:
The ring of phenol (as phenoxide) and the ring of aniline are rich in electrons. The diazonium cation attacks them at the para position, which is open and less crowded.
Phenol, alkaline medium (pH 9 to 10), orange p-hydroxyazobenzene:
\[ \mathrm{C_6H_5N_2Cl + C_6H_5OH \to HO{-}C_6H_4{-}N{=}N{-}C_6H_5 + HCl}\]
Aniline, mildly acidic medium (pH 4 to 5), yellow p-aminoazobenzene:
\[ \mathrm{C_6H_5N_2Cl + C_6H_5NH_2 \to H_2N{-}C_6H_4{-}N{=}N{-}C_6H_5 + HCl}\]
Final Answer:
All four reactions are written out above with their conditions.
\[ \boxed{\text{Gabriel, Hoffmann bromamide, carbylamine, azo coupling}} \]