1 Introduction

One of the most serious problems the modern society facing is the corrosion of metals used in different fields. A wide range of industries affected by corrosion include oil production, oil refining, chemical and petrochemical manufacture, fertilizer production, power stations, and civil engineering structures involving buildings and bridges [1].The study of corrosion of mild steel in acid media has become important since sulfuric acid and hydrochloric acid are the medium generally used for industrial cleaning and acid descaling [2, 3].Corrosion process can be significantly suppressed by the incorporation of certain substances into the environment, which act as inhibitors. Organic compounds, particularly those containing heterocyclic rings, polar functional groups with N, O, and/or S atoms, received extensive application in this regard [411]. The inhibitors act at the interface between the metal and aqueous aggressive solution, and their interaction with the corroding metal surface via adsorption may either modify the mechanism of charge transfer reaction at the interface or reduce the surface area available for anodic and cathodic reactions [12].

Among various heterocyclic nitrogen-containing organic compounds, 1,2,4-triazole and its derivatives constitute one of the most biologically active classes of compounds having a wide spectrum of activities such as industrial, agro-chemical, and pharmaceutical applications [1317]. In addition, substituted triazoles, particularly Schiff’s bases, have been recently studied in considerable detail as effective corrosion inhibitors for mild steel in acid media [1820]. Besides corrosion inhibitors, Schiff’s bases are used as dyes, pigments, and catalysts for the activation of small molecules and other biological activities [2125]. Structurally, a Schiff’s base is a nitrogen analogue of an aldehyde or ketone, in which the carbonyl group (C=O) has been replaced by an imine (azomethine) group. They are considered as good corrosion inhibitors due to the presence of the [–C=N–] group, electron cloud on the aromatic ring, the electronegative nitrogen, and the oxygen/sulfur atoms in the molecule [2628].The activity of Schiff’s base molecules on metal surface is by the formation of thin and persistent adsorbed film, which decreases the metal corrosion by slowing down the anodic/cathodic reaction or both [29].Due to the importance of corrosion prevention, it is intended to study the inhibition behavior of a 1,2,4-triazole Schiff’s base having biological significance. Therefore, the objective of the present study is to synthesize and investigate the corrosion inhibition behavior of 1,2,4-triazole-based Schiff’s base (4-(4-hydroxybenzylideneamino)-4H-1,2,4-triazole-3,5-diyl)dimethanol (HATD) for mild steel in H2SO4 at three different temperatures. The effect of inhibitor concentration, acid concentration, and temperature on inhibition efficiency has also been monitored.

2 Experimental

2.1 Materials

The mild steel sample had the following composition (at.%): C (0.2%), Mn (1%), P (0.03%), S (0.02%), and Fe (98.75%). For electrochemical studies, mild steel coupons of 1 cm2 area were exposed in each test. The samples were polished using different grades of emery papers and degreased by washing with dilute HCl and acetone, and then washed with distilled water before the measurements are taken.

2.2 Electrolyte

The corrosive electrolyte medium was prepared by dilution of analytical grade, H2SO4 (E. Merck). The concentration range of the synthesized Schiff’s base used for the study is from 100 to 400 ppm. All solutions were prepared using double-distilled water.

2.3 Inhibitor

1,2,4-Triazole precursor, (4-amino-4H-1,2,4-triazole-3,5-diyl)dimethanol (ATD) is prepared by the condensation of glycolic acid with hydrazine hydrate. Hydrazine monohydrate (E. Merck) (0.75 mol) was added drop wise at 0 °C to 70% aqueous glycolic acid (E. Merck) (0.50 mol). The resulting solution was refluxed at 120 °C for 6 h. Then the reflux condenser was replaced with a downward condenser, and the reaction mixture was heated at 160 °C for a further 18 h allowing excess hydrazine hydrate and water to distil off. After cooling, the yellowish crystalline solid was obtained which is recrystallized from water to give analytically pure ATD [30]. The Schiff’s base, HATD, was prepared by the condensation of ATD with 4-hydroxybenzaldehyde (E. Merck) (1:1 molar ratio) using alcohol as the solvent.

2.4 Weight Loss Measurements

The weight loss method is important in monitoring inhibition efficiency because of its simplicity and reliability. Experiments were carried out in a 250-ml beaker containing test solution under total immersion condition at 303 K. The pre-weighed mild steel samples of 1.8 × 2.1 cm2 area were exposed to 0.5, 1, 1.5, and 2 N H2SO4 solutions in the absence and presence of different concentrations of HATD. After exposure, the specimens were washed initially under running tap water, to remove loosely adhering corrosion products and then cleaned with 15% HCl followed by acetone. From the weight loss in each measurement, the corrosion rate was calculated in milligram per centimeter square per hour (mg/cm2 h). Experiments were repeated minimum four times to ascertain consistency. Whenever the variations are more than 1%, the data were confirmed by further repetition. The corrosion rate (C.R.), surface coverage (θ), and inhibition efficiency (%IE) were calculated using the following relation [31]:

$${\text{C}}.{\text{R}} = \frac{W}{A \cdot t},$$
(1)

where W is the weight loss (mg), A is the surface area (cm2), and t is the time (h).

$$\theta = \frac{{W_{0} - W}}{{W_{0} }},$$
(2)
$$\% {\text{IE}} = \frac{{W_{0} - W}}{{W_{0} }} \times 100,$$
(3)

where W 0 and W are the weight losses in uninhibited and inhibited solutions, respectively. Effects of inhibitor concentration and acid concentration on inhibition efficiency have been investigated by the weight loss measurements.

2.5 Electrochemical Studies

Electrochemical tests were carried out in a conventional three-electrode corrosion cell with platinum as the auxiliary electrode and saturated calomel electrode (SCE) as the reference electrode. The working electrode was first immersed in the test solution, and, after establishing a steady-state open-circuit potential (OCP), the electrochemical measurements were carried out in a Gill AC computer-controlled electrochemical workstation (ACM, UK, model no: 1475). The polarization curves were obtained in the potential range from −250 to +250 mV with respect to SCE at a sweep rate of 60 mV/min. The inhibition efficiency can be calculated from the corrosion current density as [32]

$${\text{IE}}\left( \% \right) = \frac{{i_{\text{corr}} - i_{\text{corr}}^{*} }}{{i_{\text{corr}} }} \times 100,$$
(4)

where i corr and \(i_{\text{corr}}^{*}\) represent the corrosion current density values without and with inhibitor, respectively. Similar experimental procedure is used for electrochemical impedance spectroscopy (EIS) technique. The studies were carried out at OCP in the frequency range of 0.1–10,000 Hz using 10 mV peak for peak voltage excitation. Inhibition efficiency is estimated using the following relation [33],

$${\text{IE}}\left( \% \right) = \frac{{R_{\text{ct}}^{*} - R_{\text{ct}} }}{{R_{\text{ct}}^{*} }} \times 100,$$
(5)

where R ct and \(R_{\text{ct}}^{*}\) are the charge transfer resistance in the absence and presence of inhibitors, respectively. For electrochemical studies, 1 cm2 area of the electrode was exposed in each experiment.

2.6 Surface Morphological Studies

Surface analysis was carried out to monitor the changes that occurred on mild steel surface due to corrosion process with and without the addition of inhibitor. Metal samples were immersed in 0.5 N H2SO4 solution for 3 h in the absence and presence of 400 ppm HATD. A preliminary analysis is carried out by a stereomicroscope (LeicaM80 model). To confirm the results obtained from microscopic technique, SEM images were taken by a scanning electron microscope model SU6600 (Serial No: HI-2102-0003) with an accelerating voltage of 12.0 kV at 250× magnification.

2.7 Computational Studies

Complete geometry optimization of the inhibitor molecule, HATD, was performed using density functional theory (DFT) with Becks three-parameter exchange functional along with Lee–Yang–Parr non-local correlation functional (B3LYP) with 6-31G* basis set using the Gaussian 03 programme package.

3 Results and Discussions

3.1 Weight Loss Analysis

The weight loss in the mild steel samples after exposure in corrosive electrolyte medium both in the absence and presence of HATD was examined. The values of corrosion rate and inhibition efficiency are listed in Table 1. From the table, it is clear that the corrosion rate of mild steel has been considerably decreased by the addition of HATD and there is a gradual decrease in corrosion rate by increasing the inhibitor concentration. Correspondingly, an increase in inhibition efficiency is observed with the concentration of inhibitor. When the inhibition performance was monitored in four different concentrations of H2SO4, it is observed that the corrosion rate of both in the absence and presence of inhibitor has been increased with the increase in acid concentration. However, the inhibitor HATD showed its best performance in 0.5 N H2SO4. Also it is noted that the inhibition efficiency decreases with increase in acid concentration.

Table 1 Data obtained from the weight loss analysis of mild steel samples in the absence and presence of HATD at different concentrations of H2SO4 solutions

3.2 Electrochemical Studies

Due to high inhibition efficiency of HATD in 0.5 N H2SO4, it is indented to study the electrochemical behavior and temperature response of mild steel corrosion in this concentration. Polarization measurements are commonly accepted to provide the relevant information about the kinetics of electrochemical corrosion parameters. Generally, the changes observed in the E corr values of Tafel plots are used to classify inhibitors as anodic, cathodic, or mixed type. Cathodic and anodic polarization curves recorded for corrosion of mild steel in 0.5 N H2SO4 in the absence and presence of HATD at different temperatures are given in Fig. 1a–c. The addition of HATD caused a very small shift in E corr value, indicating the mixed type behavior of the inhibitor [3436]. Polarization parameters such as corrosion potential (E corr), anodic and cathodic Tafel slopes (β a and β c), and corrosion current density (i corr) are provided in Table 2. In acidic solutions, the anodic corrosion reaction is the dissolution of metal ions to corrosive medium and cathodic reaction is the evolution of hydrogen gas by the discharge of hydrogen ions. The addition of inhibitor may affect the anodic or cathodic, or both the reactions. Figure 1a–c reveals that the presence of HATD shifts both the anodic and cathodic curves to lower current densities (i corr) which indicates the suppressed anodic metal dissolution and cathodic hydrogen evolution in the presence of HATD. Also with the increase in the concentration of inhibitor, i corr value decreased and hence percentage inhibition efficiency has been increased as shown in Table 2. Almost parallel anodic and cathodic curves in the absence and presence of various concentrations of HATD suggest that the presence of inhibitor molecules prevents the mild steel corrosion through merely blocking the reaction sites on the surface without affecting the mechanism of cathodic hydrogen evolution reaction and anodic metal dissolution [37].

Fig. 1
figure 1

Potentiodynamic polarization curves for mild steel in 0.5 N H2SO4 in the absence and presence of HATD at temperature a 303 K, b 308 K and c 313 K

Table 2 Potentiodynamic polarization parameters for mild steel in 0.5 N H2SO4 in the absence and presence of different concentrations of HATD

The modification of electrochemical process at metal/solution interface in the presence of inhibitors is better defined by Nyquist plots obtained from EIS analysis. EIS have proven to be a very useful and reliable method as it does not disturb the double layer at metal solution interface. Impedance parameters obtained for mild steel in 0.5 N H2SO4 in the absence and presence of different concentrations of HATD at temperatures 303, 308, and 313 K are presented in Table 3, and corresponding Nyquist plots are shown in Fig. 2a–c. As shown in Fig. 2a–c, the impedance loops do not yield perfect semicircles as expected from EIS theory and the deviation has been attributed to surface roughness and inhomogeneity of electrode surfaces [38, 39]. But it is clear from the plots that the impedance response of mild steel in H2SO4 solution was significantly altered after the addition of inhibitor molecule. The diameter of capacitive loops increases with increase in inhibitor concentration which can be related to the increase in surface coverage of inhibitor on metal surface by adsorption process [40]. A slightly depressed single semicircle of Nyquist plots implies that corrosion of mild steel in 0.5 N H2SO4 solution is mainly controlled by a single charge transfer process [4143]. The value of charge transfer resistance (R ct) increases and corrosion current density (i corr) decreases with increase in concentration of HATD which proves the formation of protective film on mild steel surface in the presence inhibitor.

Table 3 Electrochemical impedance parameters for mild steel in 0.5 N H2SO4 in the absence and presence of different concentration of HATD
Fig. 2
figure 2

Nyquist plot for mild steel for mild steel in 0.5 N H2SO4 in the absence and presence of HATD at temperature a 303 K, b 308 K and c 313 K

3.3 Effect of Temperature

To evaluate the effect of temperature on inhibition efficiency, polarization and impedance studies were carried out at three different temperatures (303,308 and 313 K) and corresponding plots are shown in Figs. 1a–c and 2a–c. The inhibition efficiency values calculated from the evaluation of Tafel and Nyquist plots are listed in Tables 2 and 3, respectively. A comparison of inhibition efficiency values obtained at different temperatures is graphically represented in Fig. 3. The figure reveals that inhibition efficiency decreases with increase in temperature. The decrease in inhibition efficiency with increase in temperature is attributed to desorption of inhibitor molecules from metal which in turn increases the surface area available for corrosive environment to contact with metal [44]. The effect of temperature on corrosion rate can be represented by Arrhenius equation as [45],

$$\log \left( {{\text{C}}.{\text{R}} .} \right) = \log A - \frac{{E_{\text{a}} }}{2.303RT},$$
(6)

where E a is the apparent activation energy, T is the absolute temperature, A is the Arrhenius pre-exponential constant, and R is the gas constant. Figure 4 shows linear plots of log (C.R.) against 1/T for mild steel in 0.5 N H2SO4, which indicates that corrosion process follows the Arrhenius equation. The values of activation energy E a calculated from the slope of Arrhenius plot are given in Table 4. It is seen that the value of E a for inhibited solution is greater than that for uninhibited solution and it increases with the increase in concentration of inhibitor. The increased value of E a in inhibited solution indicates the formation of high-energy barrier against the corrosion process due to the formation of adsorbed film on mild steel surface. The adsorbed film protects mild steel from acid attack by preventing charge/mass transfer reaction occurring on the surface [4649]. Other kinetic parameters such as enthalpy of adsorption (ΔH) and entropy of adsorption (ΔS) were obtained from transition state equation

$${\text{C}}.{\text{R}}. = \frac{RT}{Nh}{\text{e}}^{{\left( {\frac{\nabla S}{R}} \right)}} {\text{e}}^{{\left( {\frac{ - \nabla H}{ RT}} \right)}} ,$$
(7)

where N is the Avogadro number, h is the Planck’s constant, R is the universal gas constant, and T is the absolute temperature. As shown in Fig. 5, the plot of log (C.R./T) against (1/T) in the absence and presence of HATD gave straight line, where the slope represents (−ΔH/2.303R) and intercept represents (log(R/Nh) + ΔS/2.303R). The enthalpy and entropy of activation calculated from slope and intercepts are presented in Table 4. The positive sign of ΔH both in the absence and presence of inhibitor indicates the endothermic nature of mild steel dissolution in test solution. Again, the value of ΔH increases with increase in inhibitor concentration since dissolution process becomes more difficult by increasing inhibitor concentration. The values of entropy of activation in the presence of inhibitor are less negative when compared to blank solution which suggests an increase in randomness during the formation of activated complex [50, 51].

Fig. 3
figure 3

Effect of temperature and concentration of HATD on inhibition efficiency for corrosion of mild steel in 0.5 N H2SO4 solution

Fig. 4
figure 4

Arrhenius plot of log (C.R) against (1/T) for mild steel corrosion in 0.5 N H2SO4 solution in the absence and presence of HATD

Table 4 Thermodynamic activation parameters for mild steel in 0.5 N H2SO4 solution at different concentrations of inhibitor
Fig. 5
figure 5

Plot of log (C.R/T) against (1/T) for mild steel in 0.5 N H2SO4 solution in the absence and presence of HATD

3.4 Adsorption Isotherm

The inhibition mechanism follows adsorption of inhibitors on metal surface, and extend of inhibition is related to degree of surface coverage. An adsorption isotherm defines the relation of concentration of inhibitor to surface area covered and provides significant information whether the mode of adsorption is physisorption or chemisorption. Among various isotherms, Langmuir adsorption isotherm was found to be the best fit for inhibition of HATD on mild steel in 0.5 N H2SO4. The fractional surface coverage θ, at different concentrations of HATD in 0.5 N H2SO4 solution, was determined from corresponding impedance data as follows:

$$\theta = \frac{{R_{\text{ct}}^{*} - R_{\text{ct}} }}{{R_{\text{ct}}^{*} }}.$$
(8)

According to Langmuir adsorption isotherm, the surface coverage (θ) is related to concentration of inhibitor (C) by the equation

$$\frac{\theta }{1 - \theta } = KC.$$
(9)

On rearranging,

$$\frac{C}{\theta } = \frac{1}{K} + C,$$
(10)

where K is the equilibrium constant for adsorption process, plot of C/θ as function of C gave a straight line as shown in Fig. 6 from which equilibrium constant is obtained as the reciprocal of intercept. The values of standard free energy of adsorption ΔG is associated to K by the relation

$$\Delta G = - 2.303RT { \log }(55.5K),$$
(11)

where R is the universal gas constant, T is the absolute temperature, and 55.5 refers to concentration of water in solution represented in M. If the value of ΔG is in the order of −20 kJ/mol or lower, the mechanism follows physisorption, and if it is in order of −40 kJ/mol or higher the mechanism follows chemisorption [52]. From data presented in Table 5, it can be concluded that the adsorption of HATD on mild steel in 0.5 N H2SO4 involves both chemisorption and physisorption.

Fig. 6
figure 6

Langmuir adsorption isotherm for mild steel corrosion in 0.5 N H2SO4 solution containing HATD at different temperatures

Table 5 The values of equilibrium constant (K) and standard free energy change (ΔG) for mild steel in 0.5 N H2SO4 solution at different temperatures

3.5 Surface Morphological Studies

Surface morphologies of mild steel in 0.5 N H2SO4 in the absence and presence of HATD obtained by stereomicroscopic technique and SEM are shown in Figs. 7a–c and 8a–c, respectively. From the surface images, it is clear that mild steel is highly corroded in 0.5 N H2SO4 in the absence of HATD. When inhibitor is added to the test solution, the surface of mild steel shows close resemblance to bare mild steel surface. This observation evidently reveals that HATD decreases the corrosion of mild steel by forming a good molecular film on the surface and prevents the interaction between mild steel surface and aggressive solution to a greater extent.

Fig. 7
figure 7

Optical images of mild steel specimen a bare mild steel, b mild steel in 0.5 N H2SO4 solution, and c mild steel in 0.5 N H2SO4 solution in the presence of 400 ppm HATD

Fig. 8
figure 8

SEM images of mild steel specimen a bare mild steel, b mild steel in 0.5 N H2SO4 solution, and c mild steel in 0.5 N H2SO4 solution in the presence of 400 ppm HATD

3.6 Quantum Chemical Studies

Quantum chemical parameters such as energy of highest occupied molecular orbital (EHOMO), lowest unoccupied molecular orbital (E LUMO), energy gap (ΔE), and dipole moment were calculated, and are given in Table 6. The optimized geometry, HOMO, and LUMO are presented in Fig. 9a–c. The inhibition property can be discussed on the basis of donor–acceptor interaction between metal and inhibitor since the corrosion involves adsorption mechanism. According to Frontier molecular orbital theory, E HOMO is associated with electron donating ability and E LUMO is associated with electron accepting ability of molecule [53]. From Fig. 9a–c, it is clear that both triazole and benzylidene rings contribute significantly to the HOMO, which shows the tendency of molecule to donate charges to vacant orbitals of metal atom. However, the contribution to LUMO is mainly from benzylidene ring, which can be attributed to electron withdrawing effect of benzene ring in retro-donation step. Again, a low value of energy gap (ΔE) is an indication of high reactivity of inhibitor molecule.

Table 6 Electronic parameters of HATD obtained from quantum mechanical studies
Fig. 9
figure 9

Images of a optimized geometry, b HOMO, and c LUMO of the inhibitor HATD

3.7 Mechanism of Corrosion Inhibition

A general mechanism proposed for the dissolution of metal and hydrogen evolution when mild steel exposed in H2SO4 in the absence of inhibitor is [53],

Anodic metal dissolution:

$${\text{Fe}} + {\text{SO}}_{4}^{2 - } \rightleftharpoons ({\text{FeSO}}_{4}^{2 - } )_{\text{ads}} ,$$
(12)
$$({\text{FeSO}}_{4}^{2 - } )_{\text{ads}} \rightleftharpoons ({\text{FeSO}}_{4} )_{\text{ads}} + 2{\text{e,}}$$
(13)
$$({\text{FeSO}}_{4} )_{\text{ads}} \rightleftharpoons {\text{Fe}}^{2 + } + {\text{SO}}_{4}^{2 - } .$$
(14)

Cathodic hydrogen evolution:

$${\text{Fe}} + {\text{H}}^{ + } \rightleftharpoons ({\text{FeH}}^{ + } )_{\text{ads}} ,$$
(15)
$$({\text{FeH}}^{ + } )_{\text{ads}} + {\text{e}} \rightleftharpoons ({\text{FeH}})_{\text{ads}} ,$$
(16)
$$({\text{FeH}})_{\text{ads}} + {\text{H}}^{ + } + {\text{e}} \rightleftharpoons {\text{Fe}} + {\text{H}}_{2} .$$
(17)

In the presence of inhibitors, the first stage in the mechanism of inhibition is the adsorption of molecules on the metal surface by the replacement of water molecules. The adsorption phenomenon of organic molecules generally involves physisorption, chemisorption, or a combination of both. The standard free energy values given in Table 5 indicate that the adsorption of HATD on mild steel surface in 0.5 N H2SO4 solution involves both physisorption and chemisorption. Physisorption requires the presence of an electrically charged surface and charged species in the bulk of the solution. Since the HATD molecule contains π electrons and N and O atoms with lone pair of electrons, it can be easily protonated in H2SO4 solution. The electrostatic interaction takes place between the protonated inhibitor molecule (HATDH+) and \(({\text{FeSO}}_{ 4} )_{\text{ads}}^{2 - }\) species on mild steel surface as follows:

$$({\text{FeSO}}_{4}^{2 - } )_{\text{ads}} + ({\text{HATDH}}^{ + } ) \rightleftharpoons ({\text{FeSO}}_{4}^{2 - } ({\text{HATDH}}^{ + } ))_{\text{ads}} .$$
(18)

The above process causes a retardation in the metal dissolution reaction. The protonated inhibitor molecules may also be adsorbed at cathodic reaction sites in competition with hydrogen ions, thereby reducing the rate of hydrogen evolution. The chemical adsorption arises from the donor–acceptor interactions between lone pair of electrons or π electrons of the inhibitor molecule and vacant d orbitals of Fe atoms of mild steel surface.

4 Conclusions

The synthesized 1,2,4- triazole Schiff’s base, HATD, showed good inhibition efficiency towards mild steel in H2SO4. The inhibition efficiency measured through potentiodynamic polarization and electrochemical impedance studies are in good agreement. Potentiodynamic polarization studies revealed the mixed type behavior of the inhibitor. The inhibition efficiency increased with increase in inhibitor concentration and decreased with acid concentration and temperature. The inhibition action of HATD proceeds through adsorption, which obeys Langmuir adsorption isotherm. The positive sign of ΔH indicates endothermic nature of corrosion process. Basic computational calculations revealed the optimized geometry of the inhibitor molecule.