Introduction

The reaction of ammonia with formaldehyde was investigated in 1835 by Liebig [1]. Among its products were hemiaminals—molecular compounds containing amino and hydroxyl groups, bound to the same carbon. Hemiaminal is an initial product of the reaction between aldehyde or ketone and amine. Hemiaminals obtained from primary amines have been generally considered unstable [2]. In 2010, Barys et al. [3] developed a new general method for stable hemiaminals preparation. The synthesis has been performed using 4-amino-1,2,4-triazole and nitro-substituted benzaldehydes in acetonitrile [3].

Formal mechanism assumes that hemiaminal is formed during nucleophilic addition between amine and carbonyl, followed by hydrogen transfer from nitrogen to oxygen. Hemiaminal molecule can be further transformed into a Schiff base if a primary amine has been used for synthesis. In the elimination reaction, the imine (Schiff base) and water molecules are formed. An exemplary mechanism of hemaminal and Schiff base formation, which is shown in Scheme 1, suggests a dative character of the covalent nitrogen-carbon bond, N → C. A hemiaminal formation is not a simultaneous process, since creation of the O–H bond is preceded by nucleophillic addition. Formation of a Schiff base and water is suggested to be concerted reaction, were the hydrogen transfer, the C–O bond breaking and formation of the double N=C bond occur simultaneously and in a single step. It is, however, worth checking the accuracy of this theoretical considerations using quantum chemical calculations and modern theory of chemical bond.

Scheme 1
scheme 1

General scheme of the reaction between amine and aldehyde to hemiaminal and Schiff base

In our recent study on the reaction between benzaldehyde and 4-amine-4H-1,2,4-triazole, performed at the DFT(B3LYP)/6-311++G(d,p) level, the reaction mechanism has been established [4]. It, however, shows significant differences in respect to the generally assumed reaction mechanism (see Scheme 1). Scheme 2 presents a simplified picture of the chemical bond evolution in the reaction between benzaldehyde and 4-amine-4H-1,2,4-triazole. The Lewis structures and the arrows showing electron shifts have been matched to the results [4] obtained from the Bonding Evolution Theory (BET) [5] analysis. Firstly, in the reaction where hemiaminal is formed, hydrogen is transferred towards oxygen within the N–H..O bridge. Study of electronic structure, performed by means of topological analysis of electron localisation function (ELF) [6, 7], shows that after the O–H bond formation, two localisation basins, representing non-bonding electron density (formal lone pairs) on the nitrogen, V1(N) and V2(N), are present. Subsequently, those basins are combined into the single basin (lone pair) V(N). Thus, the electronic structure of the amine fragment stays in agreement with the Lewis formula: there is only single lone pair on the N atom. We encourage the reader to analyse Fig. 5 in ref. [4]. In the next step, the N–C covalent bond is formed during the process of electron density donation by both atoms. In Scheme 2, two arrows show that electron densities flow from the interacting molecules towards the N...C bonding region. There is neither indication of simultaneous bond breaking nor bond formation since the respective catastrophes of ELF field are localised for different points on the intrinsic reaction coordinate (IRC) path. The second reaction is a Schiff base formation. Here, a non-simultaneous mechanism is also observed, since the C–O bond is broken first, followed by the [OH]δ− formation and hydrogen transfer in the N–H..O bridge, leading to the formation of water molecule. It is worth emphasising that for the reaction with triazole, the N–C bond is formed by electron density sharing while the formal mechanism suggests the nucleophillic attack of the amine lone pair on the carbon atom. However, it should also be remembered that stable hemiaminals, reaction products between modified benzaldehydes and 4-amine-4H-1,2,4-triazole, differ significantly from other unstable hemiaminals (Scheme 3).

Scheme 2
scheme 2

Simplified representation of the reaction mechanism between benzaldehyde and 4-amine-4H-1,2,4-triazole on the basis of the BET results

Scheme 3
scheme 3

Simplified representation of the reaction mechanism between ammonia and formaldehyde on the basis of the BET results

The reaction between formaldehyde and ammonia has been previously studied theoretically by Williams [8] at the HF/3-21G and AM1 levels, by Hall and Smith [9] at the G2(MP2,SVP) level and by Feldmann et al. [10] at various levels of theory. The latter also determined the infinite-pressure Rice-Rampsperger-Kassel-Marcus unimolecular decomposition rate for aminomethanol water elimination. Similar study has been performed by Ding et al. [11] who investigated three different types of reactions between primary amines and variety of aldehydes (including formaldehyde) in order to describe steric and electronic inductive effects on the reaction mechanism. Erdtman et al. [12] studied reaction of methylamine with formaldehyde at the G2(MP2,SVP) level of theory.

The reaction mechanism between benzaldehyde and 4-amine-4H-1,2,4-triazole has already been proposed [4]. Similarly, a general mechanism for hemiaminal and Schiff base formation is already known. Therefore, it seems necessary to use the simplest reaction between ammonia (NH3) and formaldehyde (H2C=O), H2C=O + NH3 ↔ HO–C(H2)–NH2 ↔ HN=CH2 + H2O, to serve as a simple prototype in understanding some more complex processes. In this case, the hemiaminal, hem (aminomethanol, HO–C(H2)–NH2) and a Schiff base (methanimine, HN=CH2) are formed. We will use the Bonding Evolution Theory [5] as it combines topological analysis of electron localisation function (ELF) [6, 7, 13,14,15,16] with catastrophe theory [17]. ELF is one of the methods, gathered under the umbrella of quantum chemical topology [18]. The analysis has been performed in real space thus independent from the type of molecular orbital used for analysis of electronic structure. The results of BET can be presented using a slightly modified formal language of Lewis formula, generally accepted in chemistry. In our model study, the calculations have been performed for isolated molecules in the gas phase at temperature of 0 K, using DFT method.

Through our research, we are looking to answer the following:

  1. 1.

    What is bond breaking and bond making order in the H2CO + NH3 reaction?

  2. 2.

    Are there any new bonds formed in the transition states (TSs)? Are the rearrangements of chemical bonds simultaneous?

  3. 3.

    How does the mechanism of the reaction between H2CO and NH3, obtained from BET, compare to the generally known mechanism and the reaction mechanism between benzaldehyde and 4-amine-4H-1,2,4-triazole [4]?

We believe that our study will aid the understanding of reaction mechanisms in the hemiaminals and Schiff base syntheses.

Computational details

The BET analysis, including geometrical structure optimisations, relative energies and vibrational spectra, have been performed using the DFT(M06) method [19] and the 6-311++G(d,p) basis sets [20, 21] with the GAUSSIAN 09 program, G09, [22]. The optimised minima and transition states (TS1–TS3) on the potential energy surface (PES) have been confirmed by vibrational analysis. All electron density functionals used for calculation of energetic properties and presented in the Table 1 have been referenced in G09.

Table 1 The values of energetic parameters calculated with different DFT functionals

The reaction path has been modelled using the intrinsic reaction coordinate (IRC) introduced by Fukui [23, 24], using CalcFC option, as it has been implemented in the G09 program. The R x reaction coordinate has been calculated in mass-weighted steps of 0.01 bohr until the total energy minimum has been reached. The total number of points for TS1 and TS3 has been as follows: 218 (substrates), 462 and 474 (substrates), 500, respectively. For each point along the IRC path, the wave function has been obtained (approximated by a set of molecular orbitals) using the single point DFT calculations (scf=tight, NoSymm, out=wfn).

For the short (218 points) IRC path towards the NH3 and H2CO substrates, an additional study on the pseudo-reaction path, defined for the N–C separation, has been performed. The N–C distance, between the H2CO and NH3, has been scanned from 1.84 to 2.65 Å with a step of 0.05 Å, by optimising the geometrical structure for each point.

The activation energy (ΔE a ) has been calculated as a difference between total energies (E tot) of the geometrical structures obtained following the IRC path towards the reagents (products) and subsequently optimised until the local minimum of total energy, E tot, have been reached and of the transition structure, TS. The ΔE a values have been corrected for the vibrational zero-point energy difference (ΔZPVE) with one imaginary frequency projected out.

For reaction 1, the interaction energy (E int) is defined as a difference between E tot of the reacting complex and the H2CO and NH3 monomers (with the geometrical structures of the complex). For reaction 2, E int is a difference between E tot of the post-reaction complex and the energy sum of the Schiff base and H2O monomers (with the geometrical structures of the complex). The E int values are corrected (E int CP) for the basis set superposition error (BSSE) using the counterpoise procedure (CP) [25] and additionally with the ΔZPVE correction (E int CP+ ΔZPVE).

Topological analysis of the electron density, ρ(r) has been performed using AIMall program [26] Topological analysis of the electron localization function has been carried out using the TopMod 09 package [27] with a cubical grid with the stepsize of 0.05 bohr. The ELF domains have been visualised using the program Chimera [28], developed by the Resource for Biocomputing, Visualisation, and Informatics at the University of California, San Francisco (supported by NIGMS P41-GM103311).

Results and discussion

Geometrical structures and energetics

The reaction between ammonia and formaldehyde (see Fig. 1) in the gas phase (vacuum, 0 K) proceeds through four local minima on the potential energy surface (PES). The mechanism shows three transition structures (TS1–3). Initially, the pre-reaction molecular complex, H3N...C(H2)=O, is formed. Subsequently the complex evolves over the TS1 to aminomethanol, H2N–C(H2)OH, (hemiaminal, hem1) formally via the nucleophilic attack of the nitrogen lone pair on the carbon atom and subsequently hydrogen transfer from ammonia to oxygen from formaldehyde. As a result, two new covalent bonds, O–H and N–C, are formed. Conformational change that occurs in the hem1 molecule is associated with TS2 (hem1 ↔ hem2). The lone pair on the oxygen atom assumes the position facilitating internal transfer of the hydrogen from the − NH2 fragment to the − OH group. In the second step, characterised by the TS3, the C–O bond is broken. This process is associated with internal transfer of hydrogen towards oxygen. This causes transformation of aminomethanol (hemiaminal, hem2) into water and methanimine, H2C=NH (Schiff base). After dehydratation, the H2O molecule forms a post-reaction molecular complex with the methanimine (H2O...HN=CH2), stabilised by the O–H...N hydrogen bond. Geometrical structures, optimised for the TSs and the minima on the PES calculated at the DFT(M06)/6-311++G(d,p) level are shown in Fig. 1.

Fig. 1
figure 1

Schematic energy profile of the hemiaminal and Schiff base formation from ammonia and formaldehyde

Energy parameters characterising all the reactions, i.e. the energy of stabilisation, ΔE s , the interaction energies, E int, E int CP, for the H3N...C(H2)=O and H2O...HN=CH2 complexes and the activation energies, ΔE a I-VI , associated with TS1 and TS3 are collected in Table 1. Small values of ΔE a III,IV related to the conformational change hem1 ↔ hem2 (TS2) have been omitted. In order to check the effect of the DFT functional on those values, 20 different functionals have been used. The value of E int CP for the H3N...C(H2)=O complex is between − 2.17 kcal/mol (B3PW91) and − 6.30 kcal/mol (BMK), and that of the final H2O...HN=CH2 complex are between − 2.78 (BMK) and − 7.58 kcal/mol (APFD). It is worth noting that the value of the E int CP can show discrepancy of up to about 290% in extreme cases (for both complexes). At the activation barrier, energy (ΔE a I) needed to form the hem1 molecule ranges between 28.29 (N12SX) and 38.90 (B1LYP) kcal/mol and is much smaller than the energy (ΔE a V) of 44.23 (B97D3)–59.09 kcal/mol (LC- ωPBE) required to form a Schiff base in the second reaction. Further details of the reaction’s energy parameters are presented in Table 1.

The reliable reaction modelling has to account for the environmental effects, i.e. surrounding solvent molecules or other reacting molecules. We have performed the calculations including up to three H2O and NH3 molecules for the TS1 and one H2O and NH3 molecule for the TS3. Subsequent addition of water molecules results in decrease of the ΔE a I activation energy to 16.05, 6.09 and 6.03 kcal/mol, respectively. The ΔE a II activation energy decreases to 22.95, 18.31 and 15.46 kcal/mol, respectively. Thus, the energetic barrier needed for the reaction is essentially reduced in water environment. Similar effect occurs with ammonia, where the ΔE a I activation energy is reduced to 19.69, 15.15 and 5.74 kcal/mol, respectively. The ΔE a II is lowered to 27.13, 23.47 and 21.16 kcal/mol, respectively. In the case of the ΔE a V and ΔE a VI activation energies, related to the formation of Schiff base, the decrease in activation energy observed after adding solvent molecules is negligible. One H2O molecule reduces these energies to 53.36 and 47.40 kcal/mol, respectively. Ammonia shows decrease to 53.80 and 46.86 kcal/mol, respectively.

Reaction mechanism obtained by bonding evolution theory (BET)

The reaction between ammonia (NH3) and formaldehyde (H2CO) has been investigated at the DFT(M06)/6-311++G(d,p) computational level. For each point on the IRC path, topological analysis of ELF function has been performed. Comparison of the electronic structure between two consecutive points on the IRC path, represented by the core C(A) and valence attractors, V(A,B) and V(A), enables localisation of the catastrophes on the ELF field. Each catastrophe separates two consecutive steps of studied reactions. From a chemical point of view, the most interesting are catastrophes associated with annihilation and creation of the valence attractors (local maxima of ELF) since they correspond to annihilation and creation of chemical bonds, V(A,B) and lone pairs, V(A). Thus, one can observe evolution of the chemical bonds, A–B, as they are broken or formed, along the reaction path (IRC). Hydrogen transfer is an exception since the proton bearing some electron density is described by the asynaptic attractor V(H) [29]. To aid better understanding of the methodology used here, the reader is encouraged to familiarise themselves with the papers published by Silvi’s group [30,31,32,33,34,35]. Particularly those describing the BET theory [5] and BET applications for reaction mechanisms such as isomerisation in XNO (X=H, Cl) [36], hydrogen transfer in H5O2 + [33], in malonaldehyde [37], in the HF–(OH) and HCl–(OH) complexes [38], electron transfer in the Li + Cl2 system [39], and reaction between butadiene and ethylene [40].

A good starting point for the reaction mechanism study is the electronic structure of the weak complex H3N...C(H2)=O, optimised at the last point on the IRC path, going towards ammonia and formaldehyde. Stabilisation of the complex by weak forces does not change the ELF topology of interacting molecules. The topology of ELF, observed for the isolated NH3 and H2CO molecules, is also observed for the complex. The number of synaptic core and valence attractors (13) is the same for isolated molecules and the complex. Such additivity of the topologies can be a consequence of a relatively large distance between the N and C atoms (2.739 Å) and weak mutual perturbation of the subsystems.

The ELF localisation domains and basin population values, \( \overline{N} \), for H3N...C(H2)=O are shown in Fig. 2. The formaldehyde consists of the oxygen and carbon atomic cores, C(O) and C(C), two lone pairs localised on the oxygen atom, Vi=1,2(O) and two Vi=1,2(C,O) basins, characterising formally double bond, C=O. Population of each Vi=1,2(C,O) basin is 1.16e (see Table 2), thus the formal bond order is two and differs essentially from the topological bond order, which is about 1.2. The remainder of the electron density is found in two oxygen lone pairs (2 × 2.61e) and two C-H bonds (2 × 2.14e). It is evident that the bond has a large contribution of the ionic character (mainly C+O). In the electronic structure of ammonia one lone pair, V1(N), can be found on the nitrogen atom, with population of 2.10e and three protonated disynaptic attractors V(H1,N), V(H2,N), V(H3,N) with the basin population of 1.92e, corresponding to three N–H bonds. The ELF localisation domains presented in Fig. 2 show that the lone pair of nitrogen V1(N) is directed towards the carbon core, C(C), thus the stabilising N...C interaction is expected. Topological analysis of ρ(r) field supports such interaction since the (3, −1) critical point, CP, is localised on the atomic interaction line joining the N and C nuclei. The values of ρ (3,-1)(r) = 0.015e/bohr3 and ∇2 ρ (3,-1)(r) = +0.049e/bohr5 confirm a non-covalent interaction. Topological analysis of ELF clearly shows that the valence basin of nitrogen, V1(N), corresponding to the lone pair in formal Lewis formula of ammonia, is of a monosynaptic type. Thus there is no covalent interaction with the C atom.

Fig. 2
figure 2

ELF localisation domains for the optimised structure of the NH3 ...CH2(=O)complex

Table 2 The values of the basin population (in e) for different steps of the reaction between the ammonia and formaldehyde

Topology of ELF obtained for the isolated NH3 and H2CO molecules and the H3N...C(H2)=O complex (13 core and valence attractors) describe the electronic structure of the interacting molecules in the step I of the reaction. Unfortunately, due to the limitations of the IRC procedure, the relevant points on the IRC path have not been observed.

First point on the IRC path, calculated for R x  = −2.244 bohr and the corresponding value of the r(N...C) distance, 1.846 Å, is much shorter (Δr = 0.892 Å) than that calculated for the H3N...C(H2) = O complex. Since a number of attractors for the reacting system decreases to 12, changes in topology of ELF are inevitable. Two important changes of the ELF field have been found. Firstly, in the C=O region, only one V(C,O) attractor has been observed. Secondly, in the N...C region, the attractor V1(N) of the monosynaptic type, characterising the non-bonding electron density on the N atom (the lone pair) in NH3 molecule, changed from synaptic to disynaptic type, V(N,C). Thus the V(N,C) basin shares the surface with both the C(C) and C(N) core basins. According to the work of Krokidis et all [5] focused on dissociation of H3N–BH3, the V(N,C) basin suggests creation of the covalent-dative (formal) N → C bond. However, this conclusion has been drawn for much longer distances than those covered by the IRC path. Conversion of the V1(N) basin into the V(N,C) basin and reduction of the Vi=1,2(C,O) basin into the V(C,O) basin should be observed for the points before R x  = −2.244 bohr.

Analysis of the pseudo-reaction path, calculated for the N...C distance (see ‘Computational details’) shows that two Vi=1,2(C,O) attractors and basins are annihilated and a single attractor V(C,O) is created in the cusp catastrophe for r(N...C) ≈ 2.3 Å and r(C–O) ≈ 1.2 Å. Change of the synapticity V1(N) into V(N,C) occurs for r(N...C) ≈ 1.93 Å. Those two topological changes characterise the electronic structure of the reacting H3N...C(H2)=O complex in steps II and III, respectively.

It is worth noting that the ELF topological description of annihilation or creation of the covalent-dative bond (N–C, N–B) is complicated [5] The relevant fold catastrophe, studied by Krokidis et al. [5] for the N–B bond breaking in the H3N–BH3 molecule and associated with the V(N) to V(B,N) change (r(B...N) = 2.87 Å) does not involve any attractor of ELF field but the repellor, (3,+3) and (3,+1) critical points. Full topological analysis of this type, with all the CPs thoroughly analysed, is outside the scope of our research.

All the points on the IRC path, corresponding to geometrical structures with the r(N...C) distance larger than 1.583 Å (R x  = −0.104 bohr), belong to the step III of the reaction. Total number of the core and valence attractors is 12. The mutual approach of the NH3 and H2CO molecules shows gradual flow of the electron density from the lone pair on N to the N-H bond in ammonia and to the Vi=1,2(O) basins in formaldehyde (see Table 2). Such interpretation is also supported by the Mulliken charges for the C and O atoms rising from − 0.007 and − 0.458e for R x  = − 2.244 bohr to − 0.100 and − 0.562e for R x  = − 0.115 bohr. Modified Lewis structures sketched on the basis of the ELF analysis for all the points in steps I, II and III are shown in Fig. 3. The IRC path with the points grouped to different steps are shown in Fig. 4.

Fig. 3
figure 3

Modified Lewis structures, representing evolution of the chemical bonds and lone pairs (non-bonding regions), for steps I–XI of the reaction between ammonia and formaldehyde

Fig. 4
figure 4

Evolution of the total energy for hemiaminal formation (reaction I) as function of the IRC coordinate with marked positions of the catastrophes on the ELF field

The first catastrophe of ELF, determining the step IV of the reaction, is observed for R x  = − 0.104 bohr in the valence shell of the O atom in the O...H region for r(O–H2) = 1.483 Å, r(N–H2) = 1.141 Å and r(N–C) = 1.583 Å. Rehybridization of atomic orbitals on the O atom to sp3 and localisation of electron density in the O...H region is manifested by formation of the third region of non-bonding electron density on the O atom, represented by the V3(O) attractor and its basin (lone pair). The number of attractors increases to 13. In the fold catastrophe (F +), the V3(O) attractor and critical point (3, −1) are formed. Basin population of the V3(O) basin is 0.31e. This value is much smaller than about 2.9e of two lone pairs Vi=1,2(O). It is worth noting that localisation of the V3(O) lone pair is associated with the transfer of the H2 atom. This step on the IRC path is very short since the ELF topology described above is observed only for three points of the IRC path.

In step V, the N–H2 bond in ammonia, represented by the protonated attractor and basin V(H2,N), is broken. The fold catastrophe (F +) is observed in the region of the N–H2 bond for R x  = − 0.073 bohr. Optimised parameters for this reaction are as follows: r(O–H2) = 1.467 Å, r(N–H2) = 1.153 Å and r(N–C) = 1.581 Å. Electronic structure of the broken bond consists of the proton surrounded by electron density, known as ‘ dressed proton’, V(H2) and the region of non-bonding electron density in the vicinity of the N atom, represented by the non-bonding attractor and basin, V2(N). The number of core and valence attractors increases to 14. The NH2 fragment consists now of two N–H bonds (N–H1, N–H3) and one region of the non-bonding electron density. The basin population of the dressed proton is 0.59e and that of the V2(N) basin is 1.53e. The same ELF topology is also observed for the electronic structure of the molecules in the TS1 (see Fig. 5), where slightly smaller basin population of V(H2) can be found (0.43e).

Fig. 5
figure 5

The core and valence attractors and ELF localisation domains for the transition structure TS1 for the hemiaminal formation reaction

The final stage of hydrogen transfer in the N...H2...O bridge is observed in step VI. In effect, the O–H2 bond is created out of the non-bonding basin V3(O) and the dressed proton V(H2) basin. In the fold catastrophe (F), observed for the R x  = 0.605 bohr, the V3(O) attractor and the (3, −1) CP are annihilated, and a new non-critical point (CP) is created. The number of attractors decreases to 13. The catastrophe is found for the following distances: r(O–H2) = 1.129 Å, r(N–H2) = 1.442 Å and r(N–C) = 1.561 Å. An attractor is localised at the proton and its basin is now the disynaptic protonated basin, V(H2,O). From ELF topological point of view, the O–H2 bond has been formed. The basin population of V(H2,O) is 1.47e, but the basin is not yet ‘saturated’ with electron density. The final value of \( \overline{N} \) obtained for the optimised geometrical structure of the hem1 is 1.71e. Comparison of the basin population evolution of previous steps shows that the V(H2,O) basin is ‘filled’ with electron density, coming mainly from the surrounding Vi=1,2(O) and V(C,O) basins. Step VI also terminates the first reaction since all the chemical bonds of the hem1 are formed at this stage.

The final product of the first reaction, aminomethanol consists of the C–O bond with 1.30e, the N–C bond with 1.72e and five bonds related to the H atoms (N–H, H–C, O–H) with the basin populations in a range of 1.71–2.09e. Population of the formal single C–O bond is 1.08e smaller than a formally double C=O bond in formaldehyde (2.38e). Analysis of atomic contributions, using the procedure described by Raub and Jansen [41], shows that the C–O bond is polarised towards oxygen, donating 1.0e to the bond, while 0.3e comes from the C atom. The polarity index p OC is 0.54. The covalent N–C bond with the p NC index 0.35, is less heteropolar than the C–O bond. The bond is polarised towards the nitrogen as the nitrogen atom donates 1.16e and the carbon atom 0.56e. The geometrical structure of hem1, optimised to the energy minimum is also observed in the step VI of the reaction.

Reorientation of the N–H and O–H bonds in aminomethanol (hem1 ↔ hem2) is characterised by the TS2. Topological analysis of ELF shows that this step is not associated with any catastrophe. Neither rearrangement in the bond electronic structure nor lone pairs in both conformers are observed; therefore, the electronic structure of hem2—from ELF topological perspective—is the same as described for the step VI of the reaction. No further discussion for the hem1 ↔ hem2 process is deemed necessary. Values of the basin population for hem1 and hem2 can be analysed further using data presented in Table 2.

The second reaction, where the molecular complex of the methanimine (Schiff base) with water is formed from hem2 has been analysed starting from the point on the IRC path at R x  = − 4.985 bohr (step VI). The r(C–O) value at this point is 1.423 Å. The IRC path with the points grouped to different steps are shown in Fig. 6.

Fig. 6
figure 6

Evolution of the total energy for the Schiff base formation (reaction II) as a function of the IRC coordinate with marked positions of the catastrophes on the ELF field

At first, the C–O bond breaking is observed (step VII). It is topologically characterised by a change of the disynaptic basin V(C,O) into the monosynaptic basin V(O). This is caused by the C–O bond elongation and the transfer of the electron density mainly towards more electronegative oxygen atom. As a result, three regions of non-bonding electron density (lone pairs), Vi=1,2,4(O) are observed in the valence shell of oxygen (sp3 hybridisation). Consequently, the [HO]δ− fragment is no longer bound to the [H2C–NH2]δ+ moiety. Since no bonding basins containing shared electron density from both molecules are present, the value of the ELF topological δ charge can be calculated as 0.7e. The number of attractors remains unchanged—13.

Topological characterisation of C–O bond breaking process is complicated, due to difficulty in pinpointing where the V(C,O) basin is transformed into V(O) on the IRC path. Such process can be associated with oscillation of the local maximum of ELF between the C(O) and C(C) cores, manifesting in change between the V(C) and V(O) types, observed on the IRC path close to the point of catastrophe. Similar difficulties have been reported before [42]. It is worth mentioning that not every C–O bond breaking is characterised by change in a synaptic basin. For example, the study on the reaction between benzaldehyde and 4-amine-4H-1,2,4-triazole [4] has shown that the C–O bond is broken through separation of the V(C,O) basin into two V(C) and V(O) monosynaptic basins. Such mechanism of bond breaking is typical for covalent bonds, while transformation of V(C,O) into V(O) indicates a presence of the dative bond (see study by Krokidis et al. [5]). In this study, the V(C,O) basin is no longer observed from R x  = −1.25 bohr onwards. This corresponds to the following bond lengths: r(C–O) = 1.77 Å, r(O–H3) = 1.81 Å, r(H3–N) = 1.04 Å. Population of the monosynaptic, non-bonding basin V4(O) is 0.75e, which is much smaller than the population of the two lone pairs Vi=1,2(O) of 5.12e.

In the next three steps, VIII, IX, and X, hydrogen transfer in the N–H3...O bridge is observed, followed by water elimination. This process is similar to the H2 atom transfer in the N–H2...O bridge, observed for the first reaction. Elongation of the N–H3 bond causes electron density redistribution towards the H3 and N atoms. As a result, new local maximum V3(N) appears in the vicinity of the N atom in the fold catastrophe (F +). This catastrophe begins step VIII of the reaction. The number of the core and valence attractors increases to 14. The catastrophe is found before the TS3 for R x  = −0.189 bohr, corresponding to r(C–O) = 1.861 Å, r(O–H3) = 1.385 Å, r(H3–N) = 1.190 Å. Electron density from the N–H3 bond is now concentrated around the proton (dressed proton), represented by the V(H3) basin with 0.48e, and at the new non-bonding valence basin V3(N) with 1.12e. In the valence shell of the N atom, two non-bonding basins are now observed, V2(N) and V3(N). The dressed proton is situated between two regions of the non-bonding electron density, V3(N) and V1(O). It is worth emphasising that hydrogen transfer occurs towards the lone pair V1(O) with 2.11e (in step VIII) that is observed from beginning of the reaction. Topology of ELF in the step VIII also describes the electronic structure of the transition state, TS3. The core and valence attractors and ELF localisation domains are shown in Fig. 7. Since the catastrophe is found before the TS3, it is associated with no special event on the IRC path. Its electronic structure corresponds to N–H bond breaking and creation of the O–H bond. Electronic structure of TS3 is similar to the one described for TS1, since both are characterised by partially transferred H atom.

Fig. 7
figure 7

The core and valence attractors and ELF localisation domains for the transition structure TS3 for the Schiff base formation reaction

The next fold catastrophe (F), determines electronic structure of the reacting system in the step IX. Further shortening of the O...H3 distance and elongation of the N...H3 distance is associated with electron density redistribution from V3(N) towards the V2(N) basin, related to the lone electron pair of the methanimine. Electron population decrease in the V3(N) basin results in electron localisation changes and finally a catastrophe of the ELF field, observed at R x  = 0.053 bohr. Other parameters at this point are r(C–O) = 1.871 Å, r(O–H3) = 1.264 Å, r(H3–N) = 1.283 Å. The V3(N) attractor, its basin and associated separatrix disappear. The number of core and valence attractors reduces to 13. Basin population of the V2(N), calculated at the first point after the catastrophe, increases to 3.44e. Since populations of other basins remain relatively unchanged, the electron density from V3(N) basin is now ‘contained’ in the V2(N) basin.

The final change of the electronic structure is observed in the water fragment of the reacting system (step X). The shortening of the O...H3 distance and concentration of electron density in the region of the V2(O) basin (observed from step VI in hem2), associated with depopulation of the V(H3) basin (observed from the step VIII) leads to change in electron localisation in the O...H3 region and the next fold catastrophe (F). The catastrophe, observed for R x  = 0.443 bohr, corresponds to r(C–O) = 1.894 Å, r(O–H3) = 1.085 Å, r(H3–N) = 1.472 Å. The number of core and valence attractors is reduced to 12. The V1(O) attractor, its localisation basin, separatrix and critical point (3,−1) disappear and a wandering point (not CP) appears. The ELF function in the valence region of the H3–O bond is now characterised only by the protonated disynaptic attractor, V(H3,O). Post-fold basin population of V(H3,O) is 1.77e. From the ELF perspective, the H3–O bond has been formed and the water molecule established. The bonds and lone pairs represented by respective bonding and non-bonding basins are not yet fully saturatedwith the electron density. Final populations are established for the optimised geometrical structure of the last point on the IRC path.

In the last step of the reaction (XI), the topology of ELF function in the region of the N–C bond changes in the cusp catastrophe (C+). The single attractor, V(N,C), characterising the covalent N–C bond in the steps VI–X (second reaction) and in the steps III–VI (first reaction), has been annihilated and two new attractors have appeared, V1(N,C) and V2(N,C). The total number of attractors increases to 13. The cusp has been found for R x  = 1.528 bohr, corresponding to r(C–O) = 2.030 Å, r(O–H3) = 0.979 Å, r(H3–N) = 1.831 Å. Local change of the ELF field is associated with concentration of the electron density in the N–C bond, shortened from 1.420 Å in the step VI (R x  = −4.985 bohr, first point on the IRC path going from TS3) to 1.278 Å in step X (the last point before the cusp). Corresponding value of \( \overline{N} \) has increased from 1.77e to 2.67e. Since each Vi=1,2(N,C) attractor can be associated with one formal bond in double bond in metanimine, it can be assumed (from ELF topological point of view) that a double N=C bond has been formed. However, it needs to be remembered that two Vi=1,2(A,B) attractors are not always present for the double A=B bond, for example in the C=O bond. Two Vi=1,2(C,C) attractors for formally double C=C bond have been first reported by Savin et al. [13] for ethylene. Silvi et al. [43] noted that localisation of two Vi=1,2(A,B) attractors can be related to molecular symmetry instead of straightforward indication of a formally double bond. For two bonding disynaptic basins, Vi=1,2(N,C), populations are 1.42 and 1.47e, respectively; thus, its sum is much smaller than 4e expected for the N=C bond. Further change of the molecular geometry results only in redistribution of the electron density among the basins. Population values of the Vi=1,2(N,C) basins for the final point on the IRC path (R x  = 5.249 bohr) are 1.44 and 1.43e. Evolution of ELF field results shows therefore that water elimination from the hemiaminal and formation of Schiff base (methanimine) is complete. The reacting system now consists of the H2O and H2C=NH molecules. No other catastrophes of the ELF field have been found on the IRC path.

A final geometry optimisation of the reacting molecules yields the post-reaction complex H2O...HN=CH2, stabilised by the O–H...N hydrogen bond. Topological analysis of the ρ(r) field confirms its existence via the presence of the (3,− 1) critical point on the atomic interaction line, connecting the N atom and the hydrogen. The values of ρ (3,-1)(r) = 0.027e/bohr3 and ∇2 ρ (3,-1)(r) = +0.085e/bohr5 indicate a non-covalent interaction. Topology of ELF for the complex is the sum of the ELF topologies for the methanimine and water. A weak character of the interaction between H2O and H2C=NH molecules is demonstrated by similar values of \( \overline{N} \) for the lone pairs in water and the isolated molecule.

The electronic structure of optimised isolated methanimine shows two bonding disynaptic basins, Vi=1,2(N,C) for the N=C bond with 1.45 and 1.48e. Total population of the nitrogen-carbon bond is 2.93e. This value is smaller than 4e expected for the double bond and the ‘missing’ electron density can be found in two H–C bonds (2.12e) and the lone pair V2(N) on the nitrogen atom (2.68e). Analysis of the nitrogen-carbon bond polarity shows that the heteropolar nitrogen-carbon is polarised towards nitrogen. The value of the polarity index, p NC is 0.36, and it is very similar to that of the formally single N–C bond in the hem1 (p NC = 0.35). The 1.99e comes from the N atom and 0.94e from the carbon atom. Nevertheless, both bonds are less heteropolar than the single C–O bond in the hem1 (p OC = 0.54).

Comparison of the reaction mechanisms for hem1 and Schiff’s base formation reveals some similarities. Topological analysis of ELF shows the same mechanism for hydrogen transfer in the N–H..O bridge. It consists of three main steps: breaking of the N–H bond,dressed proton transfer V(H) and formation of the O–H bond. The N–H bond breaking occurs very close to the respective TS for both reactions, i.e. for R x  = − 0.073 bohr (I reaction) and R x  = − 0.189 bohr (II reaction). Those correspond to the r(N–H) distance of 1.153 Å (I reaction) and 1.190 Å (II reaction), respectively. However, some interesting differences between both processes exist. For H transfer to occur in reaction I, presence of the non-bonding region of electron density, (the V(O) basin) is required. Its electron density forms the O–H bond, upon the end of the process. Such basin, V3(O) is formed in step IV as a result the F + catastrophe. On the contrary, there is no need for the V(O) basin formation during the II reaction, since the existing lone pair basin, V1(O), is used. The processes can be compared analysing steps IV, V and VI vs VIII, IX and X in Fig. 3.

Similarities can also be found, when analysing N–C bond formation in hem1 and C–O bond breaking in the formation of the Schiff base. Both processes exhibit very similar changes between the monosynaptic (no bonding) and disynaptic (bonding) basins. During the formation of the N–C bond, the monosynaptic basin V(N) changes to disynaptic V(N,C). For the dissociation of the C–O bond, a change of the disynaptic (bonding) V(C,O) to monosynaptic (no bonding) V(O) basin is observed.

Conclusions

Application of the Bonding Evolution Theory enabled a clear-cut description of the reaction mechanism between NH3 and H2CO, a useful prototype reaction for the formation of hemiaminal and Schiff base. This simple reaction serves as a basis for the analysis of more complicated reactions, leading to formation of stable hemiaminals involving for example triazole fragments. The study has been performed for two reactions: H2C=O + NH3 ↔ hem1 and hem2 ↔ HN=CH2 + H2O. Comparison of the ELF topologies for two consecutive points on the IRC path enabled precise localisation of turning points (catastrophes), where the ELF topology of reacting molecules changes qualitatively. This helps to distinguish particular steps of the reaction, where covalent bonds are broken and/or formed.

The first reaction is the aminomethanol formation and consists of six steps (I–VI). Formation of methanimine (Schiff base) requires an additional six steps (VI–XI). The conformational change of the N–H bond and the oxygen lone pair in the hemiaminal does not change the topology of the ELF field. Total number of steps in the H2C=O + NH3 ↔ HN=CH2 + H2O reaction is 11.

Analysis of the BET results enables us to answer the questions posed in the Introduction as follows:

  1. 1.

    In order for the formation of hemaminal to happen, the nucleophillic attack of the nitrogen lone pair from NH3 on carbon atom of H2CO is required. This is followed by proton transfer in the N–H...O bridge. When the Schiff base is formed, the C–O bond is broken first, followed by proton transfer from the N–H bond to the O atom.

  2. 2.

    Formation of the N–C bond and the H atom transfer in the N–H...O bridge do not occur in TS1 and both processes do not occur simultaneously. Similarly, breaking of the C–O bond and the H atom transfer in the N–H...O bridge in the Schiff base formation do not occur in TS3. Breaking of the N–H bond occurs very close to the respective TS (R x  < − 0.2 bohr).

  3. 3.

    Mechanism of the simple H2CO + NH3 reaction is only partially similar to the mechanism generally proposed for the reaction between amine and aldehyde (Scheme 1). In the hemiaminal formation, firstly, the nucleophillic attack on the C atom in formaldehyde occurs, followed by the H atom transfer. However, the Schiff base is formed in a different way. The hydrogen transfer is preceded by the C–O bond breaking and the [OH]δ− fragment detachment. Reaction mechanisms between formaldehyde and ammonia and benzaldehyde and 4-amine-4H-1,2,4-triazole triazole differ. The differences are clearly visible at the hemiaminal formation stage: the nucleophillic attack on the C atom precedes the hydrogen transfer, whereas for the triazole derivative reversed order is observed.