Introduction

Nowadays hydrogen bonding is used as a force in non-covalent synthesis. This synthesis [1] is focused mostly on crystal engineering [24], a non-covalent polymerization [57] but hydrogen bonding may be used also in chemical sensing [814]. The ability to tune the properties of molecules by changing the substituent comes from the basic research by Hammett [15]. However, in supramolecular chemistry there are several possibilities to tune the non-covalent interactions [16, 17]. These are the electronic substituent effect [1820, 17], steric effect [2124], and intermolecular electronic repulsion [25] to mention a few. Although very good reviews on tuning the molecular properties and thus influence on their interactions has been published there are still not so many extensive works in the topic of pure substituent effect in simple associates. This is especially true for studies taking into account more than five various substituents. Recently it was shown that the association of substituted benzoates with heterocyclic urea derivatives preceded by breaking the intramolecular hydrogen bond is driven by the character of the substituent [18]. In compounds that are able to form a intramolecular hydrogen bond such a conformation is preferred. There are many examples of compounds that behave this way as: heterocyclic ureas [26, 27], enamines or enolimines [2830] and others including biomolecules [31]. On the other hand the compounds that are not able to form such stabilizing interaction can form various dimers, trimers etc. or their rotamers may be stabilized as various associates. The rotamerism in such molecules may be probed by the use of appropriate hydrogen-bonding counterparts [21]. However in simple, model molecules such rotamerism is not possible or does not influence the association due to the symmetry of the part of the molecule. The rotation about C-N bond in formamide does not change its hydrogen-bonding pattern. Thus this simple model may be a structure of choice [32] to study the interactions of amides with acids and carboxylates taking into account the substituent effect. The carboxylates were used in several studies as anions that probe the non-covalent interactions [19, 33, 34]. The regular substituent-dependent changes in properties of carboxylic acids and thus benzoates are commonly known. The acidity and thus donation ability of the hydrogen bond donor (OH) in -COOH moiety in acids may be a good test for description of interaction preferences driven by the character of the substituent. On the other hand the basicity and thus the ability of being an acceptor for hydrogen bonds as in phenolates [3538] of carboxylates [19, 33, 34] may be used in a similar way. In 4-substituted benzoates, however, both oxygen atoms are equal in the light of hydrogen bonding. In acids the -COOH group contains donor and acceptor of the hydrogen bond. Changing the electronic properties of the carboxylic acid influence the properties of C = O and OH groups in opposite ways. These features were taken into account during design of the series of calculations. The aim of this study is to: a) study the substituent effect on association of the model molecule (formamide), b) check if the weak hydrogen bond by CH group plays a crucial role in association, c) compared to the various arrangements of molecules within the complex in light of their interaction and d) study how the substituent effect influences association when two various species are associated with formamide at a time. In Fig. 1 three forms of associates are shown.

Fig. 1
figure 1

Three forms of studied formamide complexes

It is worth pointing out that forms A, B, and C differ by topology. In form A the eight-membered ring is stabilized by two hydrogen bonds, while in B the seven-membered ring is present. In form C the seven-membered ring is also stabilized by two hydrogen bonds but it differ from B by a) net charge and b) the composition of the quasi-ring with hydrogen bonds. In forms A and B both molecules consist of one hydrogen bond acceptor and one donor (assuming CH · · · O weak interaction as a hydrogen bond type of interaction), while in C both acceptors belong to benzoate and both hydrogen bond donors to the formamide.

Computational methods

All calculations were performed with the use of Gaussian software [39]. The M05 functional suggested for non-covalent interactions [40, 41] was used together with the 6-311+G(2d,2p) basis set as in previous publications [18, 21, 22]. The use of the diffuse functions is crucial for describing the anionic specie, while polarization functions are used to properly describe the hydrogen bonding. Optimizations were performed with the use of PCM model of solvation [42] in chloroform since in previous publications such treatment was in agreement with experimental results [18, 21, 22]. For all optimized structures the frequency calculations were ran to check if the geometry is in energy minima (only positive frequencies were obtained). The quantum theory of atoms in molecules (QTAIM) derived data were calculated with the AIM2000 software [43]. The intermolecular interaction energies were calculated with the use of basis set superposition error correction (BSSE) using counterpoise procedure [44, 45] with default settings. These were single point calculations at the geometry optimized in the previous step. All energies are zero point energy (ZPE) corrected.

Results and discussion

The optimized structures of complexes allowed analyzing the geometry, interaction energy and electronic parameters of complexes. Table 1 collects the crucial intermolecular distances for forms A-C and the substituent constants (σ) to show the tendency of changes.

Table 1 The lengths [Å] of hydrogen bonds in complexes A-C

The above data shows that the substituent influences intermolecular distances in a classical way—the interatomic distances are in line with the substituent constant, which in turn describes the systematic electronic effect of the substituent on properties of acid/base. The high correlation coefficients (R, last row) confirm that the model of linear changes of properties of molecules works also for intermolecular contacts. The smaller value of correlation coefficient for CH · · · O interaction (form C) suggest this contact is weak and acts as a support for the stronger NH · · · O one allowing interacting parts of molecules to occupy a common plane. The CH · · · O hydrogen bond length in form B correlates better with substituent constant than that in C. This may be caused by the increased strength of OH · · · O hydrogen bond with respect to the NH · · · O one (the OH · · · O is, in general [47], stronger than NH · · · O hydrogen bond—form B vs. C). Also the CH · · · O hydrogen bond distances suggest this interaction in B is stronger than in C. The intermolecular interaction energies (Eint) corrected to ZPE and BSSE [44] are collected in Table 2. The same table contains the correlation coefficient (R) for Eint = a (σ) + b function and a, b, and σ (substituent constant) values.

Table 2 ZPE and BSSE corrected Eint [kJ mol-1] for the studied complexes

It is interesting that the response of the Eint to the substituent is stronger in B form with respect to the A form by the factor of 1.74 (−3.69/−2.12 = 1.74). This is expressed by steeper linear function for B than that for A (compare the ‘a’ values in Table 2). It is worth pointing out that ‘a’ (Table 2) have opposite sign for acid series than that for anion series. This is in agreement with the acid/base properties of these species, i.e., the electron-accepting substituent increase the acidity of an acid and lowers the basicity of the conjugated base. In order to get a deeper insight into the properties of the studied complexes the QTAIM [48] analysis was performed. Tables 3, 4 and 5 collect the data of Laplacian of the electron density (∇2 ρ), electron density (ρ) at the hydrogen bond critical point (H-BCP) and the energy of the hydrogen bond (EHB) calculated by the Espinosa approach [49, 50]. The ∇2 ρ and ρ values are limited to three decimals for stronger interactions and four for weaker ones. Similarly, the values of EHB are limited to one decimal for stronger interactions and two for weaker ones. This is to show numerically the tendency of changes upon change of the substituent. The last three rows collect correlation coefficients (R) for the following linear function property (∇2 ρ, ρ or EHB) = a (σ) + b and a (slope) and b (intercept) values.

Table 3 The ∇2 ρ, ρ and EHB [kJ mol-1] of hydrogen bonds in complexes A
Table  4 The ∇2ρ, ρ and EHB [kJ mol-1] of hydrogen bonds in complexes B
Table  5 The ∇2ρ, ρ and EHB [kJ mol-1] of hydrogen bonds in complexes C

First of all it is necessary to mention that in all complexes formed the values of the Laplacian of the electron density at H-BCP show the interaction is of hydrogen bond nature [51]. The QTAIM) theory says the Laplacian is negative for covalent bonds and positive for hydrogen bonds. It is commonly known that the -COOH moiety acts as a hydrogen bond donor (OH group) and acceptor (C = O group) at the same time. As the substituent became more electron-accepting it makes the hydrogen bond donation ability of OH higher and hydrogen bond accepting ability of C = O lower. The opposite signs of the ‘a’ values in EHB columns show that (Tables 3 and 4), while the said slopes are positive for complexes C (Table 5). Due to the different electronegativity of nitrogen and carbon atoms the difference between NH · · · O and CH · · · O is obvious making the latter interaction weaker. The OH · · · O interaction is about 1.0 kJ mol-1 stronger in B form than that in A form. This suggests that the weak CH · · · O interaction supports five to seven times stronger OH · · · O one, while the NH · · · O in A complexes participates much more in overall stabilization. The relative EHB energy in complexes A (EHB (OH···O)/EHB (NH···O)) and B (EHB (OH···O)/EHB (CH···O)) is the lowest for NMe2 and the highest for NO2 groups, respectively. Moreover, the said ratios defined as x1 = EHB(OH · · · O)/EHB(NH · · · O) in series A and x 2 = EHB(OH · · · O)/EHB(CH · · · O) in series B are dependent from the substituent constants as: x1 = 0.39σ + 1.98 (R = 0.997) and x 2 = 1.23σ + 6.25 (R = 0.989). The higher slope in the second equation confirms that CH · · · O interaction is weak while the slope in the first equation suggests the NH · · · O is much stronger than the CH · · · O one in series B (for equal contribution of interactions the slope should be equal to zero and the intercept equal to one). The EHB of OH · · · O in A and B series are very similar. The above observations can also be seen in the geometry of the complexes (Table 1). The electron densities at H-BCPs in studied series are in line with the general trends in hydrogen bonding abilities of respective groups. The QTAIM data and above analysis gives the basis to the conclusion that two mesomeric forms of the -COOH moiety (Fig. 2) have their contributions dependent on the substituent and the hydrogen-bonding counterpart. The electron density on both oxygen atoms is, of course, dependent on substituent (SI, Chart S1). Increased EHB for OH · · · X and decreased for H · · · O = C hydrogen bonds suggests the charge is transmitted within the -COOH group.

Fig. 2
figure 2

Mesomeric forms of -COOH group

It is also worth mentioning that in associates the charge at the formamide proton forming hydrogen bond slightly increases (SI, Chart S2) with the increasing electron accepting properties of the substituent. This may be explained by the intra-COOH group conjugation.

In the third series (complexes C) the Eint data shows that more electron-withdrawing substituent lowers the basicity of the carboxylate and thus weakens association. As in previous series the ∇2 ρ is positive exhibiting the hydrogen bonding nature of interaction. Similarly as in series B its value and the value of ρ are almost an order of magnitude lower for weak interaction with CH proton than that with much stronger interacting OH and NH ones. Also, as in B series, the values of R are lower for interaction with CH than that with NH. The slopes for all QTAIM-derived data in series C fitted to the linear function of the substituent constant are negative, which is in agreement with the general influence of the substituent on basicity. The change in EHB of NH · · · O in series A and C is similar (compare the slopes in Tables 3 and 5). This means that these groups behave similarly independently if the interacting ‘X’ atom in NH · · · X hydrogen bond is neutral or has an anionic character as in series C however an increase of interaction is noticed for anions. The geometric and energetic parameters in series C correlate with substituent constants. Also, as before, the correlation is higher for a strong interaction (NH · · · O) than for a weak one (CH · · · O). It was recently shown [18] that the interaction with substituted benzoates is driven by the character of the substituent when associated with urea by two, close in energy NH · · · O hydrogen bonds. Here the NH · · · O hydrogen bond is much stronger (more than six times) than the CH · · · O interaction. The last interaction still follows the trend of the value of substituent constant. It is worth noting that the Eint for complexes in C series is higher than any Eint in B, while the former have comparable Eint to series A but with reversed order of changes in the light of substituent effect. On the other hand the sum of energies of hydrogen bonds in C is smaller than that in B (compare also the Eint values). This is caused by described earlier differences in topology of the complexes and hydrogen bonding patterns. In series C all intermolecular interactions are attractive while in A and B there are also repulsions (Fig. 3 shows secondary interactions). The concept of the secondary interactions [52] as forces that fulfill the palate of intermolecular interactions has been generally accepted by chemists. It says that in hydrogen-bonded complexes weak secondary interactions act diagonally within a cyclic system stabilized by hydrogen bonds. Thus, like groups repel while opposite in character attract each other. Solid and dashed arrows as in Fig. 3 usually depict these interactions.

Fig. 3
figure 3

The attractive and repulsive secondary interactions in studied complexes

The data for the C-O bond lengths in benzoate suggest these are not equivalent as they are in the case of isolated molecules. The NH · · · O hydrogen bonded oxygen atom forms a 0.012 Å longer bond to carbon atom than that of the oxygen entangled by CH · · · O interaction. Although the difference is very small it is reasonable to conclude that the CH · · · O interacting oxygen forms a little bit more double in character bond to carboxylic carbon atom than NH · · · O hydrogen bonded oxygen. This may also be interpreted as the subtle balance between the mesomeric forms present in the complex of carboxylate (Fig. 4). The mentioned data show that the structure on the left hand-side is a little bit more important that the one on the right hand-side.

Fig. 4
figure 4

The mesomerism in carboxylate in hydrogen-bonded complex

To further study the driving forces in complexation of formamide the reactions expressed by equations 13 were used. Table 6 collects the energetic data.

Table 6 Energies [kJ mol-1] (ΔE1−3) for reactions 1–3
$$ \mathrm{Form}\mathbf{A}+\mathrm{anion}\to \mathrm{Form}\mathbf{C}+\mathrm{acid}+\Delta {\mathrm{E}}_1 $$
(1)
$$ \mathrm{Form}\mathbf{B}+\mathrm{anion}\to \mathrm{Form}\mathbf{C}+\mathrm{acid}+\Delta {\mathrm{E}}_2 $$
(2)
$$ \mathrm{Form}\mathbf{A}+\mathrm{anion}\to \mathrm{Form}\mathbf{C}+\mathrm{acid}+\Delta {\mathrm{E}}_3 $$
(3)

The negative values in Table 6 show that reactions are exothermic (ΔE2), mixed depending on substituent (ΔE1), while the ΔE3 values suggest change from form A to B is not preferred. It is worth pointing out that the Eint(B) and Eint(C) (Table 2) change in opposite ways referring to the substituent constant order. Also these is no surprise that form B converts into C readily exchanging two repulsive interactions by two attractive (Fig. 3) although one hydrogen bond (CH · · · O in C) is weak.

Since the acid/benzoate equilibrium may be tuned by pH the simultaneous association by the acid and benzoate at a time may be considered. Thus, to have a better understanding of the substituent effect on association of acid and benzoate with formamide a series of calculations were employed. Figure 5 shows the associates that were investigated. Due to time consuming calculations only three substituents were used, i.e., extreme donor and acceptor and a neutral one.

Fig. 5
figure 5

The association of formamide by the acid and benzoate (D associates)

Table 7 collects the EHB for the complexes shown in Fig. 5. The values of ∇2 ρ and ρ are collected in supplementary material.

Table  7 The hydrogen bond energy (EHB [kJ mol-1]) in complexes of formamide with acids and benzoates D

The data in Table 7 show some interesting features. The cooperativity effect [53] is noticed, i.e.: a) the OH · · · O interaction of acid became much stronger in D complexes than in complex A, b) consequently the NH · · · O interaction in D involving acid became weaker than in form A, c) except for NO2 substituted anion the NH · · · O with benzoate is stronger in D complexes than in form C, d) for the hydrogen bonding with acids and keeping the acid the same the extreme change of EHB is observed for unsubstituted anion (EHB (acid) in D vs. EHB (acid) in A). These observations are depicted in Fig. 6. Negative values in Fig. 6 mean stronger interaction in D complex than in A or C forms. Here only the series A and C were compared to D because the topology of the D series is a superposition of topologies of A and C ones.

Fig. 6
figure 6

The changes in EHB upon complexation of formamide with another counterpart

The said increase in energy of interaction has consequences on intermolecular distances. Table 8 collects the hydrogen-bond lengths in D associates.

Table  8 The hydrogen bond distances in D associates

Interestingly the energetic and geometrical data in D complexes suggest the polarization of the CH (Fig. 7b ) bond rather than charge transfer from nitrogen to oxygen atom (mesomerism, Fig. 7a ). This explains why the weak CH · · · O interaction with anions in D is stronger than that in C series.

Fig. 7
figure 7

Two possible polarizations of the formamide molecule in D associates

The variability of the hydrogen bond lengths and EHB calculated by Espinosa approach are linearly dependent. In Fig. 8 the correlation charts for these dependencies are shown.

Fig. 8
figure 8

The correlation charts for changes in hydrogen bond distance (Δ HB dist.[Å]) and changes in energy of hydrogen bond (Δ EHB [kJ mol-1])

For these linear functions the correlation coefficients are: R = 0.998 (a), 0.990 (b), 0.994 (c), and 0.998 (d). This shows that the Espinosa’s approach [49, 50] is applicable also in cases of other than originally developed for interactions (OH · · · O, NH · · · O, CH · · · F, FH · · · F, FH · · · N) [5457]. This has also been shown for other interactions including intramolecular hydrogen bonding [58] and the negatively charged species as oxyanions [18] or π-H · · · O contacts [59].

Table 9 collects the ZPE and BSSE corrected Eint values for D complexes and the results of the reaction expressed by Eq. 4.

Table  9 The ZPE and BSSE corrected interaction energy (Eint) for D complexes and values of ΔE4
$$ \mathrm{Form}\mathbf{A}+\mathrm{anion}\to \mathrm{Form}\mathbf{C}+\mathrm{acid}+\Delta {\mathrm{E}}_4 $$
(4)

The Eint for D complexes shows that: a) the higher acidity of the acid determine the overall interaction in threesome complexes carrying the same acid but different anion (compare the Eint for the series with NO2-substituted acid and Eint with remaining acids) and b) the order of energy of interaction within the series carrying the same acid is determined by the character of the anion. It is worth keeping in mind that the Eint and ΔE4 in Table 9 are close to each other although those describe various properties. The Eint describes the intermolecular interactions in complexes D while ΔE4 include the electron reorganization and geometry relaxation upon association of an anion with complexes A. The charge at the formamide atoms is higher at nitrogen, oxygen, and carbon atoms than that in referring A-C complexes. The higher electron density is also observed on NH proton (acid side) of the formamide in any complex in D series than that in A. The charge is lowered at protons on the anion side (CH and NH) of the complexes D with respect to the values for associates C (SI). This suggests the charge transfer character of the interactions. These observations, however, are not the main topic of the current publication and will be used in more detailed analysis based on a larger population of complexes.

Conclusions

The case study of formamide complexation with substituted benzoic acids and respective benzoates showed that formamide might be a molecule of choice for studying basic intermolecular interactions also in triple associates in various arrangements. The systematic changes of the substituent from electron-donating to electron-accepting revealed that in the case of acids the effect is transmitted to OH and C = O groups making them a better hydrogen bond donor and a worse hydrogen bond acceptor at a time. Opposite to that the symmetric -CO2 moiety being a weaker base as the substituent changes to electron-accepting is a weaker hydrogen bond acceptor. In the case when both, acid and benzoate, interacts with the formamide molecule the cooperativity is observed. High correlation coefficients for properties used to describe the intermolecular interactions prove that substituent effect should be taken into account in supramolecular complexes also when weak interactions with CH group is considered. The agreement between general substituent effect and the QTAIM-derived data show this theory successfully describes intermolecular interactions of hydrogen bonded complexes of formamide and substituted benzoic acids and benzoates in this study.

Supplement

Supporting information file contains the Cartesians for the optimized structures, their energies and values of the Laplacian and electron density at H-BCP in D complexes and the natural charges charts.