Introduction

Acid solutions are commonly used in the chemical industry to remove the scales from metallic surfaces. The addition of inhibitors secures the metal against an acid attack effectively. The applicability of organic compounds as corrosion inhibitors for metals in acidic media has been recognized for a long time [13]. The existing data show that most organic inhibitors act by adsorption on the metal surface. These compounds are adsorbed on the metallic surface blocking the active corrosion sites. Though many synthetic compounds showed good anticorrosive activity, most of them are highly toxic to both human beings and the environment that should be replaced with new environmentally friendly corrosion inhibitors. From the viewpoint of safety, the development of non-toxic and effective inhibitors is considered to be more important and desirable. Recently, these compounds have been developed; they range from rare earth elements [4, 5] to plant extracts [6, 7]. Raja and Sethuraman [8] in a review have given natural products as a corrosion inhibitor for metals in corrosive media. The inhibition effects of some non-toxic organic compounds have been reported for steel corrosion [9, 10]. We have recently reported the inhibition effect of amino acids on steel [11], aluminum [12] corrosion and Prunus cerasus extract [13] on mild steel in acidic media. Betanin is a natural product and food additive. This compound is a red glycosidic pigment obtained from beetroot [14]. Betanin is a water-soluble compound that is a desirable characteristic for an acid inhibitor. However, its effect on corrosion processes of metals and alloys has not been reported.

The aim of this work is to investigate the inhibiting influence of betanin as a green inhibitor on mild steel corrosion in 1 M hydrochloric acid solution. Weight loss method, potentiodynamic polarization, and electrochemical impedance spectroscopy (EIS) techniques were used in this study. The surface of mild steel samples in 1 M HCl solution with and without the inhibitor was studied by scanning electron microscopy (SEM) to evaluate the inhibitor effect on surface morphology.

Experimental

Prior to all measurements, the mild steel specimens (0.027% P; 2.08% Si; 0.034% Cr; 0.014% W; 0.018% Mo; 0.260% Mn; 0.008% C; 0.005% S; 0.016% Ni; 0.353% Al and the remainder Fe) were ground with different emery papers (grade 400, 600, 800, 1000, and 1200), rinsed with double distilled water, degreased in absolute ethanol, and dried by compressed air at room temperature. The aggressive solutions were made of AR grade 37% HCl. Appropriate concentrations of acid were prepared using double distilled water. The concentration range of the inhibitor employed was 6.25 × 10−4 to 0.01 M in acid solutions. Required betanin with high purity was purchased from the Corporation of ABCR. Figure 1 shows the structure of betanin. All experiments were performed under the atmospheric ambient, and the temperature of the solutions was controlled by thermostat (Memert).

Fig. 1
figure 1

Chemical structure and formula of betanin

Weight loss experiments were performed according to the method described previously [11]. Tests were conducted in 1 M HCl solution with different concentrations of inhibitor. At the end of each test, the specimen was carefully washed in absolute ethanol, dried and then was reweighed. Duplicate experiments were performed in each case and the mean value of the weight loss was reported. Electrochemical experiments were carried out using an Autolab (PGSTAT 30). A three-electrode arrangement was used for electrochemical studies. Working electrode was prepared from a mild steel sheet, mounted in polyester so that the area exposed to the corrosive solution was 1 cm2. A saturated calomel electrode (SCE) and a 1 cm × 1 cm platinum electrode were used as the reference and counter electrodes, respectively. For potentiodynamic polarization measurements, the potential sweep rate was 1 mV s−1. The immersion time before each measurement was 60 min to access an equilibrium potential. The impedance measurements were carried out in the frequency range of 30 kHz to 0.01 Hz at the open circuit potential, by applying 10 mV sine wave ac voltage. The morphology of the surface of mild steel in 1 M HCl solution in the absence and presence of 0.01 M of betanin was investigated by SEM images obtained by a leo-440i electron microscope.

Results and discussion

Weight loss studies

The weight loss of the mild steel in 1 M HCl with and without various concentrations of betanin is determined after 6 h of immersion at 25 °C. Equation 1 determines the inhibition efficiency, where W corr and W 0 are the corrosion rates of mild steel with and without the inhibitor, respectively. Values of the inhibition efficiency obtained are given in Table 1.

$$\eta _{\text{w}} = \frac{{W_0 - W_{{\text{corr}}} }}{{W_0 }} \times 100$$
(1)
Table 1 Weight loss data of mild steel in 1 M HCl for various concentrations of betanin

The inhibition efficiency η w increases with increasing inhibitor concentration to reach 98% at 0.01 M. The inhibition may be due to adsorption of betanin on the mild steel surface.

Potentiodynamic polarization curves

Figure 2 shows the influence of betanin concentration on the cathodic and anodic potentiodynamic polarization curves of steel in 1 M HCl. Electrochemical corrosion parameters such as corrosion potential (E corr), cathodic and anodic Tafel slops (β c, β a), and corrosion current density (I corr), obtained by extrapolation of Tafel lines, are collected in Table 2. Equation 2 was used to calculate the inhibition efficiency (η p) where I 0 and I corr are the corrosion current density values without and with the inhibitor, respectively.

$$\eta _{\text{p}} = \frac{{I_0 - I_{{\text{corr}}} }}{{I_0 }} \times 100$$
(2)
Fig. 2
figure 2

Potentiodynamic polarization curves for mild steel in 1 M HCl containing different concentrations of betanin

Table 2 Potentiodynamic polarizations parameters of mild steel in 1 M HCl for various concentrations of betanin

Figure 2 and Table 2 show that the I corr values decrease considerably with the increase of betanin concentration. No definite trend was observed in the shift of E corr values, in the presence of various concentrations of this inhibitor, in acidic media. The presence of the inhibitor lowers the cathodic Tafel slope values probably by blocking the metal surface. The change of the anodic Tafel slope clearly indicated the influence of betanin on the mechanism of the corrosion process [15]. For potentials higher than −420 mV vs. SCE, the presence of betanin did not change the current vs. the potential. This potential can be defined as the desorption potential. The same results have been reported with other organic compounds [16, 17]. This fact means that the inhibition mode of betanin depends on the electrode potential. However, betanin influences the anodic reactions at potentials more negative than −420 mV vs. SCE. This result indicates that betanin exhibits both cathodic and anodic inhibition effects. This suggests a mixed-type control. Betanin mainly acts as a mixed-type inhibitor in 1 M HCl.

Electrochemical impedance measurements

The corrosion behavior of mild steel in acidic solution in the presence of betanin was investigated by the EIS at 25 °C. Nyquist plots are shown in Fig. 3. The impedance response of mild steel is significantly changed after the addition of betanin. The charge transfer resistance (R t) and the interfacial double layer capacitance (CPE) values were derived by using the equivalent circuit shown in Fig. 3. The equivalent circuit elements calculated by the Zview fitting program are given in Table 3. The inhibition efficiency (η z) is calculated from the following equation:

$$\eta _z = \frac{{R_{{\text{t(inh)}}} - R_{\text{t}} }}{{R_{{\text{t(inh)}}} }} \times 100$$
(3)

where R t(inh) and R t are the charge transfer resistance values with and without the inhibitor, respectively. The R t values were calculated from the difference in impedance at lower and higher frequencies as suggested by Tsuru et al. [18].

Fig. 3
figure 3

Nyquist diagrams for mild steel in 1 M HCl containing different concentrations of betanin

Table 3 Electrochemical impedance measurement of mild steel in 1 M HCl for various concentrations of betanin

The inhibition efficiencies, calculated from impedance results, show the same trend as those obtained from polarization and weight loss measurements. There is good agreement between the weight loss measurements and electrochemical methods. In fact, the presence of betanin is accompanied by the increase of the value of R t in an acidic solution indicating a charge-transfer process mainly controlling the corrosion of steel. The decrease of CPE is due to the adsorption of the inhibitor on the metal surface [19].

Effect of temperature

Temperature can modify the interaction between the steel electrode and the acidic media without and with the betanin inhibitor. The values of inhibition efficiency obtained from polarization curves (are not show) for mild steel in 1 M HCl in the absence and presence of betanin at the temperature range 25–55 °C are given in Table 4. These results indicate that the corrosion current density increases more rapidly with temperature in the absence of the inhibitor. In the presence of betanin, surface coverage θ, defined by η p/100, decreases slightly with increasing temperature, which could be caused by desorption of the inhibitor from the steel surface. The slight decrease of θ suggests that the inhibition efficiency of betanin is independent of temperature. Therefore, betanin acts as an efficient inhibitor in the range of temperature studied.

Table 4 Effect of temperature on the inhibition efficiency of betanin in 1 M HCl with (I corr) and without (I 0) of 0.01 M of inhibitor

The apparent activation energy for the corrosion process is calculated from Arrhenius type plot according to the following equation [20]:

$$I_{{\text{corr}}} = A\exp \left( { - \frac{{E_{\text{a}} }}{{RT}}} \right)$$
(4)

where E a is the apparent activation corrosion energy, R is the universal gas constant, A is the Arrhenius pre-exponential constant, and T is the absolute temperature. Arrhenius plots for the corrosion current density of mild steel are given in Fig. 4. The obtained values for E a in 1 M HCl with the absence and presence of betanin are 39.4 and 57.9 kJ/mol, respectively. It can be found that the energy barrier of corrosion reaction increases with the inhibitor concentration. This phenomenon may be attributed to the change in the mechanism of the corrosion process in the presence of adsorbed inhibitor molecules. It is often interpreted by physical adsorption leading to the formation of an adsorptive film of electrostatic character [21, 22]. Under acidic conditions, betanin degrades to several compounds having the chemical structures that behave as inhibitors [23]. The inhibition of betanin or its degradation products in 1 M HCl was attributed to adsorption through electrostatic interactions between the negatively charged metal surface and the positively charged compounds [24]. When mild steel was immersed in the HCl solution, in the presence of inhibitor, chloride ions are firstly adsorbed to the metal surface because of a smaller degree of hydration. Adsorbed chloride ions create an excess negative charge towards the solution and favor more adsorption of the cations [25]. Positively charged inhibitor compounds or protonated inhibitor molecules are adsorbed on the metal surface via Cl ions which forms interconnecting bridges between the metal atoms and the organic cations.

Fig. 4
figure 4

Arrhenius slopes calculated from corrosion current density for mild steel in 1 M HCl: (empty circle) blank and (empty square) 0.01 M of betanin

Figure 5 shows a SEM photograph recorded for mild steel samples exposed for 6 h in 1 M HCl solution without (a) and with (b) betanin (0.01 M) at 25 °C. The morphology of the specimen surface in Fig. 5a reveals that in the absence of betanin the surface is highly corroded. However, in presence of the inhibitor, the rate of corrosion is suppressed, as the electrode surface is almost free from corrosion due to the adsorption of the inhibitor on the mild steel surface.

Fig. 5
figure 5

SEM photograph (×3,000) of the surface for mild steel after 6 h of immersion in 1 M HCl: a without and b with 0.01 M of betanin

Conclusions

From the overall experimental results and discussion, the following conclusions can be deduced:

  • The inhibition efficiency of betanin increases with concentration to attain a maximum value of 98% at 0.01 M of betanin.

  • Betanin acts as mixed-type inhibitor modifying the hydrogen reduction mechanism.

  • The results obtained from weight loss, potentiodynamic polarization, and EIS techniques were in good agreement.

  • The inhibition of corrosion of mild steel in 1 M HCl by betanin may be due to the adsorption of betanin on the mild steel surface.