Figure 2. Synthesis of DSDMAC starting from stearic acid

In Figure 2, stearic acid is first condensed with ammonia (NH3) to liberate water and form the primary amide, stearamide, which is then catalytically dehydrated to yield stearonitrile.