Introduction

Acid solutions are generally used for removal of rust and scale in industrial processes, and the deterioration of the metal due to these processes is very significant. Inhibitors are used in these processes to control metal dissolution. Hydrochloric acid is widely used in pickling of steel and different steel-based alloys. The most popular inhibitors are organic compounds containing N, S, and O atoms [1, 2]. Organic compounds containing functional electronegative groups and π electrons in triple or conjugated double bonds are also good inhibitors. The study of corrosion processes and their inhibition by organic compounds is an active area of contemporary research. Protection of steel against corrosion using polymeric coatings has become another popular method and the subject of considerable research in recent years [3, 4]. The advantages of polymeric coatings compared with chemical inhibitors are their low cost, extreme stability in acidic media, presence of multiple adsorption sites, ability to form complexes with metal ions, and extended surface coverage on metal surfaces. Several studies related to use of conducting polymer coatings on metals and alloys for corrosion protection have been reported in recent years [515]. In addition to these polymers, poly(N-ethylaniline), polythiophene, and polyindole were also investigated by several researchers [16, 17]. Electropolymerization of conducting polymers on metals and alloys is conducted within the solubility potentials of the electrode. The electrode should be kept in the passive region to be protected from corrosion. Passivity properties of both metals and alloys depend on their potential, temperature, and medium pH. Knowledge of these parameters is highly important for determining the conditions of studies of conducting polymer coatings. Even though monolayer polymeric coatings offer good corrosion protection for metals and alloys, bilayer polymeric coatings were found to be more effective in preventing corrosion [18, 19]. It is well known that polymers which contain conjugated π bonds provide the highest conductivity.

Experimental

Inhibitors

Two inhibitors, polyethylene glycol (PEG) [Mn = 10,000 g/mol, Sigma Aldrich] and polyvinyl pyrrolidone (PVP) [Mn = 44,000 g/mol, Sigma Aldrich], were used for the present study. The structure of the inhibitors is given in Fig. 1.

Fig. 1
figure 1

Structure of the molecule of a PEG and b PVP repeating unit

Medium

The medium for the study was prepared from reagent-grade H2SO4, HCl (E. Merck), and double-distilled water. All tests were performed in aerated medium under normal atmospheric pressure and room temperature (300 K).

Materials

The mild steel samples used were of the following chemical composition (wt.%): C (0.20 %), Mn (1 %), P (0.03 %), S (0.02 %), and Fe (98.75 %). Mild steel specimens of required dimensions were first rubbed with different grades of emery papers to remove rust particles and then subjected to the action of a buffing machine with a cotton wheel and fiber wheel having buffing soap to ensure mirror bright finish. The mild steel specimens used for electrochemical studies were cut into 4.8 × 1.9 cm2 coupons, but only 1 cm2 area was exposed during each measurement.

Electrochemical measurements

Electrochemical tests were carried out in a conventional three-electrode cell with metal specimen as the working electrode, platinum sheet (1 cm2 surface area) as auxiliary electrode, and saturated calomel electrode as reference electrode. The working electrode was first immersed in the test solution, and after establishing a steady-state open-circuit potential (OCP), electrochemical measurements were carried out with a Gill AC computer-controlled electrochemical workstation (model no. 1475; ACM, UK). Electrochemical impedance spectroscopy (EIS) measurements were carried out with amplitude of 10 mV (root mean square, RMS) alternating-current (AC) sine wave in the frequency range from 10 kHz to 0.1 Hz. Potentiodynamic polarization curves were obtained in the potential range from −250 mV to +250 mV at sweep rate of 1 mV/s.

Adsorption studies

It is generally assumed that the adsorption of inhibitors onto a metal surface is the primary step in the inhibition mechanism. To determine the adsorption mode, various isotherms were constructed from the results obtained from polarization studies, and the one that gave a straight-line graph in a plot of surface coverage against concentration was considered the Langmuir isotherm.

Scanning electron microscopy (SEM)

The surface morphology of the sample under study in the absence and presence of inhibitors was investigating using a Digital Microscope Imaging scanning electron microscope (model SU6600, serial no. HI-2102-0003) at accelerating voltage of 20.0 kV. Samples were attached on the top of an aluminum stopper by means of carbon conductive adhesive tape. All micrographs of the specimen were taken at 500× magnification.

Atomic force microscopy (AFM)

Mild steel strips of 4.8 × 1.9 cm2 size were prepared as described in the above section. After immersion in 0.5 N HCl and 0.5 N H2SO4 acid mixtures with and without 200 ppm of inhibitor at 300 K for 120 h, the specimens were cleaned with distilled water, dried, and then used for AFM studies.

Results and discussion

Potentiodynamic polarization studies

Polarization studies were carried out to generate knowledge concerning the kinetics of the anodic and cathodic reactions. The potentiodynamic polarization curves for mild steel in acid solution in the absence and presence of various concentrations of the inhibitors are shown in Fig. 2. The values of electrochemical kinetic parameters such as the corrosion potential (E corr), corrosion current density (I corr), and Tafel slopes (β a and β c) obtained from these graphs by extrapolation method are listed in Table 1. The corrosion inhibition efficiency was calculated using the relation

$$ {\text{IE}}\% \, = \frac{{I_{{{\text{corr}}^{*} }} - I_{\text{corr}} }}{{I_{{{\text{corr}}^{*} }} }} \times 100, $$
(1)

where \( I_{{{\text{corr}}^{*} }} \) and I corr are the uninhibited and inhibited corrosion current density, respectively, obtained by extrapolation of Tafel lines in the corrosion potential. It is evident from Table 1 that the value of I corr decreased from 2.3175 μA cm−2 for the blank to 0.1156 μA cm−2 in presence of 10 ppm of inhibitor, and it further reduces to 0.0150 μA cm−2 as the concentration of PVP was gradually increased to 200 ppm; also, the value of I corr decreased from 2.3175 μA cm−2 for the blank to 0.1385 μA cm−2 in presence of 10 ppm of inhibitor, and it further reduces to 0.0291 μA cm−2 as the concentration of PEG was increased to 200 ppm. The inhibitor molecule first adsorbs on the mild steel surface and blocks available reaction sites [20]. The surface coverage increases with the inhibitor concentration. The formation of a surface inhibitor film on the metal surface provides considerable protection of the metal against corrosion [21, 22]. This film reduces the active surface area exposed to the corrosive medium and delays the hydrogen evolution and iron dissolution. To determine the polarization resistance, R p, the potential of the working electrode was ramped ±10 mV in the vicinity of the corrosion potential at scan rate of 60 mV/s. The polarization resistance was determined from the slope of potential versus current lines:

$$ R_{\text{p}} = A({\text{d}}E/{\text{d}}i), $$

where A is the surface area of the electrode.

Fig. 2
figure 2

Polarization curves for mild steel in 0.5 N HCl and 0.5 N H2SO4 acid mixtures with various concentrations of a PVP and b PEG at 303 K

Table 1 Electrochemical polarization parameter and corresponding efficiency for corrosion of mild steel in 0.5 N HCl and 0.5 N H2SO4 acid mixtures with various concentrations of PVP and PEG

Electrochemical impedance spectroscopy

All impedance measurements were performed under potentiostatic conditions after 1 h immersion in the corrosion medium. Nyquist plots of uninhibited and inhibited solutions containing different concentrations of polymer materials were obtained over a frequency range of 0.1–10,000 Hz, and the Nyquist plots and corresponding Bode plots for various concentrations of PVP and PEG are given in Figs. 3a, b and 4a, b. The Nyquist and Bode diagrams have similar shape with different concentrations of the inhibitor molecules. It is therefore clear that the mechanism of corrosion remains unaffected during the addition of inhibitor molecules. The simplest fit is represented by a Randles equivalent circuit (Fig. 5), which is a parallel combination of the charge-transfer resistance (R ct) and a constant-phase element (CPE), both in series with the solution resistance (R s). The impedance spectra exhibit one single depressed semicircle, the diameter of which increases with increasing inhibitor concentration. The single semicircle indicates that charge transfer takes place at the electrode–electrolyte interface, and the corrosion reaction of steel is controlled by the charge-transfer process [23, 24]. Also, these impedance diagrams are not perfect semicircles, which is related to frequency dispersion due to of the roughness and inhomogeneity of the electrode surface [25]. Furthermore, the impedance response of the corrosion rates in uninhibited solution changed significantly after addition of inhibitor to the corrosive solution; as a result, the real-axis intercept at high and low frequencies in the presence of inhibitor is larger in the absence of inhibitor (blank solution) and increases as the inhibitor concentration increasing. The capacitive loop corresponds to the charge-transfer reaction, which depends on either direct electron transfer at the metal surface or electron conduction through the film surface. The impedance (Nyquist) diagrams contain depressed semicircles with center under the real axis. Such behavior is characteristic of solid electrodes, being attributed to different physical phenomena such as roughness, inhomogeneities of the solid surfaces, impurities, grain boundaries, and the distribution of surface-active sites. In this case, a constant-phase element (CPE) is introduced into the circuit instead of a pure double-layer capacitor to give a more accurate fit [26, 27]. The impedance function of a CPE has the following equation:

$$ Z_{\text{CPE}} = A^{ - 1} (CW)^{ - \alpha}, $$
(2)

where A is the CPE constant (in Ω−1 Sn cm−2), W is the sine wave modulation angular frequency (rad−1), i2 = −1 is the imaginary number, and α is an empirical exponent (0 ≤ n ≤ 1), which measures the deviation from ideal capacitive behavior [28, 29]. The opposite trend in the values of R ct and C dl (Table 2) over the whole concentration range can be supposed to indicate that a protective layer covers the whole surface of the electrode. The impedance values corresponding to PVP and PEG are given in Table 2. The charge-transfer resistance increases from 12.38 for inhibitor-free solution to 499.40 and 365.90 μF cm−2 upon addition of 200 ppm PVP and PEG, resulting in 97.52 and 96.62 % inhibition efficiency. The increase in R ct value is attributed to the formation of an insulating protective film at the metal–solution interface [30]. The double-layer capacitance decreases from 272.71 to 88.14 Ω cm2 in the presence of 200 ppm PVP and decreases from 272.71 to 85.21 Ω cm2 in the presence of 200 ppm PEG. The initial decrease in C dl value from blank solution to electrolyte containing inhibitor is due to a decrease in the local dielectric constant, while further decrease in C dl with increasing concentrations of inhibitor is due to increase in the thickness of the electrical double layer [3133]. The time constant of the charge-transfer process (τ d) is defined by

$$ \tau_{\text{d}} = C_{\text{dl}} \times R_{\text{ct}}. $$
(3)
Fig. 3
figure 3

Nyquist plots for mild steel in 0.5 N HCl and 0.5 N H2SO4 acid mixtures in absence and presence of different concentrations of a PVP and b PEG at 303 K

Fig. 4
figure 4

Bode curve for mild steel in 0.5 N HCl and 0.5 N H2SO4 acid mixtures in absence and presence of different concentrations of a PVP and b PEG at 303 K

Fig. 5
figure 5

Randles equivalent circuit

Table 2 AC impedance parameter for corrosion of mild steel in 0.5 N HCl and 0.5 N H2SO4 acid mixtures with various concentrations of PVP and PEG

The adsorption of inhibitor molecules on the metal surface decreases the double-layer capacitance (C dl) and increases the time constant (τ d) value (Table 2) significantly due to the decrease of the rate of charge and discharge processes at the metal–solution interface. This shows that there is agreement between the amount of charge that can be stored (i.e., the capacitance) and the discharge velocity at the interface [34]. The percentage inhibition efficiency was evaluated from the R ct values using the relation

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

where \( R_{{{\text{ct}}^{*} }} \) and R ct are the values of the charge-transfer resistance observed in the presence and absence of inhibitor molecules. In this case, the Mild steel (MS) corrosion takes place only at the free surface of the metal and/or within the pores due to the diffusion of dissolved oxygen, chlorine, or sulfate.

Adsorption studies

The extent of corrosion inhibition depends on the surface conditions and the mode of adsorption of the inhibitors [35]. The adsorption of an organic adsorbate at a metal–solution interface can be presented as a substitution adsorption process between the organic molecules in aqueous solution, (Orgaq), and the water molecules on the metallic surface, (H2Oads)

$$ {\text{Org}}_{\text{aq}} + X{\text{H}}_{ 2} {\text{O}}_{\text{ads}} \leftrightarrow {\text{Org}}_{\text{ads}} + X{\text{H}}_{ 2} {\text{O}}_{\text{aq}} $$
(5)

where X, the size ratio, is the number of water molecules displaced by one molecule of organic inhibitor, as represented in Fig. 6, under the assumptions that the corrosion of the covered parts of the surface is equal to zero and that corrosion takes place only on the uncovered parts of the surface (i.e., the inhibitor efficiency is mainly due to the blocking effect of the adsorbed species). The degree of surface coverage θ was estimated from the chemical and electrochemical techniques employed in this study as follows: θ = IE(%)/100 (assuming a direct relationship between surface coverage and inhibition efficiency). The adsorption on the corroding surfaces never reaches the real equilibrium and tends to reach an adsorption steady state. However, when the corrosion rate is sufficiently small, the adsorption steady state has a tendency to become a quasi-equilibrium state. In this case, it is reasonable to consider the quasi-equilibrium adsorption thermodynamically using the appropriate equilibrium adsorption isotherms. Basic information on the interaction between the inhibitor and the mild steel surface can be provided by the adsorption isotherm. In order to obtain the isotherm, the linear relation between the values of θ and the inhibitor concentration (C inhi) must be found. Attempts were made to fit the θ values to various isotherms, including those of Langmuir, Temkin, Flory–Huggins, Dahar–Flory–Huggins, and Bockris–Swinkel [3638]. By far the best fit was obtained for the Temkin isotherm (log C versus log θ) and Langmuir isotherm (C versus C/θ), as shown in Fig. 7a, b.

Fig. 6
figure 6

a Langmuir adsorption isotherm of PVP and PEG on mild steel surface in 0.5 N HCl and 0.5 N H2SO4 acid mixtures. b Temkin adsorption isotherm of PVP and PEG on mild steel surface in 0.5 N HCl and 0.5 N H2SO4 acid mixtures

Fig. 7
figure 7

Substitution isotherm model used to fit the isotherm parameters for mild steel in 0.5 N HCl and 0.5 N H2SO4 acid mixture using PVP and PEG as corrosion inhibitor

Scanning electron microscopy

Surface examination using SEM was carried out to understand the effect of inhibitor molecules on the surface morphology of mild steel [39, 40]. Figure 8a shows an SEM image of a polished mild steel surface. Figure 8b shows an SEM image of the surface of mild steel after immersion in acid mixture without inhibitor molecules for 24 h. This micrograph shows the effect of acid in terms of surface damage. Figure 8c shows an SEM image of the surface of mild steel immersed in acid solution containing 200 ppm PVP, and Fig. 8d for the same time interval of PEG. The faceting observed in Fig. 8c, d is not present, and the surface was free from pits and appeared smooth. So, it can be concluded that corrosion is much less in the presence of inhibitors, and the appearance of the more polished surface obtained in the case of PVP compared with PEG proves its higher inhibition efficiency.

Fig. 8
figure 8

SEM images of a mild steel, b mild steel in 0.5 N HCl and 0.5 N H2SO4 acid, c mild steel in 0.5 N HCl and 0.5 N H2SO4 acid + 200 ppm PEG, and d mild steel in 0.5 N HCl and 0.5 N H2SO4 acid + 200 ppm PVP

Atomic force microscopy (AFM)

To determine whether the inhibition is due to film formation on the metal surface through adsorption, atomic force micrographs were taken [41]. The three-dimensional AFM images are shown in Fig. 9a–d. As can be seen from Fig. 9c, d, there was much less damage on the surface of mild steel in the presence of PEG and PVP. The average roughness of polished mild steel (Fig. 9a) and mild steel in acid mixture without inhibitor (Fig. 9b) were calculated to be 15 nm and 252 nm, respectively. The mild steel surface in the free acid solution was cracked due to acid attack on the surface (Fig. 9b). However, in the presence of 200 ppm of inhibitors, the average roughness was reduced to 53 and 44 nm for PEG and PVP, respectively.

Fig. 9
figure 9

Atomic force microscopy (AFM) images of a mild steel, b mild steel in 0.5 N HCl and 0.5 N H2SO4 acid, c mild steel in 0.5 N HCl and 0.5 N H2SO4 acid + 200 ppm PVP, and d mild steel in 0.5 N HCl and 0.5 N H2SO4 acid + 200 ppm PEG

Mechanism of adsorption

Anodic dissolution of iron in acidic solutions has been reported to proceed as

$$ {\text{Fe}} + {\text{OH}} \leftrightarrow {\text{FeOH}}_{\text{ads}} + {\text{H}} + {\text{e}} $$
(6)
$$ {\text{FeOH}}_{\text{ads}} \to {\text{FeOH}}^{ + } + {\text{e}}({\text{rds}}) $$
(7)
$$ {\text{FeOH}}^{ + } + {\text{H}}^{ + } \leftrightarrow {\text{Fe}}^{2 + } + {\text{H}}_{2} {\text{O}} $$
(8)

The accompanied cathodic hydrogen evolution reaction follows the steps

$$ {\text{Fe}} + {\text{H}}^{ + } \leftrightarrow {\text{FeH}}_{\text{ads}}^{ + } $$
(9)
$$ {\text{FeH}}_{\text{ads}}^{ + } + {\text{e}} \leftrightarrow {\text{FeH}}_{\text{ads}} $$
(10)
$$ {\text{FeH}}_{\text{ads}} + {\text{H}}^{ + } + {\text{e}} \to {\text{Fe}} + {\text{H}}_{2} $$
(11)

As a consequence of this reaction plus the high solubility of the corrosion products, the metal loses weight in the solution. Corrosion inhibition is thought to be initiated by the inhibitor species, leading to specific adsorption of the inhibitor onto the metal surface (calculation shows that one molecule of PVP replaces 0.9858 molecules of water while PEG replaces 0.9642 molecules of water; Fig. 6). Examination of the above graph shows that the inhibition efficiency increases with increasing inhibitor concentration. This suggests that more inhibited molecules were adsorbed onto the metal surface at higher concentration, leading to greater surface coverage. Adsorption takes place through heteroatoms such as N, S, O, and P, double or triple bonds, or aromatic rings. The inhibition efficiency should increase in the order: P > S > N > O. Examination of the chemical structure of PEG and PVP reveals that PEG contains only oxygen heteroatom whereas PVP contains nitrogen in addition to oxygen atom. Also, the presence of rings in PVP leads to increased electron density on nitrogen atom, and PVP acts as a better inhibitor than PEG.

Conclusions

  1. 1.

    The inhibition efficiency of both polymer PEG and PVP increases with increasing concentration.

  2. 2.

    PVP shows better inhibition performance in acid medium compared with PEG.

  3. 3.

    Both PEG and PVP act as mixed-type inhibitors.

  4. 4.

    The adsorption of both polymers onto a mild steel surface obeys a Langmuir adsorption isotherm.

  5. 5.

    Calculation shows that one molecule of PVP replaces 0.9858 molecules of water whereas PEG replaces 0.9642 molecules of water at 298 K.

  6. 6.

    Surface analysis using SEM and AFM shows that PVP offers better protection than PEG.