1 Introduction

Metallic corrosion is a material problem that began from the discovery of metal [1]. Corrosion refers to any change that occurs in the features of metals and alloys due to physicochemical interaction with its surrounding environments and this has resulted in weakness of the role of the metal, the surrounding, or the technical system of which these form a part [2]. C-steel is the engineering material in many industrial applications like pipes, pumps, turbine blades, and water coolers and heaters [3]. Surface of these equipments is being destroyed as result of the formation of less reactive oxides that accumulate in the process of rust and scales; hence, the life time of these materials is cut short as a result of corrosion [4]. Concentrated acidic medium such as hydrochloric acid is used to remove these produces by pickling, degreasing, and descaling processes [5, 6]. Thus, during this chemical treatment, adding corrosion inhibitors is significant to decrease the corrosive impact; particularly, the usage of organic inhibitors is effective due to their activity at a variety of temperatures, good solubility, and comparatively low toxicity [7, 8].

However, organic substances especially heterocyclic compounds constitute inhibitive boundary at the metallic/atmosphere interfaces through adsorption process. These have an important role by transmitting their unshared electron pair into the d-vacant orbit of the metal ion to form coordinate bond via chemical adsorption [9] or physical adsorption involving electrostatic interaction.

The interest in nicotinonitrile derivatives is due to the practical use as medicinal compounds and the existence of the pyridine ring that play an important place in organic synthesis. The literature review of some studies reveal that some nicotinonitrile derivatives have been reported as effective inhibitors for steel corrosion [10, 11]. Several authors before have used organic derivatives as corrosion inhibitors for steel in acid medium [12,13,14,15,16,17,18,19,20,21]. Here, we investigate new organic inhibitors, namely, 2-((2-aminophenyl) thio)-4,6-dimethylnicotinonitrile(APTDN) and 4,6-dimethyl-2-(phenylamino) nicotinonitrile (DPAN), which were considered an effective corrosion inhibitor for C-steel in 1 M hydrochloric acid. The inhibitory effect was investigated using mass loss, potentiodynamic polarization (PP), electrochemical impedance spectroscopy (EIS), electrochemical frequency modulation (EFM), surface characterization by AFM and XPS, and quantum chemical calculations.

The present research explores the inhibition effect of the two synthesized nicotinonitrile derivatives, namely, 2-((2-aminophenyl) thio)-4, 6-dimethylnicotinonitrile (APTDN) and 4,6-dimethyl-2-(phenylamino) nicotinonitrile (DPAN) on the corrosion of C-steel in 1 M HCl.

2 Experimental Methods

2.1 Metallic Materials

The present C-steel samples used for experimental methods have the following chemical composition (weight %): Si 0.25%, C 0.2%, Mn 0.5%, S 0.05%, and Fe 99%. For mass loss method, the samples were mechanically cut into 2.0 × 2.0 × 0.2 cm dimensions then hand polished by emery papers with varied grades from 400 upto 2000 grit size until the surface became like a mirror, degreased with acetone to remove impurities, washed by twice distilled water, and finally dried with filter papers. The working electrode used in PP, EIS, and EFM techniques has an exposed area of 1 cm2 (the edges of the samples were covered with the epoxy resin) and was abraded and degreased like the prior method.

2.2 Synthesis of the Inhibitors

Nicotinonitrile derivatives were synthesized by many steps starting from preparation of 3-cyano-4,6-dimethylpyridine-2-one 1 according to the reported method of Bardhan [12] by stirring acetylacetone with cyanoacetamide in ethyl alcohol and potassium carbonate (Scheme 1). Heating of this pyridine 1 with phosphorus oxychloride furnished 2-chloro-4,6-dimethylnicotinonitrile 2 [22, 23] which has been utilized as a precursor for the synthesis of 2-(2-amino-phenylthio)-4,6-dimethylnicotinonitrile 3 through its heating with o-aminothiophenol in ethanol and potassium carbonate [24]. Furthermore, the chlorine atom of 2-chloronicotinonitrile derivative 4 proved to be reactive towards nucleophilic substitution by nitrogen nucleophile such as aniline to afford 2-anilino-4,6-dimethylnicotinonitrile 4.

Scheme 1
figure 1

.

2.3 Solutions

The corrosive solution (1 M HCl, analytical reagent grade 37%) was prepared by using twice distilled water. Inhibitor’s stock solutions (10–3 M) were prepared by dissolving (APTDN) and (DPAN) in ethanol then mitigated by using twice distilled water to get the concentration range (2–10) × 10–5 M). The quantity of ethanol was kept constant in each preparation to get rid the impact of ethanol on the inhibition efficiency.

2.4 Mass Loss (ML) Measurements

The mass loss method is the high accuracy method for laboratory corrosion study as well to calculate the corrosion rate (C.R.) and inhibition efficiency (η). The previously prepared specimens of the metal were massed and dipped in the corrosive media in the absence and presence of studied additives (APTDN and DPAN) at varied concentrations for a certain time of 3 h. Every half hour, the sample is taken out, washed, dried and finally weighed accurately. The mean mass loss (ΔW) was calculated using Eq. (1) [25]

$$\Delta W = W_{1} {-}W_{2},$$
(1)

where W1 and W2 are the mass losses of specimens prior and after dipping in the test solution.

The inhibitor efficiency (η%) and the degree of surface coverage (θ) in the presence of the studied additives (APTDN and DPAN) were calculated using Eq. (2)

$$\eta \% = \theta \times 100 = \left[ {1 - \frac{{W_{{{\text{inh}}}} }}{{W_{{{\text{free}}}} }}} \right] \times 100,$$
(2)

where Winh and Wfree are the mean mass losses in the presence and absence of inhibitors, respectively.

2.5 Electrochemical Measurements

The electrochemical method is the most powerful method to give information about metal–inhibitor interaction as a result of the metallic corrosion which involves anodic and cathodic reactions. Electrochemical tests were performed at a three-electrode cell configuration: the working electrode (Carbon Steel electrode), the reference electrode (saturated calomel electrode placed in a fine capillary), and the counter electrode (Pt wire). These tests involve three parts: impedance spectroscopy, potentiodynamic polarization, and electrochemical frequency modulation tests, respectively. The working electrode was dipped in the test medium for 30 min until the (steady state potential) open circuit potential OCP is reached which is determined as the tendency of a metallic surface to be corroded freely in any corrosive medium [26].

Potentiodynamic polarization tests were applied at OCP by varying the electrode potential from − 500 to 500 mV with a scan rate of 1 mV/s. EIS test used AC signals at OCP with frequency range starting from 0.01 Hz at low frequency to 100,000 Hz at high frequency with applied potential signal amplitude of + 10 mV around the rest potential. Lastly, EFM test was made with small potential perturbation signal and amplitude 10 mV with two sine waves of 2 and 5 Hz.

2.6 ATR-IR Spectroscopy Analysis

The chemical composition of APTDN and DPAN was studied by ATR-IR (Thermo Fisher Scientific, NicoletiS10 model) analysis. Infrared spectra were recorded using ATR (Attenuated Total Reflection) in the wavenumber range 400–4000 cm−1.

2.7 Atomic Force Microscopy (AFM) Analysis

The surfaces of C-steel samples were observed in non-contact mode atomic force microscopy (Pico SPM2100) and before analysis the specimens were abraded by emery papers upto 2000 grit size until reaching uniform surface and then immersed in the aggressive solution for 24 h without and with APTDN and DPAN at 25OC. Then the specimens were removed from the solution, washed well, dried, and analyzed in AFM instrument.

2.8 Quantum Chemical Study

The correlation between the molecular structure of investigated compounds and their quantum chemical parameters was examined using Materials Studio version 7.0.

2.9 X-Ray Photoelectron Spectroscopy Analysis

The surface of carbon steel after its immersion in 1 M HCl solution in the absence and presence of 10–4 M APTDN and DPAN for 24 h was characterized by XPS K-ALPHA (Themo Fisher Scientific, USA) using monochromatic X-ray Al K-alpha radiation of -10 to 1350 eV and spot size of 400 micro m at a pressure range of 10–9 mbar with full spectrum pass energy of 200 eV and narrow spectrum pass energy of 50 eV.

3 Results and Discussion

3.1 Mass Loss (ML) Measurements

3.1.1 Effect of Inhibitor Concentration

Figure 1 shows the ML–time curves for C-steel in 1 M HCl in the absence and presence of various concentrations of APTDN with range (2 × 10–5 to 1 × 10–4) M at 25 ± 0.1 °C. Other curves were obtained for DPNA (not shown). The existence of a linear relation between the ML and time is clear from the figure. This behavior shows the adsorption of additives on C-steel surface and impedes the corrosion process [27]. Corrosion parameters such as corrosion rate (C.R.), degree of surface coverage (θ), and inhibition efficiency %η for APTDN and DPAN compounds are recorded in Table 1. The data illustrate that an increase in the concentration of the two inhibitors leads to a decrease in the C.R. and an increase the η%. Obviously, compound APTDN shows higher values of %η than DPAN.

Fig. 1
figure 1

ML versus time plot for the dissolution of C-steel with and without different concentrations of APTDN in 1 M HCl at 25 °C

Table 1 Data of ML method for corrosion of C-steel in 1 M HCl solution with and without different concentrations of APTDN and DPAN additives at 25 °C

3.1.2 Effect of Temperature

To study the effect of investigated compounds at higher temperatures, ML measurements were performed at different temperatures (25–45 °C). The variation of %η with the solution temperatures are shown in Fig. 2 which indicated that the %η increased with an increase in temperature. At all studied temperatures, the order of %η was in the order: APTDN > DPAN. The little increase or constancy in the %η with increases of temperature is related to the chemical adsorption only or due to the combination of physical and chemical adsorption [28].

Fig. 2
figure 2

Difference of %η against temperatures for additives APTDN and DPAN

3.1.3 Adsorption Isotherms

The adsorption isotherm is a powerful tool to study the adsorption behavior of the investigated compounds on metallic surface. Various isotherms including Frumkin, Langmuir, Temkin, and Freundlich were studied to fit the experimental results by plotting the calculated degree of surface coverage (θ) against different concentrations of APTDN and DPAN additives as shown in Fig. 3. Straight lines in both additives with the correlation coefficient R2 approach unity, indicating that the Langmuir adsorption isotherm is the best linear fit to the results. The equilibrium constant \(K_{\text{ads}}\) is given from Eq. (3) [29] by using the relation between C and C/θ

$$\frac{C}{\theta } = \left( {\frac{1}{{K_{{{\text{ads}}}} }}} \right) + C$$
(3)
Fig. 3
figure 3

Langmuir isotherm drawn as [C/θ] versus [C] of APTDN and DPAN molecules for corrosion of C-steel in 1 M HCl at 25 °C

The values of \({K}_{\mathrm{a}\mathrm{d}\mathrm{s}}\) were used to calculate the value of adsorption of Gibbs free energy \(\Delta {G}_{\mathrm{a}\mathrm{d}\mathrm{s}}^{\mathrm{o}}\) through Eq. (4) [30]:

$$K_{{{\text{ads}}}} = \frac{1}{55.5}\exp \left( {\frac{{ - \Delta G_{{{\text{ads}}}}^{{\text{o}}} }}{RT}} \right)$$
(4)

The value of 55.5 refers to the molar concentration of H2Osol in aqueous solution (in M/L).

The negative values (Table 2) of the calculated ∆Goads indicate the spontaneity of the substitution adsorption process between H2Oads and organic molecule orgaq at the interface [31]

$${\text{Org}}_{{({\text{sol}})}} + x\left( {{\text{H}}_{2} {\text{O}}} \right)_{{{\text{ads}}}} \leftrightarrow {\text{Org}}_{{({\text{ads}})}} + x{\text{H}}_{2} {\text{O}}_{{({\text{sol}})}}$$
Table 2 Thermodynamic adsorption parameters of APTDN and DPAN adsorbed on C-steel surface in 1 M HCl at various temperatures

Moreover, the ∆Goads values reached − 47 kJ mol−1 which reflects a high chemical adsorption on the steel surface. In general, the ∆Goads values of − 40 kJ mol−1 or more are attributed to chemisorption through the charge transfer between the inhibitor molecule and the metal surface to form coordinate bond [32]. Additionally, the observed value of ∆Goads − 36.8 kJ mol−1 is related to physisorption via electrostatic interaction. Thus, it is established that the type of the adsorption for APTDN and DPAN molecules is a mixed type i.e. chemical and physical adsorption with mainly chemical [31]. As well, the enthalpy (ΔHoads) and the entropy (ΔSoads) of adsorption are calculated by the Van't Hoff [33] and thermodynamic equations (Eqs. 5, 6), respectively:

$$\ln K_{{{\text{ads}}}} = \frac{{ - \Delta H^{{\text{o}}} }}{RT} + {\text{constant}},$$
(5)
$$\Delta G_{{{\text{ads}}}}^{{\text{o}}} = \Delta H_{{{\text{ads}}}}^{{\text{o}}} - T\Delta S_{{{\text{ads}}}}^{{\text{o}}}$$
(6)

The calculated enthalpy (ΔHoads) values in both the studied additives have a positive sign, indicating the endothermic nature of the adsorption process. This confirms that the chemisorption is taking place on the steel surface. Finally, the standard adsorption entropy ΔSoads is increased in positive direction indicating that the adsorbed layer formed on the steel surface of the two additives is due to the desorption of a high number of water molecules [H2Oads] from surface by APTDN and DPAN molecules in the aqueous solution [APTDN (sol), DPAN (sol)] [34].

3.1.4 Thermodynamic Activation Parameters

The mechanistic information about the adsorption process of the inhibitor molecule on the surface of metallic material is determined by the value of activation energy. To calculate the value of activation energy, the logarithm of the C.R. (mg/cm2/min) is plotted versus 1/T for 1 M HCl with and without various molar concentrations of APTDN, according to the Arrhenius equation:

$$\log {\text{C.R.}} = \left[ { - E_{{\text{a}}}^{*} /2.303RT} \right] + \log A ,$$
(7)

where (A) is the frequency factor, (Ea*) is the apparent activation energy, R is the gas constant, and (T) is the absolute temperature. Figure 4 shows straight lines with a slope equal to (− Ea*/2.303R) at which activation parameters can be obtained. Table.3 shows the relatively higher value of the activation energy, Ea*, in the blank solution when compared to Ea* in the presence of the two studied additives (APTDN and DPAN); this is attributed to its chemical adsorption on the C-steel surface, whereas the opposite is right for physical adsorption [35].

Fig. 4
figure 4

Arrhenius plots (log C.R. vs 1000/T) for C-steel in 1 M HCl with and without various concentrations of APTDN

Table 3 Activation parameters for the corrosion of C-steel in absence and presence of different concentrations of APTDN and DPAN additives in 1 M HCl

In order to calculate enthalpy and entropy of activation of ΔH* and ΔS*, the transition state equation was applied to calculate both parameters Eqs. (8, 9):

$${\text{C.R.}} = \left[ {RT/{\text{Nh}}} \right]\exp \left( {\Delta S^{*} /R} \right)\exp \left( { - \Delta H^{*} /RT} \right),$$
(8)
$${\text{Log C.R.}} = \log \left[ {RT/{\text{Nh}}} \right] + \left( {\Delta S^{*} /R} \right) - \left( {\Delta H^{*} /RT} \right)$$
(9)

[h] is the Planck’s constant and [N] is the Avogadro’s number. Plots log [C.R. /T] versus [1000/T] were shown in Fig. 5. Straight lines were obtained with a slope of (− ∆H*/RT) and an intercept of log[R/Nh] + (∆S*/R), and the values of ∆H* and ∆S* were computed. From the inspection data of Table 3, the positive values of ΔH* point correspond to the endothermic nature of the activation process. Also it is clear that the with an increase in the activation entropy with the increase in the concentrations of the additives in positive direction, an increase in disordering happens from the reactant to the activated iron complex [36].

Fig. 5
figure 5

The Transition state plot (log C.R./T vs 1000/T) for C-steel in 1 M HCl in the absence and presence of different concentrations of APTDN

3.2 Potentiodynamic Polarization (PP) Measurements

The PP curves have been obtained for the C-steel electrode in acidic solution with and without different concentrations of APTDN at 25 °C, as shown in Fig. 6. That curves display the changes after adding APTDN additive which is used to classify individuals as cathodic, anodic, or mixed inhibitors [37]. The corrosion potential (Ecorr), corrosion current density (icorr), and anodic and cathodic Tafel slopes (βa and βc) have been calculated when the extrapolation of the linear portions of Tafel lines takes place [38]. Table 4 shows the reduction in icorr and the increase in %η with increasing additive concentration. Also, it is observed that Tafel lines increase slightly with an increase in the concentration of APTDN and DPAN. This indicates that the two species adsorb both the anodic and the cathodic sites [39]. The slight change in Ecorr with range from 7 to 51 mV, that is less than 85 mV, [40] indicate that the two additives behaved as mixed-type inhibitors.

Fig. 6
figure 6

PP plot for the corrosion of C-steel in 1 M HCl with and without different concentrations of APTDN at 25 °C

Table 4 Electrochemical parameter from PP for C-steel corrosion in 1 M HCl for APTDN and DPAN additives at 25 °C

3.3 Electrochemical Impedance Spectroscopy

Figure 7 displays the EIS spectra in the form of Nyquist and Bode phase angle plots of C-steel working electrode in 1 M HCl with and without different concentrations of APTDN at 25 °C. The appearance of an individual capacitive loop signifying the behavior of a non-ideal capacitor of the steel surface / acid interface is obvious from Nyquist spectra [41]. Obviously, the diameter of capacitive loop is extended significantly by increased addition of the two tested compounds that gives the indication of the extent retardation of corrosion process [42]. Figure 8 presents a simple equivalent circuit which is used to analyze the EIS spectra through fitting the experimental results. This circuit includes charge transfer resistance (Rct), solution resistance (Rs), and the constant phase element (CPE) which acts as ideal capacitor. Equation 10 determines the calculation of the capacitance double layer Cdl [43].

$$C_{{{\text{dl}}}} = \raise.5ex\hbox{$\scriptstyle 1$}\kern-.1em/ \kern-.15em\lower.25ex\hbox{$\scriptstyle 2$} \pi f_{\max } R_{{{\text{ct}}}}$$
(10)
Fig. 7
figure 7

The Nyquist (a) and Bode phase angle (b) plots for corrosion of C-steel in 1 M HCl in the absence and presence of various concentrations of APTDN at 25 °C

Fig. 8
figure 8

Equivalent circuit model used to fit the impedance spectra

where fmax represents the frequency at the maximum imaginary impedance in Nyquist diagram.

As shown in Table 5, the values of Rct increased and Cdl decreased with an increase in the concentration of the two additives. The remarkable increase in the Rct is due to the formation of adsorbed layer on C-steel surface which makes a barrier and delayed effectively by APTDN and DPAN molecules [44]. Also, the significant decrease in Cdl is related to the thickness of the protective layer which formed on the metal/electrolyte interface and also due to the replacement of the water molecules adsorbed on C-steel surface by the additive molecules [45]. As can be seen from Table 5, the %η of APTDN is high as 83% compared to 72.4% DPAN. This finding indicates that APTDN is highly adsorbed on the steel surface than DPAN which in agreement with the prior methods.

Table 5 Electrochemical kinetic parameters obtained from EIS technique for the corrosion of C- steel in 1 M HCl at various concentrations of APTDN and DPAN at 25 °C

3.4 Electrochemical Frequency Modulation (EFM) Technique

The EFM is non-destructive and rapid technique to determine the corrosion current without prior information of Tafel slopes. The great strength in EFM is its causality factors which serve as an internal check on the validity of the EFM measurement [46]. Figure 9 displays the intermodulation spectrum of EFM of the target metal in 1 M HCl containing (2 × 105 M and 1 × 104 M) for APTDN and DPAN. Each spectrum signifies an observed current response versus frequency [47]. Table 6 indicates a variety of ƞ EFM%, Tafel constants (βa, βc), and causality factors (CF-2 and CF-3) at different concentrations of the studied inhibitors. The corrosion current densities icorr reduced by increasing the concentration of two derivatives as an effect to increase the adsorption power over the steel surface. Also, it is clear from Table 6 that the causality factor values CF-2 and CF-3 approached their theoretical values (2–3) indicating that the results of the corrosion parameters are verified and with high quality [48]. The greater %ƞ values of APTDN related to DPAN which in agreement with prior measurements.

Fig. 9
figure 9

EFM spectra of C-steel in 1 M HCl with and without various concentrations of APTDN at 25 °C

Table 6 Electrochemical parameters obtained from EFM technique for the corrosion of C-steel in 1 M HCl without and with APTDN and DPAN inhibitors at 25 °C

3.5 Quantum Chemical Parameters of Protonated Compounds

APTDN and DPAN compounds are optimized with Material Studio version 7.0 which illustrates the effect of the molecular structures and its relevant nature of electronic parameters on corrosion inhibition, the quantum parameters such as the energy values of the HOMO and LUMO orbitals and their energy gap (ΔE = EHOMO − ELUMO), dipole moments, and molecular surface area of molecules [46], which are listed in Table 7. The HOMO orbit involves the ability of the molecule to donate electrons. On the contrary, The LUMO orbit involves the capability of the molecule to acquire electrons [49]. Basically, the electron affinity for any organic molecule is directly related to EHOMO and ELUMO values [50]. In accordance with the frontier molecular orbital theory, the formation of activated complex is attributed to the interaction between the (HOMO and LUMO) of the inhibitor and the d-vacant orbit of the metal [51]. Inspection of Table 7, EHOMO of APTDN molecule is less high than the EHOMO of DPAN molecule. It can be assumed that both molecules have an equal ability to offer electrons to d-vacant orbital of the steel. In the case of DPAN molecule, the electric charge localized around pyridine ring and N atom, while in APTDN molecule its distributed on pyridine ring, S, and N atoms. As recognized, the electrons of carbon in pyridine ring are p-bonding type, while S and N atoms have non-bonding electron pairs, signifying that these heteroatoms are considered as the favorable sites for electrophile attack over the steel surface (Fig. 10). Also it is revealed from that table the energy gap of APTDN is proportionally small compared to the other inhibitor DPAN confirming that APTDN is an excellent corrosion inhibitor. Furthermore, the relevance between the molecular surface area and its efficiency is found; the more the molecular area value the more interaction area between the inhibitor and the metallic surface.

Table 7 Quantum chemical parameters of the investigated compounds
Fig. 10
figure 10

The frontier molecular orbital for the examined inhibitors (HOMO and LUMO)

3.6 Surface Morphology

3.6.1 Attenuated Total Refraction Infrared (ATR-IR) Analysis

This method concerns for identifying the adsorbed functional groups of organic compounds on the C-steel surface. ATR-IR with a range 4000 to 400 cm−1 was performed. Figure 11 signifies the ATR-IR spectrum of APTDN inhibitor and the construction of the adsorbed film over the steel surface after immersion for 24 h in 1 M HCl in the presence of APTDN. The characteristic peaks of active function groups for free organic compounds before (pure inhibitors) and the other peaks in the presence of these compounds after immersion for 24 h in the test solution on C-steel surface were discussed and scheduled in Table 8. The ATR-IR expresses the nature of the protecting film of the active function groups of APTDN on the C-steel surface in 1 M HCl after immersion for 24 h. From the clear peaks, there were small changes and some weak function groups frequencies disappeared such as two peaks of primary amine (NH–) in the pure compound, but converted to single peak of secondary amine surface (chemisorption) especially; also, others shifted due to the interaction and coordinate to the C-steel as shown in Table 8. The steel corrosion decreases after addition of APTDN inhibitor due to formation of the protective layer.

Fig.11
figure 11

ATR-IR spectra of pure APTDN compound and C-steel metal surface in 1 M HCl + APTDN

Table 8 Characteristic peaks prior and after immersion in1 M HCl in the presence of APTDN for 24 h on C-steel surface at 25 ºC

3.6.2 Atomic Force Microscopy (AFM) Analysis

AFM technique has been widely used in the analysis of the surface of metallic materials through the topographic maps that produce Nano level of metal /solution interface. Figure 12 displays the 3D images of the steel surface prior and after exposure to Hydrochloric acid solution for 24 h with and without addition of APTDN and DPAN. Table 9 presents the AFM parameters including Rq root mean square roughness and Ra average roughness. As expected, Rq and Ra values reduced at the entire adsorbed surface with APTDN and DPAN molecules that indicate a bright and smooth surface compared to the corroded surface in blank solution, but higher than the free sample.

Fig. 12
figure 12

AFM images for uninhibited and inhibited C-steel after immersion for 24 h in 1 M HCl for (APTDN, DPAN)

Table 9 AFM roughness data of the tested compounds (APTDN and DPAN) at 10 × 10−5 M for 24 h at 25 °C

3.6.3 X-Ray Photoelectron Spectroscopy Analysis

X-ray photoelectron spectroscopy (XPS) analysis was performed to confirm the adsorption of the investigated organic compounds on the steel surface and to determine the chemical nature of the inhibitors/carbon steel interface. The high-resolution XPS spectra obtained for carbon steel surface corroded in 0.1 M HCl in the presence of APTDN molecule as illustrated in Fig. 14. The Fe, O, C, Cl,N, and S elements with APTDN adsorption on the steel surface can be obviously seen. The spectrums of XPS of Cl 2p, N 1 s, C1s, O1s, S 2p, and Fe 2p are presented in Fig. 13, separately. Figure 14a presents the XPS spectrum of Fe 2p that shows six peaks. The high peak at lower binding energy (711.2 eV) corresponds to metallic iron [52]. The peak located at 714.6 eV is attributable to Fe 2p3/2, and the small peak at 719.40 eV corresponds to the satellite of Fe3+ [53]. In addition, the peaks at 724.3 eV and 727.9 eV can be attributed to Fe 2p1/2 due to the presence of iron in the form of Fe3O4, α-Fe2O3, and FeOOH [54]. The last peak at 732.4 eV is related to the oxidation of the steel surface. Figure 14b presents C 1 s spectra after APTDN molecule is adsorbed on the surface. It is found that more peaks are observed at 288.4 eV which is attributed to the sp2-hybridized carbon [55], in which comes from the inhibitor molecule.

Fig. 13
figure 13

The XPS survey spectrum results of APTDN adsorbed on the C-steel in 1 M HCl at 25 °C

Fig. 14
figure 14

High-resolution X-ray photoelectron deconvoluted profiles of a Fe 2p, b C 1 s, c N 1 s, and d S 2p for C-steel in 1 M HCl

Also, Fig. 14c shows XPS spectrum of N 1 s with a single peak at 399.9 eV, this peak could be attributed to the neutral imine (–N =) and amine (–N–H) nitrogen atoms as previously reported [56, 57]. Finally, XPS spectrum of S 2p is showed in Fig. 14d which presented two spin–orbit-split doublets for S 2p3/2 and S 2p1/2, with binding energies at 162.1 and 166.8 eV, which correspond to the sulfide species and the C–S bond, respectively. According to the XPS results, we can confirm the adsorption of the investigated inhibitors on the C-steel surface in HCl solution.