Inorganic compounds containing the Template:Chem2 group are not called nitriles, but cyanides instead.<ref>NCBI-MeSH Nitriles</ref> Though both nitriles and cyanides can be derived from cyanide salts, most nitriles are not nearly as toxic.
The N−C−C geometry is linear in nitriles, reflecting the sp hybridization of the triply bonded carbon. The C−N distance is short at 1.16 Å, consistent with a triple bond.<ref>Template:Cite journal</ref> Nitriles are polar, as indicated by high dipole moments. As liquids, they have high relative permittivities, often in the 30s.
Carl W. Scheele (1782) "Försök, beträffande det färgande ämnet uti Berlinerblå" (Experiment concerning the colored substance in Berlin blue), Kungliga Svenska Vetenskapsakademiens handlingar (Royal Swedish Academy of Science's Proceedings), 3: 264–275 (in Swedish).
Reprinted in Latin as: "De materia tingente caerulei berolinensis" in: Carl Wilhelm Scheele with Ernst Benjamin Gottlieb Hebenstreit (ed.) and Gottfried Heinrich Schäfer (trans.), Opuscula Chemica et Physica (Leipzig ("Lipsiae"), (Germany): Johann Godfried Müller, 1789), vol. 2, pages 148–174.</ref><ref name=CR48>Template:Cite journal</ref> In 1811 J. L. Gay-Lussac was able to prepare the very toxic and volatile pure acid.<ref>Gay-Lussac produced pure, liquified hydrogen cyanide in: Template:Cite journal</ref>
Around 1832 benzonitrile, the nitrile of benzoic acid, was prepared by Friedrich Wöhler and Justus von Liebig, but due to minimal yield of the synthesis neither physical nor chemical properties were determined nor a structure suggested. In 1834 Théophile-Jules Pelouze synthesized propionitrile, suggesting it to be an ether of propionic alcohol and hydrocyanic acid.<ref name="Pelouze1834">Template:Cite journal</ref>
The synthesis of benzonitrile by Hermann Fehling in 1844 by heating ammonium benzoate was the first method yielding enough of the substance for chemical research.
Fehling determined the structure by comparing his results to the already known synthesis of hydrogen cyanide by heating ammonium formate. He coined the name "nitrile" for the newfound substance, which became the name for this group of compounds.<ref>Template:Cite journal On page 96, Fehling writes: "Da Laurent den von ihm entdeckten Körper schon Nitrobenzoyl genannt hat, auch schon ein Azobenzoyl existirt, so könnte man den aus benzoësaurem Ammoniak entstehenden Körper vielleicht Benzonitril nennen." (Since Laurent named the substance that was discovered by him "nitrobenzoyl" – also an "azobenzoyl" already exists – so one could name the substance that originates from ammonium benzoate perhaps "benzonitril".)</ref>
Synthesis
Industrially, the main methods for producing nitriles are ammoxidation and hydrocyanation. Both routes are green in the sense that they do not generate stoichiometric amounts of salts.
In the production of acrylonitrile, a side product is acetonitrile. On an industrial scale, several derivatives of benzonitrile, phthalonitrile, as well as Isobutyronitrile are prepared by ammoxidation. The process is catalysed by metal oxides and is assumed to proceed via the imine.
In general, metal cyanides combine with alkyl halides to give a mixture of the nitrile and the isonitrile, although appropriate choice of counterion and temperature can minimize the latter. An alkyl sulfate obviates the problem entirely, particularly in nonaqueous conditions (the Pelouze synthesis).<ref name=CR48/>
The cyanohydrins are a special class of nitriles. Classically they result from the addition of alkali metal cyanides to aldehydes in the cyanohydrin reaction. Because of the polarity of the organic carbonyl, this reaction requires no catalyst, unlike the hydrocyanation of alkenes. O-Silyl cyanohydrins are generated by the addition trimethylsilyl cyanide in the presence of a catalyst (silylcyanation). Cyanohydrins are also prepared by transcyanohydrin reactions starting, for example, with acetone cyanohydrin as a source of HCN.<ref>Template:Cite journal</ref>
Aromatic nitriles are often prepared in the laboratory from the aniline via diazonium compounds. This is the Sandmeyer reaction. It requires transition metal cyanides.<ref>"o-Tolunitrile and p-Tolunitrile" H. T. Clarke and R. R. Read Org. Synth. 1941, Coll. Vol. 1, 514.</ref>
Aromatic nitriles can be prepared from base hydrolysis of trichloromethyl aryl ketimines (Template:Chem2) in the Houben-Fischer synthesis<ref>J. Houben, Walter Fischer (1930) "Über eine neue Methode zur Darstellung cyclischer Nitrile durch katalytischen Abbau (I. Mitteil.)," Berichte der deutschen chemischen Gesellschaft (A and B Series) 63 (9): 2464 – 2472. Template:Doi</ref>
Nitrile groups in organic compounds can undergo a variety of reactions depending on the reactants or conditions. A nitrile group can be hydrolyzed, reduced, or ejected from a molecule as a cyanide ion.
Hydrolysis
The hydrolysis of nitriles RCN proceeds in the distinct steps under acid or base treatment to first give carboxamidesTemplate:Chem2 and then carboxylic acidsTemplate:Chem2. The hydrolysis of nitriles to carboxylic acids is efficient. In acid or base, the balanced equations are as follows:
Strictly speaking, these reactions are mediated (as opposed to catalyzed) by acid or base, since one equivalent of the acid or base is consumed to form the ammonium or carboxylate salt, respectively.
Kinetic studies show that the second-order rate constant for hydroxide-ion catalyzed hydrolysis of acetonitrile to acetamide is 1.6Template:X10^ M−1 s−1, which is slower than the hydrolysis of the amide to the carboxylate (7.4Template:X10^ M−1 s−1). Thus, the base hydrolysis route will afford the carboxylate (or the amide contaminated with the carboxylate). On the other hand, the acid catalyzed reactions requires a careful control of the temperature and of the ratio of reagents in order to avoid the formation of polymers, which is promoted by the exothermic character of the hydrolysis.<ref>Template:Cite journal</ref> The classical procedure to convert a nitrile to the corresponding primary amide calls for adding the nitrile to cold concentrated sulfuric acid.<ref>Template:Cite journal</ref> The further conversion to the carboxylic acid is disfavored by the low temperature and low concentration of water.
Alkyl nitriles are sufficiently acidic to undergo deprotonation of the C-H bond adjacent to the Template:Chem2 group.<ref>Template:Cite book</ref><ref>Template:Cite journal</ref> Strong bases are required, such as lithium diisopropylamide and butyl lithium. The product is referred to as a nitrile anion. These carbanions alkylate a wide variety of electrophiles. Key to the exceptional nucleophilicity is the small steric demand of the Template:Chem2 unit combined with its inductive stabilization. These features make nitriles ideal for creating new carbon-carbon bonds in sterically demanding environments.
In reductive decyanation the nitrile group is replaced by a proton.<ref name=DecyanationReview>The reductive decyanation reaction: chemical methods and synthetic applications Jean-Marc Mattalia, Caroline Marchi-Delapierre, Hassan Hazimeh, and Michel Chanon Arkivoc (AL-1755FR) pp. 90–118 2006 ArticleTemplate:Dead link</ref> Decyanations can be accomplished by dissolving metal reduction (e.g. HMPA and potassium metal in tert-butanol) or by fusion of a nitrile in KOH.<ref>Template:Cite journal</ref> Similarly, α-aminonitriles can be decyanated with other reducing agents such as lithium aluminium hydride.<ref name=DecyanationReview />
In the so-called Franchimont Reaction (developed by the Belgian doctoral student Antoine Paul Nicolas Franchimont (1844-1919) in 1872), an α-cyanocarboxylic acid heated in acid hydrolyzes and decarboxylates to a dimer.<ref>Template:Cite journal</ref>
Nitriles occur naturally in a diverse set of plant and animal sources. Over 120 naturally occurring nitriles have been isolated from terrestrial and marine sources. Nitriles are commonly encountered in fruit pits, especially almonds, and during cooking of Brassica crops (such as cabbage, Brussels sprouts, and cauliflower), which release nitriles through hydrolysis. Mandelonitrile, a cyanohydrin produced by ingesting almonds or some fruit pits, releases hydrogen cyanide and is responsible for the toxicity of cyanogenic glycosides.<ref>Natural Product Reports Issue 5, 1999 Nitrile-containing natural products</ref>
Over 30 nitrile-containing pharmaceuticals are currently marketed for a diverse variety of medicinal indications with more than 20 additional nitrile-containing leads in clinical development. The types of pharmaceuticals containing nitriles are diverse, from vildagliptin, an antidiabetic drug, to anastrozole, which is the gold standard in treating breast cancer. In many instances the nitrile mimics functionality present in substrates for enzymes, whereas in other cases the nitrile increases water solubility or decreases susceptibility to oxidative metabolism in the liver.<ref>Template:Cite journal</ref> The nitrile functional group is found in several drugs.