1 Introduction

Corrosion is an electrochemical property which deteriorates industrially important metals and alloys into more stable forms such as hydroxides, oxides, and sulfides through direct reactions with the environmental constituents [1, 2]. This is a severe problem to be addressed by industries and educational sectors because it causes enormous economic losses all over the world [3,4,5]. According to NACE 2016 [3], the economic losses due to corrosion have become about 2.5 trillion US dollars. Among the various available methods, employment of inhibitors is most popular and cost effective approach of corrosion control due to their economic synthesis, facile feasibility, and high efficiency [6,7,8]. These inhibitors form protective film over metallic surface that separates metal from aggressive corrosive solution, and thereby inhibit corrosion [9]. The high adsorption and inhibition ability of the organic inhibitors is lying on the fact that they can easily transfer as well as accept electrons from the metallic d-orbitals and offer strong bonding with them [10,11,12]. Although, the use of organic inhibitors is one of the most ease, effective and economic methods. However, because of increasing awareness of “green chemistry” in the field of corrosion science and technology throughout the world, there is need to develop some environmental benign corrosion inhibitors [13,14,15]. “Green chemistry” is a series of principles that reduces the utilization or production of toxic substances in manufacture, design, and application of chemical products [13,14,15]. Towards the development of “green corrosion inhibitors,” several attempts are being made using principals of “green chemistry” such as chemical synthesis involving multicomponent reactions (MCRs), particularly in association with ultrasound and microwave irradiation [14, 16,17,18], chemical medicines [19], and ionic liquids [20,21,22].

Most of the organic inhibitors are mostly non-biodegradable and highly toxic for human being as well as for environment [23,24,25]. The plant extracts derived from different parts of plants such as leaf, stem, root, bark, fruit, peel extract have been extensively used as effective corrosion inhibitors for several metals and alloys in various electrolytic media due to their cost effective, biodegradable, renewable, reliable, versatile, biocompatible, simplicity, and convenient to handle properties [26, 27]. The application of leaf extract as corrosion inhibitor is an environmental friendly, cost effective and green approach for mitigating metallic corrosion, as most of active phytochemicals are water-soluble plant metabolites such as organic acids, phenolic compounds, quinone’s, alkaloids, flavonoids, terpenoids and catechins, and co-enzymes, proteins, amino acids, vitamins, and polysaccharides [28]. Generally, the phytochemicals contain several heteroatoms such as nitrogen, oxygen, and sulfur in form of polar fictional groups and heterocyclic rings through which they can adsorb on metal surface and thereby inhibit corrosion [29, 30].

2 Experimental Procedures

2.1 Materials

2.1.1 Preparation of Holoptelea integrifolia Leaf Extract

The leaves of H. integrifolia were collected from the agricultural field of Varanasi district, Utter Pradesh, India, in the month of September. The methanolic extract of the H. integrifolia was prepared as described earlier by Sutar et al. [31]. The H. integrifolia leaves powder was charged into the thimble of a Soxhlet apparatus and extracted by methanol. The exhaustive extraction is characterized by appearance of colorless solvent in the siphon tube of Soxhlet apparatus. The methanolic fraction was then heated on water at 50 °C in order to obtain semisolid mass of methanolic extract. This extract was stored in airtight refrigerator below 10 °C.

2.1.2 Electrodes and Reagents

Mild steel specimens having C (0.076%), Si (0.026%), Mn (0.192%), P (0.012%), Al (0.023%), Cr (0.050%), and Fe (balance) were used as test material for electrochemical and surface analytical measurements in test solution of 1 M HCl. The specimens were abraded with emery paper of different grades in order to clean the metallic surface followed by their washing with double deionized water, ultrasonic cleaning in ethanol and finally degreasing with acetone. The cleaned metallic specimens were dried under hot air blower. Test solution 1 M HCl was prepared by the dilution of 37% HCl purchased from MERCK in double distilled water.

2.2 Methods

2.2.1 Experimental Methods

The inhibition tendency of the H. integrifolia leaf extract (HILE) was demonstrated using weight loss and electrochemical measurements at 100–400 mg/L concentration, while for the atomic force (AFM) and scanning electron microscopy (SEM) studies 400 mg/L (optimum concentration) was chosen. The weight loss experiment was demonstrated at several concentrations of H. integrifolia extract (HILE) ranging from 100 to 400 mg/L. Similarly, instrumentation and methods for surface and electrochemical studies were followed the same as reported previously [32, 33]. Gamry Potentiostat/Galvanostat with Model G-300 version, Ziess Evo 50 XVP and NT-MDT multimode AFM, Russia containing 111 controlled by solvers scanning probe instruments were used for electrochemical (EIS, Tafel), SEM and AFM analyses, respectively. The preparation of the test specimens and experimental procedure for surface, electrochemical, and weigh loss studies were similar as that have been reported in our earlier studies [32, 33]. Equations (1) to (3) below were employed for evaluation of the inhibition efficiency (η%) at the several concentrations of HILE [32, 33]:

$$\eta \% =\frac{{{w_0} - {w_{\text{i}}}}}{{{w_0}}} \times 100$$
(1)
$$\eta \% =\frac{{i_{{{\text{corr}}}}^{0} - i_{{{\text{corr}}}}^{{\text{i}}}}}{{i_{{{\text{corr}}}}^{0}}} \times 100$$
(2)
$$\eta \% =\frac{{R_{{{\text{ct}}}}^{{\text{i}}} - R_{{{\text{ct}}}}^{0}}}{{R_{{{\text{ct}}}}^{{\text{i}}}}} \times 100$$
(3)

where w0 and wi denote the values of mild steel specimens weight loss after 3-h immersion time without and with leaf extract (HILE), correspondingly. \(R_{{{\text{ct}}}}^{{\text{i}}}\) and \(R_{{{\text{ct}}}}^{0}\) present the charge transfer values for inhibited by H. integrifolia leaf extract (HILE) and non-inhibited mild steel specimens, respectively, whereas \(i_{{{\text{corr}}}}^{{\text{i}}}\) and \(i_{{{\text{corr}}}}^{{\text{0}}}\) manifest the current densities values of inhibited and uninhibited metallic specimens, respectively.

2.2.2 DFT Calculations

The H. integrifolia leaf extract (HILE) contains several phyto-constituents/phytochemicals that have complex structures with π- and non-bonding electrons by them they can easily adsorb on the metallic surfaces and can protect their corrosion. In the present study, density functional theory (DFT) method has undertaken to describe the adsorption nature of several phytochemicals present in the extract of H. integrifolia as described earlier in our research group [34, 35]. The DFT study of some selected phytochemicals was performed using highly sophisticated Gaussian 09 software package. The frontier molecular pictures of the active phytochemicals, namely β-amyrin, friedelin, holoptelin-A, holoptelin-B, 3-epifriedelinol, and stigmasterol, were obtained out at the B3LYP/6-31+G(d,p) level of DFT theory [36]. Based on the values of frontier molecular orbital (FMO) energies (EHOMO and ELUMO), various relative parameters were derived using Eq. (4) to (6) [37, 38]:

$$\Delta E={E_{{\text{LUMO}}}} - {E_{{\text{HOMO}}}}$$
(4)
$$\chi = - \frac{1}{2}\left( {{E_{{\text{LUMO}}}}+{E_{{\text{HOMO}}}}} \right)$$
(5)
$$\Delta N=\frac{{{\chi _{{\text{Fe}}}} - {\chi _{{\text{inh}}}}}}{{2\left( {{\eta _{{\text{Fe}}}}+{\eta _{{\text{inh}}}}} \right)}}$$
(6)

In the above equations, EHOMO and ELUMO are the energies of FMOs; χ represents the electronegativity; η (it should not be confused with η% used for percentage inhibition efficiency) is the global hardness and ∆N is the fraction of electron transfer. For calculation of values of χ, a value of 0.257 Hartree was employed for electronegativity of the atomic Fe as proposed by the Pearson’s electronegativity scale [39], whereas the hardness (η) of bulk Fe was presumed to be equal to 0 Hartree.

3 Results and Discussion

3.1 Gravimetric Measurements

3.1.1 Effect of Extract Concentration

Table 1 represents the protection ability of HILE on mild steel acidic corrosion and various results derived using weight loss experiments after 3-h immersion time 308 K temperature. Inspection of the results showed that the inhibition ability increases with HILE concentration. The highest inhibition efficiency of 94.34% was obtained at 500 mg/L concentration. However, it is also clear from the results that increased concentration from 400 to 500 mg/L did not cause any significant change in the inhibition performance which indicates that 400 mg/L is the optimal concentration. The high inhibition efficiency of HILE is attributed to the presence of several phytochemicals such as terpenoids, steroids, carbohydrates, tannins, proteins, flavones, flavonoids, alkaloids in the methanolic extract of the H. integrifolia leaves [34, 35]. In addition to these phytochemicals, H. integrifolia extract also contains β-amyrin, friedelin, holoptelin-A, holoptelin-B, 3-epifriedelinol, stigmasterol, etc. [34, 35]. These compounds possess several heteroatoms such as O and N and large carbon skeleton through which they can effectively adsorb over the metallic surface. These adsorbed compounds repelled the aqueous molecules form the surface of the metal and thereby inhibit corrosion. Obviously, increased inhibition efficiency is a consequence of the increase in the surface coverage on enhancing the H. integrifolia concentrations.

Table 1 The weight loss results obtained for mild steel in 1 M HCl containing different concentrations of H. integrifolia leaf extract

3.1.2 Effect of Temperature

Weight loss experiment was also carried out at different temperatures (308–338 K) in order to study the influence of temperature on the corrosion inhibition effectiveness of the H. integrifolia leaves extract. Results showed that inhibitive property of HILE decreases from 93.91 to 71.78% on increasing solution temperature from 308 to 338 K. This observation is mainly attributed to increased kinetic energy of the phytochemicals/inhibitors present in the extract, at elevated temperature which in turn decreases attraction forces between metal and inhibitor [40, 41]. Moreover, increase in temperature can also cause desorption and molecular rearrangement along with rapid etching and molecular decomposition of the phytochemicals. All these factors adversely affect the inhibition efficiency [40, 41]. The influence of temperature can be best described by Arrhenius equation [42,43,44]:

$$\log ({C_{\text{R}}})=\frac{{ - {E_{\text{a}}}}}{{2.303RT}}+\log A$$
(7)

In the Arrhenius equation, CR denotes the corrosion rate (mg/cm2/h); R represents the universal gas constant, and T presents the absolute temperature. A is the Arrhenius pre-exponential factor, and Ea is the activation energy for corrosion process. Arrhenius plots for mild steel dissolution in 1 M HCl are shown in Fig. 1, which represents straight lines between log CR and 1/T. The values of activation energies for both metallic specimens were derived from the slope (\({{ - \Delta {E_{\text{a}}}} \mathord{\left/ {\vphantom {{ - \Delta {E_{\text{a}}}} {2.303R}}} \right. \kern-0pt} {2.303R}}\)) of Arrhenius plots. The values of Ea were 28.48 and 70.44 kJ/mol for uninhibited and inhibited specimens, respectively. Increased value of Ea for inhibited specimen indicates that metallic dissolution has become difficult owing to formation of energy barrier for corrosion taking place [45, 46].

Fig. 1
figure 1

Arrhenius plots for the corrosion of mild steel in 1 M HCl without and with the inhibitor

3.2 Adsorption Isotherm

In order to describe the adsorption behavior of HILE on mild steel surface, several isotherms including Temkin, Frumkin, Freundlich, and Langmuir isotherms were tested among which Langmuir adsorption isotherm showed the best fit. The values of regression coefficients (R2) were used as selection criterion for the best isotherm. It is important to mention that the value of R2 was most close to unity for Langmuir isotherm (R2 = 0.9982; Fig. 2); however, value of slope was much deviated from ideal Langmuir adsorption isotherm behavior as its value is much apart from one. This deviation from ideal Langmuir behavior is attributed to intermolecular interactions between adsorbed inhibitor molecules and change in the metallic surface energy that are not considered during the formulation of Langmuir isotherm formula [46]. In best way, the Langmuir isotherm is represented as follows:

Fig. 2
figure 2

Langmuir adsorption isotherm plots for the adsorption of HILE on mild steel surface in 1 M HCl

$${K_{{\text{ads}}}}C=\frac{\theta }{{1 - \theta }}$$
(8)

In the Langmuir isotherm, Kads is the Langmuir constant, commonly called as adsorption–desorption constant; C is the concentration of inhibitor, and θ is the surface coverage. The Kads values for HILE at different temperature were calculated from the intercept of Langmuir adsorption isotherm, through which values of standard Gibb’s free energy (\(\Delta G_{{{\text{ads}}}}^{0}\)) were derived using the following equation [46]:

$$\Delta G_{{{\text{ads}}}}^{0}= - RT\ln \left( {55.5{K_{{\text{ads}}}}} \right)$$
(9)

In above equation, numerical value 55.5 denotes the aqueous (water) concentration in acid solution (1 M HCl). The calculated value of Kads and \(\Delta G_{{{\text{ads}}}}^{0}\) is shown in Table 2. Generally, a high value of Kads manifests strong interaction between inhibitor and the surface of metals. In our present study, values of Kads are of 104 orders which indicate that HILE has strong propensity of adsorption over the metallic surfaces. Results showed that values of \(\Delta G_{{{\text{ads}}}}^{0}\) range between − 35.45 and − 33.84 kJ/mol, indicating that adsorption of HILE on the metallic surface involves mixed mode of adsorption [47].

Table 2 Values of \(- \Delta G_{{{\text{ads}}}}^{0}\) and Kads for mild steel in 1 M HCl at different temperatures

3.3 Electrochemical Studies

3.3.1 Tafel Polarization

The Tafel polarization curves for inhibited and uninhibited mild steel specimens are shown in Fig. 3, and several electrochemical polarization parameters including anodic and cathodic Tafel slopes (βa, and βc), corrosion potential (Ecorr), corrosion current density (icorr), and corresponding percentage inhibition efficiency are given in Table 3. Inspection of the results showed that in the presence of HILE, values of corrosion current decreased significantly without changing the shape of polarization curves which suggests that HILE inhibits corrosion by blocking the active sites present on the metallic surface without changing the mechanism of corrosion [48]. The results further showed that maximum displacement in the Ecorr value for inhibited specimen with respect to uninhibited specimen was 68 mV, which indicates that HILE acts as mixed type inhibitor. The values of cathodic slopes (βc) much deviated as compared to the values of anodic slope (βa), which suggested that investigated leaves extract behaves as mixed type but predominantly cathodic-type inhibitor.

Fig. 3
figure 3

Potentiodynamic polarization curves for mild steel corrosion in 1 M HCl in the absence and presence of different concentrations of the HILE

Table 3 Tafel polarization parameters for mild steel in 1 M HCl solution in absence and at different concentrations of H. integrifolia leaf extract

3.3.2 Electrochemical Impedance Spectroscopy (EIS) Study

The fitted Nyquist curves in the absence and presence of HILE are presented in Fig. 4. Figure 5 represents the Nyquist plots for corrosion of testing specimens in 1 M hydrochloric acid solution examination of which shows that diameter of the Nyquist plots is much higher in the presence of inhibitor than in their absence. Moreover, the diameter of the Nyquist plots increases with increasing inhibitor concentration. Generally, during interpretation of Nyquist plots difference between the real impedances at high and low lower frequencies is regarded as charge transfer resistance (Rct). However, it is obvious that metal corroding acid solution particularly in the presence of inhibitor is associated with several other kinds of resistances such as resistance due to accumulation of corrosion products i.e., accumulation resistance (Ra), resistance due to inhibitor film i.e., film resistance, (Rf), and diffusion layer resistance (Rd). Therefore, in present case, polarization resistance (Rp = Ra + Rf + Rd) was undertaken rather than charge transfer resistance (Rct). All electrochemical data were examined by employing a suitable equivalent circuit described earlier [49,50,51]. For metal dissolution under acidic environments, better approximation has been observed when capacitance is replaced by constant phase element (CPE). The impedance of the constant phase element (CPE) can be represented as follows:

Fig. 4
figure 4

Fitted Nyquist plots of impedance spectra of mild steel in 1 M HCl in the absence and presence of HILE

Fig. 5
figure 5

Nyquist plot for mild steel in 1 M HCl in the absence and presence of different concentrations of HILE

$${Z_{{\text{CPE}}}}=\left( {\frac{1}{{{Y_0}}}} \right){\left[ {{{(j\omega )}^n}} \right]^{ - 1}}$$
(10)

In above equation, Y0 is the CPE constant'; j represents the imaginary number; ω denotes the angular frequency, and n is the phase shift which measures of surface homogeneity. In general, a higher value of phase shift suggests high surface smoothness. In addition to the surface roughness, phase shift also gives information about the nature of CPE as n = 0 represents resistor, n = 1 represents capacitance, n = − 1 represents inductance and n = 0.5 signifies Warburg impedance. EIS results depicted in Table 4 revealed that values of n in present case vary in between 0.757 and 0.827 indicating that CPE behaves as capacitances. Deviation from perfect capacitive performance (deviation from n = 1) is attributed to surface inhomogeneity. The double layer capacitance (Cdl) was derived through the following relationship:

Table 4 EIS parameters obtained for mild steel in 1 M HCl in the absence and presence of different concentrations of H. integrifolia leaf extract
$${C_{{\text{dl}}}}={Y_0}{\left( {{\omega _{\hbox{max} }}} \right)^{n - 1}}$$
(11)

where ωmax represents that frequency at which the imaginary part of impedance has acquired the maximum (rad/s) value. From the results (Table 4), it is observed that values of Rp increase while values of Cdl decrease on increasing the concentration of inhibitor. This observation indicates that studied inhibitor inhibits metallic corrosion by adsorbing on the metal (mild steel)/electrolyte (1 M HCl) interfaces [52].

The adsorption behavior of HILE on the metal/electrolyte interfaces was further investigated by Bode plots (Fig. 6), plotted for inhibited and uninhibited mild steel specimens. As stated earlier, a perfect capacitor is defined by the values of slopes and phase angles (α0) − 1° and − 90°, respectively. However, in present case, Bode plots between log |Z| versus log f represent values of slopes and phase angle nearly − 0.84° and − 70°, respectively. This type deviation again attributed to surface inhomogeneity resulted due to structural and interfacial origin [53, 54]. However, in the presence of HILE (Fig. 6), values of phase angle have enhanced indicating significant improvement in the surface smoothness due to development of protective film by inhibitor over metallic surface which separates metal (mild steel) surfaces from aggressive acid solution and thereby protects from corrosion [53, 54].

Fig. 6
figure 6

Bode plots for mild steel in 1 M HCl in the absence and presence of different concentrations of HILE

3.4 Surface Analyses

3.4.1 SEM Study

SEM micrographs of inhibited and uninhibited mild steel specimens after 3-h corrosion in 1 M HCl are shown in Fig. 7. The metallic surface was highly damaged and corroded for uninhibited mild steel specimen (Fig. 7a), which could be as a consequence of free acid attack of metallic surface in the absence of inhibitor. However, in the presence of optimum concentration of HILE (Fig. 7b), the metallic surface became significantly smooth. This finding suggests that HILE inhibits the corrosion of mild steel because of its presence in the aggressive acid solution.

Fig. 7
figure 7

Scanning electron microscope (SEM) micrographs of mild steel surface after 3-h immersion time in 1 M hydrochloric acid solution; without (a) and with (b) optimum concentration of HILE

3.4.2 AFM Study

The surface morphologies of mild steel specimens under consideration were also investigated using AFM method in order to support the results of other experimental methods. AFM micrographs of mild steel corroded for 3-h immersion time in 1 M HCl with and without inhibitors are shown in Fig. 8. Inspection of Fig. 8 showed that metal surface was highly corroded resulted in very high surface roughness. Very high corrosion rate by aggressive acidic attack makes the surface very rough that have average surface roughness of 392 nm. AFM micrographs inhibited by HILE at its 400 mg/L concentration are relatively smoother and less damaged owing to the adsorption of phytochemicals over the metallic surface. The estimated surface roughness (average) was 124 nm in the presence of HILE.

Fig. 8
figure 8

Atomic force microscope (AFM) micrographs of mild steel surface after 3-h immersion time in 1 M hydrochloric acid solution; without (a) and with (b) optimum concentration of HILE

3.5 Quantum Chemical Calculations

The frontier molecular electron distribution of the active phytochemicals namely, β-amyrin, friedelin, holoptelin-A, holoptelin-B, 3-epifriedelinol, and stigmasterol of the H. integrifolia leaf extract is shown in Fig. 9 and several quantum chemical calculation indices are presented in Table 5. Generally, EHOMO represents the electron donating tendency of a chemical species to the accepting molecule, while ELUMO represents the electron accepting property of the molecule from donor molecule [53, 54]. From the parameters represented in Table 5, it is seen that friedelin has highest, while 3-epifriedelinol has lowest value of EHOMO, indicating that friedelin has strongest tendency, whereas 3-epifriedelinol has lowest electron donating ability among the investigated active components. The values of ELUMO did not give any regular trends in the present study. The energy band gap, ΔE (ELUMO − EHOMO), is an important and commonly used reactivity parameter, which describes the relative affinities of several components of H. integrifolia leaf extract towards metallic surface. In general, lower value of ΔE is allied with high chemical reactivity and thereby high inhibition performance. In present case, β-amyrin is associated with lowest value of ΔE, while 3-epifriedelinol is associated with highest value of ΔE. This finding suggests that β-amyrin has maximum and 3-epifriedelinol has lowest chemical reactivity. Values of global hardness (η) and softness (σ) were also derived and given in Table 5. A low value of hardness and high value softness associated with high chemical reactivity and therefore higher inhibition efficiency. Among the investigated components, β-amyrin is associated with lowest value of hardness and highest value of softness suggesting that it is the most active component of the H. integrifolia leaf extract, while converse is also true for 3-epifriedelinol. Values of absolute electronegativity (χ) did not show any regular trends. However, fraction of electron transfer (ΔN) is maximum for β-amyrin and lowest for 3-epifriedelinol suggesting that latter has highest electron donating ability to the metallic surface, while former has lowest. Dipole moment (µ) is another important parameter which can be used to describe relative affinity of the studied phytochemicals towards metallic surface. Molecules having high value of dipole moment are associated with their high polarizability therefore high surface area. Therefore, it can be concluded that the component which has maximum dipole moment is most effective component. From results depicted in Table 5, it can be seen that β-amyrin is the most active component among the investigated phytochemicals as it is associated with maximum value of dipole moment.

Fig. 9
figure 9

Optimized molecular structures, highest occupied and lowest unoccupied frontier molecular orbital pictures of active phytochemicals present in leaves extract of H. integrifolia

Table 5 Quantum chemical calculation parameters for different active constituents of the H. integrifolia leaf extract

4 Conclusions

The inhibition effect of H. integrifolia leaf extract has been investigated in the present investigation using experimental and DFT approaches. Results of the present study led to derivation of following conclusions:

  1. 1.

    H. integrifolia leaf extract acts as green and efficient inhibitor for mild steel corrosion in 1 M hydrochloric acid and its inhibition performance increases with increasing its concentration. It showed highest efficiency of 94.34% at 400 mg/L concentration.

  2. 2.

    Adsorption of H. integrifolia leaf extract on metallic surface obeyed the Langmuir adsorption isotherm.

  3. 3.

    Tafel polarization study revealed that HILE acts as mixed inhibitor and predominantly shows cathodic behavior.

  4. 4.

    EIS study suggests that HILE inhibits corrosion by adsorbing on the metal/electrolyte interfaces.

  5. 5.

    Adsorption of HILE on metal surface was further supported by SEM and AFM analysis where significant surface smoothness was obtained in the presence of inhibitor.

  6. 6.

    DFT study provides good insight about inhibition performance of several active phytochemicals present in the H. integrifolia leaf extract. The quantum chemical calculation results showed that β-amyrin is the most active phytochemical present in the leaves extract.