Write the reactions involved in the following Gabriel phthalimide synthesis.
Solution:
Gabriel phthalimide synthesis:Phthalimide reacts with ethanolic KOH to give potassium salt of phthalimide. It is then heated with alkyl halide to give N-alkyl phthalimide. On alkaline hydrolysis, a primary amine is obtained.