1 Introduction

Mild steel because of its low cost and good mechanical strength is used in a variety of industries like automobile, construction, chemical etc. Mild steel is affected by corrosion to a different extent in different industries due to the nature of the environment [1, 2]. Acid solutions are used in pickling, descaling, oil well acidizing etc. [3, 4]. Mostly acid pickling baths containing hydrochloric acid are widely used in industrial cleaning. Hydrochloric acid is highly corrosive to mild steel. The use of inhibitor is one of the most practical methods for corrosion protection. The addition of the inhibitor reduces the chemical attack on mild steel. Organic inhibitors are a mixture of compounds containing nitrogen, sulphur, oxygen atoms as well as multiple bonds in their molecule. Volumes of literature are available regarding the use of synthetic compounds as a corrosion inhibitor for various metals [5,6,7,8,9,10,11,12,13]. However, the use of synthetic inhibitor is limited due to their high cost and hazardous nature. Recently, researchers have turned their attention on green inhibitors because they are biodegradable, inexpensive, and readily available in nature [14, 15]. Further, the plant extracts are present in the bioactive compounds are very efficient like synthetic inhibitors [16, 17]. Thymelaea hirsuta [18], Psidium guajava [19], Cassia auriculata [20], Luffa aegyptiaca [21], Clematis gouriana [22], Phyllanthus amarus [23], Uncaria gambir [24], Murraya koenigii [25], Schinopsis lorentzii [26], Brugmansia suaveolens [27], Ruellia tuberosa [28], Desmodium triflorum and Zanthoxylum alatum [29, 30] are some of the recently reported green inhibitors.

Mitracarpus hirtus (MH) belonging to the family of Rubiaceae, which is a weed, grows on its own. This plant is used in local medicine for the treatment of skin diseases. It is found to contain phytochemical constituents like alkaloids, flavonoids, terpenoids, saponins, tannins, etc. [31]. However, there are no reports on the use of the extracts of this plant in corrosion inhibition studies. Hence, in the present work, an attempt has been made to probe the inhibitive action of methanol extract of MH on mild steel corrosion in HCl medium. Confirmation of MMH as corrosion inhibitor was done through weight loss, colorimetric, AC impedance spectroscopy and potentiodynamic polarization spectroscopy. The protective film found on metal surface was characterized by analytical techniques like Fourier transform infrared spectroscopy (FT-IR), field emission scanning electron microscope (FESEM) and energy-dispersive X-ray spectrometer (EDS).

2 Experimental Details

2.1 Specimen Preparation

The mild steel specimen of dimensions 1.039 × 5.15 × 0.293 cm with an area of 14.3284 cm2 was used for the weight loss method. The specimen surface was mechanically polished with different grade emery papers (400, 600, 1000 and 1500), cleaned with acetone and stored in a desiccator. The chemical composition of MS used is as follows: C—0.088%, Mn—0.540%, P—0.012%, Cr—0.013%, Si—0.014%, Cu—0.016%, S—0.012%, Ni—0.021%, Mo—0.002%, Al—0.059%, V—0.001%, W—0.01 and the rest is Fe.

2.2 Preparation of the Extract

Mitracarpus hirtus plant was collected from the Nilgiris, Tamil Nadu, South India. The leaves were air dried for 15 days in the shade and ground into powder. 20 g of the powdered leaves was extracted in soxhlet apparatus with 175 mL methanol for 9 h at 60 °C. Thereafter, the solution was evaporated to about 50 mL on a water bath. The concentrated extract was dried to complete dryness. A stock solution was prepared by dissolving 1 g of the dried sample in 500 mL of methanol. Desired concentrations of the methanol extract of leaves (MMH) namely 0.1–0.6 g/L were obtained by properly diluting the stock solution to make 100 mL of the test solution. The test solution was freshly prepared before each experiment.

2.3 Weight Loss Method

Weight loss method is one of the oldest and simplest methods for monitoring corrosion. Hence, weight loss method has been used as one of the methods in the present study to evaluate the performance of the inhibitor. Here, the MS specimens were polished following the standard procedure [32] and stored in a desiccator. The polished specimen in triplicate was weighed and immersed in 100 mL of 1 M hydrochloric acid solution without and with different concentrations of inhibitors (0.1–0.6 g/L) for the immersion periods of 1–5 h. Later, the specimens were removed from the test solutions, washed with distilled water, dried and reweighed. The inhibition efficiency was calculated from the weight loss data and the optimum concentration of the inhibitor was found out. The concentration of acid was increased from 1 to 4 M in order to find the effectiveness of inhibitor at high concentration range. Halide additives were added to study synergistic their influence on inhibition efficiency of the inhibitor. To assertion, the influence of temperature on the performance of the inhibitor, corrosion behaviour of MS in the presence of MMH was also studied by varying the temperature from 303 to 333 K. The percentage inhibition efficiency (%IE) was determined, using the following equation:

$$\% {\text{IE}}=[{\text{(}}{W_{\text{b}}} - {W_i}{\text{)}}/{W_{\text{b}}}] \times 100,$$
(1)

where Wb and Wi are the weight loss of the MS specimens in the absence of inhibitor and in the presence of inhibitor, respectively. The corrosion rate (CR) was calculated by the following equation:

$${\text{CR}}=\frac{{K\Delta W}}{{\rho At}}$$
(2)

K = 3.45 × 106 to given CR in mpy, where W is the weight loss (mg); ρ is the density of the specimen (g cm−3); A is the area of the specimen (cm2), and t is the exposure time (h).

To evaluate the performance of the inhibitor using additional methods like colorimetric and electrochemical studies. The weight loss study we have used the same solution after immersion studies for colourimetric studies to quantify the amount of iron in the solution and hence the % of inhibition efficiency. Potentiodynamic polarization studies and electrochemical impedance spectroscopy studies are proven technique to quickly evaluate the performance of the inhibitor.

2.4 Colorimetric Estimation

The amount of iron present in the corrosive medium after immersion studies can give us an indication of the extent of corrosion. Hence to determine the amount of iron in the test solution, colorimetric experiments were carried out varying the concentration of inhibitor and time of immersion. The colouring agent is phenanthroline, hydroxylamine hydrochloride, and buffer solutions were mixed to the standard ferrous ammonium sulphate solutions to produces colours of varying intensities. The absorbances of these solutions were measured using the Baush & Lomb spectronic 20 colorimeter. A standard graph was plotted taking absorbance in y-axis and concentration of iron (10−3 g) in x-axis. The absorbance of the inhibited and uninhibited solutions after immersion experiments was found out and from the standard graph, the amount of iron present the solution was found out and % inhibition efficiency was calculated using the equation given below:

$$\% {\text{IE}}=[(C - {C^{\text{o}}})/C] \times 100,$$
(3)

where C is a concentration of Fe2+ in uninhibited solution; Co is a concentration of Fe2+ in inhibited solution.

2.5 Electrochemical Methods

Electrochemical impedance spectroscopy (EIS) and potentiodynamic polarization (PDP) studies were carried out using electrochemical analyser of CH Instrument (model 608D) in a three-electrode cell assembly. Platinum was used as a counter electrode and calomel as the reference electrode. MS specimen having an exposed area of 0.95 cm2 was used as working electrode. The volume of the test solution was maintained at 100 mL for all electrochemical experiments. Before each experiment, the MS specimens were polished employing the standard procedure described elsewhere [33]. EIS measurements were made in the frequency range of 10 kHz–1 Hz at the rest of potential using 0.02 V peak to peak with the alternating current signal. The impedance data were obtained from the Nyquist plots. The %IE was calculated from the given equation:

$$\% {\text{IE}}=({\text{(}}{R_{{\text{ct}}}}-{R_{{\text{ct(b)}}}}{\text{)/}}{R_{{\text{ct}}}}) \times 100,$$
(4)

where Rct and Rct(b) are the charge transfer resistance values in the presence and absence of inhibitor, respectively. PDP studies were carried out at a scan rate of 0.01 V/s in the potential range from − 0.75 to − 0.25 V. The corrosion current density values (Icorr) were obtained from the Tafel plots. The %IE was calculated from the following equation:

$$\% {\text{IE}}=({\text{(}}{I_{{\text{corr(b)}}}}-{\text{ }}{I_{{\text{corr}}(i)}}{\text{)}}/~{I_{{\text{corr(b)}}}}) \times 100,$$
(5)

where Icorr(b) and Icorr(i) are the values of corrosion current densities in the absence and presence of inhibitor, respectively.

2.6 FESEM and EDS Analysis

Surface morphology of the MS for fresh inhibited and uninhibited specimens was also examined using field emission scanning electron microscope (FESEM) coupled with energy dispersive X-ray spectroscopy (EDS).

2.7 FT-IR Spectral Analysis

The FT-IR spectra of MMH residue and the scrapped material from mild steel surface obtained after immersion studies were recorded using KBr pellet technique.

3 Results and Discussion

3.1 Weight Loss Method

The corrosion rate and inhibition efficiency values obtained using weight loss studies are given in Table 1. It shows the effect of the inhibitor concentration (0.1–0.6 g/L) on the corrosion of mild steel in 1 M HCl at different immersion periods (1–5 h). The maximum efficiency was obtained at an inhibitor concentration of 0.6 g/L with an immersion time of 3 h. The increase in %IE with the inhibitor concentration indicates that the inhibitor molecules adsorbed on the metal surface. Similarly, the decrease in %IE after an immersion period of 3 h indicates the desorption of the inhibitor molecules from the metal surface.

Table 1 Influence of concentration of MMH on the corrosion of MS in 1 M HCl at different immersion periods

The data on the corrosion of MS at different concentrations of acid are shown in Table 2. The results indicate that the %IE decreases and the corrosion rate increases at higher concentrations of the acid. This might be due to the fact that at higher concentrations of the acid the rate of chemical reaction is increased and this controls the adsorption power of the inhibitor, molecules by the ionization of active species associated into the inhibitor [34]. At higher acid concentrations, the acid may also form a metal-hydrogen bond by ruptured of the metal surface leading to the decrease in surface coverage by the inhibitor molecules.

Table 2 Effect of concentration of HCl on the corrosion of MS with MMH

The results of the influence of halide ions on the inhibition efficiency of the inhibitor MMH were studied by adding 10−3 g/L of KI and KBr to the test solutions with and without inhibitor and the results are presented in Table 3. The influence of halide ions on the inhibition efficiency of various synthetic and natural inhibitors has been reported by many authors [35,36,37,38]. Reports suggested both synergistic and antagonistic effects depending on the reaction system under study. The above results clearly show that addition of KBr produces synergistic influence indicating a bridge between the metal atom and the inhibitor. However, the addition of KI produces antagonistic effect suggesting a weaker interaction between the halide ions (KI) and the inhibitor molecules [39].

Table 3 Effect of addition of halide additives on the corrosion inhibition of MS by MMH in 1 M HCl at 1-h immersion time

To study the influence of temperature on the methanol extract of MH on mild steel corrosion in 1 M HCl, experiments were carried out in the temperature range of 303–333 K. The results are present in Table 4. The results vividly indicate that when the temperature is increased from 303 to 333 K the inhibition efficiency decreased from 92.01 to 75.33%. Generally, the adsorption and desorption of inhibitor molecules take place continuously on the metal surface. At higher temperatures, due to the higher dissolution of metal, the rate of desorption overcomes the rate of adsorption. This is also supportive of the fact that the adsorption is physical in nature. The adsorbed layer is desorbed early at higher temperature [40,41,42].

Table 4 Influence of temperature on the corrosion inhibition of MS in 1 M HCl with different concentrations of MMH at 1-h immersion time

3.2 Colorimetric Estimation

In the colorimetric analysis, the amount of iron present in inhibited and uninhibited test solutions was quantified using a colorimeter. Colorimetric experiments were carried out after immersion experiments on all the test solutions used in gravimetric studies. The results are given in Table 5, and it reveals that with the increase in the concentration of inhibitor, the iron content of the solution decreases suggesting the decrease in CR which in turn indicates the increase in %IE. The corresponding %IE values obtained from these data also increase up to the optimum concentrations of MMH. The immersion time is another important parameter which ascertains the inhibitive effect of the inhibitor on standing. In the present study, the effect of immersion time (1–5 h) on corrosion inhibition of MMH in 1 M HCl at room temperature was investigated by colorimetric method. It is apparent from Table 5 that the %IE increases gradually with increasing immersion time and attains a maximum value of 91.03% with 0.6 g/L of MMH at an immersion period of 3 h. The inhibition efficiency increases from 1 to 3 h and beyond 3 h it starts declining. The increase in %IE with increasing immersion time is due to the increase in the surface coverage with time. However, the decrease in inhibition efficiency at higher immersion period might be due to the desorption of MMH on standing. The %IE values calculated from the colorimetric data are in good agreement with the data obtained from weight loss studies.

Table 5 Colorimetric data for the corrosion inhibition of MS in 1 M HCl at various concentrations of MMH at room temperature

3.3 Thermodynamic Parameters

The energy of activation (Ea) was determined from the slope of the Arrhenius plot (log CR vs 1/T). In Fig. 1, the slope is equal to Ea/2.303RT. Here, CR is the corrosion rate. T is the temperature in absolute scale and R is the gas constant. The values along with other thermodynamic parameters are given in Table 6. It is clear from the table that the Ea values for the blank are less than that for the inhibited solutions. The higher values of Ea for the inhibited solutions are an indication of the fact that the inhibitor molecules are spontaneously adsorbed on the metal surface and the linkage between the metal and inhibitor is physical in nature [43]. The free energy of adsorption for different temperatures was calculated using the following Eq. (6).

Fig. 1
figure 1

Arrhenius plot (log CR vs 1/T) for MS corrosion in 1 M HCl in the presence and absence of MMH

Table 6 Values of activation energy and thermodynamic parameters for the corrosion inhibition of MS with and without different concentrations of MMH
$$\Delta {G_{{\text{ads}}}}= - RT\ln (55.5\;{\text{K}}),$$
(6)

where 55.5—the number of moles of water per liter of solution, T—temperature in Kelvin scale, and K (equilibrium constant) − θ/Cinh(1 − θ). ∆Hads and ∆Sads values were obtained from the slope and intercept values ∆Gads versus T plot (Fig. 2). The values of ∆Gads, ∆Hads and ∆Sads are given in Table 6. The result presented in Table 6 indicates that the values of ∆Gads are less negative than − 20 kJ/mol suggesting that the process of inhibition is through physisorption. Further, the negative values of ∆Gads point out the stability of the adsorption layer and the spontaneity of adsorption. Generally, negative values of ∆Hads indicate an exothermic adsorption process. The ∆Hads values are negative and ∆Sads are positive. The negative value of ∆Hads and the positive value of ∆Sads particularize the feasibility of the reaction. Thus, the ∆Gads, ∆Hads and ∆Sads values show that the process of adsorption of MMH is spontaneous and exothermic in nature.

Fig. 2
figure 2

ΔGads as a function of temperature in the presence of MMH in 1 M HCl

3.4 Adsorption Isotherm

The nature of adsorption between the inhibitor molecules and the metal surface is well explained by adsorption isotherms. To find out the best-suited isotherm for the adsorption of MMH on MS surface, the surface coverage values obtained from weight loss data were fitted into various adsorption isotherms. Among the various isotherm tested, the Langmuir adsorption isotherm gave the best fit with correlation coefficient nearing almost unity. The Langmuir adsorption isotherm is represented by the equation.

$$\theta /(1 - \theta )={K_{{\text{ads}}}}C,$$
(7)

where Kads is adsorption equilibrium constant and is related to the free energy of adsorption. The isotherm is obtained by plotting by log (θ/(1 − θ)) versus log C as shown in Fig. 3. The straight lines with a correlation coefficient nearing unity confirm that adsorption of MMH on MS surface follows Langmuir isotherm.

Fig. 3
figure 3

Langmuir adsorption isotherm for MS corrosion in 1 M HCl in the presence of MMH

3.5 Electrochemical Methods

3.5.1 AC Impedance Method

Impedance studies were carried out by varying the concentration of inhibitor (MMH) from 0.1 to 0.6 g/L. The Randles equivalent circuit used for impedance studies is given in Fig. 4, where Rs is solution resistance; Cdl is the double layer capacitance, and Rct is the charge transfer resistance. The impedance data obtained from Nyquist plots are given in Table 7. The representative Nyquist plots for varying the concentration of inhibitor (MMH) are given in Fig. 4. The values of Rct increased with increase in the concentration of inhibitors (MMH) and corresponding Cdl values decreased. The increasing Rct value with an increase in inhibitor concentration is the result of an increase in the surface coverage by the inhibitor molecules. The decrease in Cdl value at higher the inhibitor concentration is due to increase in the thickness of the electrical double layer, indicating that the inhibitor is adsorbed on the metal surface. The diameter of impedance diagram increased on increasing the concentration of MMH indicating a strengthening of the inhibitive film at the metal surface. This is caused by the gradual replacement of water molecules by adsorption of inhibitor molecule on the iron surface [44,45,46,47].

Fig. 4
figure 4

Nyquist plots for the corrosion of MS in 1 M HCl with various concentrations of MMH

Table 7 Electrochemical parameters for MS corrosion in 1 M HCl at different concentrations of the inhibitor

3.5.2 Potentiodynamic Polarization Method

The electrochemical parameters such as corrosion potential (Ecorr), corrosion current density (Icorr), cathodic slope (bc) and anodic slope (ba) were obtained from Tafel plots and inhibition efficiency (%IE) were calculated applying Eq. (5). Figure 5 depicts the representative Tafel plots of the corrosion inhibition studies on mild steel with different concentrations of MMH. The polarization data obtained are given in Table 7. The addition of inhibitor alters both ba and bc values suggesting that the inhibitor reduces both anodic dissolutions of the metal and retard hydrogen evolution reaction. This indicates the mixed nature of the inhibitor. The Icorr values decrease when increasing the concentration of inhibitors which are due to the higher surface coverage of the inhibitor [44,45,46,47].

Fig. 5
figure 5

Tafel plots for the corrosion of MS in the presence of various concentrations of MMH in 1 M HCl

3.6 FESEM and EDS Analysis

Surface morphology of MS was studied by field emission scanning electron microscopy after 3-h immersion in 1 M HCl in the absence and the presence of MMH. Figure 6a represents the image obtained for polished MS without being exposed to the corrosive environment while Fig. 6b shows strongly damaged MS surface due to the formation of corrosion products after immersion in 1 M HCl. FESEM images of MS surface after immersion in 1 M HCl with 0.6 (g/L) MMH are shown in Fig. 6c. It is clear from the above figures that the protective film formation by the inhibitor on the MS surface protects it from corrosion. The EDS images of the MS specimen obtained after experiments with uninhibited and inhibited acids are given in Fig. 7a, b respectively. Analysis of Fig. 7a shows the presence of Fe, O, C signals. Whereas the surface of inhibited sample Fig. 7b shows the presence of Fe, O, Mn, C, Cl signals. Further, there is a decrease in the percentage of Fe in the inhibited MS surface. This confirms the adsorption of MMH extract molecule (Table 8) on the MS surface.

Fig. 6
figure 6

SEM images of polished MS (a), MS in 1 M HCl (b), MS in 1 M HCl with MMH (c)

Fig. 7
figure 7

EDS images a MS in 1 M HCl, b MS in 1 M HCl with MMH

Table 8 EDS analysis results of Fresh MS of MS in 1 M HCl in the absence and presence of MMH

3.7 Fourier Transform Infrared Spectroscopy (FTIR)

FTIR spectroscopy is used to determine the functional groups present in the plant extract and examine the film adsorbed on a metal surface in protection against corrosion. Figure 8a shows the spectrum of the solid residue of MMH. A broad peak is obtained at 3309.2 cm−1 which is assigned to OH or NH stretching vibration. The sharp peak at 2923.56 and 2852.2 cm−1 indicates the presence of –CH2 asymmetrical stretching vibration. Peaks at 1687.41 and 1613.16 cm−1 are attributed to C=O and C=N stretching. The band at 1045.23 cm−1 is due to C–O stretching vibration. Further, the C–S stretching vibration was observed at 667.2 cm−1. Comparison of Fig. 8b with a shows that the peak at 3309 cm−1 is shifted 3418 cm−1 and –CH2 asymmetric stretching vibrations has shifted from 2923.5 to 2920.6 cm−1. The absorption band at 1045 cm−1 shifted to 1014 cm−1. The prominent bands at 515 cm−1, 486 cm−1 are characteristic of Iron oxide. Figure 8b clearly shows the shift in frequencies of various functional groups indicating the adsorption of these chemical constituents on MS surface.

Fig. 8
figure 8

FT-IR spectrum of MMH (a) and the scrapped material (b)

3.8 Comparison Studies

The comparisons of the results in Table 9 clearly indicate that the same trend in the performance of the inhibitor is noticed from the results obtained from all the techniques. However, the change in the numerical value of the percentage inhibition efficiency is due to the fact that the weight loss studies give average corrosion rate and the results from electrochemical studies give instantaneous corrosion rate. Further, the colorimetric studies evaluate the performance of the inhibitor from the amount of iron present in the solution after immersion studies i.e. after the corrosion process is over.

Table 9 Comparison of the results from different techniques

4 Conclusion

The methanol extract of MH leaves inhibits corrosion of MS in 1 M HCl. The inhibitor shows maximum efficiency with a 3-h immersion period. Increasing concentration of inhibitor increases the inhibition efficiency and the efficiency decreased while increasing the concentrations of acid. The addition of KBr produced a synergistic effect and the antagonistic effect is observed with KI addition. The inhibition efficiency of MMH decreases with increase in temperature, which suggests the adsorption process following physical adsorption mechanism. The adsorption of the extract followed a Langmuir adsorption isotherm. Polarization studies indicate that the MMH inhibitor acts as a mixed type inhibitor. The inhibition efficiency values obtained from weight loss, colorimetric and electrochemical experiments are in good agreement. FESEM studies reveal the formation of a smooth surface on mild steel in the presence of MMH which indicates the formation of a good protective layer on the MS surface.