The correct option is
D Heating phthalic acid with NaOH
The reactant involved in the Gabriel phthalimide synthesis is phthalimide which reacts with ethanolic
KOH to give potassium phthalimide.
Heating potassium phthalimide with alkyl halide produces N-alkyl phthalimide.
Alkaline hydrolysis of N-alkyl phthalimide produces the corresponding primary amine.
![](https://df0b18phdhzpx.cloudfront.net/ckeditor_assets/pictures/1182988/original_15-5.png)
MECHANISM
Step 1: When potassium hydroxide is introduced to the phthalimide, an acid-base reaction occur. The hydroxide ion deprotonates the imide. The resulting proton is more acidic than any simple amine, generating a strong nucleophile – the potassium phthalimide ion.
![](https://df0b18phdhzpx.cloudfront.net/ckeditor_assets/pictures/1183037/original_15-6.png)
Step 2:
The nucleophilic potassium imide ion attacks the electrophilic carbon of the alkyl halide. The nitrogen atom subsequently replaces the halogen (Fluorine, Chlorine, Bromine or Iodine) in the alkyl halide and bonds with the carbon itself. This results in the formation of an N-Alkyl Phthalimide.
![](https://df0b18phdhzpx.cloudfront.net/ckeditor_assets/pictures/1183185/original_15-7.png)
Step 3:
The product N-Alkyl phthalimide is hydrolysed with aq.
NaOH to form primary amine, i.e. Alkylamine.
![](https://df0b18phdhzpx.cloudfront.net/ckeditor_assets/pictures/1183214/original_15-8.png)
A short trick to form the product in Gabriel's phthalimide synthesis
![](https://df0b18phdhzpx.cloudfront.net/ckeditor_assets/pictures/1183305/original_15-9.png)
So, (d) is correct.