Reactions of Amines
Anhydrous conditions.
This is to prevent the ethanoyl chloride from reacting with water (hydrolysis) to form ethanoic acid.
N-(butan-2-yl)ethanamide
(Note: this is a little beyond the A-level content)
Step 1: The lone pair of electrons on the nitrogen is attracted to the partially positive carbon of the carbonyl group and forms a bond with it. This causes the pi bond electron pair between the carbon and oxygen to break and move onto the oxygen atom.
Step 2: The lone pair of electrons on the oxygen moves back to reform the double bond. The electrons in the C-Cl bond (the leaving group) move onto the Chlorine atom.
Simultaneously, the electrons move from the N-H bond onto the nitrogen, losing a H+ ion to neutralise the positive charge on the nitrogen.
Anhydrous conditions.
This prevents 2-chloroethanoyl chloride from reacting with water to form 2-chloroethanoic acid.
2-chloro-N-(2-methylphenyl)ethanamide
Step 1: The lone pair on the nitrogen attacks the partially positive carbon bonded to the chlorine atom (nucleophilic attack). This causes the C-Cl bond to break, and the electrons from the bond move onto the chlorine atom (leaving group).
Step 2: The electrons from the N-H bond move onto the nitrogen atom, causing a H+ ion to be lost and neutralising the positive charge.